<commit_before>part of client;

class MenuScreenRenderingSystem extends VoidEntitySystem {
  static final HEAVEN = 0;
  static final HELL = 1;
  static final FIRE = 2;
  static final ICE = 3;
  static final int OPTION_FACTION = 0;
  static final int OPTION_MAPSIZE = 1;
  static final int OPTION_START_GAME = 2;

  Map<int, int> highlighted = {OPTION_FACTION: 0,
                              OPTION_MAPSIZE: 0,
                              OPTION_START_GAME: 0};
  Map<int, int> optionCount = {OPTION_FACTION: 4,
                               OPTION_MAPSIZE: 3,
                               OPTION_START_GAME: 1};
  Map<int, String> optionLabels = {OPTION_FACTION: ['Angelus', 'Abyssus', 'Ignis', 'Glacies'],
                                   OPTION_MAPSIZE: ['Small', 'Medium', 'Large'],
                                   OPTION_START_GAME: ['Start Game']};
  Map<int, int> selected = {OPTION_FACTION: null,
                            OPTION_MAPSIZE: null};

  int selectedRow = 0;

  /// to prevent scrolling
  var preventDefaultKeys = new Set.from([KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT, KeyCode.SPACE]);
  var keyState = <int, bool>{};
  var blockingKeys = new Set.from([KeyCode.UP, KeyCode.DOWN, KeyCode.ENTER]);<commit_msg>block left and right keys to prevent movement while keeping button pressed<commit_after>part of client;

class MenuScreenRenderingSystem extends VoidEntitySystem {
  static final HEAVEN = 0;
  static final HELL = 1;
  static final FIRE = 2;
  static final ICE = 3;
  static final int OPTION_FACTION = 0;
  static final int OPTION_MAPSIZE = 1;
  static final int OPTION_START_GAME = 2;

  Map<int, int> highlighted = {OPTION_FACTION: 0,
                              OPTION_MAPSIZE: 0,
                              OPTION_START_GAME: 0};
  Map<int, int> optionCount = {OPTION_FACTION: 4,
                               OPTION_MAPSIZE: 3,
                               OPTION_START_GAME: 1};
  Map<int, String> optionLabels = {OPTION_FACTION: ['Angelus', 'Abyssus', 'Ignis', 'Glacies'],
                                   OPTION_MAPSIZE: ['Small', 'Medium', 'Large'],
                                   OPTION_START_GAME: ['Start Game']};
  Map<int, int> selected = {OPTION_FACTION: null,
                            OPTION_MAPSIZE: null};

  int selectedRow = 0;

  /// to prevent scrolling
  var preventDefaultKeys = new Set.from([KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT, KeyCode.SPACE]);
  var keyState = <int, bool>{};
  var blockingKeys = new Set.from([KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT, KeyCode.ENTER]);
{'fraction_non_alphanumeric': 0.10323574730354391, 'fraction_numerical': 0.01078582434514638, 'mean_word_length': 2.287341772151899, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3398669', 'n_tokens_mistral': 816, 'n_tokens_neox': 777, 'n_words': 216}