<commit_before><?php
	#
	# $Id: port-display.php,v 1.4 2008-01-03 00:39:04 dan Exp $
	#
	# Copyright (c) 2005-2006 DVL Software Limited
	#
	
require_once($_SERVER['DOCUMENT_ROOT'] . '/../classes/master_slave.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/htmlify.php');

define('port_display_WATCH_LIST_ADD_REMOVE', '%%%$$$WATCHLIST$$$%%%');
define('port_display_AD',                    '%%%$$$ADGOESHERE$$$%%%');

class port_display {

	var $db;

	var $port;
	var $User;		# used for matching against watch lists
	var $DaysMarkedAsNew;

	var $ShowEverything;

	var $LinkToPort;
	var $ShowAd;
	var $ShowCategory;
	var $ShowChangesLink;
	var $ShowDateAdded;
	var $ShowDescriptionShort;
	var $ShowDescriptionLong;
	var $ShowDescriptionLink;
	var $ShowDepends;
	var $ShowDownloadPortLink;
	var $ShowHomepageLink;
	var $ShowLastChange;
	var $ShowMaintainedBy;
	var $ShowMasterSites;
	var $ShowMasterSlave;
	var	$ShowPackageLink;
	var $ShowPortCreationDate;
	var $ShowShortDescription;
	var $ShowWatchListCount;
	var $ShowWatchListStatus;
	
	function port_display(&$db, $User = 0) {
		$this->db   = $db;
		$this->User = $User;
		$this->DaysMarkedAsNew = 10;
		
		$this->SetDetailsNil();
	}
	
	function SetDetailsNil() {
		$this->ShowEverything       = false;

 		$this->LinkToPort           = false;
 		$this->ShowAd               = false;
		$this->ShowCategory         = false;
		$this->ShowChangesLink      = false;
		$this->ShowDateAdded        = false;
		$this->ShowDescriptionShort = false;
		$this->ShowDescriptionLong  = false;
		$this->ShowDescriptionLink  = false;
		$this->ShowDepends          = false;
		$this->ShowDownloadPortLink = false;
		$this->ShowHomepageLink     = false;
		$this->ShowLastChange       = false;
		$this->ShowMaintainedBy     = false;
		$this->ShowMasterSites      = false;
		$this->ShowMasterSlave      = false;
		$this->ShowPackageLink      = false;
		$this->ShowPortCreationDate = false;
		$this->ShowPortsMonLink     = false;
		$this->ShowDistFilesSurveyLink = false;
		$this->ShowShortDescription = false;
		$this->ShowWatchListCount   = false;
		$this->ShowWatchListStatus  = false;
	}

	function SetDetailsFull() {
		$this->SetDetailsNil();
		$this->ShowEverything = true;
	}

	function SetDetailsSearch() {
		$this->SetDetailsNil();
 		$this->LinkToPort           = true;
		$this->ShowCategory         = true;
		$this->ShowChangesLink      = true;
		$this->ShowDescriptionLink  = true;
		$this->ShowDownloadPortLink = true;
		$this->ShowHomepageLink     = true;
		$this->ShowMaintainedBy     = true;
		$this->ShowPortCreationDate = true;
		$this->ShowPortsMonLink     = true;
		$this->ShowDistfilesSurveyLink = true;
		$this->ShowPackageLink      = true;
		$this->ShowShortDescription = true;
		$this->ShowWatchListStatus  = true;
	}

	function SetDetailsReports() {
		$this->SetDetailsNil();
		$this->SetDetailsSearch();

		$this->ShowDateAdded = true;
	}

