<commit_before>(* TEST

include dynlink
libraries = ""
readonly_files = "sheep.mli sheep.ml pig.mli"
set plugin1 = "${test_source_directory}/plugin1"
set plugin2 = "${test_source_directory}/plugin2"
set plugin2b = "${test_source_directory}/plugin2b"
set plugin2c = "${test_source_directory}/plugin2c"
set plugin3 = "${test_source_directory}/plugin3"
set plugin4 = "${test_source_directory}/plugin4"
set plugin5 = "${test_source_directory}/plugin5"
set plugin6 = "${test_source_directory}/plugin6"

* shared-libraries
** setup-ocamlc.byte-build-env
*** ocamlc.byte
module = "sheep.mli"
**** ocamlc.byte
module = "sheep.ml"
***** ocamlc.byte
module = "pig.mli"
****** ocamlc.byte
module = "test.ml"
*** script
script = "mkdir plugin1 plugin2 plugin2b plugin2c plugin3 plugin4 plugin5 plugin6"
**** script
script = "cp ${plugin1}/sheep.mli ${plugin1}/sheep.ml plugin1"
**** script
script = "cp ${plugin2}/cow.mli ${plugin2}/cow.ml plugin2"
**** script
script = "cp ${plugin2b}/cow.mli ${plugin2b}/cow.ml plugin2b"
**** script
script = "cp ${plugin2c}/cow.mli ${plugin2c}/cow.ml plugin2c"
**** script
script = "cp ${plugin3}/pig.mli ${plugin3}/pig.ml plugin3"
**** script
script = "cp ${plugin4}/chicken.mli ${plugin4}/chicken.ml plugin4"
**** script
script = "cp ${plugin5}/chicken.mli ${plugin5}/chicken.ml plugin5"
**** script
script = "cp ${plugin6}/pheasant.mli ${plugin6}/pheasant.ml ${plugin6}/partridge.mli ${plugin6}/partridge.ml plugin6"
***** ocamlc.byte
module = "plugin1/sheep.mli"
***** ocamlc.byte
flags = "-I plugin1"
module = "plugin1/sheep.ml"
***** ocamlc.byte
module = "plugin2/cow.mli"
***** ocamlc.byte
flags = "-I plugin2"
module = "plugin2/cow.ml"
***** ocamlc.byte
module = "plugin2b/cow.mli"
***** ocamlc.byte
flags = "-I plugin2b"
module = "plugin2b/cow.ml"
***** ocamlc.byte
module = "plugin2c/cow.mli"
***** ocamlc.byte
flags = "-I plugin2c"
module = "plugin2c/cow.ml"
***** ocamlc.byte
module = "plugin3/pig.mli"
***** ocamlc.byte
flags = "-I plugin3"
module = "plugin3/pig.ml"
***** ocamlc.byte
module = "plugin4/chicken.mli"
***** ocamlc.byte
flags = "-I plugin4"
module = "plugin4/chicken.ml"
***** ocamlc.byte
module = "plugin5/chicken.mli"
***** ocamlc.byte
flags = "-I plugin5"
module = "plugin5/chicken.ml"
***** ocamlc.byte
module = "plugin6/pheasant.mli"
***** ocamlc.byte
flags = "-I plugin6"
module = "plugin6/pheasant.ml"
***** ocamlc.byte
module = "plugin6/partridge.mli"
***** ocamlc.byte
flags = "-I plugin6"
module = "plugin6/partridge.ml"
***** ocamlc.byte
program = "./test.byte.exe"
libraries = "dynlink"
all_modules = "sheep.cmo test.cmo"
****** run

** native-dynlink
*** setup-ocamlopt.byte-build-env
**** ocamlopt.byte
module = "sheep.mli"
***** ocamlopt.byte
module = "sheep.ml"
****** ocamlopt.byte
module = "pig.mli"
******* ocamlopt.byte
module = "test.ml"
**** script
script = "mkdir plugin1 plugin2 plugin2b plugin2c plugin3 plugin4 plugin5 plugin6"
***** script
script = "cp ${plugin1}/sheep.mli ${plugin1}/sheep.ml plugin1"
***** script
script = "cp ${plugin2}/cow.mli ${plugin2}/cow.ml plugin2"
***** script
script = "cp ${plugin2b}/cow.mli ${plugin2b}/cow.ml plugin2b"
***** script
script = "cp ${plugin2c}/cow.mli ${plugin2c}/cow.ml plugin2c"
***** script
script = "cp ${plugin3}/pig.mli ${plugin3}/pig.ml plugin3"
***** script
script = "cp ${plugin4}/chicken.mli ${plugin4}/chicken.ml plugin4"
***** script
script = "cp ${plugin5}/chicken.mli ${plugin5}/chicken.ml plugin5"
***** script
script = "cp ${plugin6}/pheasant.mli ${plugin6}/pheasant.ml ${plugin6}/partridge.mli ${plugin6}/partridge.ml plugin6"
****** ocamlopt.byte
module = "plugin1/sheep.mli"
****** ocamlopt.byte
program = "plugin1/sheep.cmxs"
flags = "-I plugin1 -shared"
all_modules = "plugin1/sheep.ml"
****** ocamlopt.byte
module = "plugin2/cow.mli"
****** ocamlopt.byte
program = "plugin2/cow.cmxs"
flags = "-I plugin2 -shared"
all_modules = "plugin2/cow.ml"
****** ocamlopt.byte
module = "plugin2b/cow.mli"
****** ocamlopt.byte
program = "plugin2b/cow.cmxs"
flags = "-I plugin2b -shared"
all_modules = "plugin2b/cow.ml"
****** ocamlopt.byte
module = "plugin2c/cow.mli"
****** ocamlopt.byte
program = "plugin2c/cow.cmxs"
flags = "-I plugin2c -shared"
all_modules = "plugin2c/cow.ml"
****** ocamlopt.byte
module = "plugin3/pig.mli"
****** ocamlopt.byte
program = "plugin3/pig.cmxs"
flags = "-I plugin3 -shared"
all_modules = "plugin3/pig.ml"
****** ocamlopt.byte
module = "plugin4/chicken.mli"
****** ocamlopt.byte
program = "plugin4/chicken.cmxs"
flags = "-I plugin4 -shared"
all_modules = "plugin4/chicken.ml"
****** ocamlopt.byte
module = "plugin5/chicken.mli"
****** ocamlopt.byte
program = "plugin5/chicken.cmxs"
flags = "-I plugin5 -shared"
all_modules = "plugin5/chicken.ml"
****** ocamlopt.byte
module = "plugin6/pheasant.mli"
****** ocamlopt.byte
program = "plugin6/pheasant.cmxs"
flags = "-I plugin6 -shared"
all_modules = "plugin6/pheasant.ml"
****** ocamlopt.byte
module = "plugin6/partridge.mli"
****** ocamlopt.byte
program = "plugin6/partridge.cmxs"
flags = "-I plugin6 -shared"
all_modules = "plugin6/partridge.ml"
****** ocamlopt.byte
program = "./test.opt.exe"
libraries = "dynlink"
all_modules = "sheep.cmx test.cmx"
******* run
*)

