<commit_before>module ChaiIo
  module Report

    private

      # Load report data - need to re-factor this
      def load_report_data(report)
        begin
          runner = ReportRunner.new(report, params)
          @data = runner.run.to_json
          @columns = runner.columns.to_json
          @query_params = runner.query_params.to_json
          @filters = runner.filters.to_json
        rescue Sequel::DatabaseError => e
         @query_error = true
         flash.now[:error] = "Query Error: #{e.message}"
        rescue Timeout::Error => e
         @query_error = true
         flash.now[:error] = "Query timed out."
        rescue => e
         flash.now[:error] = "Error: Error connecting to the database!"
         @connection_error = true
        end

        @data
      end

  end
end<commit_msg>fixing a bug with filters and query params<commit_after>module ChaiIo
  module Report

    private

      # Load report data - need to re-factor this
      def load_report_data(report)
        begin
          runner = ReportRunner.new(report, params)
          @data = runner.run.to_json
          @columns = runner.columns.to_json
          @query_params = runner.query_params
          @filters = runner.filters
        rescue Sequel::DatabaseError => e
         @query_error = true
         flash.now[:error] = "Query Error: #{e.message}"
        rescue Timeout::Error => e
         @query_error = true
         flash.now[:error] = "Query timed out."
        rescue => e
         flash.now[:error] = "Error: Error connecting to the database!"
         @connection_error = true
        end

        @data
      end

  end
end
{'fraction_non_alphanumeric': 0.09018890920170627, 'fraction_numerical': 0.0, 'mean_word_length': 1.9746376811594204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4412606', 'n_tokens_mistral': 459, 'n_tokens_neox': 454, 'n_words': 126}