<commit_before><?php
/**
 * sfPropelActAsCommentableBehaviorPlugin actions. Feel free to override this
 * class in your dedicated app module.
 * 
 * @package    plugins
 * @subpackage comment 
 * @author     <NAME> <<EMAIL>>
 * @link       http://trac.symfony-project.com/trac/wiki/sfPropelActAsCommentableBehaviorPlugin
 */
class sfCommentAdminActions extends autoSfCommentAdminActions
{ 
}
<commit_msg>sfPropelActAsCommentableBehaviorPlugin: fixed bug : when saving a comment from the admin panel, the author id was set to 0 even if the field was let empty.<commit_after><?php
/**
 * sfPropelActAsCommentableBehaviorPlugin actions. Feel free to override this
 * class in your dedicated app module.
 * 
 * @package    plugins
 * @subpackage comment 
 * @author     <NAME> <<EMAIL>>
 * @link       http://trac.symfony-project.com/trac/wiki/sfPropelActAsCommentableBehaviorPlugin
 */
class sfCommentAdminActions extends autoSfCommentAdminActions
{
  protected function updatesfCommentFromRequest()
  {
    parent::updatesfCommentFromRequest();
    $sf_comment = $this->getRequestParameter('sf_comment');

    if (isset($sf_comment['author_id']) && $sf_comment['author_id'] == '')
    {
      $this->sf_comment->setAuthorId(null);
    }
  }
}

{'fraction_non_alphanumeric': 0.10717163577759871, 'fraction_numerical': 0.0008058017727639, 'mean_word_length': 4.447368421052632, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '5904249', 'n_tokens_mistral': 365, 'n_tokens_neox': 360, 'n_words': 88}