<commit_before>//= require ./_header_script_js
//= require frontendframework

QUnit.test("adder basics", function(assert) {
    var add5 = FrontEndFramework.adder(5);
    assert.equal(10, add5(5));
});<commit_msg>Added first real tests (environmental sanity checks).<commit_after>//= require ./_header_script_js
//= require frontendframework

QUnit.test("adder basics", function(assert) {
  var add5 = FrontEndFramework.adder(5);
  assert.equal(10, add5(5));
});

//
// These mainly test to make sure that gHndl and hooks are not overwritten
//

QUnit.test("global handle basics", function(assert) {
  assert.notStrictEqual((typeof gHndl), 'undefined');
  assert.equal(gHndl, window);
});

QUnit.test("hooks basics", function(assert) {
  assert.notStrictEqual((typeof hooks), 'undefined');
  assert.equal(gHndl.hooks, hooks);
  assert.ok(hooks.pre instanceof Array);
  assert.ok(hooks.post instanceof Array);
});

//
// FrontEndFramework.MiniHtmlViewModel
//

QUnit.test("MiniHtmlViewModel basics", function(assert) {
  // Tests if MiniHtmlViewModel namespace is available
  assert.notStrictEqual(FrontEndFramework.MiniHtmlViewModel, 'undefined');
});
{'fraction_non_alphanumeric': 0.14422241529105126, 'fraction_numerical': 0.010425716768027803, 'mean_word_length': 5.295081967213115, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5212429', 'n_tokens_mistral': 375, 'n_tokens_neox': 362, 'n_words': 80}