<commit_before># Extensions for using memcache-client with EventMachine

raise "memcache/event_machine requires Ruby 1.9" if RUBY_VERSION < '1.9'

require 'fiber'

class MemCache
  
  def check_multithread_status!
  end
<commit_msg>Disable the multithread mutex, it screws up the Fibered execution.<commit_after># Extensions for using memcache-client with EventMachine

raise "memcache/event_machine requires Ruby 1.9" if RUBY_VERSION < '1.9'

require 'memcache'
require 'eventmachine'
require 'fiber'

class MemCache
  
  # Since we are working in a single Thread, multiple Fiber environment,
  # disable the multithread Mutex as it will not work.
  DEFAULT_OPTIONS[:multithread] = false

  def check_multithread_status!
  end

{'fraction_non_alphanumeric': 0.06456043956043957, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 4.975409836065574, 'pattern_counts': {'":': 0, '<': 5, '<?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': '790908', 'n_tokens_mistral': 232, 'n_tokens_neox': 223, 'n_words': 79}