<commit_before><?php

// extends GenericDatabase because there are still some things we need from the base database
interface GenericDatabaseAdmin extends GenericDatabase
{

	//public function __construct($username, $password, $serverAddress, $databaseName, $tablePrefix, $cacher = null, $lazy = true);
	
	public function addPost($title, $data, $niceTitle, $uri, $author, $date, $draft, $postId = null);
	
	public function deletePost($postId);
	
	public function addPage($title, $data, $niceTitle, $uri, $author, $date, $draft, $corral = null, $pageId = null);
	
	public function removePage($pageId);
	
	public function addUser($username, $displayName, $passwordHash, $salt, $permissions = 99, $canAdministrateUsers = 0);
	
	public function removeUser($userIdToRemove, $currentUserID);
	
	public function getUserByUserName($username);
	
	public function getPostIdNiceCheckedTitle($niceTitle);
	
	public function checkDuplicateUri($type, $uri, $postOrPageId = null);
	
	public function checkDuplicateTitle($type, $niceTitle, $postPageSnippetIt = null);
	
	public function updateCookieVal($userId, $cookieValue = "");
	
	public function findCookie($cookieValue);
	
	public function getPostDataById($postId);
	
	public function getPageDataById($pageId);
	
	//public function getPostList($limit, $offset);
	
	public function getPageList($limit, $offset);
	
	public function addCategory($name, $niceTitle);
	
	public function getSinglePostCategories($postId);
	
	public function getSinglePostTags($id);
	
	public function processPostCategories($id, $categoryArray);
	
	public function unlinkPostCategoriessAndTags($id);
	
	public function processTags($id, $tagArray);
	
	public function getCorralList();
	
	public function getPagesInCorral($name);
	
	public function addSnippet($name, $data, $id = null);
	
	public function removeSnippet($id);
	
	public function getSnippetList();
	
	public function getSnippetById($id);
	
	public function getAllPostsSitemap();
	
	public function getAllPagesSitemap();

}

?><commit_msg>making more variables a bit more descriptive in generic database admin<commit_after><?php

// extends GenericDatabase because there are still some things we need from the base database
interface GenericDatabaseAdmin extends GenericDatabase
{

	//public function __construct($username, $password, $serverAddress, $databaseName, $tablePrefix, $cacher = null, $lazy = true);
	
	public function addPost($title, $data, $niceTitle, $uri, $author, $date, $draft, $postId = null);
	
	public function deletePost($postId);
	
	public function addPage($title, $data, $niceTitle, $uri, $author, $date, $draft, $corral = null, $pageId = null);
	
	public function removePage($pageId);
	
	public function addUser($username, $displayName, $passwordHash, $salt, $permissions = 99, $canAdministrateUsers = 0);
	
	public function removeUser($userIdToRemove, $currentUserID);
	
	public function getUserByUserName($username);
	
	public function getPostIdNiceCheckedTitle($niceTitle);
	
	public function checkDuplicateUri($type, $uri, $postOrPageId = null);
	
	public function checkDuplicateTitle($type, $niceTitle, $postPageSnippetIt = null);
	
	public function updateCookieVal($userId, $cookieValue = "");
	
	public function findCookie($cookieValue);
	
	public function getPostDataById($postId);
	
	public function getPageDataById($pageId);
	
	//public function getPostList($limit, $offset);
	
	public function getPageList($limit, $offset);
	
	public function addCategory($name, $niceTitle);
	
	public function getSinglePostCategories($postId);
	
	public function getSinglePostTags($postId);
	
	public function processPostCategories($postId, $categoryArray);
	
	public function unlinkPostCategoriessAndTags($postId);
	
	public function processTags($postId, $tagArray);
	
	public function getCorralList();
	
	public function getPagesInCorral($name);
	
	public function addSnippet($name, $data, $snippetId = null);
	
	public function removeSnippet($snippetId);
	
	public function getSnippetList();
	
	public function getSnippetById($snippetId);
	
	public function getAllPostsSitemap();
	
	public function getAllPagesSitemap();

}

?>
{'fraction_non_alphanumeric': 0.10954920019389239, 'fraction_numerical': 0.001454192922927775, 'mean_word_length': 6.304424778761062, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2646999', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1112, 'n_words': 332}