<commit_before><?php

//! @file DocOpts.php
//! @brief This file contains the DocOpts class.
//! @details
//! @author <NAME>


namespace ElephantOnCouch\Opt;


//! @brief To retrieve additional information about document, you can create a DocOpts instance and pass it as parameter
//! to the ElephantOnCouch <i>getDoc</i> method.
//! @nosubgrouping
class DocOpts {
  use \ElephantOnCouch\Properties;

  //! @name Properties
  //@{

  //! @brief Ignores the class name to avoid the creation of an instance of that class.
  //! @details When TRUE ignores the class name, previously saved in the special attribute 'doc_class', to avoid the
  //! creation of an instance of that particular class. You want use this property when the interpreter can't load class
  //! due to namespace resolution problem or because the class definition is missing.
  private $ignoreClassName = FALSE;

  //@}

  private $options = [];


  //! @brief Resets the options.
  public function reset() {
    unset($this->options);
    $this->options = [];
  }


  //! @brief Returns an associative array of the chosen options. Used internally by ElephantOnCouch <i>getDoc</i> method.
  //! @return associative array
  public function asArray() {
    return $this->options;
  }


  public function setIgnoreClassName($value) {
    $this->ignoreClassName = (boolean)$value;
  }


  public function getIgnoreClassName() {
    return $this->ignoreClassName;
  }


  //! @brief Includes information about the encoding of each document's attachments.<commit_msg>now derive from the superclass AbstractOpts<commit_after><?php

//! @file DocOpts.php
//! @brief This file contains the DocOpts class.
//! @details
//! @author <NAME>


namespace ElephantOnCouch\Opt;


use ElephantOnCouch\Opt\AbstractOpts;


//! @brief To retrieve additional information about document, you can create a DocOpts instance and pass it as parameter
//! to the ElephantOnCouch <i>getDoc</i> method.
//! @nosubgrouping
class DocOpts extends AbstractOpts {
  use \ElephantOnCouch\Properties;

  //! @name Properties
  //@{

  //! @brief Ignores the class name to avoid the creation of an instance of that class.
  //! @details When TRUE ignores the class name, previously saved in the special attribute 'doc_class', to avoid the
  //! creation of an instance of that particular class. You want use this property when the interpreter can't load class
  //! due to namespace resolution problem or because the class definition is missing.
  private $ignoreClassName = FALSE;

  //@}


  public function setIgnoreClassName($value) {
    $this->ignoreClassName = (boolean)$value;
  }


  public function getIgnoreClassName() {
    return $this->ignoreClassName;
  }


  //! @brief Includes information about the encoding of each document's attachments.
{'fraction_non_alphanumeric': 0.10010764262648009, 'fraction_numerical': 0.0, 'mean_word_length': 3.6857142857142855, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 18, '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': '506140', 'n_tokens_mistral': 776, 'n_tokens_neox': 728, 'n_words': 304}