<commit_before><?php
/**
 * Created by PhpStorm.
 * User: tom.kay
 * Date: 18/09/13
 * Time: 14:33
 */

namespace Qubes\Defero\Components\DataSource;

final class DataSourceCollection
{
  private static $_dataSources = [];

  public static function setDataSources(array $sources)
  {
    self::$_dataSources = $sources;
  }

  public static function addDataSource($ident, IDataSource $source)
  {
    self::$_dataSources[$ident] = $source;
  }

  public static function getDataSource($ident)
  {
    return self::$_dataSources[$ident];<commit_msg>type hinting<commit_after><?php
/**
 * Created by PhpStorm.
 * User: tom.kay
 * Date: 18/09/13
 * Time: 14:33
 */

namespace Qubes\Defero\Components\DataSource;

final class DataSourceCollection
{
  /**
   * @var IDataSource[]
   */
  private static $_dataSources = [];

  public static function setDataSources(array $sources)
  {
    self::$_dataSources = $sources;
  }

  public static function addDataSource($ident, IDataSource $source)
  {
    self::$_dataSources[$ident] = $source;
  }

  public static function getDataSource($ident)
  {
    return self::$_dataSources[$ident];
{'fraction_non_alphanumeric': 0.13197519929140833, 'fraction_numerical': 0.01771479185119575, 'mean_word_length': 4.067264573991031, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3139231', 'n_tokens_mistral': 373, 'n_tokens_neox': 348, 'n_words': 80}