<commit_before>module Hyrax::MemberManagement
  extend ActiveSupport::Concern

  included do
    def structure
      parent_presenter
      @members = presenter.member_presenters
      @logical_order = presenter.logical_order_object
    end

    def save_structure
      curation_concern.logical_order.order = { "label": params["label"], "nodes": params["nodes"] }
      curation_concern.save
      head 200
    end
  end
end<commit_msg>Nuke logical_order (like Pumpkin)<commit_after>module Hyrax::MemberManagement
  extend ActiveSupport::Concern

  included do
    def structure
      parent_presenter
      @members = presenter.member_presenters
      @logical_order = presenter.logical_order_object
    end

    def save_structure
      curation_concern.logical_order.destroy(eradicate: true)
      curation_concern.reload
      curation_concern.logical_order.order = { "label": params["label"], "nodes": params["nodes"] }
      curation_concern.save!
      head 200
    rescue StandardError => e
      Rails.logger.warn "Error: #{e}"
    end
  end
end
{'fraction_non_alphanumeric': 0.08246445497630332, 'fraction_numerical': 0.005687203791469194, 'mean_word_length': 3.532188841201717, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 4, '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': '249460', 'n_tokens_mistral': 330, 'n_tokens_neox': 312, 'n_words': 65}