<commit_before><?php
	#
	# $Id: commit_log_elements.php,v 1.1.2.5 2004-02-13 17:24:18 dan Exp $
	#
	# Copyright (c) 2003 DVL Software Limited
	#


// base class for commit_log_elements
class Commit_Log_Elements {

	var $dbh;

	var $element_id;
	var $message_id;
	var $commit_date;
	var $description;
	var $committer;
	var $encoding_losses;
	var $revision_name;
	var $security_notice_id;

	var $result;

	function Commit_Log_Elements($dbh) {
		$this->dbh	= $dbh;
	}
	
	function FetchInitialise($element_id) {

		# get ready to fetch all the commit_log_elements for this element
		# return the number of commits found

		$sql = "
select $element_id, 
       message_id,
       to_char(commit_date - SystemTimeAdjust(), 'DD Mon YYYY HH24:MI:SS')  as commit_date,<commit_msg>In FetchInitialize, remove $element_id from the select and use commit_log_elements.element_id instead.  This will give us the correct value and correctly name the column as element_id a the same time.<commit_after><?php
	#
	# $Id: commit_log_elements.php,v 1.1.2.6 2004-10-02 18:19:28 dan Exp $
	#
	# Copyright (c) 2003 DVL Software Limited
	#


// base class for commit_log_elements
class Commit_Log_Elements {

	var $dbh;

	var $element_id;
	var $message_id;
	var $commit_date;
	var $description;
	var $committer;
	var $encoding_losses;
	var $revision_name;
	var $security_notice_id;

	var $result;

	function Commit_Log_Elements($dbh) {
		$this->dbh	= $dbh;
	}
	
	function FetchInitialise($element_id) {

		# get ready to fetch all the commit_log_elements for this element
		# return the number of commits found

		$sql = "
select commit_log_elements.element_id, 
       message_id,
       to_char(commit_date - SystemTimeAdjust(), 'DD Mon YYYY HH24:MI:SS')  as commit_date,
{'fraction_non_alphanumeric': 0.09553775743707094, 'fraction_numerical': 0.02745995423340961, 'mean_word_length': 4.174556213017752, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6098957', 'n_tokens_mistral': 680, 'n_tokens_neox': 618, 'n_words': 175}