<commit_before>var assert = require('assert');


function solution () {
}


var passingNums = [];

for (var i = 1; i < 10; i++){
    if (i % 3 == 0){
        console.log(i);
    }
}

console.log(passingNums);
//for (var b = 1; b < 10; b++){
//    if (b % 3 == 0){
//        console.log(b);
//    }
//}
//
//        }
//    if (i % 5 == 0){
//        console.log(i);
//    }

console.log(Date());

it('should have a `solution` function', function(){
  assert(solution);
  assert.equal(typeof solution, 'function');
});

it('should have a `solution` for (10, 20, 30)', function(){
  assert.equal(solution(10), 23);
  assert.equal(solution(20), undefined);
  assert.euqal(solution(30), undefined);
});

it('should have a `solution` for 50', function(){
  assert.equal(solution(50), undefined);
});

it('should have a solution for 100', function(){
  assert.equal(solution(100), undefined);
});

// What about 1000?
//
//function mod (x){
//        var counter = 0;<commit_msg>end of the 3s+5s<commit_after>var assert = require('assert');


function solution (x) {
    var sums = 0;

    for (var i = 1; i < x; i++){
        if (i % 3 === 0 || i % 5 === 0){
            sums+=i;
        }
        
    }
    return sums;
}
console.log(Date());

it('should have a `solution` function', function(){
  assert(solution);
  assert.equal(typeof solution, 'function');
});

it('should have a `solution` for (10, 20, 30)', function(){
  assert.equal(solution(10), 23);
  assert.equal(solution(20), 78);
  assert.equal(solution(30), 195);
});

it('should have a `solution` for 50', function(){
  assert.equal(solution(50), 543);
});

it('should have a solution for 100', function(){
  assert.equal(solution(100), 2318);
});

it('should have a solution for 1000', function(){
  assert.equal(solution(1000), 233168);
});

// What about 1000?
//
//function mod (x){
//        var counter = 0;
{'fraction_non_alphanumeric': 0.20575692963752665, 'fraction_numerical': 0.05543710021321962, 'mean_word_length': 3.0627705627705626, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '6463776', 'n_tokens_mistral': 746, 'n_tokens_neox': 631, 'n_words': 180}