<commit_before>int lookAndSay(int a) {
  var d = digits(a);
  
  var n = [];
  var counts = [];
  
  int digit = d[0];
  int count = 0;
  int x = 0;
  
  while (x < d.length) {
    var m = d[x];
    
    if (digit != null && m != digit) {
      n.add(count);
      n.add(digit);
      count = 0;
      digit = m;
    }
    
    count++;
    
    x++;
  }
  
  n.add(count);
  n.add(digit);
  
  return int.parse(n.join());
}<commit_msg>Forgot to add digits method for look and say numbers.<commit_after>int lookAndSay(int a) {
  var d = digits(a);
  
  var n = [];
  var counts = [];
  
  int digit = d[0];
  int count = 0;
  int x = 0;
  
  while (x < d.length) {
    var m = d[x];
    
    if (digit != null && m != digit) {
      n.add(count);
      n.add(digit);
      count = 0;
      digit = m;
    }
    
    count++;
    
    x++;
  }
  
  n.add(count);
  n.add(digit);
  
  return int.parse(n.join());
}

List<int> digits(int input) => new List<int>.generate(input.toString().length, (i) => int.parse(input.toString()[i]));
{'fraction_non_alphanumeric': 0.18410852713178294, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 1.901685393258427, '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': '3679421', 'n_tokens_mistral': 431, 'n_tokens_neox': 410, 'n_words': 100}