<commit_before>#!/bin/sh 
set -ex
which bindgen || cargo install bindgen

echo '#include <stdarg.h>' > /tmp/postgres.c
echo '#include "postgres.h"' >> /tmp/postgres.c
echo '#include "fmgr.h"' >> /tmp/postgres.c
echo '#include "replication/output_plugin.h"' >> /tmp/postgres.c
echo '#include "replication/logical.h"' >> /tmp/postgres.c


gcc -I /usr/include/postgresql/9.4/server -E /tmp/postgres.c > /tmp/libpq.c

cat /tmp/libpq.c | python src/remove_duplicate_single_line_statements.py  > /tmp/libpq_dedup.c

bindgen  -allow-bitfields  -builtins  /tmp/libpq_dedup.c  > src/libpq.rs<commit_msg>Include Homebrew's PG include path<commit_after>#!/bin/sh 
set -ex
which bindgen || cargo install bindgen

echo '#include <stdarg.h>' > /tmp/postgres.c
echo '#include "postgres.h"' >> /tmp/postgres.c
echo '#include "fmgr.h"' >> /tmp/postgres.c
echo '#include "replication/output_plugin.h"' >> /tmp/postgres.c
echo '#include "replication/logical.h"' >> /tmp/postgres.c


gcc -I /usr/include/postgresql/9.4/server -I /usr/local/include/server/ \
    -E /tmp/postgres.c > /tmp/libpq.c

cat /tmp/libpq.c | python src/remove_duplicate_single_line_statements.py  > /tmp/libpq_dedup.c

bindgen  -allow-bitfields  -builtins  /tmp/libpq_dedup.c  > src/libpq.rs
{'fraction_non_alphanumeric': 0.1670682730923695, 'fraction_numerical': 0.00321285140562249, 'mean_word_length': 3.848249027237354, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '3907575', 'n_tokens_mistral': 512, 'n_tokens_neox': 484, 'n_words': 93}