<commit_before>import "dart:typed_data";
import "../../lib/sys/moresys.dart";
import "../../lib/io/file.dart";
import "../../lib/lang.dart";


main() {
  p(MoreSys.stat("/home/dewd/t_/jungle/dirent_oh_dirent.c"));
  p(File.exists("/home/dewd/t_/jungle/dirent_oh_dirent.c"));
}<commit_msg>Started work on a StatBuffer class.<commit_after>import "dart:typed_data";
import "../../lib/sys/moresys.dart";
import "../../lib/io/file.dart";
import "../../lib/lang.dart";


class StatBuffer {

  var _bufferForeign, _success = false;

  StatBuffer() {
    var list = new Uint8List(180);
    _bufferForeign = list.buffer.getForeign();
  }

  stat(path) {
    var i = MoreSys.stat(path, _bufferForeign.value);
    _success = i == 0;
    return _success;
  }

  get dev => _bufferForeign.getUint32(0);

  toString() {
    if (_success) {
      return "StatBuffer(dev: ${dev})";
    } else {
      return "StatBuffer()";
    }
  }

}

main() {
  p(MoreSys.stat("/home/dewd/t_/jungle/dirent_oh_dirent.c"));
  p(File.exists("/home/dewd/t_/jungle/dirent_oh_dirent.c"));
  var sb = new StatBuffer();
  p(sb.stat("/home/dewd/t_/jungle/dirent_oh_dirent.c"));
  p(sb);
}
{'fraction_non_alphanumeric': 0.20434782608695654, 'fraction_numerical': 0.006956521739130435, 'mean_word_length': 3.278810408921933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6637535', 'n_tokens_mistral': 461, 'n_tokens_neox': 454, 'n_words': 68}