<commit_before>"use strict";

let TEST_FEEDS = [
  "http://rss.cnn.com/rss/cnn_topstories.rss",
  "http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",
  "https://news.layervault.com/?format=rss",
  "http://feeds.feedburner.com/yewknee",
  "http://feeds.feedburner.com/ucllc/quipsologies",
  "http://www.reddit.com/.rss",
  "http://feeds.kottke.org/main",
  "http://www.polygon.com/rss/index.xml",
  "http://www.theverge.com/rss/index.xml",
  "http://feeds.feedburner.com/CoudalFreshSignals",
  "http://feeds2.feedburner.com/Swissmiss",
  "http://feeds.apartmenttherapy.com/apartmenttherapy/main",
  "http://www.engadget.com/rss.xml",
  "http://torontoist.com/feed/",
  "http://www.thestar.com/feeds.topstories.rss"
];

TEST_FEEDS.forEach(function(url) {
  RSS.parseFeed(url, function(feed) {
  	let h1 = document.createElement("h1");
  	h1.textContent = feed.title.plainText();

  	// Only return the first 3 items
    let items = RSS.feedToItems(feed).slice(0, 2);

    let div = document.createElement("div");
    div.textContent = JSON.stringify(items);

    document.body.appendChild(h1);
    document.body.appendChild(div);
  });
});<commit_msg>fix tabs<commit_after>"use strict";

let TEST_FEEDS = [
  "http://rss.cnn.com/rss/cnn_topstories.rss",
  "http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",
  "https://news.layervault.com/?format=rss",
  "http://feeds.feedburner.com/yewknee",
  "http://feeds.feedburner.com/ucllc/quipsologies",
  "http://www.reddit.com/.rss",
  "http://feeds.kottke.org/main",
  "http://www.polygon.com/rss/index.xml",
  "http://www.theverge.com/rss/index.xml",
  "http://feeds.feedburner.com/CoudalFreshSignals",
  "http://feeds2.feedburner.com/Swissmiss",
  "http://feeds.apartmenttherapy.com/apartmenttherapy/main",
  "http://www.engadget.com/rss.xml",
  "http://torontoist.com/feed/",
  "http://www.thestar.com/feeds.topstories.rss"
];

TEST_FEEDS.forEach(function(url) {
  RSS.parseFeed(url, function(feed) {
    let h1 = document.createElement("h1");
    h1.textContent = feed.title.plainText();

    // Only return the first 3 items
    let items = RSS.feedToItems(feed).slice(0, 2);

    let div = document.createElement("div");
    div.textContent = JSON.stringify(items);

    document.body.appendChild(h1);
    document.body.appendChild(div);
  });
});
{'fraction_non_alphanumeric': 0.1972318339100346, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 3.910828025477707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 10, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2680910', 'n_tokens_mistral': 914, 'n_tokens_neox': 898, 'n_words': 89}