<commit_before>package exercises.july30;

import java.util.Scanner;

/**
 * Write a program that will find the sum of a collection of data values.
 *
 * Your program should terminate when a zero value is read.
 */
public class ExerciseOne {

    public static void main(String[] args) {
        long total = 0;
        long input;
        long inputs = 0;

        Scanner keyboard = new Scanner(System.in);
        System.out.println("Please input some numbers. Input 0 to finish.\n");

        do {
            if (keyboard.hasNextLong()) {
                input = keyboard.nextLong();
                keyboard.nextLine();
                total += input;
                inputs += 1;
            } else {
                input = 1;
                System.out.println("Unknown number: " + keyboard.nextLine());
            }
        } while (input > 0);

        System.out.println("\nTotal: " + total);
        System.out.println("Values read: " + inputs);
    }
}<commit_msg>Value checking<commit_after>package exercises.july30;

import java.util.Scanner;

/**
 * Write a program that will find the sum of a collection of data values.
 *
 * Your program should terminate when a zero value is read.
 */
public class ExerciseOne {

    public static void main(String[] args) {
        long total = 0;
        long input;
        long inputs = 0;

        Scanner keyboard = new Scanner(System.in);
        System.out.println("Please input some numbers. Input 0 to finish.\n");

        do {
            if (keyboard.hasNextLong()) {
                input = keyboard.nextLong();
                keyboard.nextLine();  // nextLong() doesn't advance past the newline,
                                      // but we need to for error checking
                total += input;
                inputs += 1;
            } else {
                input = 1;
                System.out.println("Unknown number: " + keyboard.nextLine());
            }
        } while (input != 0);

        System.out.println("\nTotal: " + total);
        System.out.println("Values read: " + inputs);
    }
}
{'fraction_non_alphanumeric': 0.10902977905859751, 'fraction_numerical': 0.007684918347742555, 'mean_word_length': 1.7122395833333333, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7043092', 'n_tokens_mistral': 572, 'n_tokens_neox': 532, 'n_words': 174}