<commit_before>#include "macro.h"

//Definitions
Input Macro_array[MAC_1 + MAC_2 + MAC_3 + MAC_4 + MAC_5 + MAC_6 + MAC_7 + MAC_8 + MAC_9 + MAC_10 + MAC_11 + MAC_12 + MAC_13 + MAC_14 + MAC_15 + MAC_16 + MAC_17 + MAC_18 + MAC_19 + MAC_20 + MAC_21 + MAC_22 + MAC_23 + MAC_24 + MAC_25 + MAC_26 + MAC_27 + MAC_28]
  = { 
      {0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,255,0,0,0,0},
      {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
      {3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0}


        
  };




GetMacroInput(MacroFrame frame, Input* output)
{

  if(!(Macro_array[(int)frame.Frame/3].Garbage == 3))
  {
    output->Garbage = Macro_array[(int)frame.Frame/3 + frame.Macro].Garbage;
    output->Start = Macro_array[(int)frame.Frame/3 + frame.Macro].Start;
    output->Y = Macro_array[(int)frame.Frame/3 + frame.Macro].Y;
    output->X = Macro_array[(int)frame.Frame/3 + frame.Macro].X;
    output->B = Macro_array[(int)frame.Frame/3 + frame.Macro].B;
    output->A = Macro_array[(int)frame.Frame/3 + frame.Macro].A;
    output->Garbage1 = Macro_array[(int)frame.Frame/3 + frame.Macro].Garbage1;
    output->L = Macro_array[(int)frame.Frame/3 + frame.Macro].L;
    output->R = Macro_array[(int)frame.Frame/3 + frame.Macro].R;
    output->Z = Macro_array[(int)frame.Frame/3 + frame.Macro].Z;
    output->DUp = Macro_array[(int)frame.Frame/3 + frame.Macro].DUp;
    output->DDown = Macro_array[(int)frame.Frame/3 + frame.Macro].DDown;
    output->DRight = Macro_array[(int)frame.Frame/3 + frame.Macro].DRight;
    output->DLeft = Macro_array[(int)frame.Frame/3 + frame.Macro].DLeft;
    output->JoyX = Macro_array[(int)frame.Frame/3 + frame.Macro].JoyX;
    output->JoyY = Macro_array[(int)frame.Frame/3 + frame.Macro].JoyY;
    output->CStickX = Macro_array[(int)frame.Frame/3 + frame.Macro].CStickX;
    output->CStickY = Macro_array[(int)frame.Frame/3 + frame.Macro].CStickY;
    output->LeftButt = Macro_array[(int)frame.Frame/3 + frame.Macro].LeftButt;
    output->RightButt = Macro_array[(int)frame.Frame/3 + frame.Macro].RightButt;
  }
  else
  {
    return 1;
  }
  return 0;
}




<commit_msg>Update macro.c<commit_after>#include "macro.h"

//Definitions
Input Macro_array[MAC_1 + MAC_2 + MAC_3 + MAC_4 + MAC_5 + MAC_6 + MAC_7 + MAC_8 + MAC_9 + MAC_10 + MAC_11 + MAC_12 + MAC_13 + MAC_14 + MAC_15 + MAC_16 + MAC_17 + MAC_18 + MAC_19 + MAC_20 + MAC_21 + MAC_22 + MAC_23 + MAC_24 + MAC_25 + MAC_26 + MAC_27 + MAC_28]
  = { 
      {0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,255,0,0,0,0},
      {3,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0}


        
  };




GetMacroInput(MacroFrame frame, Input* output)
{


  output->Garbage = Macro_array[(int)frame.Frame/3 + frame.Macro].Garbage;
  output->Start = Macro_array[(int)frame.Frame/3 + frame.Macro].Start;
  output->Y = Macro_array[(int)frame.Frame/3 + frame.Macro].Y;
  output->X = Macro_array[(int)frame.Frame/3 + frame.Macro].X;
  output->B = Macro_array[(int)frame.Frame/3 + frame.Macro].B;
  output->A = Macro_array[(int)frame.Frame/3 + frame.Macro].A;
  output->Garbage1 = Macro_array[(int)frame.Frame/3 + frame.Macro].Garbage1;
  output->L = Macro_array[(int)frame.Frame/3 + frame.Macro].L;
  output->R = Macro_array[(int)frame.Frame/3 + frame.Macro].R;
  output->Z = Macro_array[(int)frame.Frame/3 + frame.Macro].Z;
  output->DUp = Macro_array[(int)frame.Frame/3 + frame.Macro].DUp;
  output->DDown = Macro_array[(int)frame.Frame/3 + frame.Macro].DDown;
  output->DRight = Macro_array[(int)frame.Frame/3 + frame.Macro].DRight;
  output->DLeft = Macro_array[(int)frame.Frame/3 + frame.Macro].DLeft;
  output->JoyX = Macro_array[(int)frame.Frame/3 + frame.Macro].JoyX;
  output->JoyY = Macro_array[(int)frame.Frame/3 + frame.Macro].JoyY;
  output->CStickX = Macro_array[(int)frame.Frame/3 + frame.Macro].CStickX;
  output->CStickY = Macro_array[(int)frame.Frame/3 + frame.Macro].CStickY;
  output->LeftButt = Macro_array[(int)frame.Frame/3 + frame.Macro].LeftButt;
  output->RightButt = Macro_array[(int)frame.Frame/3 + frame.Macro].RightButt;
  if(!(Macro_array[(int)frame.Frame/3].Garbage == 3))
  {
    
    return 1;
    
  }

  return 0;
}





{'fraction_non_alphanumeric': 0.18240497250776955, 'fraction_numerical': 0.059765718383934976, 'mean_word_length': 3.5232432432432432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '3005312', 'n_tokens_mistral': 1889, 'n_tokens_neox': 1778, 'n_words': 211}