<commit_before>class NodeDB
  attr_accessor :local_node_db, :our_node

  def sync
    # We replicate our state to the management node(s)
    management_nodes = Node.by_is_management.reverse
    management_nodes.each do |mng_node|
      remote_db = mng_node.get_node_db
      if !(mng_node.name == our_node.name)
        begin 
          local_node_db.replicate_from(remote_db)<commit_msg>Little note<commit_after>class NodeDB
  attr_accessor :local_node_db, :our_node

  def sync
    # We replicate our state to the management node(s)
    management_nodes = Node.by_is_management.reverse
    # NOTE: randomize the order for load balancing here
    
    management_nodes.each do |mng_node|
      remote_db = mng_node.get_node_db
      if !(mng_node.name == our_node.name)
        begin 
          local_node_db.replicate_from(remote_db)
{'fraction_non_alphanumeric': 0.06706586826347305, 'fraction_numerical': 0.0, 'mean_word_length': 3.4, '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': '1830159', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 62}