<commit_before>#!/bin/bash
cBaseDir=`pwd` # default use cur dir, you can define it
Arr_BinDir="Billing Server Login World ShareMemory"
Arr_ModelName="Billing Server Login World ShareMemory Common"
Arr_ModelIncludeNeedCompile=(
    "Common/Assertx.cpp Common/Net/*.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp Server/Base/LogDefine.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Common/GameUtil.cpp Common/PacketFactoryManager.cpp 
    Common/Packets/LBAskAuth.cpp Common/Packets/BWConnect.cpp Common/Packets/BLRetAuth.cpp
    " #Billing
    
    ""
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp 
    Common/GameStruct.cpp Common/DB_Struct.cpp Common/PacketFactoryManager.cpp Common/Packets/LW*.cpp
    Common/DataBase/*.cpp Common/Packets/BLRetAuth.cpp Common/Packets/CL*.cpp Common/Packets/WL*.cpp
    Common/Packets/LC*.cpp Common/Packets/LB*.cpp Common/Packets/SSConnect.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/SMU/ShareMemAO.cpp 
    " #Login
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp
    Common/Packets/WG*.cpp Common/PacketFactoryManager.cpp Server/SMU/ShareMemAO.cpp Common/DataBase/*.cpp
    Common/Combat/CampAndStand.cpp Common/Packets/WL*.cpp Common/Packets/LW*.cpp
    Common/Packets/SSScenePlayerCount.cpp
    Common/GameStruct.cpp Common/DB_Struct.cpp Common/GameStruct_Finger.cpp Common/GameStruct_Relation.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/Base/IDTable.cpp Server/Base/StrTable.cpp Common/Chain.cpp
    " #World
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp 
    Common/GameStruct.cpp Common/DB_Struct.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/SMU/ShareMemAO.cpp
    " #ShareMemory
)
Arr_NotMakeFile="`pwd`"
Arr_Dir=`find ${cBaseDir} -type d`
cInludeFile=premake
iSystemBit=`getconf LONG_BIT`

#@desc get include premake file by path
#@param string cPath
#@return string
function getIncludeFile()
{
    local cPath=${1}
    local iDepth=`echo ${cPath} | sed "s;${cBaseDir};;g" | awk -F '/' '{print NF}'`
    local cInludePath=""
    for (( i=1;i<${iDepth};i++ ))
    do
        cInludePath+="../"
    done
    echo ${cInludePath}${cInludeFile}.mk
}<commit_msg>fix some bug<commit_after>#!/bin/bash
cBaseDir=`pwd` # default use cur dir, you can define it
Arr_BinDir="Billing Server Login World ShareMemory"
Arr_ModelName="Billing Server Login World ShareMemory Common"
Arr_ModelIncludeNeedCompile=(
    "Common/Assertx.cpp Common/Net/*.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp Server/Base/LogDefine.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Common/GameUtil.cpp Common/PacketFactoryManager.cpp 
    Common/Packets/LBAskAuth.cpp Common/Packets/BWConnect.cpp Common/Packets/BLRetAuth.cpp
    " #Billing
    
    ""
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp 
    Common/GameStruct.cpp Common/DB_Struct.cpp Common/PacketFactoryManager.cpp Common/Packets/LW*.cpp
    Common/DataBase/*.cpp Common/Packets/BLRetAuth.cpp Common/Packets/CL*.cpp Common/Packets/WL*.cpp
    Common/Packets/LC*.cpp Common/Packets/LB*.cpp Common/Packets/SSConnect.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/SMU/ShareMemAO.cpp 
    " #Login
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp
    Common/Packets/WG*.cpp Common/PacketFactoryManager.cpp Server/SMU/ShareMemAO.cpp Common/DataBase/*.cpp
    Common/Combat/CampAndStand.cpp Common/Packets/WL*.cpp Common/Packets/LW*.cpp
    Common/Packets/SSScenePlayerCount.cpp
    Common/GameStruct.cpp Common/DB_Struct.cpp Common/GameStruct_Finger.cpp Common/GameStruct_Relation.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/Base/IDTable.cpp Server/Base/StrTable.cpp Common/Chain.cpp
    " #World
    
    "Common/Assertx.cpp Common/Net/*.cpp Common/GameUtil.cpp Common/ShareMemAPI.cpp Common/DBSystem/DataBase/*.cpp 
    Common/GameStruct.cpp Common/DB_Struct.cpp
    Server/Base/Config.cpp Server/Base/Thread.cpp Server/Base/Ini.cpp Server/Base/Log.cpp Server/Base/TimeManager.cpp
    Server/Base/LogDefine.cpp Server/SMU/ShareMemAO.cpp
    " #ShareMemory
)
Arr_NotMakeFile="`pwd`"
Arr_Dir=`find ${cBaseDir} -type d | grep -v "Run"` # exclude the Run Dirs
cInludeFile=premake
iSystemBit=`getconf LONG_BIT`

#@desc get include premake file by path
#@param string cPath
#@return string
function getIncludeFile()
{
    local cPath=${1}
    local iDepth=`echo ${cPath} | sed "s;${cBaseDir};;g" | awk -F '/' '{print NF}'`
    local cInludePath=""
    for (( i=1;i<${iDepth};i++ ))
    do
        cInludePath+="../"
    done
    echo ${cInludePath}${cInludeFile}.mk
}
{'fraction_non_alphanumeric': 0.12757731958762886, 'fraction_numerical': 0.0007363770250368188, 'mean_word_length': 4.016620498614959, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '188382', 'n_tokens_mistral': 1890, 'n_tokens_neox': 1841, 'n_words': 297}