<commit_before>var StorageLevel = require(EclairJS_Globals.NAMESPACE + '/storage/StorageLevel');
var SparkContext = require(EclairJS_Globals.NAMESPACE + '/SparkContext');
var sparkContext = new SparkContext();
var rdd = sparkContext.parallelize([1, 2, 3]);
load("https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.9.0/lodash.min.js");



tests({


    version : function() {
        var ver= sparkContext.version();
        assertEquals("failure - strings are not equal", "EclairJS-nashorn 0.4 Spark 1.6.0", ver);

    },

    testCollect : function () {
        var collected=  JSON.stringify(rdd.collect());
        var expected = "[1,2,3]";
        assertEquals("failure collect - arrays are not equal", expected, collected);
    },

    testAggregate : function() {<commit_msg>Updated version test in rddtest to 0.5 to match current build<commit_after>var StorageLevel = require(EclairJS_Globals.NAMESPACE + '/storage/StorageLevel');
var SparkContext = require(EclairJS_Globals.NAMESPACE + '/SparkContext');
var sparkContext = new SparkContext();
var rdd = sparkContext.parallelize([1, 2, 3]);
load("https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.9.0/lodash.min.js");



tests({


    version : function() {
        var ver= sparkContext.version();
        assertEquals("failure - strings are not equal", "EclairJS-nashorn 0.5-SNAPSHOT Spark 1.6.0", ver);

    },

    testCollect : function () {
        var collected=  JSON.stringify(rdd.collect());
        var expected = "[1,2,3]";
        assertEquals("failure collect - arrays are not equal", expected, collected);
    },

    testAggregate : function() {
{'fraction_non_alphanumeric': 0.1445336627547869, 'fraction_numerical': 0.01852995676343422, 'mean_word_length': 3.6685878962536025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1980997', 'n_tokens_mistral': 533, 'n_tokens_neox': 494, 'n_words': 114}