<commit_before>module ApplicationHelper
  def tree_ol(acts_as_tree_set, init=true, &block)
    if acts_as_tree_set.size > 0
      if init
        ret = '<ol class="sortable_frames">'
      else
        ret = '<ol>'
      end
      acts_as_tree_set.collect do |item|
        #next if item.parent_id && init
        ret += '<li id="frame_'+item.id.to_s+'" class="frame"><div>'
        ret += yield item
        ret += '</div>'
        ret += tree_ol(item.children, false, &block) if item.children.size > 0
        ret += '</li>'
      end
      ret += '</ol>'
    end
    ret.html_safe
  end
end<commit_msg>Fix creation of presentations.<commit_after>module ApplicationHelper
  def tree_ol(acts_as_tree_set, init=true, &block)
    if acts_as_tree_set.size > 0
      if init
        ret = '<ol class="sortable_frames">'
      else
        ret = '<ol>'
      end
      acts_as_tree_set.collect do |item|
        #next if item.parent_id && init
        ret += '<li id="frame_'+item.id.to_s+'" class="frame"><div>'
        ret += yield item
        ret += '</div>'
        ret += tree_ol(item.children, false, &block) if item.children.size > 0
        ret += '</li>'
      end
      ret += '</ol>'
    end
    unless ret == nil
      ret.html_safe
    end
  end
end
{'fraction_non_alphanumeric': 0.13899920571882446, 'fraction_numerical': 0.003177124702144559, 'mean_word_length': 2.1818181818181817, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '4101895', 'n_tokens_mistral': 420, 'n_tokens_neox': 414, 'n_words': 106}