<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;

namespace BtrieveWrapper.Orm.Models.Template
{
    class BlockParser
    {
        class ParserContext
        {
            public ParserContext(object context) {
                this.Context = context;
                this.Dictionary = new Dictionary<string, object>();
            }

            public object Context { get; private set; }
            public Dictionary<string, object> Dictionary { get; private set; }
        }

        class IfParameter
        {
            public object Member { get; set; }
            public string Value { get; set; }
            public string Block { get; set; }
            public bool IsElse { get; set; }
        }

        enum BlockState
        {
            If,<commit_msg>fix BlockParser class bug<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;

namespace BtrieveWrapper.Orm.Models.Template
{
    class BlockParser
    {
        class ParserContext
        {
            public ParserContext(object context) {
                this.Context = context;
                this.Dictionary = new Dictionary<string, object>();
            }

            public object Context { get; private set; }
            public Dictionary<string, object> Dictionary { get; private set; }

            public override string ToString() {
                return this.Context.ToString();
            }
        }

        class IfParameter
        {
            public object Member { get; set; }
            public string Value { get; set; }
            public string Block { get; set; }
            public bool IsElse { get; set; }
        }

        enum BlockState
        {
            If,
{'fraction_non_alphanumeric': 0.07821522309711286, 'fraction_numerical': 0.0, 'mean_word_length': 1.7824817518248175, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2644533', 'n_tokens_mistral': 474, 'n_tokens_neox': 459, 'n_words': 138}