	function SetDetailsWatchList() {
		$this->SetDetailsNil();
		$this->SetDetailsSearch();

		$this->ShowDateAdded  = true;
		$this->ShowLastChange = true;
	}<commit_msg>Whitespace changes only.<commit_after><?php
	#
	# $Id: port-display.php,v 1.5 2008-01-18 15:04:36 dan Exp $
	#
	# Copyright (c) 2005-2006 DVL Software Limited
	#
	
require_once($_SERVER['DOCUMENT_ROOT'] . '/../classes/master_slave.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/htmlify.php');

define('port_display_WATCH_LIST_ADD_REMOVE', '%%%$$$WATCHLIST$$$%%%');
define('port_display_AD',                    '%%%$$$ADGOESHERE$$$%%%');

class port_display {

	var $db;

	var $port;
	var $User;		# used for matching against watch lists
	var $DaysMarkedAsNew;

	var $ShowEverything;

	var $LinkToPort;
	var $ShowAd;
	var $ShowCategory;
	var $ShowChangesLink;
	var $ShowDateAdded;
	var $ShowDescriptionShort;
	var $ShowDescriptionLong;
	var $ShowDescriptionLink;
	var $ShowDepends;
	var $ShowDownloadPortLink;
	var $ShowHomepageLink;
	var $ShowLastChange;
	var $ShowMaintainedBy;
	var $ShowMasterSites;
	var $ShowMasterSlave;
	var	$ShowPackageLink;
	var $ShowPortCreationDate;
	var $ShowShortDescription;
	var $ShowWatchListCount;
	var $ShowWatchListStatus;
	
	function port_display(&$db, $User = 0) {
		$this->db   = $db;
		$this->User = $User;
		$this->DaysMarkedAsNew = 10;
		
		$this->SetDetailsNil();
	}
	
	function SetDetailsNil() {
		$this->ShowEverything       = false;

 		$this->LinkToPort           = false;
 		$this->ShowAd               = false;
		$this->ShowCategory         = false;
		$this->ShowChangesLink      = false;
		$this->ShowDateAdded        = false;
		$this->ShowDescriptionShort = false;
		$this->ShowDescriptionLong  = false;
		$this->ShowDescriptionLink  = false;
		$this->ShowDepends          = false;
		$this->ShowDownloadPortLink = false;
		$this->ShowHomepageLink     = false;
		$this->ShowLastChange       = false;
		$this->ShowMaintainedBy     = false;
		$this->ShowMasterSites      = false;
		$this->ShowMasterSlave      = false;
		$this->ShowPackageLink      = false;
		$this->ShowPortCreationDate = false;
		$this->ShowPortsMonLink     = false;
		$this->ShowDistFilesSurveyLink = false;
		$this->ShowShortDescription = false;
		$this->ShowWatchListCount   = false;
		$this->ShowWatchListStatus  = false;
	}

	function SetDetailsFull() {
		$this->SetDetailsNil();
		$this->ShowEverything = true;
	}

	function SetDetailsSearch() {
		$this->SetDetailsNil();
 		$this->LinkToPort              = true;
		$this->ShowCategory            = true;
		$this->ShowChangesLink         = true;
		$this->ShowDescriptionLink     = true;
		$this->ShowDownloadPortLink    = true;
		$this->ShowHomepageLink        = true;
		$this->ShowMaintainedBy        = true;
		$this->ShowPortCreationDate    = true;
		$this->ShowPortsMonLink        = true;
		$this->ShowDistfilesSurveyLink = true;
		$this->ShowPackageLink         = true;
		$this->ShowShortDescription    = true;
		$this->ShowWatchListStatus     = true;
	}

	function SetDetailsReports() {
		$this->SetDetailsNil();
		$this->SetDetailsSearch();

		$this->ShowDateAdded = true;
	}

	function SetDetailsWatchList() {
		$this->SetDetailsNil();
		$this->SetDetailsSearch();

		$this->ShowDateAdded  = true;
		$this->ShowLastChange = true;
	}
{'fraction_non_alphanumeric': 0.14147443135989676, 'fraction_numerical': 0.008711082432650428, 'mean_word_length': 3.6199701937406856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2243552', 'n_tokens_mistral': 2294, 'n_tokens_neox': 2098, 'n_words': 376}