<commit_before>package eu.musesproject.server.db;

import static org.junit.Assert.*;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import eu.musesproject.server.db.handler.DBManager;
import eu.musesproject.server.entity.AccessRequest;
import eu.musesproject.server.entity.Asset;
import eu.musesproject.server.entity.Clue;
import eu.musesproject.server.entity.Outcome;
import eu.musesproject.server.entity.RiskPolicy;
import eu.musesproject.server.entity.Threat;
import eu.musesproject.server.entity.User;
import eu.musesproject.server.scheduler.ModuleType;

public class DBManagerTest {
	
	static DBManager dbmanager = null;

	
	@BeforeClass
	public  static void setUpBeforeClass() throws Exception {
		ModuleType module = null;
		dbmanager = new DBManager(module);
		dbmanager.open();

	}
	
	@AfterClass
	public  static void setUpAfterClass() throws Exception {
		ModuleType module = null;
		dbmanager.close();

	}

	@Test
	public void testGetUsers() {
		List<User> List = dbmanager.getUsers();
		if (List.size()>0){
			Iterator<User> i = List.iterator();
			while(i.hasNext()){
				User user = i.next();
				assertNotNull(user);
			}
		}else{
			fail("There is not any User in the database,please first try to store User in the database");
		}			
		<commit_msg>-Fixing minor errors for DBManagerTest<commit_after>package eu.musesproject.server.db;

import static org.junit.Assert.*;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import eu.musesproject.server.db.handler.DBManager;
import eu.musesproject.server.entity.AccessRequest;
import eu.musesproject.server.entity.Asset;
import eu.musesproject.server.entity.Clue;
import eu.musesproject.server.entity.Outcome;
import eu.musesproject.server.entity.RiskPolicy;
import eu.musesproject.server.entity.Threat;
import eu.musesproject.server.entity.User;
import eu.musesproject.server.scheduler.ModuleType;

public class DBManagerTest {
	
	static DBManager dbmanager = null;

	
	@BeforeClass
	public  static void setUpBeforeClass() throws Exception {
		ModuleType module = null;
		dbmanager = new DBManager(module);
		dbmanager.open();

	}
	
	@AfterClass
	public  static void setUpAfterClass() throws Exception {
		ModuleType module = null;
		//dbmanager.close();

	}

	@Test
	public void testGetUsers() {
		List<User> List = dbmanager.getUsers();
		if (List.size()>0){
			Iterator<User> i = List.iterator();
			while(i.hasNext()){
				User user = i.next();
				assertNotNull(user);
			}
		}else{
			fail("There is not any User in the database,please first try to store User in the database");
		}			
		
{'fraction_non_alphanumeric': 0.11080617495711835, 'fraction_numerical': 0.0006861063464837049, 'mean_word_length': 4.629343629343629, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6813808', 'n_tokens_mistral': 992, 'n_tokens_neox': 915, 'n_words': 214}