<commit_before>var b = require('bonescript');
var fs = require('fs');
var testDir = '/tmp/ffi-test';
var Cfile = testDir + '/ffi-test';
var txtFile = testDir + '/txt-test.txt'
var args = {
    'main': ['int', ['void']]
};
var text = "HELLO";
var cCode = `
#include <stdio.h>
int dummy()
{
   printf("Hello, World!");
   return 0;
}

int main()
{
   printf("Should never run.");
   return 1;
}
`

module.exports.testFFI = function (test) {

    test.expect(5);
    if (!fs.existsSync(testDir)) {
        fs.mkdirSync(testDir);
    }
    //test writetxtFile
    b.writeTextFile(txtFile, text);
    if (fs.existsSync(txtFile)) {<commit_msg>include out/in args for dummy()<commit_after>var b = require('bonescript');
var fs = require('fs');
var testDir = '/tmp/ffi-test';
var Cfile = testDir + '/ffi-test';
var txtFile = testDir + '/txt-test.txt'
var args = {
    'main': ['int', ['void']],
    'dummy': ['int', ['void']]
};
var text = "HELLO";
var cCode = `
#include <stdio.h>
int dummy()
{
   printf("Hello, World!");
   return 0;
}

int main()
{
   printf("Should never run.");
   return 1;
}
`

module.exports.testFFI = function (test) {

    test.expect(5);
    if (!fs.existsSync(testDir)) {
        fs.mkdirSync(testDir);
    }
    //test writetxtFile
    b.writeTextFile(txtFile, text);
    if (fs.existsSync(txtFile)) {
{'fraction_non_alphanumeric': 0.19486404833836857, 'fraction_numerical': 0.004531722054380665, 'mean_word_length': 3.3159609120521174, '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': '2708878', 'n_tokens_mistral': 504, 'n_tokens_neox': 491, 'n_words': 117}