<commit_before>package com.bloatit.model;

import junit.framework.TestCase;

import com.bloatit.data.SessionManager;
import com.bloatit.framework.webserver.ModelAccessor;
import com.bloatit.model.right.AuthToken;

public class ModelTestUnit extends TestCase {
    protected AuthToken yoAuthToken;
    protected AuthToken tomAuthToken;
    protected AuthToken fredAuthToken;
    protected SimpleTestDB db;

    public static int init = init();

    private static int init() {
        ModelAccessor.initialize(new Model());
        SessionManager.generateTestSessionFactory();
        return 0;
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        SessionManager.generateTestSessionFactory();
        db = new SimpleTestDB();
        ModelAccessor.open();
        try {
            yoAuthToken = new AuthToken("Yo", "plop");
            tomAuthToken = new AuthToken("<PASSWORD>", "password");
            fredAuthToken = new AuthToken("F<PASSWORD>", "other");
        } finally {
            ModelAccessor.close();
        }<commit_msg>fix test on maven<commit_after>package com.bloatit.model;

import junit.framework.TestCase;

import com.bloatit.data.SessionManager;
import com.bloatit.framework.webserver.ModelAccessor;
import com.bloatit.model.right.AuthToken;

public class ModelTestUnit extends TestCase {
    protected AuthToken yoAuthToken;
    protected AuthToken tomAuthToken;
    protected AuthToken fredAuthToken;
    protected SimpleTestDB db;

    public static int init = init();

    private static int init() {
        SessionManager.generateTestSessionFactory();
        ModelAccessor.initialize(new Model());
        return 0;
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        SessionManager.generateTestSessionFactory();
        db = new SimpleTestDB();
        ModelAccessor.open();
        try {
            yoAuthToken = new AuthToken("Yo", "plop");
            tomAuthToken = new AuthToken("<PASSWORD>", "password");
            fredAuthToken = new AuthToken("<PASSWORD>", "other");
        } finally {
            ModelAccessor.close();
        }
{'fraction_non_alphanumeric': 0.09801202034211742, 'fraction_numerical': 0.0009246417013407304, 'mean_word_length': 2.9633699633699635, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5277578', 'n_tokens_mistral': 575, 'n_tokens_neox': 561, 'n_words': 139}