<commit_before>(function(host) {

  function gcdSlow(x, y) {
    var max = Math.max(x, y);

    for (var i = max; i >= 2; i--) {
      if ((x % i == 0) && (y % i == 0)) {
        return i;
      }
    }
    return 1;
  }

  host.ch1 = host.ch1 || {};
  host.ch1.gcd = gcdSlow;
  host.ch1.gcdSlow = gcdSlow;
})(this);<commit_msg>Euclidus algorithm for finding prime numbers implemented<commit_after>(function(host) {

  function gcdSlow(x, y) {
    var max = Math.max(x, y);

    for (var i = max; i >= 2; i--) {
      if ((x % i == 0) && (y % i == 0)) {
        return i;
      }
    }
    return 1;
  }

  function gcd(x, y) {
    var r = x % y;

    while (r > 0) {
      x = y;
      y = r;
      r = x % y;
    }
    return y;
  }

  host.ch1 = host.ch1 || {};
  host.ch1.gcd = gcd;
  host.ch1.gcdSlow = gcdSlow;
})(this);
{'fraction_non_alphanumeric': 0.1900726392251816, 'fraction_numerical': 0.020581113801452784, 'mean_word_length': 1.7845117845117846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '177107', 'n_tokens_mistral': 372, 'n_tokens_neox': 346, 'n_words': 90}