<commit_before>/**
 *
 *  @file mmUtils.h
 *  @brief MotionMachine header file for Utils.
 *  @author <NAME>
 *  @copyright Numediart Institute, UMONS (c) 2014-2015
 *
 */

#ifndef __mmUtils__
#define __mmUtils__

#include <string>
#include <vector>
#include <iostream>
#include <fstream>

#ifndef MAX_PATH
#define MAX_PATH 260
#endif
/*#ifdef _WIN32
#include <windows.h>
#endif*/

namespace MoMa {
    
    //std::string getExeFilePath( void ); // get the total path and name of the executable file
    std::string getAppPath( void ); //get the path to the directory containing the executable file
    std::string getAbsoluteAppPath( void ); //get the absolute path to the directory containing the executable file
    std::string getLibPath( void ); //get the path to the MoMa libraries
    std::string getAbsoluteLibPath( void ); //get the absolute path to the MoMa libraries
    std::string getDataPath( void ); //get the data path
    std::string getAbsoluteDataPath( void ); //get the absolute path to the directory containing the data
    //std::string getResPath( void ); // get resources path
    std::string getAbsoluteResPath( void ); // get absolute resources path

    void correctPath( std::string &path, bool invert = false ); // manage special characters bugs (extended ASCII characters). The conversion can be done in both way by use of "invert".
    void checkFilePath( std::string &path ); //check if the path exists; if not, tries to correct the path with correctPath(...)
    //std::string checkFilePath( std::string const &path ); //check if the file path exists; if not, tries to correct the path with correctPath(...)<commit_msg>added uint type definition for VS<commit_after>/**
 *
 *  @file mmUtils.h
 *  @brief MotionMachine header file for Utils.
 *  @author <NAME>
 *  @copyright Numediart Institute, UMONS (c) 2014-2015
 *
 */

#ifndef __mmUtils__
#define __mmUtils__

#include <string>
#include <vector>
#include <iostream>
#include <fstream>

#ifndef MAX_PATH
#define MAX_PATH 260
#endif

#ifdef _WIN32
 typedef unsigned int uint;
#endif

/*#ifdef _WIN32
#include <windows.h>
#endif*/

namespace MoMa {
    
    //std::string getExeFilePath( void ); // get the total path and name of the executable file
    std::string getAppPath( void ); //get the path to the directory containing the executable file
    std::string getAbsoluteAppPath( void ); //get the absolute path to the directory containing the executable file
    std::string getLibPath( void ); //get the path to the MoMa libraries
    std::string getAbsoluteLibPath( void ); //get the absolute path to the MoMa libraries
    std::string getDataPath( void ); //get the data path
    std::string getAbsoluteDataPath( void ); //get the absolute path to the directory containing the data
    //std::string getResPath( void ); // get resources path
    std::string getAbsoluteResPath( void ); // get absolute resources path

    void correctPath( std::string &path, bool invert = false ); // manage special characters bugs (extended ASCII characters). The conversion can be done in both way by use of "invert".
    void checkFilePath( std::string &path ); //check if the path exists; if not, tries to correct the path with correctPath(...)
    //std::string checkFilePath( std::string const &path ); //check if the file path exists; if not, tries to correct the path with correctPath(...)
{'fraction_non_alphanumeric': 0.10222222222222223, 'fraction_numerical': 0.008296296296296296, 'mean_word_length': 3.8645533141210375, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5736872', 'n_tokens_mistral': 955, 'n_tokens_neox': 912, 'n_words': 411}