<commit_before>package tests;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;

import gr.grnet.escience.fs.pithos.PithosObjectBlock;
import org.junit.Before;
import org.junit.Test;
import gr.grnet.escience.pithos.rest.HadoopPithosRestConnector;
import gr.grnet.escience.pithos.rest.PithosResponse;
import gr.grnet.escience.pithos.rest.PithosResponseFormat;

public class TestPithosRestClient {
	private static final String PITHOS_CONTAINER = "";
	private static final String PITHOS_FILE = "file.txt";
	private static PithosResponse pithosResponse;
	private static Collection<String> object_block_hashes;
	private static HadoopPithosRestConnector hdconnector;

	@Before
	public static void createHdConnector() {
		// - CREATE HADOOP CONNECTOR INSTANCE
		//hdconnector = new HadoopPithosRestConnector();
	}

	@Test
	public static void testGet_Container_Info() {
		// - GET CONTAINER INFORMATION
		System.out
				.println("---------------------------------------------------------------------\n");
		pithosResponse = hdconnector.getContainerInfo(PITHOS_CONTAINER);
		System.out.println(pithosResponse.toString());
		System.out
				.println("---------------------------------------------------------------------\n");
	}

	@Test
	public void testGet_Pithos_Object_Metadata() {
		// - GET METADATA OF A SPECIFIC OBJECT
		System.out
				.println("---------------------------------------------------------------------\n");
		pithosResponse = hdconnector.getPithosObjectMetaData(PITHOS_CONTAINER,
				PITHOS_FILE, PithosResponseFormat.JSON);<commit_msg>Integrate with Dimitriskel<commit_after>package tests;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;

import gr.grnet.escience.fs.pithos.PithosObjectBlock;
import org.junit.Before;
import org.junit.Test;
import gr.grnet.escience.pithos.rest.HadoopPithosConnector;
import gr.grnet.escience.pithos.rest.PithosResponse;
import gr.grnet.escience.pithos.rest.PithosResponseFormat;

public class TestPithosRestClient {
	private static final String PITHOS_CONTAINER = "";
	private static final String PITHOS_FILE = "file.txt";
	private static PithosResponse pithosResponse;
	private static Collection<String> object_block_hashes;
	private static HadoopPithosConnector hdconnector;

	@Before
	public static void createHdConnector() {
		// - CREATE HADOOP CONNECTOR INSTANCE
		//hdconnector = new HadoopPithosRestConnector();
	}

	@Test
	public static void testGet_Container_Info() {
		// - GET CONTAINER INFORMATION
		System.out
				.println("---------------------------------------------------------------------\n");
		pithosResponse = hdconnector.getContainerInfo(PITHOS_CONTAINER);
		System.out.println(pithosResponse.toString());
		System.out
				.println("---------------------------------------------------------------------\n");
	}

	@Test
	public void testGet_Pithos_Object_Metadata() {
		// - GET METADATA OF A SPECIFIC OBJECT
		System.out
				.println("---------------------------------------------------------------------\n");
		pithosResponse = hdconnector.getPithosObjectMetaData(PITHOS_CONTAINER,
				PITHOS_FILE, PithosResponseFormat.JSON);
{'fraction_non_alphanumeric': 0.21301775147928995, 'fraction_numerical': 0.0, 'mean_word_length': 2.7305458768873403, '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': '3948262', 'n_tokens_mistral': 1024, 'n_tokens_neox': 948, 'n_words': 183}