<commit_before>package problem14;
/**
 *
 * @author xaviersmet
 */

public class Solution14 {
    public static void main(String[] args) {
        long l = 1000001;
        long[] depths = new long[(int)l];
        depths[1] = 1; // depths[0] is discarded for the purpose of easy indexing 

        long max = 0;
        for (int i = 2; i < l; i++) {
            if (depths[i] == 0) {
                long value = i;
                long depthCounter = 0;
                while (value >= l || (value < l && depths[(int)value] == 0)) {
                    value = value % 2 == 0 ? value / 2 : value*3+1 ;
                    depthCounter++;
                }

                depths[i] = depthCounter + depths[(int)value];
                if (depths[i] > max) {
                    max = depths[i];
                    System.out.println(i + ":\t" + depths[i]);<commit_msg>Solution 14 (java), answer 837799<commit_after>public class Solution14 {
    public static void main(String[] args) {
        long l = 1000001;
        long[] depths = new long[(int)l];
        depths[1] = 1; // depths[0] is discarded for the purpose of easy indexing 

        long max = 0;
        for (int i = 2; i < l; i++) {
            if (depths[i] == 0) {
                long value = i;
                long depthCounter = 0;
                while (value >= l || (value < l && depths[(int)value] == 0)) {
                    value = value % 2 == 0 ? value / 2 : value*3+1 ;
                    depthCounter++;
                }

                depths[i] = depthCounter + depths[(int)value];
                if (depths[i] > max) {
                    max = depths[i];
                    System.out.println(i + ":\t" + depths[i]);
{'fraction_non_alphanumeric': 0.13909994155464642, 'fraction_numerical': 0.031560490940970194, 'mean_word_length': 1.4078762306610408, 'pattern_counts': {'":': 2, '<': 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': '5352203', 'n_tokens_mistral': 567, 'n_tokens_neox': 484, 'n_words': 149}