<commit_before>package bc

/**
  * @author lmignot
  */
class IAdd {

}<commit_msg>cw-two - initial implementation of IAdd ByteCode<commit_after>package bc
import vm.VirtualMachine

/**
  * @author lmignot
  */
case class IAdd() extends ByteCode {
  /**
    * @see [[bc.ByteCode.code]]
    */
  override val code: Byte = bytecode("iadd")

  /**
    * @see [[bc.ByteCode.execute()]]
    */
  override def execute(vm: VirtualMachine): VirtualMachine = {
    val (x, vm2) = vm.pop()
    val (y, _) = vm2.pop()
    vm2.push(x + y)
  }
}
{'fraction_non_alphanumeric': 0.16541353383458646, 'fraction_numerical': 0.005639097744360902, 'mean_word_length': 2.8905109489051095, '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': '2971170', 'n_tokens_mistral': 199, 'n_tokens_neox': 196, 'n_words': 45}