<commit_before><?php namespace Hyperized\Wefact;

class WefactAPI {

  private   $response;
  private   $mode;      // Set the sendRequest 'mode' based on inhenited classname
  protected $parentName = 'Hyperized\Wefact\WefactAPI';

  public function __construct()
  {
    // Check if mode is set by extended class, if not fall back to naming
    if(!isset($this->mode)) {
      // Set mode to classname, strip namespaces :)
      $function_call = explode('\\', strtolower(get_class($this)));
      $this->mode = last($function_call);
    }
  }

  public function __call($method, $arguments)
  {
    // Rename functions from inhented instances from method to _method for internal use.
    if(get_class($this) != $this->parentName) {
      if(in_array($method, $this->allowed)) {
        $methodName = '_'.$method;
        if(method_exists($this, $methodName)) {
          return call_user_func_array([$this,$methodName], [$arguments]);
        }
      }
      else
      {
        $error = 'No such method: '.get_class($this).'::'.$method;<commit_msg>Update WeFactAPI.php<commit_after><?php namespace Hyperized\Wefact;

class WefactAPI {

  private   $response;
  private   $mode;      // Set the sendRequest 'mode' based on inhenited classname
  protected $parentName = 'Hyperized\Wefact\WefactAPI';

  public function __construct()
  {
    // Check if mode is set by extended class, if not fall back to naming
    if(!isset($this->mode)) {
      // Set mode to classname, strip namespaces :)
      $function_call = explode('\\', strtolower(get_class($this)));
      $this->mode = last($function_call);
    }
  }

  public function __call($method, $arguments)
  {
    // Rename functions from inhented instances from method to _method for internal use.
    if(get_class($this) != $this->parentName) {
      if(in_array($method, $this->allowed)) {
        $methodName = '_'.$method;
        if(method_exists($this, $methodName)) {
          return call_user_func_array([$this,$methodName], $arguments);
        }
      }
      else
      {
        $error = 'No such method: '.get_class($this).'::'.$method;
{'fraction_non_alphanumeric': 0.13729216152019003, 'fraction_numerical': 0.0, 'mean_word_length': 3.042226487523992, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '504379', 'n_tokens_mistral': 649, 'n_tokens_neox': 640, 'n_words': 164}