<commit_before>require_relative 'ui_attrs'
require_relative 'ui_instructable'
require_relative 'ui_context'
require_relative 'ui_request'

module Pakyow
  module UI
    # Translates view transformations to instructions.
    #
    # @api private
    class UIView
      include Instructable
      include Pakyow::Helpers

      def initialize(scope, session = {})
        super()
        @scope = scope
        @session = session
        @context = UIContext.new(session)
      end

      def nested_instruct_object(_method, _data, scope)
        UIView.new(scope || @scope, @session)<commit_msg>Ensure UIView scope is a symbol<commit_after>require_relative 'ui_attrs'
require_relative 'ui_instructable'
require_relative 'ui_context'
require_relative 'ui_request'

module Pakyow
  module UI
    # Translates view transformations to instructions.
    #
    # @api private
    class UIView
      include Instructable
      include Pakyow::Helpers

      def initialize(scope, session = {})
        super()
        @scope = scope.to_sym
        @session = session
        @context = UIContext.new(session)
      end

      def nested_instruct_object(_method, _data, scope)
        UIView.new(scope || @scope, @session)
{'fraction_non_alphanumeric': 0.07831821929101401, 'fraction_numerical': 0.0, 'mean_word_length': 3.0875420875420874, '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': '3499153', 'n_tokens_mistral': 352, 'n_tokens_neox': 347, 'n_words': 90}