<commit_before># Client -> Server push value buffer.
# Works like HValue, but only streams out changes
# instead of keeping only the last state.
# The nature of the buffer is volatile, so don't rely
# on re-transmission on failures.
# Ideal for event logging purposes.
HPushValue = HValue.extend
  constructor: (_id,_value)->
    @buffer = [_value]
    @base(_id,_value)
  toSync: ->
    _arr = []
    _histLen = @buffer.length
    for i in [0..(_histLen)]
      _arr.push( @buffer.shift() )
    _arr
  set: (_value)->
    @buffer.push(_value)
    @value = _value
    COMM.Values.changed(@)
    @refresh()<commit_msg>Fixed HPushValue working with same values<commit_after># Client -> Server push value buffer.
# Works like HValue, but only streams out changes
# instead of keeping only the last state.
# The nature of the buffer is volatile, so don't rely
# on re-transmission on failures.
# Ideal for event logging purposes.
HPushValue = HValue.extend
  constructor: (_id,_value)->
    @buffer = []
    @base( _id, null )
  toSync: ->
    _arr = []
    _histLen = @buffer.length
    for i in [0..(_histLen-1)]
      _arr.push( @buffer.shift() )
    @value = null
    _arr
  set: (_value)->
    @buffer.push(_value)
    @value = _value 
    COMM.Values.changed(@)
    @refresh()

{'fraction_non_alphanumeric': 0.12118842845973417, 'fraction_numerical': 0.0023455824863174357, 'mean_word_length': 3.0634920634920637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4661058', 'n_tokens_mistral': 410, 'n_tokens_neox': 403, 'n_words': 137}