<commit_before>module Tritium
  module Engines
    class Standard < Base
      module AttributeFunctions
        def attribute_invocation(ins, ctx, pos_args, kwd_args)
          #case ins.name
          #else
            throw "Method #{ins.name} not implemented in Attribute scope"
          #end
        end
      end
    end
  end
end<commit_msg>Attribute name() and value() are working<commit_after>module Tritium
  module Engines
    class Standard < Base
      module AttributeFunctions
        def attribute_invocation(ins, ctx, pos_args, kwd_args)
          case ins.name
          when :value
            val = Context[ins, ctx.value.value]
            run_children(ins, val)
            ctx.value.value = val.value
          when :name
            val = Context[ins, ctx.value.name]
            run_children(ins, val)
            ctx.value.name = val.value
          else
            throw "Method #{ins.name} not implemented in Attribute scope"
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06640237859266601, 'fraction_numerical': 0.0, 'mean_word_length': 1.8055555555555556, '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': '6123448', 'n_tokens_mistral': 273, 'n_tokens_neox': 272, 'n_words': 84}