<commit_before>
import 'Matrix.dart';

///
/// GRID
/// 
/// 4x4 matrix
/// 
///

class Grid {
  
  
}<commit_msg>Coded grid.dart<commit_after>
import 'Matrix.dart';

///
/// GRID
/// 
/// 4x4 matrix
/// 
///

class Grid {
  
  Matrix _grid;
  
  Grid() {
    _grid = new Matrix.fromZero(4, 4);
  }
  
  Grid.fromJSON(String json) {
    _grid = Matrix.parseMatrix(json, 4, 4);
  }
  
  //Get & Set methods
  
  int getElement(int x, int y) {
    if (x>=0 && x<4 && y>=0 && y<4) {
      return _grid.getElement(x, y);
    } else {
      return 0;
    }
  }
  
  void setElement(int x, int y, int value) {
    if (x>=0 && x<4 && y>=0 && y<4) {
      _grid.setElement(value, x, y);
    }
  }
  
}
{'fraction_non_alphanumeric': 0.19913419913419914, 'fraction_numerical': 0.024531024531024532, 'mean_word_length': 1.78714859437751, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3984106', 'n_tokens_mistral': 303, 'n_tokens_neox': 295, 'n_words': 64}