<commit_before>module SchemaPlus::Enums
  module Middleware

    module Dumper
      module Initial

        module Postgresql

          def after(env)
            env.connection.enums.sort_by {|k| k[1] }.each do |schema, name, values|
              params = [name.inspect]
              params << values.map(&:inspect).join(', ')
              params << ":schema => #{schema.inspect}" if schema != 'public'

              env.initial << "  create_enum #{params.join(', ')}"
            end
          end
        end
      end
    end
  end
end<commit_msg>minor code cleanup<commit_after>module SchemaPlus::Enums
  module Middleware

    module Dumper
      module Initial

        module Postgresql

          def after(env)
            env.connection.enums.sort_by(&its[1]).each do |schema, name, values|
              params = [name.inspect]
              params << values.map(&:inspect).join(', ')
              params << ":schema => #{schema.inspect}" if schema != 'public'

              env.initial << "  create_enum #{params.join(', ')}"
            end
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11917562724014337, 'fraction_numerical': 0.0017921146953405018, 'mean_word_length': 1.751231527093596, 'pattern_counts': {'":': 2, '<': 15, '<?xml version=': 0, '>': 5, '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': '5377461', 'n_tokens_mistral': 321, 'n_tokens_neox': 311, 'n_words': 78}