<commit_before>Paperclip.interpolates :dav_root do |attachment, style|
  Droom.dav_root
end

Paperclip.interpolates :person do |attachment, style|
  attachment.instance.person_id
end

# Slug in this context will be the identifying string for either the group or the event
# to which our document_attachment is attached. If none is present, we use 'unattached'.
#
Paperclip.interpolates :slug do |attachment, style|
  attachment.instance.slug
end

Paperclip.interpolates :category do |attachment, style|
  attachment.instance.category
end

Paperclip.interpolates :category_and_slug do |attachment, style|
  [attachment.instance.slug, attachment.instance.category].compact.join('/')<commit_msg>use category name as subfolder<commit_after>Paperclip.interpolates :dav_root do |attachment, style|
  Droom.dav_root
end

Paperclip.interpolates :person do |attachment, style|
  attachment.instance.person_id
end

# Slug in this context will be the identifying string for either the group or the event
# to which our document_attachment is attached. If none is present, we use 'unattached'.
#
Paperclip.interpolates :slug do |attachment, style|
  attachment.instance.slug
end

Paperclip.interpolates :category do |attachment, style|
  attachment.instance.category
end

Paperclip.interpolates :category_and_slug do |attachment, style|
  path = attachment.instance.slug
  path << "/#{attachment.instance.category.name.parameterize}" if attachment.instance.category
  path
{'fraction_non_alphanumeric': 0.08013698630136987, 'fraction_numerical': 0.0, 'mean_word_length': 5.640909090909091, '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': '1188277', 'n_tokens_mistral': 426, 'n_tokens_neox': 419, 'n_words': 136}