<commit_before># -*- encoding: us-ascii -*-

module Rubinius
  class AtomicReference
    def initialize(val=nil)
      set(val) if val
    end

    def marshal_dump
      get
    end

    def get
      Rubinius.primitive :atomic_get
      raise PrimitiveFailure, "get failed"
    end

    alias_method :value, :get

    def set(val)
      Rubinius.primitive :atomic_set
      raise PrimitiveFailure, "set failed"
    end
<commit_msg>Support loading Rubinius::AtomicReference<commit_after># -*- encoding: us-ascii -*-

module Rubinius
  class AtomicReference
    def initialize(val=nil)
      set(val) if val
    end

    def marshal_dump
      get
    end

    def marshal_load(val)
      set(val)
    end

    def get
      Rubinius.primitive :atomic_get
      raise PrimitiveFailure, "get failed"
    end

    alias_method :value, :get

    def set(val)
      Rubinius.primitive :atomic_set
      raise PrimitiveFailure, "set failed"
    end

{'fraction_non_alphanumeric': 0.07415254237288135, 'fraction_numerical': 0.0, 'mean_word_length': 2.448905109489051, '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': '5599333', 'n_tokens_mistral': 309, 'n_tokens_neox': 295, 'n_words': 82}