<commit_before><?php
define("SEXE", "http://sexes.blogs.liberation.fr");
define("SEXE_FEED", "http://sexes.blogs.liberation.fr/feeds/");

class Les400CulsBridge extends RssExpander{

	public $maintainer = "unknown";
	public $name = "<NAME>";
	public $uri = "http://sexes.blogs.liberation.fr";
	public $description = "La planete sexe vue par Agnes Girard via rss-bridge";


    public function collectData(){
        parent::collectExpandableDatas(SEXE_FEED);
    }

    protected function parseRSSItem($newsItem) {
        $item = array();
        $item['title'] = trim((string) $newsItem->title);
        $this->debugMessage("browsing item ".var_export($newsItem, true));
        if(empty($newsItem->guid)) {
            $item['uri'] = (string) $newsItem->link;
        } else {
            $item['uri'] = (string) $newsItem->guid;
        }
        // now load that uri from cache
        $this->debugMessage("now loading page ".$item['uri']);
//        $articlePage = $this->get_cached($item['uri']);

//        $content = $articlePage->find('.post-container', 0);<commit_msg>[Les400CulsBridge] code simplification<commit_after><?php
class Les400CulsBridge extends RssExpander{

	public $maintainer = "unknown";
	public $name = "<NAME>";
	public $uri = "http://sexes.blogs.liberation.fr/";
	public $description = "La planete sexe vue par Agnes Girard via rss-bridge";


    public function collectData(){
        $this->collectExpandableDatas($this->uri.'feeds/');
    }

    protected function parseRSSItem($newsItem) {
        $item = array();
        $item['title'] = trim((string) $newsItem->title);
        $this->debugMessage("browsing item ".var_export($newsItem, true));
        if(empty($newsItem->guid)) {
            $item['uri'] = (string) $newsItem->link;
        } else {
            $item['uri'] = (string) $newsItem->guid;
        }
        // now load that uri from cache
        $this->debugMessage("now loading page ".$item['uri']);
//        $articlePage = $this->get_cached($item['uri']);

//        $content = $articlePage->find('.post-container', 0);
{'fraction_non_alphanumeric': 0.17485549132947978, 'fraction_numerical': 0.0052986512524084775, 'mean_word_length': 3.162324649298597, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4642572', 'n_tokens_mistral': 670, 'n_tokens_neox': 637, 'n_words': 133}