<commit_before>#Variables
IN = Advertising.csv


# phony targets
.PHONY: data tests eda regression report session clean all

# all
all: eda regression report

#download the Advertising.csv
data: 
	curl -O "http://www-bcf.usc.edu/~gareth/ISL/Advertising.csv"
	mv Advertising.csv data

#executes the code in eda-script.R	
eda: code/scripts/eda-script.R data/Advertising.csv
	cd code/scripts; Rscript eda-script.R
	
#executes the code in regression-script.R
regression: code/scripts/regression-script.R data/Advertising.csv
	cd code/scripts; Rscript regression-script.R
	
#generate report.pdf
report: report/report.Rmd data/correlation-matrix.RData data/regression.RData
	cd report; Rscript -e '.libPaths(c("C:/Users/vlfgn/Documents/R/win-library/3.3", "C:/Users/vlfgn/Documents/R/win-library/3.3")); library(rmarkdown); render("report.Rmd")'
	
#run the unit tests on test-regression.R
test: code/test-that.R code/tests/test-regression.R
	cd code; Rscript test-that.R
	
#executes the code in session-info-script.R
session: code/scripts/session-info-script.R
	cd code/scripts; Rscript session-info-script.R
	
#clean output file
clean:
	rm -f report/report.pdf 

<commit_msg>editing makefile to use automatic variable.<commit_after>#Variables
IN = data/Advertising.csv 
SCRIPTS = code/scripts/

# phony targets
.PHONY: data tests eda regression report session clean all

# all
all: eda regression report

#download the Advertising.csv
data: 
	curl -O "http://www-bcf.usc.edu/~gareth/ISL/Advertising.csv"
	mv Advertising.csv data

#executes the code in eda-script.R	
eda: code/scripts/eda-script.R data/Advertising.csv
	cd code/scripts; Rscript eda-script.R
	
#executes the code in regression-script.R
regression: code/scripts/regression-script.R data/Advertising.csv
	cd code/scripts; Rscript regression-script.R
	
#generate report.pdf
report: report/report.Rmd data/correlation-matrix.RData data/regression.RData
	cd report; Rscript -e '.libPaths(c("C:/Users/vlfgn/Documents/R/win-library/3.3", "C:/Users/vlfgn/Documents/R/win-library/3.3")); library(rmarkdown); render("report.Rmd")'
	
#run the unit tests on test-regression.R
test: code/test-that.R code/tests/test-regression.R
	cd code; Rscript test-that.R
	
#executes the code in session-info-script.R
session: code/scripts/session-info-script.R
	cd code/scripts; Rscript session-info-script.R
	
#clean output file
clean:
	rm -f report/report.pdf 


{'fraction_non_alphanumeric': 0.1204668611921634, 'fraction_numerical': 0.003334722801167153, 'mean_word_length': 4.369127516778524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1927317', 'n_tokens_mistral': 881, 'n_tokens_neox': 829, 'n_words': 203}