<commit_before><?php
/**
 * Helper functions for the loader scope
 *
 * PHP Version 5.3+
 * @author <NAME> <<EMAIL>>
 * @version $Revision$
 * @package Battlesuit
 * @subpackage loader
 */
namespace loader {
  const available = true;
  
  /**
   * Singleton accessor function
   *
   * @return Module
   */
  function Module() {
    return Module::instance();
  }
  
  /**
   * Imports a bunch of bundles by name
   * 
   */
  function import() {
    call_user_func_array(array(Module(), 'import_many'), func_get_args());
  }
  
  /**
   * Alias for loader\import
   * 
   */
  function load() {
    call_user_func_array('loader\import', func_get_args());
  }
  
  /**
   * Appends a lookup location for bundle imports
   *
   * @param string $dir
   */
  function import_from($dir) {
    Module()->import_from($dir);
  }
  
  /**
   * Appends a class/interface/trait definition with its file
   *
   * @param string $definition
   * @param string $file
   */
  function def($definition, $file) {
    Module()->def($definition, $file); 
  }
  
  /**
   * Appends a namespace with its corresponding directory
   *
   * @param string $namespace
   * @param string $dir
   */
  function scope($namespace, $dir) {
    Module()->scope($namespace, $dir);
  }
}
?><commit_msg>Added alias function load_from for import_from<commit_after><?php
/**
 * Helper functions for the loader scope
 *
 * PHP Version 5.3+
 * @author <NAME> <<EMAIL>>
 * @version $Revision$
 * @package Battlesuit
 * @subpackage loader
 */
namespace loader {
  const available = true;
  
  /**
   * Singleton accessor function
   *
   * @return Module
   */
  function Module() {
    return Module::instance();
  }
  
  /**
   * Imports a bunch of bundles by name
   * 
   */
  function import() {
    call_user_func_array(array(Module(), 'import_many'), func_get_args());
  }
  
  /**
   * Alias for loader\import
   * 
   */
  function load() {
    call_user_func_array('loader\import', func_get_args());
  }
  
  /**
   * Appends a lookup location for bundle imports
   *
   * @param string $dir
   */
  function import_from($dir) {
    Module()->import_from($dir);
  }
  
  /**
   * Alias for loader\import_from
   * 
   */
  function load_from($dir) {
    return import_from($dir);
  }
  
  /**
   * Appends a class/interface/trait definition with its file
   *
   * @param string $definition
   * @param string $file
   */
  function def($definition, $file) {
    Module()->def($definition, $file); 
  }
  
  /**
   * Appends a namespace with its corresponding directory
   *
   * @param string $namespace
   * @param string $dir
   */
  function scope($namespace, $dir) {
    Module()->scope($namespace, $dir);
  }
}
?>
{'fraction_non_alphanumeric': 0.14391967274079584, 'fraction_numerical': 0.0014875418371141688, 'mean_word_length': 2.7103448275862068, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '5182991', 'n_tokens_mistral': 881, 'n_tokens_neox': 871, 'n_words': 214}