<commit_before><?php
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: grid.php 36944 2011-09-05 15:10:52Z robertplummer $

// Tikiwiki Sheet Library {{{1

require_once( "grid.php" );

if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

class SheetLib extends TikiLib
{
	function get_sheet_info( $sheetId ) // {{{2
	{
		$result = $this->query( "SELECT * FROM `tiki_sheets` WHERE `sheetId` = ?", array( $sheetId ) );
		$result = $result->fetchRow();
		$result['tiki_p_edit_sheet'] = $this->user_can_edit( $sheetId );
		$result['parentSheetId'] = end($this->get_related_sheet_ids( $sheetId, true ));
		$result['childSheetIds'] = $this->get_related_sheet_ids( $sheetId );
		$result['childTrackerIds'] = $this->get_related_tracker_ids( $sheetId );
		$result['childFileIds'] = $this->get_related_file_ids( $sheetId );
		$result['created'] = $this->get_created($sheet['sheetId']);
		$result['lastModif'] = $this->get_lastModif ($sheet['sheetId']);
		
		return $result;
	}

	function get_sheet_layout( $sheetId ) // {{{2
	{
		$result = $this->query( "SELECT `className`, `headerRow`, `footerRow`, `parseValues` FROM `tiki_sheet_layout` WHERE `sheetId` = ? AND `end` IS NULL", array( $sheetId ) );

		return $result->fetchRow();
	}
	
	//general relationships management
	function add_relate($type, $sheetId, $childId) {
		global $relationlib; require_once('lib/attributes/relationlib.php');
		$relationlib->add_relation("tiki.sheet.".$type, "sheetId", $sheetId, $type."Id", $childId);
	}
	<commit_msg>[FIX] Please declare instance variables<commit_after><?php
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: grid.php 36944 2011-09-05 15:10:52Z robertplummer $

// Tikiwiki Sheet Library {{{1

require_once( "grid.php" );

if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

class SheetLib extends TikiLib
{
	private $setup_jQuery_sheet_files;

	function get_sheet_info( $sheetId ) // {{{2
	{
		$result = $this->query( "SELECT * FROM `tiki_sheets` WHERE `sheetId` = ?", array( $sheetId ) );
		$result = $result->fetchRow();
		$result['tiki_p_edit_sheet'] = $this->user_can_edit( $sheetId );
		$result['parentSheetId'] = end($this->get_related_sheet_ids( $sheetId, true ));
		$result['childSheetIds'] = $this->get_related_sheet_ids( $sheetId );
		$result['childTrackerIds'] = $this->get_related_tracker_ids( $sheetId );
		$result['childFileIds'] = $this->get_related_file_ids( $sheetId );
		$result['created'] = $this->get_created($sheet['sheetId']);
		$result['lastModif'] = $this->get_lastModif ($sheet['sheetId']);
		
		return $result;
	}

	function get_sheet_layout( $sheetId ) // {{{2
	{
		$result = $this->query( "SELECT `className`, `headerRow`, `footerRow`, `parseValues` FROM `tiki_sheet_layout` WHERE `sheetId` = ? AND `end` IS NULL", array( $sheetId ) );

		return $result->fetchRow();
	}
	
	//general relationships management
	function add_relate($type, $sheetId, $childId) {
		global $relationlib; require_once('lib/attributes/relationlib.php');
		$relationlib->add_relation("tiki.sheet.".$type, "sheetId", $sheetId, $type."Id", $childId);
	}
	
{'fraction_non_alphanumeric': 0.17153996101364521, 'fraction_numerical': 0.01670843776106934, 'mean_word_length': 5.203799654576857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '6777518', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1218, 'n_words': 278}