<commit_before><?php
class sfWidgetFormTextareaTinyMCEPost extends sfWidgetFormTextareaTinyMCE
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);
    $this->addOption('config',
            'plugins : "emotions, preview, advimage, advlink, pagebreak, syntaxhl, preelementfix",
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,emotions",
            theme_advanced_buttons2 : "undo,redo,link,unlink,image,code,syntaxhl,pagebreak,preview",
            theme_advanced_buttons3 : "",
            theme_advanced_disable  : "anchor,cleanup,help",
            extended_valid_elements : "textarea[cols|rows|disabled|name|readonly|class]",
            remove_linebreaks       : false,
            file_browser_callback   : "sfAssetsLibrary.fileBrowserCallBack"'
          );
  }

  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    return parent::render($name, $value ? htmlentities($value) : $value, $attributes, $errors);
  }
  
  public function  getJavaScripts()
  {
    return array('/js/tiny_mce/tiny_mce.js');
  }
}<commit_msg>allow tinymce to return full url<commit_after><?php
class sfWidgetFormTextareaTinyMCEPost extends sfWidgetFormTextareaTinyMCE
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);
    $this->addOption('config',
            'plugins : "emotions, preview, advimage, advlink, pagebreak, syntaxhl, preelementfix",
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,emotions",
            theme_advanced_buttons2 : "undo,redo,link,unlink,image,code,syntaxhl,pagebreak,preview",
            theme_advanced_buttons3 : "",
            theme_advanced_disable  : "anchor,cleanup,help",
            extended_valid_elements : "textarea[cols|rows|disabled|name|readonly|class]",
            remove_linebreaks       : false,
            remove_script_host      : false,
            relative_urls           : false,
            file_browser_callback   : "sfAssetsLibrary.fileBrowserCallBack"'
          );
  }

  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    return parent::render($name, $value ? htmlentities($value) : $value, $attributes, $errors);
  }
  
  public function  getJavaScripts()
  {
    return array('/js/tiny_mce/tiny_mce.js');
  }
}
{'fraction_non_alphanumeric': 0.12560747663551403, 'fraction_numerical': 0.0022429906542056075, 'mean_word_length': 4.03954802259887, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1211714', 'n_tokens_mistral': 822, 'n_tokens_neox': 793, 'n_words': 121}