<commit_before>module Rules.Wrappers.Ghc (ghcWrapper) where

import Base
import Expression
import Oracles

ghcWrapper :: FilePath -> Expr String
ghcWrapper program = do
    lift $ need [sourcePath -/- "Rules/Wrappers/Ghc.hs"]
    top <- getSetting GhcSourcePath
    return $ unlines
        [ "#!/bin/bash"
        , "exec " ++ (top -/- program)
          ++ " -B" ++ (top -/- takeDirectory program) ++ " ${1+\"$@\"}" ]<commit_msg>Fixes the -B path for the ghcWrapper.<commit_after>module Rules.Wrappers.Ghc (ghcWrapper) where

import Base
import Expression
import Oracles

ghcWrapper :: FilePath -> Expr String
ghcWrapper program = do
    lift $ need [sourcePath -/- "Rules/Wrappers/Ghc.hs"]
    top <- getSetting GhcSourcePath
    return $ unlines
        [ "#!/bin/bash"
        , "exec " ++ (top -/- program)
          ++ " -B" ++ (top -/- "inplace" -/- "lib") ++ " ${1+\"$@\"}" ]
{'fraction_non_alphanumeric': 0.16855203619909503, 'fraction_numerical': 0.0022624434389140274, 'mean_word_length': 2.672199170124481, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '326261', 'n_tokens_mistral': 305, 'n_tokens_neox': 297, 'n_words': 76}