<commit_before><?php

/**
 * PluginrtShopOrderTable
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class PluginrtShopOrderTable extends Doctrine_Table
{
    /**
     * Returns an instance of this class.
     *
     * @return object PluginrtShopOrderTable
     */
    public static function getInstance()
    {
        return Doctrine_Core::getTable('PluginrtShopOrder');
    }
}<commit_msg>Added query for status restriction<commit_after><?php

/**
 * PluginrtShopOrderTable
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class PluginrtShopOrderTable extends Doctrine_Table
{
  /**
   * Returns an instance of this class.
   *
   * @return object PluginrtShopOrderTable
   */
  public static function getInstance()
  {
    return Doctrine_Core::getTable('PluginrtShopOrder');
  }

  /**
   * Return a query that checks that status is set to paid
   *
   * @return Doctrine_Query
   */
  public function getPaidRestrictionQuery(Doctrine_Query $q = null)
  {
    $q = $this->getQuery($q);
    $q->andWhere('o.status = ?', rtShopOrder::STATUS_PAID);
    return $q;
  }

  /**
   * Returns a Doctrine_Query object.
   *
   * @param Doctrine_Query $q
   * @return Doctrine_Query
   */
  public function getQuery(Doctrine_Query $q = null)
  {
    if (is_null($q))
    {
      $q = $this->getQueryObject()->from($this->getComponentName() .' o');
    }

    return $q;
  }
}
{'fraction_non_alphanumeric': 0.11376404494382023, 'fraction_numerical': 0.0, 'mean_word_length': 3.1184971098265897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5211523', 'n_tokens_mistral': 457, 'n_tokens_neox': 443, 'n_words': 111}