<commit_before><commit_msg>Added  solution for longest string algorithm<commit_after>/**
 * Created by edgilmore on 10/29/2015.
 */
'use strict';
function findLongestWord(str) {
    var words = str.split(' ');
    var longestString = 0;
    for(var i = 0; i < words.length; i++)
    {
        var wordLength = words[i].length;
        if(wordLength > longestString){
            longestString = wordLength;
        }
    }
    return longestString;
}

findLongestWord("The quick brown fox jumped over the lazy dog");
{'fraction_non_alphanumeric': 0.11627906976744186, 'fraction_numerical': 0.01937984496124031, 'mean_word_length': 2.9166666666666665, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3190823', 'n_tokens_mistral': 164, 'n_tokens_neox': 154, 'n_words': 45}