<commit_before>class RLMRealmConfiguration
  class << self
    alias :default :defaultConfiguration
  end

  alias :schema_version :schemaVersion

  def schema_version=(new_version)
    self.schemaVersion = new_version
  end

  def self.migrate_to_version(version, &block)
    config = self.default
    config.schema_version = version

    config.migrationBlock = block
    RLMRealmConfiguration.setDefaultConfiguration(config)
  end
end<commit_msg>migration fix<commit_after>class RLMRealmConfiguration
  class << self
    alias :default :defaultConfiguration
  end

  alias :schema_version :schemaVersion

  def schema_version=(new_version)
    self.schemaVersion = new_version
  end

  def self.migrate_to_version(version, &block)
    config = self.default
    config.schema_version = version

    config.migrationBlock = block
    RLMRealmConfiguration.setDefaultConfiguration(config)

    RLMRealm.default
  end
end
{'fraction_non_alphanumeric': 0.06195652173913044, 'fraction_numerical': 0.0, 'mean_word_length': 4.449704142011834, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7646485', 'n_tokens_mistral': 270, 'n_tokens_neox': 262, 'n_words': 57}