<commit_before>#include "memory_manager.h"
#include "log.h"
#define LOG_DEFAULT_RANK   (m_core->getId())
#define LOG_DEFAULT_MODULE MMU

extern LEVEL_BASE::KNOB<BOOL> g_knob_simarch_has_shared_mem;
extern LEVEL_BASE::KNOB<UInt32> g_knob_ahl_param;
extern LEVEL_BASE::KNOB<UInt32> g_knob_dram_access_cost;
extern LEVEL_BASE::KNOB<UInt32> g_knob_line_size;

using namespace std;

void MemoryManagerNetworkCallback(void *obj, NetPacket packet)
{
   MemoryManager *mm = (MemoryManager*) obj;
   assert(mm != NULL);

   switch (packet.type)
      {
      case SHARED_MEM_REQ:
         mm->addMemRequest(packet);
         return;

      case SHARED_MEM_EVICT:
         mm->forwardWriteBackToDram(packet);
         return;

      case SHARED_MEM_UPDATE_UNEXPECTED:
         mm->processUnexpectedSharedMemUpdate(packet);
         return;
<commit_msg>[memory_manager] Remove unecessary global.<commit_after>#include "memory_manager.h"
#include "log.h"
#define LOG_DEFAULT_RANK   (m_core->getId())
#define LOG_DEFAULT_MODULE MMU

extern LEVEL_BASE::KNOB<UInt32> g_knob_ahl_param;
extern LEVEL_BASE::KNOB<UInt32> g_knob_dram_access_cost;
extern LEVEL_BASE::KNOB<UInt32> g_knob_line_size;

using namespace std;

void MemoryManagerNetworkCallback(void *obj, NetPacket packet)
{
   MemoryManager *mm = (MemoryManager*) obj;
   assert(mm != NULL);

   switch (packet.type)
      {
      case SHARED_MEM_REQ:
         mm->addMemRequest(packet);
         return;

      case SHARED_MEM_EVICT:
         mm->forwardWriteBackToDram(packet);
         return;

      case SHARED_MEM_UPDATE_UNEXPECTED:
         mm->processUnexpectedSharedMemUpdate(packet);
         return;

{'fraction_non_alphanumeric': 0.09685230024213075, 'fraction_numerical': 0.007263922518159807, 'mean_word_length': 4.264331210191083, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 18, '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': '6019727', 'n_tokens_mistral': 599, 'n_tokens_neox': 580, 'n_words': 100}