<commit_before>package instructions

import "jvmgo/rtda"

// Negate double
type dneg struct {NoOperandsInstruction}
func (self *dneg) Execute(thread *rtda.Thread) {
    stack := thread.CurrentFrame().OperandStack()
    val := stack.PopDouble()
    stack.PushDouble(-val)
}

// Negate float
type fneg struct {NoOperandsInstruction}
func (self *fneg) Execute(thread *rtda.Thread) {
    stack := thread.CurrentFrame().OperandStack()
    val := stack.PopFloat()
    stack.PushFloat(-val)
}

// Negate int
type ineg struct {NoOperandsInstruction}
func (self *ineg) Execute(thread *rtda.Thread) {
    stack := thread.CurrentFrame().OperandStack()
    val := stack.PopInt()
    stack.PushInt(-val)
}

// Negate long
type lneg struct {NoOperandsInstruction}
func (self *lneg) Execute(thread *rtda.Thread) {
    stack := thread.CurrentFrame().OperandStack()
    val := stack.PopLong()
    stack.PushLong(-val)
}
<commit_msg>refactor xneg<commit_after>package instructions

import "jvmgo/rtda"

// Negate double
type dneg struct {NoOperandsInstruction}
func (self *dneg) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    val := stack.PopDouble()
    stack.PushDouble(-val)
}

// Negate float
type fneg struct {NoOperandsInstruction}
func (self *fneg) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    val := stack.PopFloat()
    stack.PushFloat(-val)
}

// Negate int
type ineg struct {NoOperandsInstruction}
func (self *ineg) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    val := stack.PopInt()
    stack.PushInt(-val)
}

// Negate long
type lneg struct {NoOperandsInstruction}
func (self *lneg) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    val := stack.PopLong()
    stack.PushLong(-val)
}

{'fraction_non_alphanumeric': 0.13651877133105803, 'fraction_numerical': 0.0, 'mean_word_length': 4.083815028901734, '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': '1339214', 'n_tokens_mistral': 580, 'n_tokens_neox': 595, 'n_words': 137}