<commit_before>all :
	./rainfall_stats/report-using-file-glob.sh radar_stats.csv
	./rest-api/import-csv-stats-to-mongodb.sh radar_stats.csv<commit_msg>update Makefile to generate a sample JSON file<commit_after>all :
	# generate value counts from the radar images
	./rainfall_stats/report-using-file-glob.sh radar_value_counts.csv
	# import counts into mongodb
	./rest-api/import-csv-stats-to-mongodb.sh radar_value_counts.csv

sample-export :
	./rest-api/stats-rest-api-server.pl 'radar=IDR032&datetime_start=201204170000&datetime_end=201204192350' | tail -n +3 > d3-rainfall-graph/rainfall-sample.json
{'fraction_non_alphanumeric': 0.11940298507462686, 'fraction_numerical': 0.04809286898839138, 'mean_word_length': 5.04, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5051058', 'n_tokens_mistral': 239, 'n_tokens_neox': 214, 'n_words': 34}