<commit_before><?php
/**
 * S7Ncms - www.s7n.de
 *
 * Copyright (c) 2007-2008, <NAME> <eduard at baun.de>
 * All rights reserved.
 *
 * See license.txt for full text and disclaimer
 *
 * @author <NAME> <eduard at baun.de>
 * @copyright <NAME>, 2007-2008
 * @version $Id$
 */
class View extends View_Core {
  public function set_filename($name, $type = NULL) {
    $theme = Kohana::config('filebrowser.theme');
    if (Kohana::find_file('../../themes/'.$theme.'/', $name))
      parent::set_filename('../../themes/'.$theme.'/'.$name, $type);
    elseif (Kohana::find_file('../../themes/default/', $name))
      parent::set_filename('../../themes/default/'.$name, $type);
    else
      parent::set_filename('../../themes/'.$theme.'/'.$name, $type);
    return $this;
  }

  public function get_view_url() {
    $theme = Kohana::config('filebrowser.theme');
    return "/themes/".$theme;
  }
}<commit_msg>Updated description<commit_after><?php
/**
 *
 * Based on code found on Kohana Forums
 *
 */
class View extends View_Core {
  public function set_filename($name, $type = NULL) {
    $theme = Kohana::config('filebrowser.theme');
    if (Kohana::find_file('../../themes/'.$theme.'/', $name))
      parent::set_filename('../../themes/'.$theme.'/'.$name, $type);
    elseif (Kohana::find_file('../../themes/default/', $name))
      parent::set_filename('../../themes/default/'.$name, $type);
    else
      parent::set_filename('../../themes/'.$theme.'/'.$name, $type);
    return $this;
  }

  public function get_view_url() {
    $theme = Kohana::config('filebrowser.theme');
    return "/themes/".$theme;
  }
}
{'fraction_non_alphanumeric': 0.22518610421836227, 'fraction_numerical': 0.011166253101736972, 'mean_word_length': 3.178756476683938, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5884767', 'n_tokens_mistral': 563, 'n_tokens_neox': 543, 'n_words': 105}