<commit_before>require 'bert/types'

require 'ffi'

module FFI
  module BERT
    class BinValue < FFI::Struct

      layout :length, :bert_bin_size_t,
             :data, :pointer

      def data
        self[:data].get_bytes(self[:length])
      end
<commit_msg>Fixed BinValue#data.<commit_after>require 'bert/types'

require 'ffi'

module FFI
  module BERT
    class BinValue < FFI::Struct

      layout :length, :bert_bin_size_t,
             :data, :pointer

      def data
        self[:data].get_bytes(0,self[:length])
      end

{'fraction_non_alphanumeric': 0.10654205607476636, 'fraction_numerical': 0.001869158878504673, 'mean_word_length': 2.6462585034013606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '314730', 'n_tokens_mistral': 181, 'n_tokens_neox': 176, 'n_words': 41}