<commit_before>(ns conference-rating.server
  (:require [conference-rating.handler :refer [app]]
            [environ.core :refer [env]]
            [conference-rating.db-handler :as db-handler]
            [ring.adapter.jetty :refer [run-jetty]]
            [ring.middleware.logger :as ring-logger]
            [ring.middleware.session :as session]
            [ring.middleware.session.cookie :as cookie]
            [ring.middleware.okta :refer [wrap-okta okta-routes]])
  (:gen-class))

(defn do-wrap-okta [handler okta-active]
  (if okta-active
    (wrap-okta handler {:okta-home "https://dev-133267-admin.oktapreview.com/"})<commit_msg>added okta config location, which now comes from snap | fs / sg | #35<commit_after>(ns conference-rating.server
  (:require [conference-rating.handler :refer [app]]
            [environ.core :refer [env]]
            [conference-rating.db-handler :as db-handler]
            [ring.adapter.jetty :refer [run-jetty]]
            [ring.middleware.logger :as ring-logger]
            [ring.middleware.session :as session]
            [ring.middleware.session.cookie :as cookie]
            [ring.middleware.okta :refer [wrap-okta okta-routes]])
  (:gen-class))

(defn do-wrap-okta [handler okta-active]
  (if okta-active
    (wrap-okta handler {:okta-home "https://dev-133267-admin.oktapreview.com/" :okta-config-location "okta-ci-config.xml"})
{'fraction_non_alphanumeric': 0.14409847936278058, 'fraction_numerical': 0.010137581462708182, 'mean_word_length': 2.786301369863014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '507904', 'n_tokens_mistral': 459, 'n_tokens_neox': 455, 'n_words': 90}