<commit_before><?php

class opDiaryPluginUtil
{
  public static function sendNotification($fromMember, $toMember, $diaryId){
    $rootPath = sfContext::getInstance()->getRequest()->getRelativeUrlRoot();
    $url = $rootPath.'/diary/'.$diaryId;
    
    sfApplicationConfiguration::getActive()->loadHelpers(array('I18N'));
    $message = format_number_choice('[1]1 diary has new comments|(1,Inf]%1% diaries have new comments', array('%1%'=>'1'), 1);
    
    opNotificationCenter::notify($fromMember, $toMember, $message, array('category'=>'other', 'url'=>$url, 'icon_url'=>null));
  }
}<commit_msg>notification bug fix.<commit_after><?php

class opDiaryPluginUtil
{
  public static function sendNotification($fromMember, $toMember, $diaryId){
    $url = '/diary/'.$diaryId;
    
    sfApplicationConfiguration::getActive()->loadHelpers(array('I18N'));
    $message = format_number_choice('[1]1 diary has new comments|(1,Inf]%1% diaries have new comments', array('%1%'=>'1'), 1);
    
    opNotificationCenter::notify($fromMember, $toMember, $message, array('category'=>'other', 'url'=>$url, 'icon_url'=>null));
  }
}
{'fraction_non_alphanumeric': 0.1863799283154122, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 6.348684210526316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1769412', 'n_tokens_mistral': 352, 'n_tokens_neox': 356, 'n_words': 64}