<commit_before><?php
/**
* 2014-08-27
* @name Project M Game Bridge
* @homepage http://projectmgame.com/en/
* @description Returns the newest articles.
* @maintainer corenting
*/
class ProjectMGameBridge extends BridgeAbstract{
  public function collectData(array $param){
    $html = '';
    $html = file_get_html('http://projectmgame.com/en/') or $this->returnError('Error while downloading the Project M homepage', 404);

    foreach($html->find('article') as $article) {
      $item = new \Item();
      $item->uri = 'http://projectmgame.com/en/'.$article->find('section div.info_block a',0)->href;
      $item->title = $article->find('h1 p',0)->innertext;

      $p_list = $article->find('section p');
      $content = '';
      foreach($p_list as $p)
      {
        $content .= $p->innertext;
      }
      $item->content = $content;

      // get publication date
      $str_date = $article->find('section div.info_block a',0)->innertext;
      $timestamp = strtotime($str_date);
      $item->timestamp = $timestamp;

      $this->items[] = $item;
    }
  }

  public function getName(){
    return 'Project M Game Bridge';
  }

  public function getURI(){
    return 'http://projectmgame.com/en/';
  }

  public function getCacheDuration(){
    return 10800;
  }
}<commit_msg>Minor things<commit_after><?php
/**
* 2014-08-27
* @name Project M Game Bridge
* @homepage http://projectmgame.com/en/
* @description Returns the newest articles.
* @maintainer corenting
*/
class ProjectMGameBridge extends BridgeAbstract{

  public function collectData(array $param){
    $html = '';
    $html = file_get_html('http://projectmgame.com/en/') or $this->returnError('Error while downloading the Project M homepage', 404);

    foreach($html->find('article') as $article) {
      $item = new \Item();
      $item->uri = 'http://projectmgame.com/en/'.$article->find('section div.info_block a',0)->href;
      $item->title = $article->find('h1 p',0)->innertext;

      $p_list = $article->find('section p');
      $content = '';
      foreach($p_list as $p) $content .= $p->innertext;
      $item->content = $content;

      // get publication date
      $str_date = $article->find('section div.info_block a',0)->innertext;
      $item->timestamp = strtotime($str_date);
      $this->items[] = $item;
    }
  }

  public function getName(){
    return 'Project M Game Bridge';
  }

  public function getURI(){
    return 'http://projectmgame.com/en/';
  }

  public function getCacheDuration(){
    return 10800; //3 hours
  }
}
{'fraction_non_alphanumeric': 0.16798732171156894, 'fraction_numerical': 0.01624405705229794, 'mean_word_length': 3.2153589315525877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4097175', 'n_tokens_mistral': 836, 'n_tokens_neox': 790, 'n_words': 183}