<commit_before>include SpreeShipstation

module Spree
  class ShipstationController < Spree::BaseController
    layout false
    include BasicSslAuthentication
    include Spree::DateParamHelper

    def export
      @shipments = Spree::Shipment.exportable
                           .between(date_param(:start_date),
                                    date_param(:end_date))
                           .page(params[:page])
                           .per(50)
    end

    def shipnotify<commit_msg>Skip CSRF token check on ShipStation#shipnotify<commit_after>include SpreeShipstation

module Spree
  class ShipstationController < Spree::BaseController
    layout false
    include BasicSslAuthentication
    include Spree::DateParamHelper


    skip_before_filter :verify_authenticity_token, only: :shipnotify

    def export
      @shipments = Spree::Shipment.exportable
                           .between(date_param(:start_date),
                                    date_param(:end_date))
                           .page(params[:page])
                           .per(50)
    end

    def shipnotify
{'fraction_non_alphanumeric': 0.06244343891402715, 'fraction_numerical': 0.0036199095022624436, 'mean_word_length': 1.9259259259259258, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5099596', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 56}