<commit_before><?php
  /**
   * A class
   * 
   * @author <NAME> <<EMAIL>>
   */
  
  class A
  {
    /**
     * Load a generic PHP file once and only once
     * 
     * @access public
     * @param string $path the absolute or relative path to the file
     * @return void
     */
    public function ld($path)
    {
      if(! isset($GLOBALS['included'][$path])){
	    # Security check
        if( substr($path,-4,4) != '.php' ){ $path .= '.php';}
        if( APP_DEBUG ){ clearstatcache();}
		
        require($path);
        $GLOBALS['included'][$path] = true;
	  }
	} 

    /**
     * Get an instance of an application view class
     * 
	 * @access public
     * @param string $view the name of the view class
     * @param object $model Model object
     * @param string $group the group name
     * @return object $obj an instance of the view class
     */
    public function mkview($view, $data = null, $group = 'this')
    {
	  if( 'this' == $group ){
	    global $thisgrp;
		$group = $thisgrp;
	  }

	  # Absolute path to the view file
      $path = AEOLUS_HOME."/app/$group/view/$view.php";

      if( APP_DEBUG ){ clearstatcache();}
      $obj = null;
	  
      if( file_exists($path)){
	    # Load related classes
        self::ld('kernel/AView.php');
        self::ld($path);
<commit_msg>Fixed a bug in A::ld() function<commit_after><?php
  /**
   * A class
   * 
   * @author <NAME> <<EMAIL>>
   */
  
  class A
  {
    /**
	 * Loaded files
	 *
	 * @access private
	 */
	private static $loaded = array();
    /**
     * Load a generic PHP file once and only once
     * 
     * @access public
     * @param string $path the absolute or relative path to the file
     * @return void
     */
    public function ld($path)
    {
	  if(! in_array($path, self::$loaded) ){
	    # Security check
        $spath = (substr($path,-4,4) == '.php') ? $path : $path .='.php';
        require($spath);
		self::$loaded[] = $path;
	  }
	} 

    /**
     * Get an instance of an application view class
     * 
	 * @access public
     * @param string $view the name of the view class
     * @param object $model Model object
     * @param string $group the group name
     * @return object $obj an instance of the view class
     */
    public function mkview($view, $data = null, $group = 'this')
    {
	  if( 'this' == $group ){
	    global $thisgrp;
		$group = $thisgrp;
	  }

	  # Absolute path to the view file
      $path = AEOLUS_HOME."/app/$group/view/$view.php";

      if( APP_DEBUG ){ clearstatcache();}
      $obj = null;
	  
      if( file_exists($path)){
	    # Load related classes
        self::ld('kernel/AView.php');
        self::ld($path);

{'fraction_non_alphanumeric': 0.14838467317806162, 'fraction_numerical': 0.0015026296018031556, 'mean_word_length': 2.129259694477086, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '1289148', 'n_tokens_mistral': 889, 'n_tokens_neox': 844, 'n_words': 258}