<commit_before>//
// Copyright (c) 2011 Linkeos.
//
// This file is part of Elveos.org.
// Elveos.org is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation, either version 3 of the License, or (at your
// option) any later version.
//
// Elveos.org is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
// You should have received a copy of the GNU General Public License along
// with Elveos.org. If not, see http://www.gnu.org/licenses/.
//
package com.bloatit.framework.model;

import com.bloatit.framework.xcgiserver.RequestKey;

/**
 * You have to implement a model manager in the model layer. The model manager
 * allows you to plug your model into the web framework.
 * 
 * @author <NAME>
 */
public interface Model {

    /**
     * Launch the model layer. This method will be called only once, before
     * everything else.
     */
    public abstract void initialize();

    /**
     * Shutdown the model layer. This method will be called only once, at the
     * end of the execution.
     */
    public abstract void shutdown();

    /**
     * Set the current transaction in readOnly mode. You do not have to call
     * this yourself.
     */
    public abstract void setReadOnly();

    /**
     * Open a transaction in normal (rw) mode.
     */
    public abstract void open();

    /**
     * Close the current transaction, tells to the db layer to flush everything.
     */
    public abstract void close();

    public abstract void rollback();

    public abstract void authenticate(RequestKey key);

    void flush();

}
<commit_msg>Removing @author in a class<commit_after>//
// Copyright (c) 2011 Linkeos.
//
// This file is part of Elveos.org.
// Elveos.org is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation, either version 3 of the License, or (at your
// option) any later version.
//
// Elveos.org is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
// You should have received a copy of the GNU General Public License along
// with Elveos.org. If not, see http://www.gnu.org/licenses/.
//
package com.bloatit.framework.model;

import com.bloatit.framework.xcgiserver.RequestKey;

/**
 * You have to implement a model manager in the model layer. The model manager
 * allows you to plug your model into the web framework.
 */
public interface Model {

    /**
     * Launch the model layer. This method will be called only once, before
     * everything else.
     */
    public abstract void initialize();

    /**
     * Shutdown the model layer. This method will be called only once, at the
     * end of the execution.
     */
    public abstract void shutdown();

    /**
     * Set the current transaction in readOnly mode. You do not have to call
     * this yourself.
     */
    public abstract void setReadOnly();

    /**
     * Open a transaction in normal (rw) mode.
     */
    public abstract void open();

    /**
     * Close the current transaction, tells to the db layer to flush everything.
     */
    public abstract void close();

    public abstract void rollback();

    public abstract void authenticate(RequestKey key);

    void flush();

}

{'fraction_non_alphanumeric': 0.08569868995633188, 'fraction_numerical': 0.0027292576419213972, 'mean_word_length': 2.7474437627811863, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2366302', 'n_tokens_mistral': 969, 'n_tokens_neox': 937, 'n_words': 474}