<commit_before>package com.wmendez.diariolibre;

import android.app.Application;

import com.wmendez.newsreader.lib.helpers.Feeds;
import com.wmendez.newsreader.lib.util.NewsHTMLParser;

import org.jsoup.nodes.Document;

import static com.wmendez.newsreader.lib.helpers.Feeds.addItem;

public class DiarioLibreApp extends Application {

    @Override
    public void onCreate() {
        addItem(new Feeds.FeedItem("Portada", "http://www.diariolibre.com/rss/diariolibre/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Noticias", "http://www.diariolibre.com/rss/noticias/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Economía", "http://www.diariolibre.com/rss/?id=10", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Actualidad", "http://www.diariolibre.com/rss/?id=64", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Revista", "http://www.diariolibre.com/rss/revista/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Cinema", "http://www.diariolibre.com/rss/?id=72", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Deportes", "http://www.diariolibre.com/rss/deportes/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Opinión", "http://www.diariolibre.com/rss/opinion/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Ecos", "http://www.diariolibre.com/rss/ecos/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Lecturas", "http://www.diariolibre.com/rss/lecturas/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("DL English", "http://www.diariolibre.com/rss/dlenglish/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("DL Educación", "http://www.diariolibre.com/rss/educacion/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Tecnología", "http://www.diariolibre.com/rss/?id=82", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Espacios", "http://www.diariolibre.com/rss/?id=63", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Habitat", "http://www.diariolibre.com/rss/?id=68", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Fotonoticias", "http://www.diariolibre.com/rss/?id=67", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));

        Feeds.parser = new NewsHTMLParser() {
            @Override
            public String getHtml(Document doc) {
                return doc.getElementById("newstext").html();
            }
        };
    }

}
<commit_msg>Bug fixes<commit_after>package com.wmendez.diariolibre;

import android.app.Application;

import com.wmendez.newsreader.lib.helpers.Feeds;
import com.wmendez.newsreader.lib.util.NewsHTMLParser;

import org.jsoup.nodes.Document;

import static com.wmendez.newsreader.lib.helpers.Feeds.addItem;

public class DiarioLibreApp extends Application {

    @Override
    public void onCreate() {
        addItem(new Feeds.FeedItem("Portada", "http://www.diariolibre.com/rss/diariolibre/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Noticias", "http://www.diariolibre.com/rss/noticias/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Economía", "http://www.diariolibre.com/rss/?id=10", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Actualidad", "http://www.diariolibre.com/rss/?id=64", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Revista", "http://www.diariolibre.com/rss/revista/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Cinema", "http://www.diariolibre.com/rss/?id=72", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Deportes", "http://www.diariolibre.com/rss/deportes/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Opinión", "http://www.diariolibre.com/rss/opinion/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Ecos", "http://www.diariolibre.com/rss/ecos/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Lecturas", "http://www.diariolibre.com/rss/lecturas/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("DL English", "http://www.diariolibre.com/rss/dlenglish/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("DL Educación", "http://www.diariolibre.com/rss/educacion/", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Tecnología", "http://www.diariolibre.com/rss/?id=82", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Espacios", "http://www.diariolibre.com/rss/?id=63", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Habitat", "http://www.diariolibre.com/rss/?id=68", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));
        addItem(new Feeds.FeedItem("Fotonoticias", "http://www.diariolibre.com/rss/?id=67", com.wmendez.newsreader.lib.R.drawable.ic_action_web_site));

        Feeds.parser = new NewsHTMLParser() {
            @Override
            public String getHtml(Document doc) {
                try {
                    return doc.getElementById("newstext").html();
                }catch (NullPointerException e){
                    //No News
                    return "<h4 style='text-align:center;'>Oh oh! Esta noticia no existe.</h4>";
                }
            }
        };
    }

}

{'fraction_non_alphanumeric': 0.15901060070671377, 'fraction_numerical': 0.004818503051718599, 'mean_word_length': 3.9935846030473137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 32, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4442347', 'n_tokens_mistral': 2354, 'n_tokens_neox': 2241, 'n_words': 211}