<commit_before><?php

// PEAR Packages
require_once('Log.php');
require_once('HTTP/Request2.php');

// Internal
require_once('PodioOAuth.php');
require_once('notification/notification.class.inc.php');
require_once('status/status.class.inc.php');
require_once('conversation/conversation.class.inc.php');
require_once('task/task.class.inc.php');
require_once('app/app.class.inc.php');
require_once('item/item.class.inc.php');
require_once('comment/comment.class.inc.php');
require_once('user/user.class.inc.php');
require_once('rating/rating.class.inc.php');
require_once('space/space.class.inc.php');
require_once('org/org.class.inc.php');
require_once('contact/contact.class.inc.php');
require_once('subscription/subscription.class.inc.php');
require_once('file/file.class.inc.php');
require_once('calendar/calendar.class.inc.php');
require_once('search/search.class.inc.php');
require_once('stream/stream.class.inc.php');
require_once('app_store/app_store.class.inc.php');
require_once('tag/tag.class.inc.php');
require_once('bulletin/bulletin.class.inc.php');
require_once('widget/widget.class.inc.php');
require_once('filter/filter.class.inc.php');
require_once('form/form.class.inc.php');
require_once('integration/integration.class.inc.php');
require_once('importer/importer.class.inc.php');
require_once('hook/hook.class.inc.php');
require_once('news/news.class.inc.php');

/**
 * Primary Podio API implementation class. This is merely a container for 
 * the specific API areas.
 */
class PodioAPI {

  /**
   * Reference to PodioBaseAPI instance
   */
  public $api;
  /**
   * Reference to PodioNotificationAPI instance
   */
  public $notification;
  /**
   * Reference to PodioConversationAPI instance
   */
  public $conversation;
  /**
   * Reference to PodioStatusAPI instance
   */
  public $status;
  /**
   * Reference to PodioTaskAPI instance
   */
  public $task;
  /**
   * Reference to PodioAppAPI instance
   */
  public $app;
  /**
   * Reference to PodioItemAPI instance
   */
  public $item;
  /**
   * Reference to PodioUserAPI instance
   */
  public $user;
  /**
   * Reference to PodioCommentAPI instance
   */
  public $comment;
  /**
   * Reference to PodioRatingAPI instance
   */
  public $rating;
  /**
   * Reference to PodioSpaceAPI instance
   */
  public $space;
  /**
   * Reference to PodioOrgAPI instance
   */
  public $org;
  /**
   * Reference to PodioContactAPI instance
   */
  public $contact;
  /**
   * Reference to PodioSubscriptionAPI instance
   */
  public $subscription;
  /**
   * Reference to PodioFileAPI instance
   */
  public $file;
  /**
   * Reference to PodioCalendarAPI instance
   */
  public $calendar;
  /**
   * Reference to PodioSearchAPI instance
   */
  public $search;
  /**
   * Reference to PodioStreamAPI instance
   */
  public $stream;
  /**
   * Reference to PodioAppStoreAPI instance
   */
  public $app_store;
  /**
   * Reference to PodioTagAPI instance
   */
  public $tag;
  /**
   * Reference to PodioBulletinAPI instance
   */
  public $bulletin;
  /**
   * Reference to PodioWidgetAPI instance
   */
  public $widget;
  /**
   * Reference to PodioFilterAPI instance
   */
  public $filter;
  /**
   * Reference to PodioFormAPI instance
   */
  public $form;
  /**
   * Reference to PodioIntegrationAPI instance
   */
  public $integration;
  /**
   * Reference to PodioImporterAPI instance
   */
  public $importer;
  /**
   * Reference to PodioHookAPI instance
   */
  public $hook;

  public function __construct() {
    $this->api = PodioBaseAPI::instance();
    $this->notification = new PodioNotificationAPI();
    $this->conversation = new PodioConversationAPI();
    $this->status = new PodioStatusAPI();
    $this->task = new PodioTaskAPI();
    $this->app = new PodioAppAPI();
    $this->item = new PodioItemAPI();
    $this->user = new PodioUserAPI();
    $this->comment = new PodioCommentAPI();
    $this->rating = new PodioRatingAPI();
    $this->space = new PodioSpaceAPI();
    $this->org = new PodioOrgAPI();
    $this->contact = new PodioContactAPI();
    $this->subscription = new PodioSubscriptionAPI();
    $this->file = new PodioFileAPI();
    $this->calendar = new PodioCalendarAPI();
    $this->search = new PodioSearchAPI();
    $this->stream = new PodioStreamAPI();
    $this->app_store = new PodioAppStoreAPI();
    $this->tag = new PodioTagAPI();
    $this->bulletin = new PodioBulletinAPI();
    $this->widget = new PodioWidgetAPI();
    $this->filter = new PodioFilterAPI();
    $this->form = new PodioFormAPI();
    $this->integration = new PodioIntegrationAPI();
    $this->importer = new PodioImporterAPI();
    $this->hook = new PodioHookAPI();
  }
}

/**
 * A Singleton class that handles all communication with the API server.
 */
class PodioBaseAPI {
  
