<commit_before>module Api
  module V1
    module Adaptation
      class VariableSerializer < ActiveModel::Serializer
        attribute :slug
        attribute :name
        has_many :values, serializer: Adaptation::ValueSerializer do
          object.values.select(&:value)<commit_msg>Fix serializer<commit_after>module Api
  module V1
    module Adaptation
      class VariableSerializer < ActiveModel::Serializer
        attribute :slug
        attribute :name
        has_many :values, serializer: Adaptation::ValueSerializer do
          object.values.reject do |v|
            v.value.nil?
          end
{'fraction_non_alphanumeric': 0.06414473684210527, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 2.7134146341463414, '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': '976948', 'n_tokens_mistral': 156, 'n_tokens_neox': 152, 'n_words': 42}