<commit_before><?php
class Station extends ModelEx {
  
  
  function __construct($oid=0,$cid=0) {
    parent::__construct('OID','CID','t_station'); 
    $this->rs['OID'] = $oid;
    $this->rs['CID'] = $cid;
    $this->rs['typeId'] = -1;
    $this->rs['tag'] = ""; 
    if ($oid && $cid)
    $this->retrieve($oid,$cid);
  }
  
  // map the given typeId into its text falue
  static function getTypeAsText($typeId) {
  	$stationType = new StationType($typeId,-1);
  	return $stationType->get('name');
  } 
  
  // fetch the Station object for the given skey
  static function getFromTag($tag) {
  	$station = new Station();
  	return $station->retrieve_one("tag=?", $tag);
  }
  static function getRegistrationStation() {
  	return getFromTag("reg01");
  }
  // for brata testing only
  static function getAllAsHTMLOptions($itemSelected=-1) {<commit_msg>Fixed static member function reference that was not resolving.<commit_after><?php
class Station extends ModelEx {
  
  
  function __construct($oid=0,$cid=0) {
    parent::__construct('OID','CID','t_station'); 
    $this->rs['OID'] = $oid;
    $this->rs['CID'] = $cid;
    $this->rs['typeId'] = -1;
    $this->rs['tag'] = ""; 
    if ($oid && $cid)
    $this->retrieve($oid,$cid);
  }
  
  // map the given typeId into its text falue
  static function getTypeAsText($typeId) {
  	$stationType = new StationType($typeId,-1);
  	return $stationType->get('name');
  } 
  
  // fetch the Station object for the given skey
  static function getFromTag($tag) {
  	$station = new Station();
  	return $station->retrieve_one("tag=?", $tag);
  }
  static function getRegistrationStation() {
    return Station::getFromTag("reg01");
  }
  // for brata testing only
  static function getAllAsHTMLOptions($itemSelected=-1) {
{'fraction_non_alphanumeric': 0.16940509915014165, 'fraction_numerical': 0.00793201133144476, 'mean_word_length': 3.7093333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?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': '504870', 'n_tokens_mistral': 605, 'n_tokens_neox': 595, 'n_words': 136}