<commit_before><?php
/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 20/05/2014
 * Time: 14:05
 */

namespace Packaged\Mappers;

interface IMapper
{
  /**
   * Load a mapper with a specific id
   *
   * @param mixed $id
   *
   * @return IMapper
   */
  public static function load($id);

  /**
   * @param array $criteria
   * @param null  $order
   * @param null  $limit
   * @param null  $offset
   *
   * @return IMapper[]
   */
  public static function loadWhere(
    array $criteria, $order = null, $limit = null, $offset = null
  );

  public function save();

  public function saveAsNew($newKey = null);

  public function reload();

  public function delete();

  public function id();
<commit_msg>Added docblocks to show methods that return $this<commit_after><?php
/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 20/05/2014
 * Time: 14:05
 */

namespace Packaged\Mappers;

interface IMapper
{
  /**
   * Load a mapper with a specific id
   *
   * @param mixed $id
   *
   * @return IMapper
   */
  public static function load($id);

  /**
   * @param array $criteria
   * @param null  $order
   * @param null  $limit
   * @param null  $offset
   *
   * @return IMapper[]
   */
  public static function loadWhere(
    array $criteria, $order = null, $limit = null, $offset = null
  );

  public function save();

  /**
   * @param $newKey
   *
   * @return $this
   */
  public function saveAsNew($newKey = null);

  /**
   * @return $this
   */
  public function reload();

  /**
   * @return $this
   */
  public function delete();

  public function id();

{'fraction_non_alphanumeric': 0.13860759493670885, 'fraction_numerical': 0.015189873417721518, 'mean_word_length': 2.6013667425968108, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5582777', 'n_tokens_mistral': 554, 'n_tokens_neox': 525, 'n_words': 159}