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

namespace LibSassGen
{
    public partial class CodeGenerator
    {
        private const string DefaultIncludeDir = @"../../../../../libsass/include";

        private const string DefaultOutputFilePath = @"../../../../SharpScss/LibSass.Generated.cs";
        private const int IndentMultiplier = 4;

        private int _indentLevel;

        private TextWriter _writer;

        private TextWriter _writerBody;

        private TextWriter _writerGlobal;

        public bool OutputToConsole { get; set; }

        public void Run()
        {
            var outputFilePath = Path.Combine(Environment.CurrentDirectory, DefaultOutputFilePath);
            outputFilePath = Path.GetFullPath(outputFilePath);

            _writerGlobal = new StringWriter();
            _writerBody = new StringWriter();

            ParseAndWrite();

            var finalWriter = OutputToConsole
                ? Console.Out
                : new StreamWriter(outputFilePath);<commit_msg>Update code generator relative filepath<commit_after>using System;
using System.IO;

namespace LibSassGen
{
    public partial class CodeGenerator
    {
        private const string DefaultIncludeDir = @"../../../../libsass/include";

        private const string DefaultOutputFilePath = @"../../../SharpScss/LibSass.Generated.cs";
        private const int IndentMultiplier = 4;

        private int _indentLevel;

        private TextWriter _writer;

        private TextWriter _writerBody;

        private TextWriter _writerGlobal;

        public bool OutputToConsole { get; set; }

        public void Run()
        {
            var outputFilePath = Path.Combine(Environment.CurrentDirectory, DefaultOutputFilePath);
            outputFilePath = Path.GetFullPath(outputFilePath);

            _writerGlobal = new StringWriter();
            _writerBody = new StringWriter();

            ParseAndWrite();

            var finalWriter = OutputToConsole
                ? Console.Out
                : new StreamWriter(outputFilePath);
{'fraction_non_alphanumeric': 0.08685104318292092, 'fraction_numerical': 0.0009704027171276079, 'mean_word_length': 2.257503949447077, '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': '7636446', 'n_tokens_mistral': 502, 'n_tokens_neox': 469, 'n_words': 131}