<commit_before># -*- coding: utf-8 -*-
# Copyright (C) 2011 <NAME> <<EMAIL>>
require 'rubygems'; require 'require_relative'
require_relative './base/cmd'

class Trepan::Command::EvalCommand < Trepan::Command

  CATEGORY      = 'data'
  HELP    = <<-HELP
eval [STRING]

Run code in the context of the current frame.

The value of the expression is stored into a global variable so it
may be used again easily. The name of the global variable is printed
next to the inspect output of the value.

If no string is given we run the string from the current source code
about to be run

eval 1+2  # 3
eval @v
eval      # Run current source-code line

See also 'set autoeval'
      HELP

  NAME          = File.basename(__FILE__, '.rb')
  NEED_STACK    = true
  SHORT_HELP    = 'Run code in the current context'
  def run(args)
    if args.size == 1
      loc = @proc.source_location_info<commit_msg>Sync with rb-trepanning<commit_after># -*- coding: utf-8 -*-
# Copyright (C) 2011 <NAME> <<EMAIL>>
require 'rubygems'; require 'require_relative'
require_relative './base/cmd'

class Trepan::Command::EvalCommand < Trepan::Command

  NAME          = File.basename(__FILE__, '.rb')
  CATEGORY      = 'data'
  HELP    = <<-HELP
#{NAME} [STRING]

Run code in the context of the current frame.

The value of the expression is stored into a global variable so it
may be used again easily. The name of the global variable is printed
next to the inspect output of the value.

If no string is given we run the string from the current source code
about to be run

#{NAME} 1+2  # 3
#{NAME} @v
#{NAME}      # Run current source-code line

See also 'set autoeval'
      HELP

  NAME          = File.basename(__FILE__, '.rb')
  NEED_STACK    = true
  SHORT_HELP    = 'Run code in the current context'
  def run(args)
    if args.size == 1
      loc = @proc.source_location_info
{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.009703504043126684, 'mean_word_length': 3.1707865168539326, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '741159', 'n_tokens_mistral': 597, 'n_tokens_neox': 573, 'n_words': 240}