<commit_before>module API
  module V1
    module Webhooks
      class OptixController < ApplicationController
        def create
          json = JSON.parse(request.raw_post)

          if json["checkin_id"]
            user = User.find_or_create_by!(email: json["member_email"])
            user.update!(name: json["member_full_name"]) if user.name.blank?
          elsif json["email"]
            User.find_or_create_by!(email: json["email"])
          end

          head :ok
        end
      end
    end
  end
end<commit_msg>Add a link to some docs<commit_after>module API
  module V1
    module Webhooks
      class OptixController < ApplicationController
        # https://developer.optixapp.com/using-webhooks/webhooks-list/
        def create
          json = JSON.parse(request.raw_post)

          if json["checkin_id"]
            user = User.find_or_create_by!(email: json["member_email"])
            user.update!(name: json["member_full_name"]) if user.name.blank?
          elsif json["email"]
            User.find_or_create_by!(email: json["email"])
          end

          head :ok
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09553023663453111, 'fraction_numerical': 0.0017528483786152498, 'mean_word_length': 2.111716621253406, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3395666', 'n_tokens_mistral': 335, 'n_tokens_neox': 332, 'n_words': 73}