<commit_before><?php

namespace SearchApi\Models;

/**
 * Class SearchTerm - A search term is a basic unit that will be used to build a query for
 * Search providers.
 */
class SearchTerm {
  public $value;          // (string)     This will be a keyword from NerTagger, location from ReverseGeocoder, etc.
  public $category;       // (string)     Category as string: 'location', 'person', 'organization', etc.
  public $related;        // (string[])   Array of related keywords
  public $count;          // (int)        Occurences of keyword
  public $isUserInput;    // (bool)       TRUE if term is a user-specified keyword, FALSE if it is not

  function __construct( $value, $category, $related, $count, $isUserInput ) {
    $this->value = $value;
    $this->category = $category;
    $this->related = $related;
    $this->count = $count;
    $this->isUserInput = $isUserInput;
  }
}<commit_msg>Add phpdoc-style comments to SearchTerm<commit_after><?php

namespace SearchApi\Models;

/**
 * Class SearchTerm - A search term is a basic unit that will be used to build a query for
 * Search providers.
 *
 * @var $value       string      This will be a keyword from NerTagger, location from ReverseGeocoder, etc.
 * @var $category    string      'location', 'person', 'organization', etc.
 * @var $related     string[]    Array of related keywords
 * @var $count       int         Occurences of keyword
 * @var $isUserInput bool        TRUE if term is a user-specified keyword, FALSE if it is not
 */
class SearchTerm {
  public $value;
  public $category;
  public $related;
  public $count;
  public $isUserInput;

  function __construct( $value, $category, $related, $count, $isUserInput ) {
    $this->value = $value;
    $this->category = $category;
    $this->related = $related;
    $this->count = $count;
    $this->isUserInput = $isUserInput;
  }
}
{'fraction_non_alphanumeric': 0.11505376344086021, 'fraction_numerical': 0.0, 'mean_word_length': 2.9935622317596566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4482011', 'n_tokens_mistral': 549, 'n_tokens_neox': 540, 'n_words': 199}