  /**
   * URL for the API server
   */
  protected $url;
  /**
   * OAuth client id
   */
  protected $client_id;
  /**
   * OAuth client secret
   */
  protected $secret;
  /**
   * Contains the last error message from the API server
   */
  protected $last_error;<commit_msg>Added news area<commit_after><?php

// PEAR Packages
require_once('Log.php');
require_once('HTTP/Request2.php');

// Internal
require_once('PodioOAuth.php');
require_once('notification/notification.class.inc.php');
require_once('status/status.class.inc.php');
require_once('conversation/conversation.class.inc.php');
require_once('task/task.class.inc.php');
require_once('app/app.class.inc.php');
require_once('item/item.class.inc.php');
require_once('comment/comment.class.inc.php');
require_once('user/user.class.inc.php');
require_once('rating/rating.class.inc.php');
require_once('space/space.class.inc.php');
require_once('org/org.class.inc.php');
require_once('contact/contact.class.inc.php');
require_once('subscription/subscription.class.inc.php');
require_once('file/file.class.inc.php');
require_once('calendar/calendar.class.inc.php');
require_once('search/search.class.inc.php');
require_once('stream/stream.class.inc.php');
require_once('app_store/app_store.class.inc.php');
require_once('tag/tag.class.inc.php');
require_once('bulletin/bulletin.class.inc.php');
require_once('widget/widget.class.inc.php');
require_once('filter/filter.class.inc.php');
require_once('form/form.class.inc.php');
require_once('integration/integration.class.inc.php');
require_once('importer/importer.class.inc.php');
require_once('hook/hook.class.inc.php');
require_once('news/news.class.inc.php');

/**
 * Primary Podio API implementation class. This is merely a container for 
 * the specific API areas.
 */
class PodioAPI {

  /**
   * Reference to PodioBaseAPI instance
   */
  public $api;
  /**
   * Reference to PodioNotificationAPI instance
   */
  public $notification;
  /**
   * Reference to PodioConversationAPI instance
   */
  public $conversation;
  /**
   * Reference to PodioStatusAPI instance
   */
  public $status;
  /**
   * Reference to PodioTaskAPI instance
   */
  public $task;
  /**
   * Reference to PodioAppAPI instance
   */
  public $app;
  /**
   * Reference to PodioItemAPI instance
   */
  public $item;
  /**
   * Reference to PodioUserAPI instance
   */
  public $user;
  /**
   * Reference to PodioCommentAPI instance
   */
  public $comment;
  /**
   * Reference to PodioRatingAPI instance
   */
  public $rating;
  /**
   * Reference to PodioSpaceAPI instance
   */
  public $space;
  /**
   * Reference to PodioOrgAPI instance
   */
  public $org;
  /**
   * Reference to PodioContactAPI instance
   */
  public $contact;
  /**
   * Reference to PodioSubscriptionAPI instance
   */
  public $subscription;
  /**
   * Reference to PodioFileAPI instance
   */
  public $file;
  /**
   * Reference to PodioCalendarAPI instance
   */
  public $calendar;
  /**
   * Reference to PodioSearchAPI instance
   */
  public $search;
  /**
   * Reference to PodioStreamAPI instance
   */
  public $stream;
  /**
   * Reference to PodioAppStoreAPI instance
   */
  public $app_store;
  /**
   * Reference to PodioTagAPI instance
   */
  public $tag;
  /**
   * Reference to PodioBulletinAPI instance
   */
  public $bulletin;
  /**
   * Reference to PodioWidgetAPI instance
   */
  public $widget;
  /**
   * Reference to PodioFilterAPI instance
   */
  public $filter;
  /**
   * Reference to PodioFormAPI instance
   */
  public $form;
  /**
   * Reference to PodioIntegrationAPI instance
   */
  public $integration;
  /**
   * Reference to PodioImporterAPI instance
   */
  public $importer;
  /**
   * Reference to PodioHookAPI instance
   */
  public $hook;
  /**
   * Reference to PodioNewsAPI instance
   */
  public $news;


  public function __construct() {
    $this->api = PodioBaseAPI::instance();
    $this->notification = new PodioNotificationAPI();
    $this->conversation = new PodioConversationAPI();
    $this->status = new PodioStatusAPI();
    $this->task = new PodioTaskAPI();
    $this->app = new PodioAppAPI();
    $this->item = new PodioItemAPI();
    $this->user = new PodioUserAPI();
    $this->comment = new PodioCommentAPI();
    $this->rating = new PodioRatingAPI();
    $this->space = new PodioSpaceAPI();
    $this->org = new PodioOrgAPI();
    $this->contact = new PodioContactAPI();
    $this->subscription = new PodioSubscriptionAPI();
    $this->file = new PodioFileAPI();
    $this->calendar = new PodioCalendarAPI();
    $this->search = new PodioSearchAPI();
    $this->stream = new PodioStreamAPI();
    $this->app_store = new PodioAppStoreAPI();
    $this->tag = new PodioTagAPI();
    $this->bulletin = new PodioBulletinAPI();
    $this->widget = new PodioWidgetAPI();
    $this->filter = new PodioFilterAPI();
    $this->form = new PodioFormAPI();
    $this->integration = new PodioIntegrationAPI();
    $this->importer = new PodioImporterAPI();
    $this->hook = new PodioHookAPI();
    $this->news = new PodioNewsAPI();
  }
}

/**
 * A Singleton class that handles all communication with the API server.
 */
class PodioBaseAPI {
  
  /**
   * URL for the API server
   */
  protected $url;
  /**
   * OAuth client id
   */
  protected $client_id;
  /**
   * OAuth client secret
   */
  protected $secret;
  /**
   * Contains the last error message from the API server
   */
  protected $last_error;
{'fraction_non_alphanumeric': 0.14498286833088594, 'fraction_numerical': 0.0001957905041605482, 'mean_word_length': 3.4964788732394365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 58, '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': '3891616', 'n_tokens_mistral': 3257, 'n_tokens_neox': 3246, 'n_words': 684}