<commit_before>Ocamlbuild_plugin.mark_tag_used "tests";;

let env = BaseEnvLight.load () (* setup.data *)

let src_vgithub = "src/vgithub"
let src_bin = "src/bin"
let main_pp = "file:src/bin/main_pp.ml"
let main = "file:src/bin/main.ml"

let github_dispatch =
  let pkg = "github" in
  let have_pkg = bool_of_string (BaseEnvLight.var_get pkg env) in
  let pp_pkg = "pp_" ^ pkg in
  function
  | After_rules  ->
    begin match have_pkg with
      | false -> Ocamlbuild_plugin.mark_tag_used ("pkg_" ^ pkg)
      | true  ->
        let flags = S [ A "-package"; A "github.unix" ] in
        Pathname.define_context src_bin [src_vgithub];
        flag [main_pp; "ocamldep"] flags;
        flag [main_pp; "ocaml"; "compile"] flags;
        let main = Filename.chop_suffix main ".ml" in
        flag [main ^ ".native"; "ocaml"; "link"] flags;
        flag [main ^ ".byte"; "ocaml"; "link"] flags;
    end;
    let pp = match have_pkg with
      | false -> S[A "-pp"; A ("cppo -U HAVE_" ^ String.uppercase pkg)]
      | true  -> S[A "-pp"; A ("cppo -D HAVE_" ^ String.uppercase pkg)]
    in
    flag [main_pp; "ocamldep"] pp;<commit_msg>Remove unused variable in _myocamlbuild<commit_after>Ocamlbuild_plugin.mark_tag_used "tests";;

let env = BaseEnvLight.load () (* setup.data *)

let src_vgithub = "src/vgithub"
let src_bin = "src/bin"
let main_pp = "file:src/bin/main_pp.ml"
let main = "file:src/bin/main.ml"

let github_dispatch =
  let pkg = "github" in
  let have_pkg = bool_of_string (BaseEnvLight.var_get pkg env) in
  function
  | After_rules  ->
    begin match have_pkg with
      | false -> Ocamlbuild_plugin.mark_tag_used ("pkg_" ^ pkg)
      | true  ->
        let flags = S [ A "-package"; A "github.unix" ] in
        Pathname.define_context src_bin [src_vgithub];
        flag [main_pp; "ocamldep"] flags;
        flag [main_pp; "ocaml"; "compile"] flags;
        let main = Filename.chop_suffix main ".ml" in
        flag [main ^ ".native"; "ocaml"; "link"] flags;
        flag [main ^ ".byte"; "ocaml"; "link"] flags;
    end;
    let pp = match have_pkg with
      | false -> S[A "-pp"; A ("cppo -U HAVE_" ^ String.uppercase pkg)]
      | true  -> S[A "-pp"; A ("cppo -D HAVE_" ^ String.uppercase pkg)]
    in
    flag [main_pp; "ocamldep"] pp;
{'fraction_non_alphanumeric': 0.14526129317980513, 'fraction_numerical': 0.0, 'mean_word_length': 2.881443298969072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1406264', 'n_tokens_mistral': 836, 'n_tokens_neox': 812, 'n_words': 226}