<commit_before>module Musicality

class ScoreEngraver
  LILYPOND_VERSION = "2.18.2"

  def initialize score
    @start_meter = score.start_meter
    @meter_changes = score.meter_changes
    @start_key = score.start_key
    @key_changes = score.key_changes

    @parts = score.collated? ? score.parts : ScoreCollator.new(score).collate_parts
    @parts.each do |part_name, part|
      unless parts.lilypond_settings
        parts.settings.push LilypondSettings.new(part_name)
      end
    end

    @header = ScoreEngraver.header score.title, score.composer
    @part_titles = ScoreEngraver.figure_part_titles @parts
  end

  def self.figure_part_titles parts    <commit_msg>Fix typo<commit_after>module Musicality

class ScoreEngraver
  LILYPOND_VERSION = "2.18.2"

  def initialize score
    @start_meter = score.start_meter
    @meter_changes = score.meter_changes
    @start_key = score.start_key
    @key_changes = score.key_changes

    @parts = score.collated? ? score.parts : ScoreCollator.new(score).collate_parts
    @parts.each do |part_name, part|
      unless part.lilypond_settings
        part.settings.push LilypondSettings.new(part_name)
      end
    end

    @header = ScoreEngraver.header score.title, score.composer
    @part_titles = ScoreEngraver.figure_part_titles @parts
  end

  def self.figure_part_titles parts    
{'fraction_non_alphanumeric': 0.0790454884414616, 'fraction_numerical': 0.005965697240865026, 'mean_word_length': 3.627586206896552, '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': '5825125', 'n_tokens_mistral': 459, 'n_tokens_neox': 442, 'n_words': 85}