<commit_before>﻿using System.Linq;

namespace RankOne.Helpers
{
    public class MinificationHelper
    {
        public bool IsMinified(string content)
        {
            var totalCharacters = content.Length;
            var lines = content.Count(x => x == '\n');
            var ratio = totalCharacters / lines;          // ratio characters per line
            return ratio < 200;
        }
    }
}<commit_msg>Fixed division by zero bug in MinificationHelper<commit_after>﻿using System.Linq;

namespace RankOne.Helpers
{
    public class MinificationHelper
    {
        public bool IsMinified(string content)
        {
            var totalCharacters = content.Length;
            var lines = content.Split('\n').Length;
            var ratio = totalCharacters / lines;          // ratio characters per line
            return ratio < 200;
        }
    }
}
{'fraction_non_alphanumeric': 0.08217592592592593, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 1.9421768707482994, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5930400', 'n_tokens_mistral': 224, 'n_tokens_neox': 221, 'n_words': 64}