let () = Sheep.baa Sheep.s (* Use Sheep module *)
let _ = fun (x : Pig.t) -> x (* Reference Pig module *)
<commit_msg>Put lib-dynlink-private in a correct form<commit_after>(* TEST

include dynlink
libraries = ""
readonly_files = "sheep.mli sheep.ml pig.mli"
set plugin1 = "${test_source_directory}/plugin1"
set plugin2 = "${test_source_directory}/plugin2"
set plugin2b = "${test_source_directory}/plugin2b"
set plugin2c = "${test_source_directory}/plugin2c"
set plugin3 = "${test_source_directory}/plugin3"
set plugin4 = "${test_source_directory}/plugin4"
set plugin5 = "${test_source_directory}/plugin5"
set plugin6 = "${test_source_directory}/plugin6"

* shared-libraries
** setup-ocamlc.byte-build-env
*** ocamlc.byte
module = "sheep.mli"
**** ocamlc.byte
module = "sheep.ml"
***** ocamlc.byte
module = "pig.mli"
****** ocamlc.byte
module = "test.ml"
******* script
script = "mkdir plugin1 plugin2 plugin2b plugin2c plugin3 plugin4 plugin5 plugin6"
******** script
script = "cp ${plugin1}/sheep.mli ${plugin1}/sheep.ml plugin1"
********* script
script = "cp ${plugin2}/cow.mli ${plugin2}/cow.ml plugin2"
********** script
script = "cp ${plugin2b}/cow.mli ${plugin2b}/cow.ml plugin2b"
*********** script
script = "cp ${plugin2c}/cow.mli ${plugin2c}/cow.ml plugin2c"
************ script
script = "cp ${plugin3}/pig.mli ${plugin3}/pig.ml plugin3"
************* script
script = "cp ${plugin4}/chicken.mli ${plugin4}/chicken.ml plugin4"
************** script
script = "cp ${plugin5}/chicken.mli ${plugin5}/chicken.ml plugin5"
*************** script
script = "cp ${plugin6}/pheasant.mli ${plugin6}/pheasant.ml ${plugin6}/partridge.mli ${plugin6}/partridge.ml plugin6"
**************** ocamlc.byte
module = "plugin1/sheep.mli"
***************** ocamlc.byte
flags = "-I plugin1"
module = "plugin1/sheep.ml"
****************** ocamlc.byte
flags = ""
module = "plugin2/cow.mli"
******************* ocamlc.byte
flags = "-I plugin2"
module = "plugin2/cow.ml"
******************** ocamlc.byte
flags = ""
module = "plugin2b/cow.mli"
********************* ocamlc.byte
flags = "-I plugin2b"
module = "plugin2b/cow.ml"
********************** ocamlc.byte
flags = ""
module = "plugin2c/cow.mli"
*********************** ocamlc.byte
flags = "-I plugin2c"
module = "plugin2c/cow.ml"
************************ ocamlc.byte
flags = ""
module = "plugin3/pig.mli"
************************* ocamlc.byte
flags = "-I plugin3"
module = "plugin3/pig.ml"
************************** ocamlc.byte
flags = ""
module = "plugin4/chicken.mli"
*************************** ocamlc.byte
flags = "-I plugin4"
module = "plugin4/chicken.ml"
**************************** ocamlc.byte
flags = ""
module = "plugin5/chicken.mli"
***************************** ocamlc.byte
flags = "-I plugin5"
module = "plugin5/chicken.ml"
****************************** ocamlc.byte
flags = ""
module = "plugin6/pheasant.mli"
******************************* ocamlc.byte
flags = "-I plugin6"
module = "plugin6/pheasant.ml"
******************************** ocamlc.byte
flags = ""
module = "plugin6/partridge.mli"
********************************* ocamlc.byte
flags = "-I plugin6"
module = "plugin6/partridge.ml"
********************************** ocamlc.byte
flags = ""
program = "./test.byte.exe"
libraries = "dynlink"
all_modules = "sheep.cmo test.cmo"
module = ""
*********************************** run

** native-dynlink
*** setup-ocamlopt.byte-build-env
**** ocamlopt.byte
module = "sheep.mli"
***** ocamlopt.byte
module = "sheep.ml"
****** ocamlopt.byte
module = "pig.mli"
******* ocamlopt.byte
module = "test.ml"
******** script
script = "mkdir plugin1 plugin2 plugin2b plugin2c plugin3 plugin4 plugin5 plugin6"
********* script
script = "cp ${plugin1}/sheep.mli ${plugin1}/sheep.ml plugin1"
********** script
script = "cp ${plugin2}/cow.mli ${plugin2}/cow.ml plugin2"
*********** script
script = "cp ${plugin2b}/cow.mli ${plugin2b}/cow.ml plugin2b"
************ script
script = "cp ${plugin2c}/cow.mli ${plugin2c}/cow.ml plugin2c"
************* script
script = "cp ${plugin3}/pig.mli ${plugin3}/pig.ml plugin3"
************** script
script = "cp ${plugin4}/chicken.mli ${plugin4}/chicken.ml plugin4"
*************** script
script = "cp ${plugin5}/chicken.mli ${plugin5}/chicken.ml plugin5"
**************** script
script = "cp ${plugin6}/pheasant.mli ${plugin6}/pheasant.ml ${plugin6}/partridge.mli ${plugin6}/partridge.ml plugin6"
***************** ocamlopt.byte
flags = ""
module = "plugin1/sheep.mli"
****************** ocamlopt.byte
program = "plugin1/sheep.cmxs"
flags = "-I plugin1 -shared"
module = ""
all_modules = "plugin1/sheep.ml"
******************* ocamlopt.byte
flags = ""
module = "plugin2/cow.mli"
******************** ocamlopt.byte
program = "plugin2/cow.cmxs"
flags = "-I plugin2 -shared"
module = ""
all_modules = "plugin2/cow.ml"
********************* ocamlopt.byte
flags = ""
module = "plugin2b/cow.mli"
********************** ocamlopt.byte
program = "plugin2b/cow.cmxs"
flags = "-I plugin2b -shared"
module = ""
all_modules = "plugin2b/cow.ml"
*********************** ocamlopt.byte
flags = ""
module = "plugin2c/cow.mli"
************************ ocamlopt.byte
program = "plugin2c/cow.cmxs"
flags = "-I plugin2c -shared"
module = ""
all_modules = "plugin2c/cow.ml"
************************* ocamlopt.byte
flags = ""
module = "plugin3/pig.mli"
************************** ocamlopt.byte
program = "plugin3/pig.cmxs"
flags = "-I plugin3 -shared"
module = ""
all_modules = "plugin3/pig.ml"
*************************** ocamlopt.byte
flags = ""
module = "plugin4/chicken.mli"
**************************** ocamlopt.byte
program = "plugin4/chicken.cmxs"
flags = "-I plugin4 -shared"
module = ""
all_modules = "plugin4/chicken.ml"
***************************** ocamlopt.byte
flags = ""
module = "plugin5/chicken.mli"
****************************** ocamlopt.byte
program = "plugin5/chicken.cmxs"
flags = "-I plugin5 -shared"
module = ""
all_modules = "plugin5/chicken.ml"
******************************* ocamlopt.byte
flags = ""
module = "plugin6/pheasant.mli"
******************************** ocamlopt.byte
program = "plugin6/pheasant.cmxs"
flags = "-I plugin6 -shared"
module = ""
all_modules = "plugin6/pheasant.ml"
********************************* ocamlopt.byte
flags = ""
module = "plugin6/partridge.mli"
********************************** ocamlopt.byte
program = "plugin6/partridge.cmxs"
flags = "-I plugin6 -shared"
module = ""
all_modules = "plugin6/partridge.ml"
*********************************** ocamlopt.byte
flags = ""
program = "./test.opt.exe"
libraries = "dynlink"
all_modules = "sheep.cmx test.cmx"
************************************ run
*)

let () = Sheep.baa Sheep.s (* Use Sheep module *)
let _ = fun (x : Pig.t) -> x (* Reference Pig module *)

{'fraction_non_alphanumeric': 0.27170350449617614, 'fraction_numerical': 0.024707958651987563, 'mean_word_length': 5.4498644986449865, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3860094', 'n_tokens_mistral': 4322, 'n_tokens_neox': 4279, 'n_words': 842}