natural 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +7 -0
- package/README.md +3 -3
- package/lib/natural/inflectors/present_verb_inflector.js +1 -0
- package/lib/natural/phonetics/double_metaphone.js +9 -4
- package/lib/natural/phonetics/metaphone.js +4 -0
- package/lib/natural/phonetics/soundex.js +11 -7
- package/lib/natural/stemmers/porter_stemmer.js +90 -62
- package/lib/natural/stemmers/porter_stemmer_pt.js +302 -0
- package/lib/natural/stemmers/stemmer_pt.js +65 -0
- package/lib/natural/stemmers/token.js +163 -0
- package/lib/natural/util/stopwords_pt.js +136 -0
- package/package.json +2 -2
- package/spec/double_metaphone_spec.js +10 -1
- package/spec/metaphone_spec.js +5 -0
- package/spec/porter_stemmer_pt_spec.js +50 -0
- package/spec/porter_stemmer_spec.js +45 -0
- package/spec/present_verb_inflector_spec.js +3 -0
- package/spec/soundex_spec.js +13 -9
- package/spec/stemmer_token_spec.js +161 -0
- package/spec/test_data/snowball_pt.txt +32016 -0
- package/coverage/coverage.json +0 -1
- package/coverage/lcov-report/index.html +0 -584
- package/coverage/lcov-report/io_spec/index.html +0 -350
- package/coverage/lcov-report/io_spec/tfidf_spec.js.html +0 -469
- package/coverage/lcov-report/lib/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/lib/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/lib/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/lib/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/lib/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/lib/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/lib/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/lib/natural/distance/index.html +0 -376
- package/coverage/lcov-report/lib/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/lib/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/lib/natural/index.html +0 -350
- package/coverage/lcov-report/lib/natural/index.js.html +0 -547
- package/coverage/lcov-report/lib/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/lib/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/lib/natural/inflectors/fr/count_inflector.js.html +0 -520
- package/coverage/lcov-report/lib/natural/inflectors/fr/index.html +0 -363
- package/coverage/lcov-report/lib/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/lib/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/lib/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/lib/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/lib/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/lib/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/lib/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/lib/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/lib/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/lib/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/lib/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/lib/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/lib/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/lib/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/lib/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/lib/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/lib/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/lib/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/lib/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/lib/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/lib/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/lib/natural/spellcheck/index.html +0 -350
- package/coverage/lcov-report/lib/natural/spellcheck/spellcheck.js.html +0 -562
- package/coverage/lcov-report/lib/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/lib/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/lib/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/lib/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/lib/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/lib/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/lib/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/lib/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/lib/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/lib/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/lib/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/lib/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/lib/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/lib/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/lib/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/lib/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/lib/natural/trie/index.html +0 -350
- package/coverage/lcov-report/lib/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/lib/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/lib/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/lib/natural/util/index.html +0 -532
- package/coverage/lcov-report/lib/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/lib/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/lib/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/lib/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/lib/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/lib/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/lib/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/lib/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/lib/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/lib/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/lib/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/lib/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/lib/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/lib/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/lib/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/lib/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/natural/distance/index.html +0 -376
- package/coverage/lcov-report/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/natural/index.html +0 -350
- package/coverage/lcov-report/natural/index.js.html +0 -433
- package/coverage/lcov-report/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/natural/inflectors/fr/index.html +0 -350
- package/coverage/lcov-report/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/natural/lib/natural/analyzers/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/analyzers/sentence_analyzer.js.html +0 -850
- package/coverage/lcov-report/natural/lib/natural/classifiers/bayes_classifier.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/classifiers/classifier.js.html +0 -823
- package/coverage/lcov-report/natural/lib/natural/classifiers/index.html +0 -376
- package/coverage/lcov-report/natural/lib/natural/classifiers/logistic_regression_classifier.js.html +0 -502
- package/coverage/lcov-report/natural/lib/natural/distance/dice_coefficient.js.html +0 -529
- package/coverage/lcov-report/natural/lib/natural/distance/index.html +0 -376
- package/coverage/lcov-report/natural/lib/natural/distance/jaro-winkler_distance.js.html +0 -670
- package/coverage/lcov-report/natural/lib/natural/distance/levenshtein_distance.js.html +0 -526
- package/coverage/lcov-report/natural/lib/natural/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/index.js.html +0 -547
- package/coverage/lcov-report/natural/lib/natural/inflectors/count_inflector.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/inflectors/form_set.js.html +0 -406
- package/coverage/lcov-report/natural/lib/natural/inflectors/fr/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/inflectors/fr/noun_inflector.js.html +0 -1027
- package/coverage/lcov-report/natural/lib/natural/inflectors/index.html +0 -402
- package/coverage/lcov-report/natural/lib/natural/inflectors/ja/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/inflectors/ja/noun_inflector.js.html +0 -727
- package/coverage/lcov-report/natural/lib/natural/inflectors/noun_inflector.js.html +0 -637
- package/coverage/lcov-report/natural/lib/natural/inflectors/present_verb_inflector.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/inflectors/singular_plural_inflector.js.html +0 -649
- package/coverage/lcov-report/natural/lib/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/natural/lib/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/natural/lib/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/natural/lib/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/natural/lib/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/natural/lib/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/natural/lib/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/natural/lib/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/natural/lib/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/natural/lib/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/natural/lib/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/natural/lib/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/natural/lib/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/natural/lib/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/natural/lib/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/natural/lib/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/natural/lib/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/natural/lib/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/natural/lib/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/natural/lib/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/natural/lib/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/natural/lib/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/natural/lib/natural/trie/index.html +0 -350
- package/coverage/lcov-report/natural/lib/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/natural/lib/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/natural/lib/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/natural/lib/natural/util/index.html +0 -532
- package/coverage/lcov-report/natural/lib/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/natural/lib/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/natural/lib/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/natural/lib/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/natural/lib/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/natural/lib/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/natural/lib/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/natural/lib/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/natural/lib/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/natural/lib/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/natural/lib/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/natural/ngrams/index.html +0 -363
- package/coverage/lcov-report/natural/ngrams/ngrams.js.html +0 -595
- package/coverage/lcov-report/natural/ngrams/ngrams_zh.js.html +0 -571
- package/coverage/lcov-report/natural/normalizers/index.html +0 -389
- package/coverage/lcov-report/natural/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/natural/normalizers/normalizer_ja.js.html +0 -2194
- package/coverage/lcov-report/natural/normalizers/normalizer_no.js.html +0 -496
- package/coverage/lcov-report/natural/normalizers/remove_diacritics.js.html +0 -685
- package/coverage/lcov-report/natural/phonetics/dm_soundex.js.html +0 -1063
- package/coverage/lcov-report/natural/phonetics/double_metaphone.js.html +0 -1840
- package/coverage/lcov-report/natural/phonetics/index.html +0 -402
- package/coverage/lcov-report/natural/phonetics/metaphone.js.html +0 -886
- package/coverage/lcov-report/natural/phonetics/phonetic.js.html +0 -484
- package/coverage/lcov-report/natural/phonetics/soundex.js.html +0 -562
- package/coverage/lcov-report/natural/stemmers/index.html +0 -571
- package/coverage/lcov-report/natural/stemmers/lancaster_rules.js.html +0 -2692
- package/coverage/lcov-report/natural/stemmers/lancaster_stemmer.js.html +0 -544
- package/coverage/lcov-report/natural/stemmers/porter_stemmer.js.html +0 -937
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_es.js.html +0 -985
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_fa.js.html +0 -418
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_fr.js.html +0 -1450
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_it.js.html +0 -1018
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_no.js.html +0 -784
- package/coverage/lcov-report/natural/stemmers/porter_stemmer_ru.js.html +0 -775
- package/coverage/lcov-report/natural/stemmers/stemmer.js.html +0 -505
- package/coverage/lcov-report/natural/stemmers/stemmer_es.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_fa.js.html +0 -484
- package/coverage/lcov-report/natural/stemmers/stemmer_fr.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_it.js.html +0 -427
- package/coverage/lcov-report/natural/stemmers/stemmer_ja.js.html +0 -736
- package/coverage/lcov-report/natural/stemmers/stemmer_no.js.html +0 -505
- package/coverage/lcov-report/natural/stemmers/stemmer_pl.js.html +0 -496
- package/coverage/lcov-report/natural/stemmers/stemmer_ru.js.html +0 -496
- package/coverage/lcov-report/natural/tfidf/index.html +0 -350
- package/coverage/lcov-report/natural/tfidf/tfidf.js.html +0 -904
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_es.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_fa.js.html +0 -466
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_fr.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_it.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_nl.js.html +0 -430
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_no.js.html +0 -439
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_pl.js.html +0 -457
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_pt.js.html +0 -442
- package/coverage/lcov-report/natural/tokenizers/aggressive_tokenizer_ru.js.html +0 -457
- package/coverage/lcov-report/natural/tokenizers/index.html +0 -519
- package/coverage/lcov-report/natural/tokenizers/regexp_tokenizer.js.html +0 -580
- package/coverage/lcov-report/natural/tokenizers/tokenizer.js.html +0 -475
- package/coverage/lcov-report/natural/tokenizers/tokenizer_ja.js.html +0 -1153
- package/coverage/lcov-report/natural/tokenizers/treebank_word_tokenizer.js.html +0 -544
- package/coverage/lcov-report/natural/transliterators/ja/index.html +0 -350
- package/coverage/lcov-report/natural/transliterators/ja/index.js.html +0 -2068
- package/coverage/lcov-report/natural/trie/index.html +0 -350
- package/coverage/lcov-report/natural/trie/trie.js.html +0 -1012
- package/coverage/lcov-report/natural/util/bag.js.html +0 -472
- package/coverage/lcov-report/natural/util/edge_weighted_digraph.js.html +0 -658
- package/coverage/lcov-report/natural/util/index.html +0 -532
- package/coverage/lcov-report/natural/util/longest_path_tree.js.html +0 -619
- package/coverage/lcov-report/natural/util/shortest_path_tree.js.html +0 -622
- package/coverage/lcov-report/natural/util/stopwords.js.html +0 -445
- package/coverage/lcov-report/natural/util/stopwords_es.js.html +0 -430
- package/coverage/lcov-report/natural/util/stopwords_fa.js.html +0 -436
- package/coverage/lcov-report/natural/util/stopwords_fr.js.html +0 -904
- package/coverage/lcov-report/natural/util/stopwords_it.js.html +0 -478
- package/coverage/lcov-report/natural/util/stopwords_ja.js.html +0 -499
- package/coverage/lcov-report/natural/util/stopwords_no.js.html +0 -445
- package/coverage/lcov-report/natural/util/stopwords_pl.js.html +0 -508
- package/coverage/lcov-report/natural/util/stopwords_ru.js.html +0 -445
- package/coverage/lcov-report/natural/util/topological.js.html +0 -616
- package/coverage/lcov-report/natural/util/utils.js.html +0 -679
- package/coverage/lcov-report/natural/wordnet/data_file.js.html +0 -580
- package/coverage/lcov-report/natural/wordnet/index.html +0 -389
- package/coverage/lcov-report/natural/wordnet/index_file.js.html +0 -742
- package/coverage/lcov-report/natural/wordnet/wordnet.js.html +0 -829
- package/coverage/lcov-report/natural/wordnet/wordnet_file.js.html +0 -529
- package/coverage/lcov-report/normalizers/index.html +0 -350
- package/coverage/lcov-report/normalizers/normalizer.js.html +0 -607
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -1
- package/coverage/lcov-report/spec/aggressive_tokenizer_es_spec.js.html +0 -430
- package/coverage/lcov-report/spec/aggressive_tokenizer_fr_spec.js.html +0 -625
- package/coverage/lcov-report/spec/aggressive_tokenizer_nl_spec.js.html +0 -430
- package/coverage/lcov-report/spec/aggressive_tokenizer_pt_spec.js.html +0 -490
- package/coverage/lcov-report/spec/aggressive_tokenizer_spec.js.html +0 -490
- package/coverage/lcov-report/spec/bayes_classifier_spec.js.html +0 -841
- package/coverage/lcov-report/spec/classifier_spec.js.html +0 -847
- package/coverage/lcov-report/spec/count_inflector_fr_spec.js.html +0 -454
- package/coverage/lcov-report/spec/count_inflector_spec.js.html +0 -538
- package/coverage/lcov-report/spec/dice_coefficient_spec.js.html +0 -400
- package/coverage/lcov-report/spec/double_metaphone_spec.js.html +0 -2548
- package/coverage/lcov-report/spec/index.html +0 -883
- package/coverage/lcov-report/spec/jaro-winkler_spec.js.html +0 -481
- package/coverage/lcov-report/spec/lancaster_stemmer_spec.js.html +0 -541
- package/coverage/lcov-report/spec/levenshtein_spec.js.html +0 -520
- package/coverage/lcov-report/spec/logistic_regression_classifier_spec.js.html +0 -688
- package/coverage/lcov-report/spec/longest_path_tree_spec.js.html +0 -628
- package/coverage/lcov-report/spec/metaphone_spec.js.html +0 -1063
- package/coverage/lcov-report/spec/ngram_spec.js.html +0 -712
- package/coverage/lcov-report/spec/ngram_zh_spec.js.html +0 -688
- package/coverage/lcov-report/spec/normalizer_ja_spec.js.html +0 -802
- package/coverage/lcov-report/spec/normalizer_no_spec.js.html +0 -655
- package/coverage/lcov-report/spec/normalizer_spec.js.html +0 -742
- package/coverage/lcov-report/spec/noun_inflector_fr_spec.js.html +0 -1750
- package/coverage/lcov-report/spec/noun_inflector_ja_spec.js.html +0 -658
- package/coverage/lcov-report/spec/noun_inflector_spec.js.html +0 -1132
- package/coverage/lcov-report/spec/porter_stemmer_fr_spec.js.html +0 -625
- package/coverage/lcov-report/spec/porter_stemmer_it_spec.js.html +0 -454
- package/coverage/lcov-report/spec/porter_stemmer_no_spec.js.html +0 -751
- package/coverage/lcov-report/spec/porter_stemmer_ru_spec.js.html +0 -511
- package/coverage/lcov-report/spec/porter_stemmer_spec.js.html +0 -733
- package/coverage/lcov-report/spec/present_verb_inflector_spec.js.html +0 -697
- package/coverage/lcov-report/spec/remove_diacritics_spec.js.html +0 -415
- package/coverage/lcov-report/spec/sentence_analyzer_spec.js.html +0 -1153
- package/coverage/lcov-report/spec/shortest_path_tree_spec.js.html +0 -718
- package/coverage/lcov-report/spec/soundex_spec.js.html +0 -784
- package/coverage/lcov-report/spec/spellcheck_spec.js.html +0 -598
- package/coverage/lcov-report/spec/stemmer_ja_spec.js.html +0 -520
- package/coverage/lcov-report/spec/tfidf_spec.js.html +0 -1288
- package/coverage/lcov-report/spec/tokenizer_ja_spec.js.html +0 -496
- package/coverage/lcov-report/spec/transliterator_ja_spec.js.html +0 -631
- package/coverage/lcov-report/spec/treebank_word_tokenizer_spec.js.html +0 -430
- package/coverage/lcov-report/spec/trie_spec.js.html +0 -940
- package/coverage/lcov-report/util/index.html +0 -350
- package/coverage/lcov-report/util/utils.js.html +0 -679
- package/coverage/lcov.info +0 -11094
- package/lib/natural/parsers/Agenda.js +0 -68
- package/lib/natural/parsers/CYKParser.js +0 -87
- package/lib/natural/parsers/CYK_Item.js +0 -159
- package/lib/natural/parsers/Chart.js +0 -211
- package/lib/natural/parsers/ChartParser.js +0 -60
- package/lib/natural/parsers/DoubleDottedItem.js +0 -226
- package/lib/natural/parsers/EarleyItem.js +0 -155
- package/lib/natural/parsers/EarleyParser.js +0 -58
- package/lib/natural/parsers/FunctionWordTagger.js +0 -84
- package/lib/natural/parsers/GoalItem.js +0 -206
- package/lib/natural/parsers/GrammarParser.js +0 -1289
- package/lib/natural/parsers/HeadCornerParser.js +0 -101
- package/lib/natural/parsers/LeftCornerParser.js +0 -58
- package/lib/natural/parsers/PEG-grammar-for-unification-grammar.txt +0 -345
|
@@ -1,1450 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for natural/stemmers/porter_stemmer_fr.js</title>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
|
|
7
|
-
<link rel="stylesheet" href="../../prettify.css">
|
|
8
|
-
|
|
9
|
-
<style>
|
|
10
|
-
body, html {
|
|
11
|
-
margin:0; padding: 0;
|
|
12
|
-
}
|
|
13
|
-
body {
|
|
14
|
-
font-family: Helvetica Neue, Helvetica,Arial;
|
|
15
|
-
font-size: 10pt;
|
|
16
|
-
}
|
|
17
|
-
div.header, div.footer {
|
|
18
|
-
background: #eee;
|
|
19
|
-
padding: 1em;
|
|
20
|
-
}
|
|
21
|
-
div.header {
|
|
22
|
-
z-index: 100;
|
|
23
|
-
position: fixed;
|
|
24
|
-
top: 0;
|
|
25
|
-
border-bottom: 1px solid #666;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
div.footer {
|
|
29
|
-
border-top: 1px solid #666;
|
|
30
|
-
}
|
|
31
|
-
div.body {
|
|
32
|
-
margin-top: 10em;
|
|
33
|
-
}
|
|
34
|
-
div.meta {
|
|
35
|
-
font-size: 90%;
|
|
36
|
-
text-align: center;
|
|
37
|
-
}
|
|
38
|
-
h1, h2, h3 {
|
|
39
|
-
font-weight: normal;
|
|
40
|
-
}
|
|
41
|
-
h1 {
|
|
42
|
-
font-size: 12pt;
|
|
43
|
-
}
|
|
44
|
-
h2 {
|
|
45
|
-
font-size: 10pt;
|
|
46
|
-
}
|
|
47
|
-
pre {
|
|
48
|
-
font-family: Consolas, Menlo, Monaco, monospace;
|
|
49
|
-
margin: 0;
|
|
50
|
-
padding: 0;
|
|
51
|
-
line-height: 14px;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
-moz-tab-size: 2;
|
|
54
|
-
-o-tab-size: 2;
|
|
55
|
-
tab-size: 2;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
div.path { font-size: 110%; }
|
|
59
|
-
div.path a:link, div.path a:visited { color: #000; }
|
|
60
|
-
table.coverage { border-collapse: collapse; margin:0; padding: 0 }
|
|
61
|
-
|
|
62
|
-
table.coverage td {
|
|
63
|
-
margin: 0;
|
|
64
|
-
padding: 0;
|
|
65
|
-
color: #111;
|
|
66
|
-
vertical-align: top;
|
|
67
|
-
}
|
|
68
|
-
table.coverage td.line-count {
|
|
69
|
-
width: 50px;
|
|
70
|
-
text-align: right;
|
|
71
|
-
padding-right: 5px;
|
|
72
|
-
}
|
|
73
|
-
table.coverage td.line-coverage {
|
|
74
|
-
color: #777 !important;
|
|
75
|
-
text-align: right;
|
|
76
|
-
border-left: 1px solid #666;
|
|
77
|
-
border-right: 1px solid #666;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
table.coverage td.text {
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
table.coverage td span.cline-any {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
padding: 0 5px;
|
|
86
|
-
width: 40px;
|
|
87
|
-
}
|
|
88
|
-
table.coverage td span.cline-neutral {
|
|
89
|
-
background: #eee;
|
|
90
|
-
}
|
|
91
|
-
table.coverage td span.cline-yes {
|
|
92
|
-
background: #b5d592;
|
|
93
|
-
color: #999;
|
|
94
|
-
}
|
|
95
|
-
table.coverage td span.cline-no {
|
|
96
|
-
background: #fc8c84;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.cstat-yes { color: #111; }
|
|
100
|
-
.cstat-no { background: #fc8c84; color: #111; }
|
|
101
|
-
.fstat-no { background: #ffc520; color: #111 !important; }
|
|
102
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
103
|
-
|
|
104
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
105
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
106
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
107
|
-
|
|
108
|
-
.missing-if-branch {
|
|
109
|
-
display: inline-block;
|
|
110
|
-
margin-right: 10px;
|
|
111
|
-
position: relative;
|
|
112
|
-
padding: 0 4px;
|
|
113
|
-
background: black;
|
|
114
|
-
color: yellow;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.skip-if-branch {
|
|
118
|
-
display: none;
|
|
119
|
-
margin-right: 10px;
|
|
120
|
-
position: relative;
|
|
121
|
-
padding: 0 4px;
|
|
122
|
-
background: #ccc;
|
|
123
|
-
color: white;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
127
|
-
color: inherit !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.entity, .metric { font-weight: bold; }
|
|
131
|
-
.metric { display: inline-block; border: 1px solid #333; padding: 0.3em; background: white; }
|
|
132
|
-
.metric small { font-size: 80%; font-weight: normal; color: #666; }
|
|
133
|
-
|
|
134
|
-
div.coverage-summary table { border-collapse: collapse; margin: 3em; font-size: 110%; }
|
|
135
|
-
div.coverage-summary td, div.coverage-summary table th { margin: 0; padding: 0.25em 1em; border-top: 1px solid #666; border-bottom: 1px solid #666; }
|
|
136
|
-
div.coverage-summary th { text-align: left; border: 1px solid #666; background: #eee; font-weight: normal; }
|
|
137
|
-
div.coverage-summary th.file { border-right: none !important; }
|
|
138
|
-
div.coverage-summary th.pic { border-left: none !important; text-align: right; }
|
|
139
|
-
div.coverage-summary th.pct { border-right: none !important; }
|
|
140
|
-
div.coverage-summary th.abs { border-left: none !important; text-align: right; }
|
|
141
|
-
div.coverage-summary td.pct { text-align: right; border-left: 1px solid #666; }
|
|
142
|
-
div.coverage-summary td.abs { text-align: right; font-size: 90%; color: #444; border-right: 1px solid #666; }
|
|
143
|
-
div.coverage-summary td.file { text-align: right; border-left: 1px solid #666; white-space: nowrap; }
|
|
144
|
-
div.coverage-summary td.pic { min-width: 120px !important; }
|
|
145
|
-
div.coverage-summary a:link { text-decoration: none; color: #000; }
|
|
146
|
-
div.coverage-summary a:visited { text-decoration: none; color: #333; }
|
|
147
|
-
div.coverage-summary a:hover { text-decoration: underline; }
|
|
148
|
-
div.coverage-summary tfoot td { border-top: 1px solid #666; }
|
|
149
|
-
|
|
150
|
-
div.coverage-summary .yui3-datatable-sort-indicator, div.coverage-summary .dummy-sort-indicator {
|
|
151
|
-
height: 10px;
|
|
152
|
-
width: 7px;
|
|
153
|
-
display: inline-block;
|
|
154
|
-
margin-left: 0.5em;
|
|
155
|
-
}
|
|
156
|
-
div.coverage-summary .yui3-datatable-sort-indicator {
|
|
157
|
-
background: url("https://yui-s.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
|
|
158
|
-
}
|
|
159
|
-
div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
|
|
160
|
-
background-position: 0 -20px;
|
|
161
|
-
}
|
|
162
|
-
div.coverage-summary .yui3-datatable-sorted-desc .yui3-datatable-sort-indicator {
|
|
163
|
-
background-position: 0 -10px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.high { background: #b5d592 !important; }
|
|
167
|
-
.medium { background: #ffe87c !important; }
|
|
168
|
-
.low { background: #fc8c84 !important; }
|
|
169
|
-
|
|
170
|
-
span.cover-fill, span.cover-empty {
|
|
171
|
-
display:inline-block;
|
|
172
|
-
border:1px solid #444;
|
|
173
|
-
background: white;
|
|
174
|
-
height: 12px;
|
|
175
|
-
}
|
|
176
|
-
span.cover-fill {
|
|
177
|
-
background: #ccc;
|
|
178
|
-
border-right: 1px solid #444;
|
|
179
|
-
}
|
|
180
|
-
span.cover-empty {
|
|
181
|
-
background: white;
|
|
182
|
-
border-left: none;
|
|
183
|
-
}
|
|
184
|
-
span.cover-full {
|
|
185
|
-
border-right: none !important;
|
|
186
|
-
}
|
|
187
|
-
pre.prettyprint {
|
|
188
|
-
border: none !important;
|
|
189
|
-
padding: 0 !important;
|
|
190
|
-
margin: 0 !important;
|
|
191
|
-
}
|
|
192
|
-
.com { color: #999 !important; }
|
|
193
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
194
|
-
|
|
195
|
-
</style>
|
|
196
|
-
</head>
|
|
197
|
-
<body>
|
|
198
|
-
<div class="header low">
|
|
199
|
-
<h1>Code coverage report for <span class="entity">natural/stemmers/porter_stemmer_fr.js</span></h1>
|
|
200
|
-
<h2>
|
|
201
|
-
|
|
202
|
-
Statements: <span class="metric">6.05% <small>(13 / 215)</small></span>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
Branches: <span class="metric">0% <small>(0 / 202)</small></span>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
Functions: <span class="metric">0% <small>(0 / 6)</small></span>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
Lines: <span class="metric">6.07% <small>(13 / 214)</small></span>
|
|
212
|
-
|
|
213
|
-
Ignored: <span class="metric"><span class="ignore-none">none</span></span>
|
|
214
|
-
</h2>
|
|
215
|
-
<div class="path"><a href="../../index.html">All files</a> » <a href="index.html">natural/stemmers/</a> » porter_stemmer_fr.js</div>
|
|
216
|
-
</div>
|
|
217
|
-
<div class="body">
|
|
218
|
-
<pre><table class="coverage">
|
|
219
|
-
<tr><td class="line-count">1
|
|
220
|
-
2
|
|
221
|
-
3
|
|
222
|
-
4
|
|
223
|
-
5
|
|
224
|
-
6
|
|
225
|
-
7
|
|
226
|
-
8
|
|
227
|
-
9
|
|
228
|
-
10
|
|
229
|
-
11
|
|
230
|
-
12
|
|
231
|
-
13
|
|
232
|
-
14
|
|
233
|
-
15
|
|
234
|
-
16
|
|
235
|
-
17
|
|
236
|
-
18
|
|
237
|
-
19
|
|
238
|
-
20
|
|
239
|
-
21
|
|
240
|
-
22
|
|
241
|
-
23
|
|
242
|
-
24
|
|
243
|
-
25
|
|
244
|
-
26
|
|
245
|
-
27
|
|
246
|
-
28
|
|
247
|
-
29
|
|
248
|
-
30
|
|
249
|
-
31
|
|
250
|
-
32
|
|
251
|
-
33
|
|
252
|
-
34
|
|
253
|
-
35
|
|
254
|
-
36
|
|
255
|
-
37
|
|
256
|
-
38
|
|
257
|
-
39
|
|
258
|
-
40
|
|
259
|
-
41
|
|
260
|
-
42
|
|
261
|
-
43
|
|
262
|
-
44
|
|
263
|
-
45
|
|
264
|
-
46
|
|
265
|
-
47
|
|
266
|
-
48
|
|
267
|
-
49
|
|
268
|
-
50
|
|
269
|
-
51
|
|
270
|
-
52
|
|
271
|
-
53
|
|
272
|
-
54
|
|
273
|
-
55
|
|
274
|
-
56
|
|
275
|
-
57
|
|
276
|
-
58
|
|
277
|
-
59
|
|
278
|
-
60
|
|
279
|
-
61
|
|
280
|
-
62
|
|
281
|
-
63
|
|
282
|
-
64
|
|
283
|
-
65
|
|
284
|
-
66
|
|
285
|
-
67
|
|
286
|
-
68
|
|
287
|
-
69
|
|
288
|
-
70
|
|
289
|
-
71
|
|
290
|
-
72
|
|
291
|
-
73
|
|
292
|
-
74
|
|
293
|
-
75
|
|
294
|
-
76
|
|
295
|
-
77
|
|
296
|
-
78
|
|
297
|
-
79
|
|
298
|
-
80
|
|
299
|
-
81
|
|
300
|
-
82
|
|
301
|
-
83
|
|
302
|
-
84
|
|
303
|
-
85
|
|
304
|
-
86
|
|
305
|
-
87
|
|
306
|
-
88
|
|
307
|
-
89
|
|
308
|
-
90
|
|
309
|
-
91
|
|
310
|
-
92
|
|
311
|
-
93
|
|
312
|
-
94
|
|
313
|
-
95
|
|
314
|
-
96
|
|
315
|
-
97
|
|
316
|
-
98
|
|
317
|
-
99
|
|
318
|
-
100
|
|
319
|
-
101
|
|
320
|
-
102
|
|
321
|
-
103
|
|
322
|
-
104
|
|
323
|
-
105
|
|
324
|
-
106
|
|
325
|
-
107
|
|
326
|
-
108
|
|
327
|
-
109
|
|
328
|
-
110
|
|
329
|
-
111
|
|
330
|
-
112
|
|
331
|
-
113
|
|
332
|
-
114
|
|
333
|
-
115
|
|
334
|
-
116
|
|
335
|
-
117
|
|
336
|
-
118
|
|
337
|
-
119
|
|
338
|
-
120
|
|
339
|
-
121
|
|
340
|
-
122
|
|
341
|
-
123
|
|
342
|
-
124
|
|
343
|
-
125
|
|
344
|
-
126
|
|
345
|
-
127
|
|
346
|
-
128
|
|
347
|
-
129
|
|
348
|
-
130
|
|
349
|
-
131
|
|
350
|
-
132
|
|
351
|
-
133
|
|
352
|
-
134
|
|
353
|
-
135
|
|
354
|
-
136
|
|
355
|
-
137
|
|
356
|
-
138
|
|
357
|
-
139
|
|
358
|
-
140
|
|
359
|
-
141
|
|
360
|
-
142
|
|
361
|
-
143
|
|
362
|
-
144
|
|
363
|
-
145
|
|
364
|
-
146
|
|
365
|
-
147
|
|
366
|
-
148
|
|
367
|
-
149
|
|
368
|
-
150
|
|
369
|
-
151
|
|
370
|
-
152
|
|
371
|
-
153
|
|
372
|
-
154
|
|
373
|
-
155
|
|
374
|
-
156
|
|
375
|
-
157
|
|
376
|
-
158
|
|
377
|
-
159
|
|
378
|
-
160
|
|
379
|
-
161
|
|
380
|
-
162
|
|
381
|
-
163
|
|
382
|
-
164
|
|
383
|
-
165
|
|
384
|
-
166
|
|
385
|
-
167
|
|
386
|
-
168
|
|
387
|
-
169
|
|
388
|
-
170
|
|
389
|
-
171
|
|
390
|
-
172
|
|
391
|
-
173
|
|
392
|
-
174
|
|
393
|
-
175
|
|
394
|
-
176
|
|
395
|
-
177
|
|
396
|
-
178
|
|
397
|
-
179
|
|
398
|
-
180
|
|
399
|
-
181
|
|
400
|
-
182
|
|
401
|
-
183
|
|
402
|
-
184
|
|
403
|
-
185
|
|
404
|
-
186
|
|
405
|
-
187
|
|
406
|
-
188
|
|
407
|
-
189
|
|
408
|
-
190
|
|
409
|
-
191
|
|
410
|
-
192
|
|
411
|
-
193
|
|
412
|
-
194
|
|
413
|
-
195
|
|
414
|
-
196
|
|
415
|
-
197
|
|
416
|
-
198
|
|
417
|
-
199
|
|
418
|
-
200
|
|
419
|
-
201
|
|
420
|
-
202
|
|
421
|
-
203
|
|
422
|
-
204
|
|
423
|
-
205
|
|
424
|
-
206
|
|
425
|
-
207
|
|
426
|
-
208
|
|
427
|
-
209
|
|
428
|
-
210
|
|
429
|
-
211
|
|
430
|
-
212
|
|
431
|
-
213
|
|
432
|
-
214
|
|
433
|
-
215
|
|
434
|
-
216
|
|
435
|
-
217
|
|
436
|
-
218
|
|
437
|
-
219
|
|
438
|
-
220
|
|
439
|
-
221
|
|
440
|
-
222
|
|
441
|
-
223
|
|
442
|
-
224
|
|
443
|
-
225
|
|
444
|
-
226
|
|
445
|
-
227
|
|
446
|
-
228
|
|
447
|
-
229
|
|
448
|
-
230
|
|
449
|
-
231
|
|
450
|
-
232
|
|
451
|
-
233
|
|
452
|
-
234
|
|
453
|
-
235
|
|
454
|
-
236
|
|
455
|
-
237
|
|
456
|
-
238
|
|
457
|
-
239
|
|
458
|
-
240
|
|
459
|
-
241
|
|
460
|
-
242
|
|
461
|
-
243
|
|
462
|
-
244
|
|
463
|
-
245
|
|
464
|
-
246
|
|
465
|
-
247
|
|
466
|
-
248
|
|
467
|
-
249
|
|
468
|
-
250
|
|
469
|
-
251
|
|
470
|
-
252
|
|
471
|
-
253
|
|
472
|
-
254
|
|
473
|
-
255
|
|
474
|
-
256
|
|
475
|
-
257
|
|
476
|
-
258
|
|
477
|
-
259
|
|
478
|
-
260
|
|
479
|
-
261
|
|
480
|
-
262
|
|
481
|
-
263
|
|
482
|
-
264
|
|
483
|
-
265
|
|
484
|
-
266
|
|
485
|
-
267
|
|
486
|
-
268
|
|
487
|
-
269
|
|
488
|
-
270
|
|
489
|
-
271
|
|
490
|
-
272
|
|
491
|
-
273
|
|
492
|
-
274
|
|
493
|
-
275
|
|
494
|
-
276
|
|
495
|
-
277
|
|
496
|
-
278
|
|
497
|
-
279
|
|
498
|
-
280
|
|
499
|
-
281
|
|
500
|
-
282
|
|
501
|
-
283
|
|
502
|
-
284
|
|
503
|
-
285
|
|
504
|
-
286
|
|
505
|
-
287
|
|
506
|
-
288
|
|
507
|
-
289
|
|
508
|
-
290
|
|
509
|
-
291
|
|
510
|
-
292
|
|
511
|
-
293
|
|
512
|
-
294
|
|
513
|
-
295
|
|
514
|
-
296
|
|
515
|
-
297
|
|
516
|
-
298
|
|
517
|
-
299
|
|
518
|
-
300
|
|
519
|
-
301
|
|
520
|
-
302
|
|
521
|
-
303
|
|
522
|
-
304
|
|
523
|
-
305
|
|
524
|
-
306
|
|
525
|
-
307
|
|
526
|
-
308
|
|
527
|
-
309
|
|
528
|
-
310
|
|
529
|
-
311
|
|
530
|
-
312
|
|
531
|
-
313
|
|
532
|
-
314
|
|
533
|
-
315
|
|
534
|
-
316
|
|
535
|
-
317
|
|
536
|
-
318
|
|
537
|
-
319
|
|
538
|
-
320
|
|
539
|
-
321
|
|
540
|
-
322
|
|
541
|
-
323
|
|
542
|
-
324
|
|
543
|
-
325
|
|
544
|
-
326
|
|
545
|
-
327
|
|
546
|
-
328
|
|
547
|
-
329
|
|
548
|
-
330
|
|
549
|
-
331
|
|
550
|
-
332
|
|
551
|
-
333
|
|
552
|
-
334
|
|
553
|
-
335
|
|
554
|
-
336
|
|
555
|
-
337
|
|
556
|
-
338
|
|
557
|
-
339
|
|
558
|
-
340
|
|
559
|
-
341
|
|
560
|
-
342
|
|
561
|
-
343
|
|
562
|
-
344
|
|
563
|
-
345
|
|
564
|
-
346
|
|
565
|
-
347
|
|
566
|
-
348
|
|
567
|
-
349
|
|
568
|
-
350
|
|
569
|
-
351
|
|
570
|
-
352
|
|
571
|
-
353
|
|
572
|
-
354
|
|
573
|
-
355
|
|
574
|
-
356
|
|
575
|
-
357
|
|
576
|
-
358
|
|
577
|
-
359
|
|
578
|
-
360
|
|
579
|
-
361
|
|
580
|
-
362
|
|
581
|
-
363
|
|
582
|
-
364
|
|
583
|
-
365
|
|
584
|
-
366
|
|
585
|
-
367
|
|
586
|
-
368
|
|
587
|
-
369
|
|
588
|
-
370
|
|
589
|
-
371
|
|
590
|
-
372
|
|
591
|
-
373
|
|
592
|
-
374
|
|
593
|
-
375
|
|
594
|
-
376
|
|
595
|
-
377</td><td class="line-coverage"><span class="cline-any cline-neutral"> </span>
|
|
596
|
-
<span class="cline-any cline-neutral"> </span>
|
|
597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
600
|
-
<span class="cline-any cline-neutral"> </span>
|
|
601
|
-
<span class="cline-any cline-neutral"> </span>
|
|
602
|
-
<span class="cline-any cline-neutral"> </span>
|
|
603
|
-
<span class="cline-any cline-neutral"> </span>
|
|
604
|
-
<span class="cline-any cline-neutral"> </span>
|
|
605
|
-
<span class="cline-any cline-neutral"> </span>
|
|
606
|
-
<span class="cline-any cline-neutral"> </span>
|
|
607
|
-
<span class="cline-any cline-neutral"> </span>
|
|
608
|
-
<span class="cline-any cline-neutral"> </span>
|
|
609
|
-
<span class="cline-any cline-neutral"> </span>
|
|
610
|
-
<span class="cline-any cline-neutral"> </span>
|
|
611
|
-
<span class="cline-any cline-neutral"> </span>
|
|
612
|
-
<span class="cline-any cline-neutral"> </span>
|
|
613
|
-
<span class="cline-any cline-neutral"> </span>
|
|
614
|
-
<span class="cline-any cline-neutral"> </span>
|
|
615
|
-
<span class="cline-any cline-neutral"> </span>
|
|
616
|
-
<span class="cline-any cline-neutral"> </span>
|
|
617
|
-
<span class="cline-any cline-neutral"> </span>
|
|
618
|
-
<span class="cline-any cline-neutral"> </span>
|
|
619
|
-
<span class="cline-any cline-neutral"> </span>
|
|
620
|
-
<span class="cline-any cline-neutral"> </span>
|
|
621
|
-
<span class="cline-any cline-neutral"> </span>
|
|
622
|
-
<span class="cline-any cline-neutral"> </span>
|
|
623
|
-
<span class="cline-any cline-neutral"> </span>
|
|
624
|
-
<span class="cline-any cline-yes">1</span>
|
|
625
|
-
<span class="cline-any cline-neutral"> </span>
|
|
626
|
-
<span class="cline-any cline-yes">1</span>
|
|
627
|
-
<span class="cline-any cline-yes">1</span>
|
|
628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
629
|
-
<span class="cline-any cline-neutral"> </span>
|
|
630
|
-
<span class="cline-any cline-yes">1</span>
|
|
631
|
-
<span class="cline-any cline-neutral"> </span>
|
|
632
|
-
<span class="cline-any cline-neutral"> </span>
|
|
633
|
-
<span class="cline-any cline-yes">1</span>
|
|
634
|
-
<span class="cline-any cline-yes">1</span>
|
|
635
|
-
<span class="cline-any cline-yes">1</span>
|
|
636
|
-
<span class="cline-any cline-neutral"> </span>
|
|
637
|
-
<span class="cline-any cline-neutral"> </span>
|
|
638
|
-
<span class="cline-any cline-neutral"> </span>
|
|
639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
640
|
-
<span class="cline-any cline-neutral"> </span>
|
|
641
|
-
<span class="cline-any cline-neutral"> </span>
|
|
642
|
-
<span class="cline-any cline-yes">1</span>
|
|
643
|
-
<span class="cline-any cline-no"> </span>
|
|
644
|
-
<span class="cline-any cline-neutral"> </span>
|
|
645
|
-
<span class="cline-any cline-no"> </span>
|
|
646
|
-
<span class="cline-any cline-no"> </span>
|
|
647
|
-
<span class="cline-any cline-neutral"> </span>
|
|
648
|
-
<span class="cline-any cline-no"> </span>
|
|
649
|
-
<span class="cline-any cline-neutral"> </span>
|
|
650
|
-
<span class="cline-any cline-no"> </span>
|
|
651
|
-
<span class="cline-any cline-no"> </span>
|
|
652
|
-
<span class="cline-any cline-no"> </span>
|
|
653
|
-
<span class="cline-any cline-no"> </span>
|
|
654
|
-
<span class="cline-any cline-neutral"> </span>
|
|
655
|
-
<span class="cline-any cline-neutral"> </span>
|
|
656
|
-
<span class="cline-any cline-no"> </span>
|
|
657
|
-
<span class="cline-any cline-no"> </span>
|
|
658
|
-
<span class="cline-any cline-no"> </span>
|
|
659
|
-
<span class="cline-any cline-neutral"> </span>
|
|
660
|
-
<span class="cline-any cline-no"> </span>
|
|
661
|
-
<span class="cline-any cline-no"> </span>
|
|
662
|
-
<span class="cline-any cline-no"> </span>
|
|
663
|
-
<span class="cline-any cline-no"> </span>
|
|
664
|
-
<span class="cline-any cline-no"> </span>
|
|
665
|
-
<span class="cline-any cline-neutral"> </span>
|
|
666
|
-
<span class="cline-any cline-no"> </span>
|
|
667
|
-
<span class="cline-any cline-neutral"> </span>
|
|
668
|
-
<span class="cline-any cline-no"> </span>
|
|
669
|
-
<span class="cline-any cline-no"> </span>
|
|
670
|
-
<span class="cline-any cline-no"> </span>
|
|
671
|
-
<span class="cline-any cline-no"> </span>
|
|
672
|
-
<span class="cline-any cline-no"> </span>
|
|
673
|
-
<span class="cline-any cline-no"> </span>
|
|
674
|
-
<span class="cline-any cline-no"> </span>
|
|
675
|
-
<span class="cline-any cline-no"> </span>
|
|
676
|
-
<span class="cline-any cline-neutral"> </span>
|
|
677
|
-
<span class="cline-any cline-neutral"> </span>
|
|
678
|
-
<span class="cline-any cline-no"> </span>
|
|
679
|
-
<span class="cline-any cline-no"> </span>
|
|
680
|
-
<span class="cline-any cline-no"> </span>
|
|
681
|
-
<span class="cline-any cline-no"> </span>
|
|
682
|
-
<span class="cline-any cline-no"> </span>
|
|
683
|
-
<span class="cline-any cline-no"> </span>
|
|
684
|
-
<span class="cline-any cline-neutral"> </span>
|
|
685
|
-
<span class="cline-any cline-no"> </span>
|
|
686
|
-
<span class="cline-any cline-no"> </span>
|
|
687
|
-
<span class="cline-any cline-no"> </span>
|
|
688
|
-
<span class="cline-any cline-no"> </span>
|
|
689
|
-
<span class="cline-any cline-no"> </span>
|
|
690
|
-
<span class="cline-any cline-no"> </span>
|
|
691
|
-
<span class="cline-any cline-no"> </span>
|
|
692
|
-
<span class="cline-any cline-no"> </span>
|
|
693
|
-
<span class="cline-any cline-no"> </span>
|
|
694
|
-
<span class="cline-any cline-no"> </span>
|
|
695
|
-
<span class="cline-any cline-no"> </span>
|
|
696
|
-
<span class="cline-any cline-no"> </span>
|
|
697
|
-
<span class="cline-any cline-no"> </span>
|
|
698
|
-
<span class="cline-any cline-no"> </span>
|
|
699
|
-
<span class="cline-any cline-no"> </span>
|
|
700
|
-
<span class="cline-any cline-no"> </span>
|
|
701
|
-
<span class="cline-any cline-no"> </span>
|
|
702
|
-
<span class="cline-any cline-neutral"> </span>
|
|
703
|
-
<span class="cline-any cline-neutral"> </span>
|
|
704
|
-
<span class="cline-any cline-no"> </span>
|
|
705
|
-
<span class="cline-any cline-no"> </span>
|
|
706
|
-
<span class="cline-any cline-no"> </span>
|
|
707
|
-
<span class="cline-any cline-neutral"> </span>
|
|
708
|
-
<span class="cline-any cline-no"> </span>
|
|
709
|
-
<span class="cline-any cline-no"> </span>
|
|
710
|
-
<span class="cline-any cline-no"> </span>
|
|
711
|
-
<span class="cline-any cline-no"> </span>
|
|
712
|
-
<span class="cline-any cline-neutral"> </span>
|
|
713
|
-
<span class="cline-any cline-no"> </span>
|
|
714
|
-
<span class="cline-any cline-no"> </span>
|
|
715
|
-
<span class="cline-any cline-no"> </span>
|
|
716
|
-
<span class="cline-any cline-no"> </span>
|
|
717
|
-
<span class="cline-any cline-no"> </span>
|
|
718
|
-
<span class="cline-any cline-no"> </span>
|
|
719
|
-
<span class="cline-any cline-no"> </span>
|
|
720
|
-
<span class="cline-any cline-no"> </span>
|
|
721
|
-
<span class="cline-any cline-neutral"> </span>
|
|
722
|
-
<span class="cline-any cline-no"> </span>
|
|
723
|
-
<span class="cline-any cline-no"> </span>
|
|
724
|
-
<span class="cline-any cline-no"> </span>
|
|
725
|
-
<span class="cline-any cline-no"> </span>
|
|
726
|
-
<span class="cline-any cline-neutral"> </span>
|
|
727
|
-
<span class="cline-any cline-no"> </span>
|
|
728
|
-
<span class="cline-any cline-no"> </span>
|
|
729
|
-
<span class="cline-any cline-no"> </span>
|
|
730
|
-
<span class="cline-any cline-no"> </span>
|
|
731
|
-
<span class="cline-any cline-no"> </span>
|
|
732
|
-
<span class="cline-any cline-no"> </span>
|
|
733
|
-
<span class="cline-any cline-no"> </span>
|
|
734
|
-
<span class="cline-any cline-no"> </span>
|
|
735
|
-
<span class="cline-any cline-no"> </span>
|
|
736
|
-
<span class="cline-any cline-no"> </span>
|
|
737
|
-
<span class="cline-any cline-no"> </span>
|
|
738
|
-
<span class="cline-any cline-no"> </span>
|
|
739
|
-
<span class="cline-any cline-no"> </span>
|
|
740
|
-
<span class="cline-any cline-no"> </span>
|
|
741
|
-
<span class="cline-any cline-no"> </span>
|
|
742
|
-
<span class="cline-any cline-no"> </span>
|
|
743
|
-
<span class="cline-any cline-no"> </span>
|
|
744
|
-
<span class="cline-any cline-no"> </span>
|
|
745
|
-
<span class="cline-any cline-no"> </span>
|
|
746
|
-
<span class="cline-any cline-neutral"> </span>
|
|
747
|
-
<span class="cline-any cline-no"> </span>
|
|
748
|
-
<span class="cline-any cline-no"> </span>
|
|
749
|
-
<span class="cline-any cline-no"> </span>
|
|
750
|
-
<span class="cline-any cline-no"> </span>
|
|
751
|
-
<span class="cline-any cline-neutral"> </span>
|
|
752
|
-
<span class="cline-any cline-neutral"> </span>
|
|
753
|
-
<span class="cline-any cline-neutral"> </span>
|
|
754
|
-
<span class="cline-any cline-neutral"> </span>
|
|
755
|
-
<span class="cline-any cline-no"> </span>
|
|
756
|
-
<span class="cline-any cline-no"> </span>
|
|
757
|
-
<span class="cline-any cline-no"> </span>
|
|
758
|
-
<span class="cline-any cline-neutral"> </span>
|
|
759
|
-
<span class="cline-any cline-neutral"> </span>
|
|
760
|
-
<span class="cline-any cline-no"> </span>
|
|
761
|
-
<span class="cline-any cline-no"> </span>
|
|
762
|
-
<span class="cline-any cline-no"> </span>
|
|
763
|
-
<span class="cline-any cline-no"> </span>
|
|
764
|
-
<span class="cline-any cline-no"> </span>
|
|
765
|
-
<span class="cline-any cline-no"> </span>
|
|
766
|
-
<span class="cline-any cline-no"> </span>
|
|
767
|
-
<span class="cline-any cline-no"> </span>
|
|
768
|
-
<span class="cline-any cline-neutral"> </span>
|
|
769
|
-
<span class="cline-any cline-neutral"> </span>
|
|
770
|
-
<span class="cline-any cline-neutral"> </span>
|
|
771
|
-
<span class="cline-any cline-neutral"> </span>
|
|
772
|
-
<span class="cline-any cline-no"> </span>
|
|
773
|
-
<span class="cline-any cline-no"> </span>
|
|
774
|
-
<span class="cline-any cline-no"> </span>
|
|
775
|
-
<span class="cline-any cline-no"> </span>
|
|
776
|
-
<span class="cline-any cline-no"> </span>
|
|
777
|
-
<span class="cline-any cline-no"> </span>
|
|
778
|
-
<span class="cline-any cline-no"> </span>
|
|
779
|
-
<span class="cline-any cline-no"> </span>
|
|
780
|
-
<span class="cline-any cline-no"> </span>
|
|
781
|
-
<span class="cline-any cline-neutral"> </span>
|
|
782
|
-
<span class="cline-any cline-neutral"> </span>
|
|
783
|
-
<span class="cline-any cline-no"> </span>
|
|
784
|
-
<span class="cline-any cline-no"> </span>
|
|
785
|
-
<span class="cline-any cline-neutral"> </span>
|
|
786
|
-
<span class="cline-any cline-no"> </span>
|
|
787
|
-
<span class="cline-any cline-no"> </span>
|
|
788
|
-
<span class="cline-any cline-no"> </span>
|
|
789
|
-
<span class="cline-any cline-neutral"> </span>
|
|
790
|
-
<span class="cline-any cline-no"> </span>
|
|
791
|
-
<span class="cline-any cline-no"> </span>
|
|
792
|
-
<span class="cline-any cline-neutral"> </span>
|
|
793
|
-
<span class="cline-any cline-neutral"> </span>
|
|
794
|
-
<span class="cline-any cline-neutral"> </span>
|
|
795
|
-
<span class="cline-any cline-neutral"> </span>
|
|
796
|
-
<span class="cline-any cline-no"> </span>
|
|
797
|
-
<span class="cline-any cline-no"> </span>
|
|
798
|
-
<span class="cline-any cline-no"> </span>
|
|
799
|
-
<span class="cline-any cline-no"> </span>
|
|
800
|
-
<span class="cline-any cline-no"> </span>
|
|
801
|
-
<span class="cline-any cline-neutral"> </span>
|
|
802
|
-
<span class="cline-any cline-neutral"> </span>
|
|
803
|
-
<span class="cline-any cline-no"> </span>
|
|
804
|
-
<span class="cline-any cline-no"> </span>
|
|
805
|
-
<span class="cline-any cline-neutral"> </span>
|
|
806
|
-
<span class="cline-any cline-no"> </span>
|
|
807
|
-
<span class="cline-any cline-no"> </span>
|
|
808
|
-
<span class="cline-any cline-no"> </span>
|
|
809
|
-
<span class="cline-any cline-no"> </span>
|
|
810
|
-
<span class="cline-any cline-no"> </span>
|
|
811
|
-
<span class="cline-any cline-neutral"> </span>
|
|
812
|
-
<span class="cline-any cline-neutral"> </span>
|
|
813
|
-
<span class="cline-any cline-no"> </span>
|
|
814
|
-
<span class="cline-any cline-no"> </span>
|
|
815
|
-
<span class="cline-any cline-no"> </span>
|
|
816
|
-
<span class="cline-any cline-no"> </span>
|
|
817
|
-
<span class="cline-any cline-no"> </span>
|
|
818
|
-
<span class="cline-any cline-no"> </span>
|
|
819
|
-
<span class="cline-any cline-no"> </span>
|
|
820
|
-
<span class="cline-any cline-neutral"> </span>
|
|
821
|
-
<span class="cline-any cline-neutral"> </span>
|
|
822
|
-
<span class="cline-any cline-neutral"> </span>
|
|
823
|
-
<span class="cline-any cline-no"> </span>
|
|
824
|
-
<span class="cline-any cline-no"> </span>
|
|
825
|
-
<span class="cline-any cline-no"> </span>
|
|
826
|
-
<span class="cline-any cline-no"> </span>
|
|
827
|
-
<span class="cline-any cline-no"> </span>
|
|
828
|
-
<span class="cline-any cline-neutral"> </span>
|
|
829
|
-
<span class="cline-any cline-no"> </span>
|
|
830
|
-
<span class="cline-any cline-no"> </span>
|
|
831
|
-
<span class="cline-any cline-no"> </span>
|
|
832
|
-
<span class="cline-any cline-no"> </span>
|
|
833
|
-
<span class="cline-any cline-no"> </span>
|
|
834
|
-
<span class="cline-any cline-neutral"> </span>
|
|
835
|
-
<span class="cline-any cline-no"> </span>
|
|
836
|
-
<span class="cline-any cline-no"> </span>
|
|
837
|
-
<span class="cline-any cline-no"> </span>
|
|
838
|
-
<span class="cline-any cline-neutral"> </span>
|
|
839
|
-
<span class="cline-any cline-neutral"> </span>
|
|
840
|
-
<span class="cline-any cline-neutral"> </span>
|
|
841
|
-
<span class="cline-any cline-neutral"> </span>
|
|
842
|
-
<span class="cline-any cline-no"> </span>
|
|
843
|
-
<span class="cline-any cline-no"> </span>
|
|
844
|
-
<span class="cline-any cline-neutral"> </span>
|
|
845
|
-
<span class="cline-any cline-neutral"> </span>
|
|
846
|
-
<span class="cline-any cline-neutral"> </span>
|
|
847
|
-
<span class="cline-any cline-no"> </span>
|
|
848
|
-
<span class="cline-any cline-no"> </span>
|
|
849
|
-
<span class="cline-any cline-no"> </span>
|
|
850
|
-
<span class="cline-any cline-no"> </span>
|
|
851
|
-
<span class="cline-any cline-no"> </span>
|
|
852
|
-
<span class="cline-any cline-no"> </span>
|
|
853
|
-
<span class="cline-any cline-no"> </span>
|
|
854
|
-
<span class="cline-any cline-neutral"> </span>
|
|
855
|
-
<span class="cline-any cline-no"> </span>
|
|
856
|
-
<span class="cline-any cline-neutral"> </span>
|
|
857
|
-
<span class="cline-any cline-neutral"> </span>
|
|
858
|
-
<span class="cline-any cline-neutral"> </span>
|
|
859
|
-
<span class="cline-any cline-no"> </span>
|
|
860
|
-
<span class="cline-any cline-neutral"> </span>
|
|
861
|
-
<span class="cline-any cline-neutral"> </span>
|
|
862
|
-
<span class="cline-any cline-neutral"> </span>
|
|
863
|
-
<span class="cline-any cline-neutral"> </span>
|
|
864
|
-
<span class="cline-any cline-neutral"> </span>
|
|
865
|
-
<span class="cline-any cline-neutral"> </span>
|
|
866
|
-
<span class="cline-any cline-neutral"> </span>
|
|
867
|
-
<span class="cline-any cline-neutral"> </span>
|
|
868
|
-
<span class="cline-any cline-yes">1</span>
|
|
869
|
-
<span class="cline-any cline-no"> </span>
|
|
870
|
-
<span class="cline-any cline-no"> </span>
|
|
871
|
-
<span class="cline-any cline-neutral"> </span>
|
|
872
|
-
<span class="cline-any cline-no"> </span>
|
|
873
|
-
<span class="cline-any cline-neutral"> </span>
|
|
874
|
-
<span class="cline-any cline-neutral"> </span>
|
|
875
|
-
<span class="cline-any cline-no"> </span>
|
|
876
|
-
<span class="cline-any cline-no"> </span>
|
|
877
|
-
<span class="cline-any cline-no"> </span>
|
|
878
|
-
<span class="cline-any cline-neutral"> </span>
|
|
879
|
-
<span class="cline-any cline-neutral"> </span>
|
|
880
|
-
<span class="cline-any cline-neutral"> </span>
|
|
881
|
-
<span class="cline-any cline-neutral"> </span>
|
|
882
|
-
<span class="cline-any cline-neutral"> </span>
|
|
883
|
-
<span class="cline-any cline-no"> </span>
|
|
884
|
-
<span class="cline-any cline-no"> </span>
|
|
885
|
-
<span class="cline-any cline-no"> </span>
|
|
886
|
-
<span class="cline-any cline-neutral"> </span>
|
|
887
|
-
<span class="cline-any cline-neutral"> </span>
|
|
888
|
-
<span class="cline-any cline-neutral"> </span>
|
|
889
|
-
<span class="cline-any cline-neutral"> </span>
|
|
890
|
-
<span class="cline-any cline-neutral"> </span>
|
|
891
|
-
<span class="cline-any cline-no"> </span>
|
|
892
|
-
<span class="cline-any cline-no"> </span>
|
|
893
|
-
<span class="cline-any cline-no"> </span>
|
|
894
|
-
<span class="cline-any cline-neutral"> </span>
|
|
895
|
-
<span class="cline-any cline-no"> </span>
|
|
896
|
-
<span class="cline-any cline-no"> </span>
|
|
897
|
-
<span class="cline-any cline-neutral"> </span>
|
|
898
|
-
<span class="cline-any cline-neutral"> </span>
|
|
899
|
-
<span class="cline-any cline-no"> </span>
|
|
900
|
-
<span class="cline-any cline-no"> </span>
|
|
901
|
-
<span class="cline-any cline-no"> </span>
|
|
902
|
-
<span class="cline-any cline-neutral"> </span>
|
|
903
|
-
<span class="cline-any cline-neutral"> </span>
|
|
904
|
-
<span class="cline-any cline-neutral"> </span>
|
|
905
|
-
<span class="cline-any cline-neutral"> </span>
|
|
906
|
-
<span class="cline-any cline-no"> </span>
|
|
907
|
-
<span class="cline-any cline-neutral"> </span>
|
|
908
|
-
<span class="cline-any cline-neutral"> </span>
|
|
909
|
-
<span class="cline-any cline-neutral"> </span>
|
|
910
|
-
<span class="cline-any cline-neutral"> </span>
|
|
911
|
-
<span class="cline-any cline-neutral"> </span>
|
|
912
|
-
<span class="cline-any cline-neutral"> </span>
|
|
913
|
-
<span class="cline-any cline-neutral"> </span>
|
|
914
|
-
<span class="cline-any cline-neutral"> </span>
|
|
915
|
-
<span class="cline-any cline-neutral"> </span>
|
|
916
|
-
<span class="cline-any cline-neutral"> </span>
|
|
917
|
-
<span class="cline-any cline-neutral"> </span>
|
|
918
|
-
<span class="cline-any cline-yes">1</span>
|
|
919
|
-
<span class="cline-any cline-no"> </span>
|
|
920
|
-
<span class="cline-any cline-neutral"> </span>
|
|
921
|
-
<span class="cline-any cline-no"> </span>
|
|
922
|
-
<span class="cline-any cline-no"> </span>
|
|
923
|
-
<span class="cline-any cline-neutral"> </span>
|
|
924
|
-
<span class="cline-any cline-neutral"> </span>
|
|
925
|
-
<span class="cline-any cline-no"> </span>
|
|
926
|
-
<span class="cline-any cline-no"> </span>
|
|
927
|
-
<span class="cline-any cline-neutral"> </span>
|
|
928
|
-
<span class="cline-any cline-no"> </span>
|
|
929
|
-
<span class="cline-any cline-neutral"> </span>
|
|
930
|
-
<span class="cline-any cline-neutral"> </span>
|
|
931
|
-
<span class="cline-any cline-no"> </span>
|
|
932
|
-
<span class="cline-any cline-no"> </span>
|
|
933
|
-
<span class="cline-any cline-no"> </span>
|
|
934
|
-
<span class="cline-any cline-no"> </span>
|
|
935
|
-
<span class="cline-any cline-no"> </span>
|
|
936
|
-
<span class="cline-any cline-no"> </span>
|
|
937
|
-
<span class="cline-any cline-no"> </span>
|
|
938
|
-
<span class="cline-any cline-neutral"> </span>
|
|
939
|
-
<span class="cline-any cline-no"> </span>
|
|
940
|
-
<span class="cline-any cline-neutral"> </span>
|
|
941
|
-
<span class="cline-any cline-neutral"> </span>
|
|
942
|
-
<span class="cline-any cline-neutral"> </span>
|
|
943
|
-
<span class="cline-any cline-no"> </span>
|
|
944
|
-
<span class="cline-any cline-neutral"> </span>
|
|
945
|
-
<span class="cline-any cline-neutral"> </span>
|
|
946
|
-
<span class="cline-any cline-neutral"> </span>
|
|
947
|
-
<span class="cline-any cline-neutral"> </span>
|
|
948
|
-
<span class="cline-any cline-neutral"> </span>
|
|
949
|
-
<span class="cline-any cline-neutral"> </span>
|
|
950
|
-
<span class="cline-any cline-neutral"> </span>
|
|
951
|
-
<span class="cline-any cline-neutral"> </span>
|
|
952
|
-
<span class="cline-any cline-yes">1</span>
|
|
953
|
-
<span class="cline-any cline-no"> </span>
|
|
954
|
-
<span class="cline-any cline-no"> </span>
|
|
955
|
-
<span class="cline-any cline-no"> </span>
|
|
956
|
-
<span class="cline-any cline-no"> </span>
|
|
957
|
-
<span class="cline-any cline-neutral"> </span>
|
|
958
|
-
<span class="cline-any cline-neutral"> </span>
|
|
959
|
-
<span class="cline-any cline-no"> </span>
|
|
960
|
-
<span class="cline-any cline-neutral"> </span>
|
|
961
|
-
<span class="cline-any cline-neutral"> </span>
|
|
962
|
-
<span class="cline-any cline-neutral"> </span>
|
|
963
|
-
<span class="cline-any cline-yes">1</span>
|
|
964
|
-
<span class="cline-any cline-no"> </span>
|
|
965
|
-
<span class="cline-any cline-neutral"> </span>
|
|
966
|
-
<span class="cline-any cline-neutral"> </span>
|
|
967
|
-
<span class="cline-any cline-neutral"> </span>
|
|
968
|
-
<span class="cline-any cline-yes">1</span>
|
|
969
|
-
<span class="cline-any cline-no"> </span>
|
|
970
|
-
<span class="cline-any cline-no"> </span>
|
|
971
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
|
|
972
|
-
|
|
973
|
-
/*
|
|
974
|
-
Copyright (c) 2014, Ismaël Héry
|
|
975
|
-
|
|
976
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
977
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
978
|
-
in the Software without restriction, including without limitation the rights
|
|
979
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
980
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
981
|
-
furnished to do so, subject to the following conditions:
|
|
982
|
-
|
|
983
|
-
The above copyright notice and this permission notice shall be included in
|
|
984
|
-
all copies or substantial portions of the Software.
|
|
985
|
-
|
|
986
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
987
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
988
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
989
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
990
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
991
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
992
|
-
THE SOFTWARE.
|
|
993
|
-
*/
|
|
994
|
-
|
|
995
|
-
/*
|
|
996
|
-
* Spec for the French Porter Stemmer can be found at:
|
|
997
|
-
* http://snowball.tartarus.org/algorithms/french/stemmer.html
|
|
998
|
-
*/
|
|
999
|
-
|
|
1000
|
-
var Stemmer = require('./stemmer_fr');
|
|
1001
|
-
|
|
1002
|
-
var PorterStemmer = new Stemmer();
|
|
1003
|
-
module.exports = PorterStemmer;
|
|
1004
|
-
|
|
1005
|
-
// Export
|
|
1006
|
-
PorterStemmer.stem = stem;
|
|
1007
|
-
|
|
1008
|
-
// Exports for test purpose
|
|
1009
|
-
PorterStemmer.prelude = prelude;
|
|
1010
|
-
PorterStemmer.regions = regions;
|
|
1011
|
-
PorterStemmer.endsinArr = endsinArr;
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Stem a word thanks to Porter Stemmer rules
|
|
1015
|
-
* @param {String} token Word to be stemmed
|
|
1016
|
-
* @return {String} Stemmed word
|
|
1017
|
-
*/
|
|
1018
|
-
<span class="fstat-no" title="function not covered" >function stem(token) {</span>
|
|
1019
|
-
<span class="cstat-no" title="statement not covered" > token = prelude(token.toLowerCase());</span>
|
|
1020
|
-
|
|
1021
|
-
<span class="cstat-no" title="statement not covered" > if (token.length == 1)</span>
|
|
1022
|
-
<span class="cstat-no" title="statement not covered" > return token;</span>
|
|
1023
|
-
|
|
1024
|
-
<span class="cstat-no" title="statement not covered" > var regs = regions(token);</span>
|
|
1025
|
-
|
|
1026
|
-
<span class="cstat-no" title="statement not covered" > var r1_txt, r2_txt, rv_txt;</span>
|
|
1027
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1028
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1029
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1030
|
-
|
|
1031
|
-
// Step 1
|
|
1032
|
-
<span class="cstat-no" title="statement not covered" > var beforeStep1 = token;</span>
|
|
1033
|
-
<span class="cstat-no" title="statement not covered" > var suf, pref2, pref3, letterBefore, letter2Before, i;</span>
|
|
1034
|
-
<span class="cstat-no" title="statement not covered" > var doStep2a = false;</span>
|
|
1035
|
-
|
|
1036
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(r2_txt, ['ance', 'iqUe', 'isme', 'able', 'iste', 'eux', 'ances', 'iqUes', 'ismes', 'ables', 'istes'])) != '') {</span>
|
|
1037
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1038
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['icatrice', 'icateur', 'ication', 'icatrices', 'icateurs', 'ications'])) != '') {</span>
|
|
1039
|
-
<span class="cstat-no" title="statement not covered" > if (endsinArr(r2_txt, ['icatrice', 'icateur', 'ication', 'icatrices', 'icateurs', 'ications']) != '') {</span>
|
|
1040
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1041
|
-
} else {
|
|
1042
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'iqU'; </span>// replace by iqU
|
|
1043
|
-
}
|
|
1044
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['atrice', 'ateur', 'ation', 'atrices', 'ateurs', 'ations'])) != '') {</span>
|
|
1045
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1046
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['logie', 'logies'])) != '') {</span>
|
|
1047
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'log'; </span>// replace with log
|
|
1048
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['usion', 'ution', 'usions', 'utions'])) != '') {</span>
|
|
1049
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'u'; </span>// replace with u
|
|
1050
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['ence', 'ences'])) != '') {</span>
|
|
1051
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'ent'; </span>// replace with ent
|
|
1052
|
-
}
|
|
1053
|
-
// ement(s)
|
|
1054
|
-
else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r1_txt, ['issement', 'issements'])) != '') {</span>
|
|
1055
|
-
<span class="cstat-no" title="statement not covered" > if (!isVowel(token[token.length - suf.length - 1])) {</span>
|
|
1056
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1057
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1058
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1059
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1060
|
-
}
|
|
1061
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['ativement', 'ativements'])) != '') {</span>
|
|
1062
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1063
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['ivement', 'ivements'])) != '') {</span>
|
|
1064
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1065
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['eusement', 'eusements'])) != '') {</span>
|
|
1066
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(r2_txt, ['eusement', 'eusements'])) != '')</span>
|
|
1067
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1068
|
-
else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r1_txt, ['eusement', 'eusements'])) != '')</span>
|
|
1069
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'eux'; </span>// replace by eux
|
|
1070
|
-
else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['ement', 'ements'])) != '')</span>
|
|
1071
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1072
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['ablement', 'ablements', 'iqUement', 'iqUements'])) != '') {</span>
|
|
1073
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1074
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['ièrement', 'ièrements', 'Ièrement', 'Ièrements'])) != '') {</span>
|
|
1075
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'i'; </span>// replace by i
|
|
1076
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['ement', 'ements'])) != '') {</span>
|
|
1077
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1078
|
-
}
|
|
1079
|
-
// ité(s)
|
|
1080
|
-
else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['icité', 'icités'])) != '') {</span>
|
|
1081
|
-
<span class="cstat-no" title="statement not covered" > if (endsinArr(r2_txt, ['icité', 'icités']) != '')</span>
|
|
1082
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1083
|
-
else
|
|
1084
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'iqU'; </span>// replace by iqU
|
|
1085
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['abilité', 'abilités'])) != '') {</span>
|
|
1086
|
-
<span class="cstat-no" title="statement not covered" > if (endsinArr(r2_txt, ['abilité', 'abilités']) != '')</span>
|
|
1087
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1088
|
-
else
|
|
1089
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'abl'; </span>// replace by abl
|
|
1090
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['ité', 'ités'])) != '') {</span>
|
|
1091
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete if in R2
|
|
1092
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['icatif', 'icative', 'icatifs', 'icatives'])) != '') {</span>
|
|
1093
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(r2_txt, ['icatif', 'icative', 'icatifs', 'icatives'])) != '') {</span>
|
|
1094
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1095
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1096
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1097
|
-
}
|
|
1098
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(r2_txt, ['atif', 'ative', 'atifs', 'atives'])) != '') {</span>
|
|
1099
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length - 2) + 'iqU'; </span>// replace with iqU
|
|
1100
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1101
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1102
|
-
}
|
|
1103
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['atif', 'ative', 'atifs', 'atives'])) != '') {</span>
|
|
1104
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1105
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['if', 'ive', 'ifs', 'ives'])) != '') {</span>
|
|
1106
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1107
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(token, ['eaux'])) != '') {</span>
|
|
1108
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'eau'; </span>// replace by eau
|
|
1109
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r1_txt, ['aux'])) != '') {</span>
|
|
1110
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'al'; </span>// replace by al
|
|
1111
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r2_txt, ['euse', 'euses'])) != '') {</span>
|
|
1112
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1113
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(r1_txt, ['euse', 'euses'])) != '') {</span>
|
|
1114
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'eux'; </span>// replace by eux
|
|
1115
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['amment'])) != '') {</span>
|
|
1116
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'ant'; </span>// replace by ant
|
|
1117
|
-
<span class="cstat-no" title="statement not covered" > doStep2a = true;</span>
|
|
1118
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['emment'])) != '') {</span>
|
|
1119
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'ent'; </span>// replace by ent
|
|
1120
|
-
<span class="cstat-no" title="statement not covered" > doStep2a = true;</span>
|
|
1121
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['ment', 'ments'])) != '') {</span>
|
|
1122
|
-
// letter before must be a vowel in RV
|
|
1123
|
-
<span class="cstat-no" title="statement not covered" > letterBefore = token[token.length - suf.length - 1];</span>
|
|
1124
|
-
<span class="cstat-no" title="statement not covered" > if (isVowel(letterBefore) && endsin(rv_txt, letterBefore + suf)) {</span>
|
|
1125
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1126
|
-
<span class="cstat-no" title="statement not covered" > doStep2a = true;</span>
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
// re compute regions
|
|
1131
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1132
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1133
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1134
|
-
|
|
1135
|
-
// Step 2a
|
|
1136
|
-
<span class="cstat-no" title="statement not covered" > var beforeStep2a = token;</span>
|
|
1137
|
-
<span class="cstat-no" title="statement not covered" > var step2aDone = false;</span>
|
|
1138
|
-
<span class="cstat-no" title="statement not covered" > if (beforeStep1 === token || doStep2a) {</span>
|
|
1139
|
-
<span class="cstat-no" title="statement not covered" > step2aDone = true;</span>
|
|
1140
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(rv_txt, ['îmes', 'ît', 'îtes', 'i', 'ie', 'Ie', 'ies', 'ir', 'ira', 'irai', 'iraIent', 'irais', 'irait', 'iras', 'irent', 'irez', 'iriez', 'irions', 'irons', 'iront', 'is', 'issaIent', 'issais', 'issait', 'issant', 'issante', 'issantes', 'issants', 'isse', 'issent', 'isses', 'issez', 'issiez', 'issions', 'issons', 'it'])) != '') {</span>
|
|
1141
|
-
<span class="cstat-no" title="statement not covered" > letterBefore = token[token.length - suf.length - 1];</span>
|
|
1142
|
-
<span class="cstat-no" title="statement not covered" > if (!isVowel(letterBefore) && endsin(rv_txt, letterBefore + suf))</span>
|
|
1143
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
// Step 2b
|
|
1148
|
-
<span class="cstat-no" title="statement not covered" > if (step2aDone && token === beforeStep2a) {</span>
|
|
1149
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(rv_txt, ['é', 'ée', 'ées', 'és', 'èrent', 'er', 'era', 'erai', 'eraIent', 'erais', 'erait', 'eras', 'erez', 'eriez', 'erions', 'erons', 'eront', 'ez', 'iez', 'Iez'])) != '') {</span>
|
|
1150
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1151
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1152
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1153
|
-
} else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['ions'])) != '' && endsinArr(r2_txt, ['ions'])) {</span>
|
|
1154
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1155
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1156
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1157
|
-
}
|
|
1158
|
-
// add 'Ie' suffix to pass test for 'évanouie'
|
|
1159
|
-
else <span class="cstat-no" title="statement not covered" >if ((suf = endsinArr(rv_txt, ['âmes', 'ât', 'âtes', 'a', 'ai', 'aIent', 'ais', 'ait', 'ant', 'ante', 'antes', 'ants', 'as', 'asse', 'assent', 'asses', 'assiez', 'assions'])) != '') {</span>
|
|
1160
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1161
|
-
|
|
1162
|
-
<span class="cstat-no" title="statement not covered" > letterBefore = token[token.length - 1];</span>
|
|
1163
|
-
<span class="cstat-no" title="statement not covered" > if (letterBefore === 'e' && endsin(rv_txt, 'e' + suf))</span>
|
|
1164
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -1);</span>
|
|
1165
|
-
|
|
1166
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1167
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
// Step 3
|
|
1172
|
-
<span class="cstat-no" title="statement not covered" > if (!(token === beforeStep1)) {</span>
|
|
1173
|
-
<span class="cstat-no" title="statement not covered" > if (token[token.length - 1] === 'Y')</span>
|
|
1174
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -1) + 'i';</span>
|
|
1175
|
-
<span class="cstat-no" title="statement not covered" > if (token[token.length - 1] === 'ç')</span>
|
|
1176
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -1) + 'c';</span>
|
|
1177
|
-
} // Step 4
|
|
1178
|
-
else {
|
|
1179
|
-
<span class="cstat-no" title="statement not covered" > letterBefore = token[token.length - 1];</span>
|
|
1180
|
-
<span class="cstat-no" title="statement not covered" > letter2Before = token[token.length - 2];</span>
|
|
1181
|
-
|
|
1182
|
-
<span class="cstat-no" title="statement not covered" > if (letterBefore === 's' && ['a', 'i', 'o', 'u', 'è', 's'].indexOf(letter2Before) == -1) {</span>
|
|
1183
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -1);</span>
|
|
1184
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1185
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1186
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(r2_txt, ['ion'])) != '') {</span>
|
|
1190
|
-
<span class="cstat-no" title="statement not covered" > letterBefore = token[token.length - suf.length - 1];</span>
|
|
1191
|
-
<span class="cstat-no" title="statement not covered" > if (letterBefore === 's' || letterBefore === 't') {</span>
|
|
1192
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1193
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1194
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1195
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(rv_txt, ['ier', 'ière', 'Ier', 'Ière'])) != '') {</span>
|
|
1200
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length) + 'i'; </span>// replace by i
|
|
1201
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1202
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1203
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1204
|
-
}
|
|
1205
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(rv_txt, 'e')) != '') {</span>
|
|
1206
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1207
|
-
<span class="cstat-no" title="statement not covered" > r1_txt = token.substring(regs.r1);</span>
|
|
1208
|
-
<span class="cstat-no" title="statement not covered" > r2_txt = token.substring(regs.r2);</span>
|
|
1209
|
-
<span class="cstat-no" title="statement not covered" > rv_txt = token.substring(regs.rv);</span>
|
|
1210
|
-
}
|
|
1211
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(rv_txt, 'ë')) != '') {</span>
|
|
1212
|
-
<span class="cstat-no" title="statement not covered" > if (token.slice(token.length - 3, -1) === 'gu')</span>
|
|
1213
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -suf.length); </span>// delete
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
// Step 5
|
|
1218
|
-
<span class="cstat-no" title="statement not covered" > if ((suf = endsinArr(token, ['enn', 'onn', 'ett', 'ell', 'eill'])) != '') {</span>
|
|
1219
|
-
<span class="cstat-no" title="statement not covered" > token = token.slice(0, -1); </span>// delete last letter
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
// Step 6
|
|
1223
|
-
<span class="cstat-no" title="statement not covered" > i = token.length - 1;</span>
|
|
1224
|
-
<span class="cstat-no" title="statement not covered" > while (i > 0) {</span>
|
|
1225
|
-
<span class="cstat-no" title="statement not covered" > if (!isVowel(token[i])) {</span>
|
|
1226
|
-
<span class="cstat-no" title="statement not covered" > i--;</span>
|
|
1227
|
-
} else <span class="cstat-no" title="statement not covered" >if (i !== token.length - 1 && (token[i] === 'é' || token[i] === 'è')) {</span>
|
|
1228
|
-
<span class="cstat-no" title="statement not covered" > token = token.substring(0, i) + 'e' + token.substring(i + 1, token.length);</span>
|
|
1229
|
-
<span class="cstat-no" title="statement not covered" > break;</span>
|
|
1230
|
-
} else {
|
|
1231
|
-
<span class="cstat-no" title="statement not covered" > break;</span>
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
<span class="cstat-no" title="statement not covered" > return token.toLowerCase();</span>
|
|
1236
|
-
|
|
1237
|
-
};
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Compute r1, r2, rv regions as required by french porter stemmer algorithm
|
|
1241
|
-
* @param {String} token Word to compute regions on
|
|
1242
|
-
* @return {Object} Regions r1, r2, rv as offsets from the begining of the word
|
|
1243
|
-
*/
|
|
1244
|
-
<span class="fstat-no" title="function not covered" >function regions(token) {</span>
|
|
1245
|
-
<span class="cstat-no" title="statement not covered" > var r1, r2, rv, len;</span>
|
|
1246
|
-
<span class="cstat-no" title="statement not covered" > var i;</span>
|
|
1247
|
-
|
|
1248
|
-
<span class="cstat-no" title="statement not covered" > r1 = r2 = rv = len = token.length;</span>
|
|
1249
|
-
|
|
1250
|
-
// R1 is the region after the first non-vowel following a vowel,
|
|
1251
|
-
<span class="cstat-no" title="statement not covered" > for (var i = 0; i < len - 1 && r1 == len; i++) {</span>
|
|
1252
|
-
<span class="cstat-no" title="statement not covered" > if (isVowel(token[i]) && !isVowel(token[i + 1])) {</span>
|
|
1253
|
-
<span class="cstat-no" title="statement not covered" > r1 = i + 2;</span>
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
// Or is the null region at the end of the word if there is no such non-vowel.
|
|
1257
|
-
|
|
1258
|
-
// R2 is the region after the first non-vowel following a vowel in R1
|
|
1259
|
-
<span class="cstat-no" title="statement not covered" > for (i = r1; i < len - 1 && r2 == len; i++) {</span>
|
|
1260
|
-
<span class="cstat-no" title="statement not covered" > if (isVowel(token[i]) && !isVowel(token[i + 1])) {</span>
|
|
1261
|
-
<span class="cstat-no" title="statement not covered" > r2 = i + 2;</span>
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
// Or is the null region at the end of the word if there is no such non-vowel.
|
|
1265
|
-
|
|
1266
|
-
// RV region
|
|
1267
|
-
<span class="cstat-no" title="statement not covered" > var three = token.slice(0, 3);</span>
|
|
1268
|
-
<span class="cstat-no" title="statement not covered" > if (isVowel(token[0]) && isVowel(token[1])) {</span>
|
|
1269
|
-
<span class="cstat-no" title="statement not covered" > rv = 3;</span>
|
|
1270
|
-
}
|
|
1271
|
-
<span class="cstat-no" title="statement not covered" > if (three === 'par' || three == 'col' || three === 'tap')</span>
|
|
1272
|
-
<span class="cstat-no" title="statement not covered" > rv = 3;</span>
|
|
1273
|
-
// the region after the first vowel not at the beginning of the word or null
|
|
1274
|
-
else {
|
|
1275
|
-
<span class="cstat-no" title="statement not covered" > for (i = 1; i < len - 1 && rv == len; i++) {</span>
|
|
1276
|
-
<span class="cstat-no" title="statement not covered" > if (isVowel(token[i])) {</span>
|
|
1277
|
-
<span class="cstat-no" title="statement not covered" > rv = i + 1;</span>
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
1283
|
-
r1: r1,
|
|
1284
|
-
r2: r2,
|
|
1285
|
-
rv: rv
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* Pre-process/prepare words as required by french porter stemmer algorithm
|
|
1291
|
-
* @param {String} token Word to be prepared
|
|
1292
|
-
* @return {String} Prepared word
|
|
1293
|
-
*/
|
|
1294
|
-
<span class="fstat-no" title="function not covered" >function prelude(token) {</span>
|
|
1295
|
-
<span class="cstat-no" title="statement not covered" > token = token.toLowerCase();</span>
|
|
1296
|
-
|
|
1297
|
-
<span class="cstat-no" title="statement not covered" > var result = '';</span>
|
|
1298
|
-
<span class="cstat-no" title="statement not covered" > var i = 0;</span>
|
|
1299
|
-
|
|
1300
|
-
// special case for i = 0 to avoid '-1' index
|
|
1301
|
-
<span class="cstat-no" title="statement not covered" > if (token[i] === 'y' && isVowel(token[i + 1])) {</span>
|
|
1302
|
-
<span class="cstat-no" title="statement not covered" > result += token[i].toUpperCase();</span>
|
|
1303
|
-
} else {
|
|
1304
|
-
<span class="cstat-no" title="statement not covered" > result += token[i];</span>
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
<span class="cstat-no" title="statement not covered" > for (i = 1; i < token.length; i++) {</span>
|
|
1308
|
-
<span class="cstat-no" title="statement not covered" > if ((token[i] === 'u' || token[i] === 'i') && isVowel(token[i - 1]) && isVowel(token[i + 1])) {</span>
|
|
1309
|
-
<span class="cstat-no" title="statement not covered" > result += token[i].toUpperCase();</span>
|
|
1310
|
-
} else <span class="cstat-no" title="statement not covered" >if (token[i] === 'y' && (isVowel(token[i - 1]) || isVowel(token[i + 1]))) {</span>
|
|
1311
|
-
<span class="cstat-no" title="statement not covered" > result += token[i].toUpperCase();</span>
|
|
1312
|
-
} else <span class="cstat-no" title="statement not covered" >if (token[i] === 'u' && token[i - 1] === 'q') {</span>
|
|
1313
|
-
<span class="cstat-no" title="statement not covered" > result += token[i].toUpperCase();</span>
|
|
1314
|
-
} else {
|
|
1315
|
-
<span class="cstat-no" title="statement not covered" > result += token[i];</span>
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
<span class="cstat-no" title="statement not covered" > return result;</span>
|
|
1320
|
-
};
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* Return longest matching suffixes for a token or '' if no suffix match
|
|
1324
|
-
* @param {String} token Word to find matching suffix
|
|
1325
|
-
* @param {Array} suffixes Array of suffixes to test matching
|
|
1326
|
-
* @return {String} Longest found matching suffix or ''
|
|
1327
|
-
*/
|
|
1328
|
-
<span class="fstat-no" title="function not covered" >function endsinArr(token, suffixes) {</span>
|
|
1329
|
-
<span class="cstat-no" title="statement not covered" > var i, longest = '';</span>
|
|
1330
|
-
<span class="cstat-no" title="statement not covered" > for (i = 0; i < suffixes.length; i++) {</span>
|
|
1331
|
-
<span class="cstat-no" title="statement not covered" > if (endsin(token, suffixes[i]) && suffixes[i].length > longest.length)</span>
|
|
1332
|
-
<span class="cstat-no" title="statement not covered" > longest = suffixes[i];</span>
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
<span class="cstat-no" title="statement not covered" > return longest;</span>
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
<span class="fstat-no" title="function not covered" >function isVowel(letter) {</span>
|
|
1340
|
-
<span class="cstat-no" title="statement not covered" > return (letter == 'a' || letter == 'e' || letter == 'i' || letter == 'o' || letter == 'u' || letter == 'y' || letter == 'â' || letter == 'à' || letter == 'ë' ||</span>
|
|
1341
|
-
letter == 'é' || letter == 'ê' || letter == 'è' || letter == 'ï' || letter == 'î' || letter == 'ô' || letter == 'û' || letter == 'ù');
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
<span class="fstat-no" title="function not covered" >function endsin(token, suffix) {</span>
|
|
1345
|
-
<span class="cstat-no" title="statement not covered" > if (token.length < suffix.length) <span class="cstat-no" title="statement not covered" >return false;</span></span>
|
|
1346
|
-
<span class="cstat-no" title="statement not covered" > return (token.slice(-suffix.length) == suffix);</span>
|
|
1347
|
-
};</pre></td></tr>
|
|
1348
|
-
</table></pre>
|
|
1349
|
-
|
|
1350
|
-
</div>
|
|
1351
|
-
<div class="footer">
|
|
1352
|
-
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Dec 22 2014 18:01:01 GMT-0500 (EST)</div>
|
|
1353
|
-
</div>
|
|
1354
|
-
|
|
1355
|
-
<script src="../../prettify.js"></script>
|
|
1356
|
-
|
|
1357
|
-
<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
|
|
1358
|
-
<script>
|
|
1359
|
-
|
|
1360
|
-
YUI().use('datatable', function (Y) {
|
|
1361
|
-
|
|
1362
|
-
var formatters = {
|
|
1363
|
-
pct: function (o) {
|
|
1364
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
1365
|
-
try {
|
|
1366
|
-
return o.value.toFixed(2) + '%';
|
|
1367
|
-
} catch (ex) { return o.value + '%'; }
|
|
1368
|
-
},
|
|
1369
|
-
html: function (o) {
|
|
1370
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
1371
|
-
return o.record.get(o.column.key + '_html');
|
|
1372
|
-
}
|
|
1373
|
-
},
|
|
1374
|
-
defaultFormatter = function (o) {
|
|
1375
|
-
o.className += o.record.get('classes')[o.column.key];
|
|
1376
|
-
return o.value;
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
function getColumns(theadNode) {
|
|
1380
|
-
var colNodes = theadNode.all('tr th'),
|
|
1381
|
-
cols = [],
|
|
1382
|
-
col;
|
|
1383
|
-
colNodes.each(function (colNode) {
|
|
1384
|
-
col = {
|
|
1385
|
-
key: colNode.getAttribute('data-col'),
|
|
1386
|
-
label: colNode.get('innerHTML') || ' ',
|
|
1387
|
-
sortable: !colNode.getAttribute('data-nosort'),
|
|
1388
|
-
className: colNode.getAttribute('class'),
|
|
1389
|
-
type: colNode.getAttribute('data-type'),
|
|
1390
|
-
allowHTML: colNode.getAttribute('data-html') === 'true' || colNode.getAttribute('data-fmt') === 'html'
|
|
1391
|
-
};
|
|
1392
|
-
col.formatter = formatters[colNode.getAttribute('data-fmt')] || defaultFormatter;
|
|
1393
|
-
cols.push(col);
|
|
1394
|
-
});
|
|
1395
|
-
return cols;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
function getRowData(trNode, cols) {
|
|
1399
|
-
var tdNodes = trNode.all('td'),
|
|
1400
|
-
i,
|
|
1401
|
-
row = { classes: {} },
|
|
1402
|
-
node,
|
|
1403
|
-
name;
|
|
1404
|
-
for (i = 0; i < cols.length; i += 1) {
|
|
1405
|
-
name = cols[i].key;
|
|
1406
|
-
node = tdNodes.item(i);
|
|
1407
|
-
row[name] = node.getAttribute('data-value') || node.get('innerHTML');
|
|
1408
|
-
row[name + '_html'] = node.get('innerHTML');
|
|
1409
|
-
row.classes[name] = node.getAttribute('class');
|
|
1410
|
-
//Y.log('Name: ' + name + '; Value: ' + row[name]);
|
|
1411
|
-
if (cols[i].type === 'number') { row[name] = row[name] * 1; }
|
|
1412
|
-
}
|
|
1413
|
-
//Y.log(row);
|
|
1414
|
-
return row;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
function getData(tbodyNode, cols) {
|
|
1418
|
-
var data = [];
|
|
1419
|
-
tbodyNode.all('tr').each(function (trNode) {
|
|
1420
|
-
data.push(getRowData(trNode, cols));
|
|
1421
|
-
});
|
|
1422
|
-
return data;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
function replaceTable(node) {
|
|
1426
|
-
if (!node) { return; }
|
|
1427
|
-
var cols = getColumns(node.one('thead')),
|
|
1428
|
-
data = getData(node.one('tbody'), cols),
|
|
1429
|
-
table,
|
|
1430
|
-
parent = node.get('parentNode');
|
|
1431
|
-
|
|
1432
|
-
table = new Y.DataTable({
|
|
1433
|
-
columns: cols,
|
|
1434
|
-
data: data,
|
|
1435
|
-
sortBy: 'file'
|
|
1436
|
-
});
|
|
1437
|
-
parent.set('innerHTML', '');
|
|
1438
|
-
table.render(parent);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
Y.on('domready', function () {
|
|
1442
|
-
replaceTable(Y.one('div.coverage-summary table'));
|
|
1443
|
-
if (typeof prettyPrint === 'function') {
|
|
1444
|
-
prettyPrint();
|
|
1445
|
-
}
|
|
1446
|
-
});
|
|
1447
|
-
});
|
|
1448
|
-
</script>
|
|
1449
|
-
</body>
|
|
1450
|
-
</html>
|