<commit_before>#!/bin/bash
LOC=`pwd`
EJD_DIR=$EJD_DIR
ERL_DIR=`echo "code:lib_dir()." | erl | grep "1>" | cut -d '"' -f2`

if [ ! -e "$EJD_DIR" ]; then
	EJD_DIR=/lib/ejabberd
fi

echo " - ejabberd: $EJD_DIR"
echo " - Erlang: $ERL_DIR"
echo

echo " * Generating Makefile..."
cat > Makefile << EOF
REBAR ?= \$(shell which rebar 2>/dev/null || which ./rebar)
REBAR_FLAGS ?=

all: build-deps compile

compile:
	erlc -I $EJD_DIR -o ebin src/*.erl

install:
	cp -R ebin/*.beam $EJD_DIR/include

build-deps:
	\$(REBAR) get-deps \$(REBAR_FLAGS)
	cd deps/egeoip && make
	cd deps/mongodb && ./rebar get-deps && make<commit_msg>erlc include switch was pointing to a wrong pathh<commit_after>#!/bin/bash
LOC=`pwd`
EJD_DIR=$EJD_DIR
ERL_DIR=`echo "code:lib_dir()." | erl | grep "1>" | cut -d '"' -f2`

if [ ! -e "$EJD_DIR" ]; then
	EJD_DIR=/lib/ejabberd
fi

echo " - ejabberd: $EJD_DIR"
echo " - Erlang: $ERL_DIR"
echo

echo " * Generating Makefile..."
cat > Makefile << EOF
REBAR ?= \$(shell which rebar 2>/dev/null || which ./rebar)
REBAR_FLAGS ?=

all: build-deps compile

compile:
	erlc -I $EJD_DIR/include -o ebin src/*.erl

install:
	cp -R ebin/*.beam $EJD_DIR/include

build-deps:
	\$(REBAR) get-deps \$(REBAR_FLAGS)
	cd deps/egeoip && make
	cd deps/mongodb && ./rebar get-deps && make
{'fraction_non_alphanumeric': 0.1807511737089202, 'fraction_numerical': 0.004694835680751174, 'mean_word_length': 3.6007194244604315, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3819520', 'n_tokens_mistral': 609, 'n_tokens_neox': 566, 'n_words': 137}