<commit_before># basing this structure on that suggested in http://vrybas.github.io/blog/2014/08/15/a-way-to-organize-poros-in-rails/
module StashDatacite
  module Resource
    class Review
      def initialize(resource)
        @resource = resource
      end

      def title
        @resource.titles.where(title_type: nil).first
      end

      def resource_type
        @resource.resource_type
      end

      def creators
        @resource.creators
      end

      def version
        @resource.version
      end

      def identifier
        @resource.identifier
      end

      def abstract
        @abstract = @resource.descriptions.where(description_type: :abstract).first
      end

      def methods
        @methods = @resource.descriptions.where(description_type: :methods).first
      end

      def other
        @other = @resource.descriptions.where(description_type: :other).first
      end

      def subjects
        @subjects = @resource.subjects
      end

      def contributors
        @contributors = @resource.contributors
      end

      def related_identifiers
        @related_identifiers = @resource.related_identifiers
      end

      def file_uploads
        @file_uploads = @resource.latest_file_states
      end

      def image_uploads
        @image_uploads = @resource.image_uploads
      end

      def geolocation_points
        @geolocation_points = @resource.geolocation_points
      end<commit_msg>Changing review section to be as John and I talked about.<commit_after># basing this structure on that suggested in http://vrybas.github.io/blog/2014/08/15/a-way-to-organize-poros-in-rails/
module StashDatacite
  module Resource
    class Review
      def initialize(resource)
        @resource = resource
      end

      def title
        @resource.titles.where(title_type: nil).first
      end

      def resource_type
        @resource.resource_type
      end

      def creators
        @resource.creators
      end

      def version
        @resource.version
      end

      def identifier
        @resource.identifier
      end

      def abstract
        @abstract = @resource.descriptions.where(description_type: :abstract).first
      end

      def methods
        @methods = @resource.descriptions.where(description_type: :methods).first
      end

      def other
        @other = @resource.descriptions.where(description_type: :other).first
      end

      def subjects
        @subjects = @resource.subjects
      end

      def contributors
        @contributors = @resource.contributors
      end

      def related_identifiers
        @related_identifiers = @resource.related_identifiers
      end

      def file_uploads
        @file_uploads = @resource.current_file_uploads
      end

      def image_uploads
        @image_uploads = @resource.image_uploads
      end

      def geolocation_points
        @geolocation_points = @resource.geolocation_points
      end
{'fraction_non_alphanumeric': 0.06441717791411043, 'fraction_numerical': 0.0054533060668029995, 'mean_word_length': 2.1764069264069263, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4253887', 'n_tokens_mistral': 833, 'n_tokens_neox': 775, 'n_words': 187}