<commit_before>package Fundamentals;

/**
 * Created by matao on 5/26/16.
 * 自然语言描述:
 * 计算两个非负整数p和q的最大公约数: 若q是0, 则最大公约数为p
 * 否则将p除以q得到余数r, p和q的最大公约数即q和r的最大公约数
 */
public class GCD {
    public static void main(String[] args) {
        System.out.println(gcd(20, 5));
        System.out.println(recursionGcd(20, 5));
    }

    public static int gcd(int p, int q) {
        if (q == 0) {
            return p;
        }
        int r = p % q;
        return gcd(q, r);
    }

    public static int recursionGcd(int p, int q) {
        while (q > 0) {
            int r = p % q;
            p = q;
            q = r;
        }
        return p;
    }
}<commit_msg>[REV] Rename method<commit_after>package Fundamentals;

/**
 * Created by matao on 5/26/16.
 * 自然语言描述:
 * 计算两个非负整数p和q的最大公约数: 若q是0, 则最大公约数为p
 * 否则将p除以q得到余数r, p和q的最大公约数即q和r的最大公约数
 */
public class GCD {
    public static void main(String[] args) {
        System.out.println(gcd(20, 5));
        System.out.println(recursionGcd(20, 5));
    }

    public static int recursionGcd(int p, int q) {
        if (q == 0) {
            return p;
        }
        int r = p % q;
        return gcd(q, r);
    }

    public static int gcd(int p, int q) {
        while (q > 0) {
            int r = p % q;
            p = q;
            q = r;
        }
        return p;
    }
}
{'fraction_non_alphanumeric': 0.12330827067669173, 'fraction_numerical': 0.021052631578947368, 'mean_word_length': 1.6461232604373757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3594546', 'n_tokens_mistral': 591, 'n_tokens_neox': 596, 'n_words': 130}