<commit_before>/**
 * Created by Oleg on 21.08.2014.
 */
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

/** Long devision calculator */

public class LongDivisionCalculator {
    public static void main(String[] args) throws IOException {
        int a = 0; //input variable
        int b = 0; //input variable
        int c; //result variable
        boolean point = false;
        List<String> resultsStr = new ArrayList<String>(); //aggregated results

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        printNewLine("Добро пожаловать в программу 'Калькулятор деления столбиком (КДС)'");
        a = input(a, bufferedReader, "Пожалуйста, введите числитель (a): ");
        b = input(b, bufferedReader, "а теперь введите знаменатель (b): ");


        printNewLine(a+" | "+b);

        int i = 0;
        do {
            //if numerator less then de-numerator
            int i1 = 0;
            while (a<b) {
                if (i1 > 0) {resultsStr.add(String.valueOf(0));}
                if (!point){resultsStr.add("."); point = true;}
                a *= 10;
                i1++;
            }

            c = (int)((double) a / b); //casted twice because of int rounding


            resultsStr.add(String.valueOf(c));
            a = a - (c * b); //excess calculation
            System.out.println(a);

            i++;
        } while (a!=0 && i < 10);

        //Print results
        for (String r : resultsStr) {
            System.out.print(r);
        }
        printNewLine("\nХорошего дня! :)");
    }

    private static void printNewLine(String text) {
        System.out.println(text);
    }

    private static int input(int i, BufferedReader br, String inputText) throws IOException {
        System.out.print(inputText);
        boolean isError = true;
        while (isError) {
            try{
                i = Integer.parseInt(br.readLine());
                isError = false;
            }catch(NumberFormatException nfe){
                System.err.println("Неправильный формат числа. Введите целое");
                isError = true;
            }
        }
        return i;
    }

<commit_msg>Changed output text.<commit_after>/**
 * Created by Oleg on 21.08.2014.
 */
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

/** Long devision calculator */

public class LongDivisionCalculator {
    public static void main(String[] args) throws IOException {
        int a = 0; //input variable
        int b = 0; //input variable
        int c; //result variable
        boolean point = false;
        List<String> resultsStr = new ArrayList<String>(); //aggregated results

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        printNewLine("Welcome to long devision calculator");
        a = input(a, bufferedReader, "Please enter numerator (a): ");
        b = input(b, bufferedReader, "Please enter de-numerator (b): ");


        printNewLine(a+" | "+b);

        int i = 0;
        do {
            //if numerator less then de-numerator
            int i1 = 0;
            while (a<b) {
                if (i1 > 0) {resultsStr.add(String.valueOf(0));}
                if (!point){resultsStr.add("."); point = true;}
                a *= 10;
                i1++;
            }

            c = (int)((double) a / b); //casted twice because of int rounding


            resultsStr.add(String.valueOf(c));
            a = a - (c * b); //excess calculation
            System.out.println(a);

            i++;
        } while (a!=0 && i < 10);

        //Print results
        for (String r : resultsStr) {
            System.out.print(r);
        }
        printNewLine("\nHave a nice day! :)");
    }

    private static void printNewLine(String text) {
        System.out.println(text);
    }

    private static int input(int i, BufferedReader br, String inputText) throws IOException {
        System.out.print(inputText);
        boolean isError = true;
        while (isError) {
            try{
                i = Integer.parseInt(br.readLine());
                isError = false;
            }catch(NumberFormatException nfe){
                System.err.println("Inappropriate number format. Please use integer");
                isError = true;
            }
        }
        return i;
    }


{'fraction_non_alphanumeric': 0.11893203883495146, 'fraction_numerical': 0.009708737864077669, 'mean_word_length': 1.8581336696090796, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '1999375', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1279, 'n_words': 357}