<commit_before>module Exlibris
  module Aleph
    class Patron
      class CirculationPolicy
        class Privileges

          attr_reader :borrow, :photocopy, :request, :request_multiple,
            :request_on_shelf, :renew, :book, :rush_cataloging

          def initialize(row)
            @borrow = row.borrow
            @photocopy = row.photocopy
            @request = row.request
            @request_multiple = row.request_multiple
            @request_on_shelf = row.request_on_shelf
            @renew = row.renew
            @book = row.book
            @rush_cataloging = row.rush_cataloging
          end

          def can_borrow?
            borrow == 'Y'
          end

          def can_photocopy?
            photocopy == 'Y'
          end

          def can_request?<commit_msg>Use the more generic term "privileges" for the variable instead of "row"<commit_after>module Exlibris
  module Aleph
    class Patron
      class CirculationPolicy
        class Privileges

          attr_reader :borrow, :photocopy, :request, :request_multiple,
            :request_on_shelf, :renew, :book, :rush_cataloging

          def initialize(privileges)
            @borrow = privileges.borrow
            @photocopy = privileges.photocopy
            @request = privileges.request
            @request_multiple = privileges.request_multiple
            @request_on_shelf = privileges.request_on_shelf
            @renew = privileges.renew
            @book = privileges.book
            @rush_cataloging = privileges.rush_cataloging
          end

          def can_borrow?
            borrow == 'Y'
          end

          def can_photocopy?
            photocopy == 'Y'
          end

          def can_request?
{'fraction_non_alphanumeric': 0.0660486674391657, 'fraction_numerical': 0.0, 'mean_word_length': 1.7854838709677419, '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': '6199957', 'n_tokens_mistral': 514, 'n_tokens_neox': 475, 'n_words': 110}