<commit_before><?php

include_once(dmOs::join(sfConfig::get('dm_core_dir'), 'modules/dmInterface/lib/BasedmInterfaceComponents.php'));

class dmInterfaceComponents extends BasedmInterfaceComponents
{

  public function executeToolBar()
  {
    $this->menu = $this->getService('admin_menu')->build();

    if ($this->getI18n()->hasManyCultures())
    {
      $cultures = array();

      foreach($this->getI18n()->getCultures() as $key)
      {
        $cultures[$key] = sfCultureInfo::getInstance($key)->getLanguage($key);
      }
    
      $this->cultureSelect = new sfWidgetFormSelect(array('choices' => $cultures));
    }
  }
}<commit_msg>added admin tool bar menu component<commit_after><?php

include_once(dmOs::join(sfConfig::get('dm_core_dir'), 'modules/dmInterface/lib/BasedmInterfaceComponents.php'));

class dmInterfaceComponents extends BasedmInterfaceComponents
{

  public function executeToolBar()
  {
    if ($this->getI18n()->hasManyCultures())
    {
      $cultures = array();

      foreach($this->getI18n()->getCultures() as $key)
      {
        $cultures[$key] = sfCultureInfo::getInstance($key)->getLanguage($key);
      }
    
      $this->cultureSelect = new sfWidgetFormSelect(array('choices' => $cultures));
    }
  }

  public function executeToolBarMenu()
  {
    $this->menu = $this->getService('admin_menu')->build();
  }
}
{'fraction_non_alphanumeric': 0.164079822616408, 'fraction_numerical': 0.005912786400591279, 'mean_word_length': 4.2684824902723735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '373292', 'n_tokens_mistral': 437, 'n_tokens_neox': 419, 'n_words': 58}