<commit_before>/*
*
* author:  gvenzl
* created: 27 Mar 2016
*
* name: Repository.java
*
*/

package com.dbpm.repository;

public interface Repository {
	
	public boolean checkRepo();
	
	public boolean createRepo();
	
	public boolean writeEntry (String db, String schema, Package pgk);
	
	public boolean savePackage(Package pgk, byte[] content);
	
	public boolean isPackageInstalled(String db, String schema, Package pgk) throws Exception;

}<commit_msg>Javadoc<commit_after>/*
*
* author:  gvenzl
* created: 27 Mar 2016
*
* name: Repository.java
*
*/

package com.dbpm.repository;

import java.util.ArrayList;
import com.dbpm.repository.Package;

public interface Repository {
	
	public boolean checkRepo();
	
	/**
	 * Creates a new repository
	 * @return True if the repository creation was successful
	 */
	public boolean createRepo();
	
	/**
	 * Writes a new entry into the repository
	 * @param db The Database name
	 * @param schema The schema name
	 * @param pgk The package 
	 * @return
	 */
	public boolean writeEntry (String db, String schema, Package pgk);
	
	/**
	 * Saves a package into the repository
	 * @param pgk The package to be saved
	 * @param content The content of the physical package
	 * @return True if the package could be saved, otherwise false
	 */
	public boolean savePackage(Package pgk, byte[] content);
	
	/**
	 * Checks whether a package is already installed in a given environment
	 * @param db The Database name of where the package should be installed
	 * @param schema The schema name of where the package should be installed
	 * @param pgk The package which should be installed
	 * @return True if the package is already installed, otherwise false
	 */
	public boolean isPackageInstalled(String db, String schema, Package pgk);

	/**
	 * Verifies whether given dependencies of the package are installed
	 * @param db The Database name of which o install the package into
	 * @param schema The schema name of which to install the package into
	 * @param dependencies The list of dependencies to verify
	 * @return True if and only if all dependencies could be verified, otherwise false
	 */
	public boolean verifyDependencies(String db, String schema, ArrayList<Dependency> dependencies);
}
{'fraction_non_alphanumeric': 0.07495511669658887, 'fraction_numerical': 0.005385996409335727, 'mean_word_length': 4.031602708803612, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2552946', 'n_tokens_mistral': 623, 'n_tokens_neox': 563, 'n_words': 272}