<commit_before>/* Bonfire: Smallest Common Multiple */

function smallestCommons(arr) {



  console.log(arr);
  return arr;
}


smallestCommons([1,5]);<commit_msg>Work on Bonfires Project<commit_after>/* Bonfire: Smallest Common Multiple */

function smallestCommons(arr) {
  var start;
  var stop;
  function leastCommon(a, b){
    var lcm = b * (b - 1);
    console.log("starting lcm = " + lcm);
    b -= 2;
    while (b >= a){
      console.log("b >= a");
      if ( lcm % b === 0){
        console.log(lcm);
      }else{
        lcm *= b;
        console.log(lcm);
      }
      b--;
    }
    return lcm;
  }
  if( arr[0] < 0 || arr[1] < 0){
    return "Negative numbers are not conventional inputs for finding a Least Common Mulitple and are therefore invalid.";
  }else if( arr[0] === arr[1]){
    return "Two unique numbers must be supplied in the function call to produce a nontrivial solution for the Least Common Multiple.";
  }else if(arr[0] < arr[1] ){
    start = arr[0];
    stop = arr[1];
    return leastCommon(start, stop);
  }else if(arr[0] > arr[1]){
    start = arr[1];
    stop = arr[0];
    return leastCommon(start, stop);
  }
}
smallestCommons([1,5]);
{'fraction_non_alphanumeric': 0.1503823279524214, 'fraction_numerical': 0.01784197111299915, 'mean_word_length': 2.8, 'pattern_counts': {'":': 0, '<': 6, '<?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': '121045', 'n_tokens_mistral': 417, 'n_tokens_neox': 399, 'n_words': 122}