<commit_before>module SchemaPlusDefaultExpr
  module Middleware

    module Sql
      module ColumnOptions

        # Add options for default expressions
        def before(env)
          options = env.options
          return unless env.caller.options_include_default?(options)

          default = options[:default]

          if default.is_a? Hash and [[:expr], [:value]].include?(default.keys)
            value = default[:value]
            expr = env.connection.sql_for_function(default[:expr]) || default[:expr] if default[:expr]<commit_msg>no need to call internal `options_include_default?`<commit_after>module SchemaPlusDefaultExpr
  module Middleware

    module Sql
      module ColumnOptions

        # Add options for default expressions
        def before(env)
          options = env.options

          return unless (default = options[:default])

          if default.is_a? Hash and [[:expr], [:value]].include?(default.keys)
            value = default[:value]
            expr = env.connection.sql_for_function(default[:expr]) || default[:expr] if default[:expr]
{'fraction_non_alphanumeric': 0.09805735430157261, 'fraction_numerical': 0.0, 'mean_word_length': 2.8505338078291813, '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': '7546683', 'n_tokens_mistral': 278, 'n_tokens_neox': 272, 'n_words': 73}