<commit_before>{-# LANGUAGE QuasiQuotes #-}
module Cauterize.GHC7.Generate.GenStack
       ( generateOutput
       ) where

import Cauterize.GHC7.Generate.Utils
import qualified Cauterize.Specification as Spec
import System.FilePath.Posix
import Data.String.Interpolate.Util
import Data.String.Interpolate.IsString

generateOutput :: Spec.Specification -> FilePath -> IO ()
generateOutput _ out = do
    stackDir <- createPath [out]
    let stackPath = stackDir `combine` "stack.yaml"
    let stackData = stackYamlTempl
    writeFile stackPath stackData

stackYamlTempl :: String
stackYamlTempl = unindent [i|
  flags: {}
  packages:
  - '.'
  - location:
      git: https://github.com/cauterize-tools/cauterize.git
      commit: <PASSWORD>df<PASSWORD>
  - location:
      git: https://github.com/aisamanra/s-cargot.git
      commit: 1<PASSWORD>a7<PASSWORD>fc5e72ab6ea9a813762bf86d47d49
  - location:
      git: https://github.com/cauterize-tools/crucible.git
      commit: 7f8147e0fbfe210df9e6c83f4c0d48c3de4ed9f7
  - location:
      git: https://github.com/cauterize-tools/caut-ghc7-ref.git
      commit: eb343ec11f088970f69fbc90cf57596ad8dc59b0
  extra-deps:
    - cereal-plus-0.4.0
  resolver: lts-2.21|]
<commit_msg>Update stack.<commit_after>{-# LANGUAGE QuasiQuotes #-}
module Cauterize.GHC7.Generate.GenStack
       ( generateOutput
       ) where

import Cauterize.GHC7.Generate.Utils
import qualified Cauterize.Specification as Spec
import System.FilePath.Posix
import Data.String.Interpolate.Util
import Data.String.Interpolate.IsString

generateOutput :: Spec.Specification -> FilePath -> IO ()
generateOutput _ out = do
    stackDir <- createPath [out]
    let stackPath = stackDir `combine` "stack.yaml"
    let stackData = stackYamlTempl
    writeFile stackPath stackData

stackYamlTempl :: String
stackYamlTempl = unindent [i|
  flags: {}
  packages:
  - '.'
  - location:
      git: https://github.com/cauterize-tools/cauterize.git
      commit: cff794399744a4038c0f2b2dfbc4c43593d2bcbd
  - location:
      git: https://github.com/aisamanra/s-cargot.git
      commit: 1<PASSWORD>a<PASSWORD>bf86d<PASSWORD>
  - location:
      git: https://github.com/cauterize-tools/crucible.git
      commit: 7f8147e0fbfe210df9e6c83f4c0d48c3de4ed9f7
  - location:
      git: https://github.com/cauterize-tools/caut-ghc7-ref.git
      commit: 36f28786cd97cf9e810649d75270b2ac0cb8d1a5
  extra-deps:
    - cereal-plus-0.4.0
  resolver: lts-2.21|]

{'fraction_non_alphanumeric': 0.10593047034764826, 'fraction_numerical': 0.06339468302658487, 'mean_word_length': 3.623818525519849, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 14, 'https://': 8, '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': '4655488', 'n_tokens_mistral': 990, 'n_tokens_neox': 919, 'n_words': 145}