<commit_before>module Api
  module V2
    module AdditionalCodes
      class AdditionalCodeSerializer
        include FastJsonapi::ObjectSerializer

        set_type :additional_code

        set_id :additional_code_sid

        attributes :code, :description, :formatted_description

        has_many :measures, object_method_name: :valid_measures, serializer: Api::V2::AdditionalCodes::MeasureSerializer<commit_msg>added extra info for additional code serialization.<commit_after>module Api
  module V2
    module AdditionalCodes
      class AdditionalCodeSerializer
        include FastJsonapi::ObjectSerializer

        set_type :additional_code

        set_id :additional_code_sid

        attributes :additional_code_type_id, :additional_code, :code, :description, :formatted_description

        has_many :measures, object_method_name: :valid_measures, serializer: Api::V2::AdditionalCodes::MeasureSerializer
{'fraction_non_alphanumeric': 0.05786026200873363, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 4.458333333333333, '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': '2370995', 'n_tokens_mistral': 244, 'n_tokens_neox': 231, 'n_words': 55}