<commit_before>/**
 * Copyright © 2017 <NAME> - INDIGO-DataCloud
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FASS_H_
#define FASS_H_

#include "Configurator.h"
#include "FassDb.h"
#include "Log.h"
//#include "PriorityManager.h"
#include "RPCManager.h"
#include "XMLRPCClient.h"
#include "PriorityManager.h"
#include "Terminator.h"

#include <stdlib.h>
#include <string>
//#include <sstream>


using namespace std;

/** This is the main class for the Fass daemon fassd */

class Fass
{
public:

    static Fass& instance()
    {
        static Fass fassd;

        return fassd;
    };


/**
    /// Manager getters 

    RPCManager * get_rpcm()
    {
        return rpcm;
    };

*/
    /// Environment and Configuration 

    /**
     *  Returns the value of LOG->DEBUG_LEVEL in fassd.conf file
     *      @return the debug level, to instantiate Log'ers
     * Logging: to keep it simple we only foresee logging to a file
     * (no syslog)
     */

    Log::MessageType get_debug_level() const;

    /** Returns the value of FASS_LOCATION env variable. When this variable is
     * not defined the fass location is "/".
     *  @return the fass location.
     */

    const string& get_fass_location()
    {
        return fass_location;
    };

    /**
     *  Returns the version of fassd
     *    @return the version
     */
    static string version()
    {
        return "Fass 1.0";
    };

    // returns the pm
    PriorityManager* priority_manager()
    {
        return pm;
    };

    // returns the terminator
    Terminator* terminator()
    {
        return tm;
    };<commit_msg>Changing hardcoded version<commit_after>/**
 * Copyright © 2017 <NAME> - INDIGO-DataCloud
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FASS_H_
#define FASS_H_

#include "Configurator.h"
#include "FassDb.h"
#include "Log.h"
//#include "PriorityManager.h"
#include "RPCManager.h"
#include "XMLRPCClient.h"
#include "PriorityManager.h"
#include "Terminator.h"

#include <stdlib.h>
#include <string>
//#include <sstream>


using namespace std;

/** This is the main class for the Fass daemon fassd */

class Fass
{
public:

    static Fass& instance()
    {
        static Fass fassd;

        return fassd;
    };


/**
    /// Manager getters 

    RPCManager * get_rpcm()
    {
        return rpcm;
    };

*/
    /// Environment and Configuration 

    /**
     *  Returns the value of LOG->DEBUG_LEVEL in fassd.conf file
     *      @return the debug level, to instantiate Log'ers
     * Logging: to keep it simple we only foresee logging to a file
     * (no syslog)
     */

    Log::MessageType get_debug_level() const;

    /** Returns the value of FASS_LOCATION env variable. When this variable is
     * not defined the fass location is "/".
     *  @return the fass location.
     */

    const string& get_fass_location()
    {
        return fass_location;
    };

    /**
     *  Returns the version of fassd
     *    @return the version
     */
    static string version()
    {
        return "Fass 1.4";
    };

    // returns the pm
    PriorityManager* priority_manager()
    {
        return pm;
    };

    // returns the terminator
    Terminator* terminator()
    {
        return tm;
    };
{'fraction_non_alphanumeric': 0.09899132066619751, 'fraction_numerical': 0.004691531785127844, 'mean_word_length': 2.532725766362883, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '711543', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1262, 'n_words': 460}