<commit_before>require 'mongoid'
require 'rails_admin/config/sections/list'
require 'rails_admin/adapters/mongoid/abstract_object'

module RailsAdmin
  module Adapters
    module Mongoid
      STRING_TYPE_COLUMN_NAMES = [:name, :title, :subject]
      DISABLED_COLUMN_TYPES = ['Range', 'Moped::BSON::Binary', "BSON::Binary"]
      ObjectId = defined?(Moped::BSON) ? Moped::BSON::ObjectId : BSON::ObjectId
<commit_msg>adds geospatial points to list of disabled columns, cf. https://github.com/sferik/rails_admin/issues/1531<commit_after>require 'mongoid'
require 'rails_admin/config/sections/list'
require 'rails_admin/adapters/mongoid/abstract_object'

module RailsAdmin
  module Adapters
    module Mongoid
      STRING_TYPE_COLUMN_NAMES = [:name, :title, :subject]
      DISABLED_COLUMN_TYPES = ['Range', 'Moped::BSON::Binary', "BSON::Binary", "Mongoid::Geospatial::Point"]
      ObjectId = defined?(Moped::BSON) ? Moped::BSON::ObjectId : BSON::ObjectId

{'fraction_non_alphanumeric': 0.1307531380753138, 'fraction_numerical': 0.0041841004184100415, 'mean_word_length': 5.884892086330935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1539837', 'n_tokens_mistral': 338, 'n_tokens_neox': 328, 'n_words': 58}