<commit_before>/*
 * Special Pythagorean triplet
 *
 * Problem 9
 *
 * A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
 *                                                                 a^2 + b^2 = c^2
 * For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
 * 
 * There exists exactly one Pythagorean triplet for which a + b + c = 1000.
 * Find the product abc.
 *
 * Expected result: 31875000
 */
public class Euler9 {

    public static void main(String[] args){
    int result = 0;
        for(int a = 1; a<=500; a++){
            for(int b = 1; b<=500; b++){
                for(int c = 1; c<=a+b; c++){
                    if(a+b+c == 1000 && (a*a) + (b*b) == (c*c) ){
                        result = a*c*b;          
                    }
                }     
            }
        }
        System.out.println(result);
    }
}<commit_msg>Ajuste for<commit_after>/*
 * Special Pythagorean triplet
 *
 * Problem 9
 *
 * A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
 *                                                                 a^2 + b^2 = c^2
 * For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
 * 
 * There exists exactly one Pythagorean triplet for which a + b + c = 1000.
 * Find the product abc.
 *
 * Expected result: 31875000
 *
 *
 */
public class Euler9 {

    public static void main(String[] args){
    int result = 0;
        for(int a = 1; a<=500; a++){
            for(int b = 1; b<=500; b++){
                for(int c = 1; c<=a+b; c++){
                    if(a+b+c == 1000 && (a*a) + (b*b) == (c*c) ){
                        result = a*c*b;          
                    }
                }     
            }
        }
        System.out.println(result);
    }
}
{'fraction_non_alphanumeric': 0.13868194842406878, 'fraction_numerical': 0.048137535816618914, 'mean_word_length': 1.261658031088083, 'pattern_counts': {'":': 0, '<': 13, '<?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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2163364', 'n_tokens_mistral': 636, 'n_tokens_neox': 546, 'n_words': 171}