<commit_before><?php
	#
	# $Id: freshports_page_list_ports.php,v 1.2 2006-12-17 11:55:53 dan Exp $
	#
	# Copyright (c) 2005-2006 DVL Software Limited
	#

	require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/freshports_page.php');
	require_once('Pager/Pager.php');

class freshports_page_list_ports extends freshports_page {

	var $User;
	var $Branch;

	var $_sql;
	var $_description;
	var $_port_status = PORT_STATUS_ACTIVE;  # show only active ports

	var $_result;
	var $_condition   = '';   # any conditions on the SQL

	var $_pager;				# if set, a Pager::Pager() object
						# set 'pager' in the attributes

						
	# if either of these two are set, it implies a pager is required
	var $_pageSize    = 100;	# max number of items per page.
	var $_pageNumber  = 1;		# the page number to display now

	function __construct($attributes = array()) {
		$this->freshports_page($attributes);

		GLOBAL $User;
		$this->User = $User;
		$this->Branch = BRANCH_HEAD;

		$page_number = 1;
		if (IsSet($_REQUEST['page'])) {
			$page_number = intval($_REQUEST['page']);
			if ($page_number != $_REQUEST['page']) {
				$page_number = 1;
			}
		}

		$this->setPageNumber($page_number);
	}

        protected function _FROM_CLAUSE() {
          $_FROM_CLAUSE = "FROM element, categories, ports_vulnerable PV RIGHT OUTER JOIN ports                   ON PV.port_id = ports.id
                                                                         LEFT  OUTER JOIN commit_log CL           ON ports.last_commit_id = CL.id
                                                                         LEFT  OUTER JOIN repo R                  ON CL.repo_id = R.id
                                                                         LEFT  OUTER JOIN commit_log_branches CLB ON CL.id            = CLB.commit_log_id<commit_msg>use parent::__construct for the parent construct<commit_after><?php
	#
	# $Id: freshports_page_list_ports.php,v 1.2 2006-12-17 11:55:53 dan Exp $
	#
	# Copyright (c) 2005-2006 DVL Software Limited
	#

	require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/freshports_page.php');
	require_once('Pager/Pager.php');

class freshports_page_list_ports extends freshports_page {

	var $User;
	var $Branch;

	var $_sql;
	var $_description;
	var $_port_status = PORT_STATUS_ACTIVE;  # show only active ports

	var $_result;
	var $_condition   = '';   # any conditions on the SQL

	var $_pager;				# if set, a Pager::Pager() object
						# set 'pager' in the attributes

						
	# if either of these two are set, it implies a pager is required
	var $_pageSize    = 100;	# max number of items per page.
	var $_pageNumber  = 1;		# the page number to display now

	function __construct($attributes = array()) {
		parent::__construct($attributes);

		GLOBAL $User;
		$this->User = $User;
		$this->Branch = BRANCH_HEAD;

		$page_number = 1;
		if (IsSet($_REQUEST['page'])) {
			$page_number = intval($_REQUEST['page']);
			if ($page_number != $_REQUEST['page']) {
				$page_number = 1;
			}
		}

		$this->setPageNumber($page_number);
	}

        protected function _FROM_CLAUSE() {
          $_FROM_CLAUSE = "FROM element, categories, ports_vulnerable PV RIGHT OUTER JOIN ports                   ON PV.port_id = ports.id
                                                                         LEFT  OUTER JOIN commit_log CL           ON ports.last_commit_id = CL.id
                                                                         LEFT  OUTER JOIN repo R                  ON CL.repo_id = R.id
                                                                         LEFT  OUTER JOIN commit_log_branches CLB ON CL.id            = CLB.commit_log_id
{'fraction_non_alphanumeric': 0.1010958904109589, 'fraction_numerical': 0.01643835616438356, 'mean_word_length': 2.0399666944213157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3001156', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1073, 'n_words': 304}