<commit_before>package instructions

import "jvmgo/rtda"

// Store float into local variable 
type fstore struct {Index8Instruction}
func (self *fstore) Execute(thread *rtda.Thread) {
    _fstore(thread, uint(self.index))
}

type fstore_0 struct {NoOperandsInstruction}
func (self *fstore_0) Execute(thread *rtda.Thread) {
    _fstore(thread, 0)
}

type fstore_1 struct {NoOperandsInstruction}
func (self *fstore_1) Execute(thread *rtda.Thread) {
    _fstore(thread, 1)
}

type fstore_2 struct {NoOperandsInstruction}
func (self *fstore_2) Execute(thread *rtda.Thread) {
    _fstore(thread, 2)
}

type fstore_3 struct {NoOperandsInstruction}
func (self *fstore_3) Execute(thread *rtda.Thread) {
    _fstore(thread, 3)
}

func _fstore(thread *rtda.Thread, index uint) {
    val := thread.CurrentFrame().OperandStack().PopFloat()
    thread.CurrentFrame().LocalVars().SetFloat(index, val)
}<commit_msg>refactor fstore<commit_after>package instructions

import "jvmgo/rtda"

// Store float into local variable 
type fstore struct {Index8Instruction}
func (self *fstore) Execute(frame *rtda.Frame) {
    _fstore(frame, uint(self.index))
}

type fstore_0 struct {NoOperandsInstruction}
func (self *fstore_0) Execute(frame *rtda.Frame) {
    _fstore(frame, 0)
}

type fstore_1 struct {NoOperandsInstruction}
func (self *fstore_1) Execute(frame *rtda.Frame) {
    _fstore(frame, 1)
}

type fstore_2 struct {NoOperandsInstruction}
func (self *fstore_2) Execute(frame *rtda.Frame) {
    _fstore(frame, 2)
}

type fstore_3 struct {NoOperandsInstruction}
func (self *fstore_3) Execute(frame *rtda.Frame) {
    _fstore(frame, 3)
}

func _fstore(frame *rtda.Frame, index uint) {
    val := frame.OperandStack().PopFloat()
    frame.LocalVars().SetFloat(index, val)
}
{'fraction_non_alphanumeric': 0.12093553907586994, 'fraction_numerical': 0.014831717056474614, 'mean_word_length': 5.355072463768116, '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': '3724289', 'n_tokens_mistral': 636, 'n_tokens_neox': 640, 'n_words': 147}