<commit_before>require 'jit'

module JIT
  class Value
    module UNINITIALIZED; end

    def self.new(function, type, value=UNINITIALIZED)
      # TODO: Not sure if I like this...
      if value == UNINITIALIZED then
        return function.value(type)
      else
        return function.const(type, value)
      end
    end

    def store(value)
      self.function.insn_store(self, value)
    end

    def is_fixnum
      fixnum_flag = self.function.const(JIT::Type::INT, 1)
      return self.function.insn_and(self, fixnum_flag)
    end

    def +(rhs)
      return self.function.insn_add(self, rhs)
    end

    def -(rhs)
      return self.function.insn_sub(self, rhs)<commit_msg>Added *, /, and %.<commit_after>require 'jit'

module JIT
  class Value
    module UNINITIALIZED; end

    def self.new(function, type, value=UNINITIALIZED)
      # TODO: Not sure if I like this...
      if value == UNINITIALIZED then
        return function.value(type)
      else
        return function.const(type, value)
      end
    end

    def store(value)
      self.function.insn_store(self, value)
    end

    def is_fixnum
      fixnum_flag = self.function.const(JIT::Type::INT, 1)
      return self.function.insn_and(self, fixnum_flag)
    end

    def +(rhs)
      return self.function.insn_add(self, rhs)
    end

    def -(rhs)
      return self.function.insn_sub(self, rhs)
    end

    def *(rhs)
      return self.function.insn_mul(self, rhs)
    end

    def /(rhs)
      return self.function.insn_div(self, rhs)
    end

    def %(rhs)
      return self.function.insn_rem(self, rhs)
{'fraction_non_alphanumeric': 0.09937106918238994, 'fraction_numerical': 0.0012578616352201257, 'mean_word_length': 2.421505376344086, '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': '4373643', 'n_tokens_mistral': 543, 'n_tokens_neox': 542, 'n_words': 133}