<commit_before>(ns example-pipeline.pipeline
  (:use [lambdacd.steps.manualtrigger])
  (:require
    [ring.server.standalone :as ring-server]
    [lambdacd.ui.ui-server :as ui]
    [lambdacd.runners :as runners]
    [lambdacd.util :as util]
    [clojure.tools.logging :as log]
    [compojure.core :refer :all]
    [lambdacd-artifacts.core :as artifacts]
    [lambdacd-lineup.core :as lineup]
    [lambdacd-lineup.io :as io])
  (:gen-class))

(def pipeline-def
  `(
     wait-for-manual-trigger
     (lineup/take-screenshots "develop")
     (lineup/compare-with-screenshots "develop")
     (lineup/analyse-comparison "develop")
     wait-for-manual-trigger
     (lineup/take-screenshots "live")
     (lineup/compare-with-screenshots "live")
     (lineup/analyse-comparison "live")
     ))

(defn -main [& args]
  (let [home-dir (util/create-temp-dir)
        artifacts-path-context "/artifacts"
        lineup-cfg (io/load-config-file "lineup.json")
        config {:lineup-cfg               lineup-cfg
                :home-dir                 home-dir
                :dont-wait-for-completion false
                :artifacts-path-context   artifacts-path-context}
        pipeline (lambdacd.core/assemble-pipeline pipeline-def config)<commit_msg>fix example pipeline config<commit_after>(ns example-pipeline.pipeline
  (:use [lambdacd.steps.manualtrigger])
  (:require
    [ring.server.standalone :as ring-server]
    [lambdacd.ui.ui-server :as ui]
    [lambdacd.runners :as runners]
    [lambdacd.util :as util]
    [clojure.tools.logging :as log]
    [compojure.core :refer :all]
    [lambdacd-artifacts.core :as artifacts]
    [lambdacd-lineup.core :as lineup]
    [lambdacd-lineup.io :as io])
  (:gen-class))

(def pipeline-def
  `(
     wait-for-manual-trigger
     (lineup/take-screenshots "develop")
     (lineup/compare-with-screenshots "develop")
     (lineup/analyse-comparison "develop")
     wait-for-manual-trigger
     (lineup/take-screenshots "live")
     (lineup/compare-with-screenshots "live")
     (lineup/analyse-comparison "live")
     ))

(defn -main [& args]
  (let [home-dir (util/create-temp-dir)
        artifacts-path-context "/artifacts"
        lineup-cfg {"urls"        {
                                   "https://#env#.otto.de" {
                                                            "paths"       ["/" "multimedia"]
                                                            "max-diff"    2
                                                            "env-mapping" {"live" "www"}}
                                   }
                    "browser"     :firefox
                    "resolutions" [600 800]
                    }
        config {:lineup-cfg               lineup-cfg
                :home-dir                 home-dir
                :dont-wait-for-completion false
                :artifacts-path-context   artifacts-path-context}
        pipeline (lambdacd.core/assemble-pipeline pipeline-def config)
{'fraction_non_alphanumeric': 0.12470429199053734, 'fraction_numerical': 0.0023656640757012504, 'mean_word_length': 1.803030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3502990', 'n_tokens_mistral': 984, 'n_tokens_neox': 940, 'n_words': 160}