<commit_before><?php
/*
 * Plugin class
 *
 */
class PluginsfGuardUserTable extends Doctrine_Table
{
	  # should this be a static function?
    static public function retrieveByUsername( $username, $isActive = true )
    {
      $query = new Doctrine_Query();
      return $query->from('sfGuardUser u')->where( 'u.username = ? AND u.is_active = ?', array( $username, $isActive ) )->execute()->getFirst();
    }

		static function retrieveByUsernameOrEmailAddress($usernameOrEmail)
		{
		  throw new Exception('Override this function in your sfGuardUserTable class so it queries for the user based on the username or email address');
		}
}<commit_msg>cleanup<commit_after><?php
/*
 * Plugin class
 *
 */
class PluginsfGuardUserTable extends Doctrine_Table
{
  static public function retrieveByUsername( $username, $isActive = true )
  {
    return Doctrine_Query::create()->from('sfGuardUser u')->where( 'u.username = ? AND u.is_active = ?', array( $username, $isActive ) )->execute()->getFirst();
  }

  static function retrieveByUsernameOrEmailAddress($usernameOrEmail)
  {
    throw new Exception('Override this function in your sfGuardUserTable class so it queries for the user based on the username or email address');
  }
}
{'fraction_non_alphanumeric': 0.11400651465798045, 'fraction_numerical': 0.0, 'mean_word_length': 4.511210762331839, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6075028', 'n_tokens_mistral': 350, 'n_tokens_neox': 340, 'n_words': 107}