<commit_before>#!/bin/bash
cd ~/openaps-dev
#git fetch --all && git reset --hard origin/master && git pull
#git pull
stat -c %y clock.json | cut -c 1-19
cat clock.json | sed 's/"//g' | sed 's/T/ /'
echo
#calculate-iob pumphistory.json profile.json clock.json > iob.json.new && grep iob iob.json.new && mv iob.json.new iob.json
node ~/openaps-js/bin/iob.js pumphistory.json profile.json clock.json > iob.json.new && grep iob iob.json.new && cp iob.json.new iob.json #&& git commit -m"iob found: committing" iob.json
#determine-basal iob.json currenttemp.json glucose.json profile.json > requestedtemp.json.new && grep temp requestedtemp.json.new && mv requestedtemp.json.new requestedtemp.json
node ~/openaps-js/bin/determine-basal.js iob.json currenttemp.json glucose.json profile.json > requestedtemp.json.new && grep temp requestedtemp.json.new && cp requestedtemp.json.new requestedtemp.json #&& git commit -m"temp found: committing" requestedtemp.json
#git fetch origin master && git merge -X theirs origin/master && git push
#git pull && git push
node ~/openaps-js/bin/pebble.js  glucose.json clock.json iob.json current_basal_profile.json currenttemp.json isf.json requestedtemp.json > /tmp/pebble-openaps.json
cat /tmp/pebble-openaps.json
grep "refresh_frequency" /tmp/pebble-openaps.json && cp /tmp/pebble-openaps.json www/openaps.json 
cat www/openaps.json<commit_msg>comment out producing new requestedtemp.json<commit_after>#!/bin/bash
cd ~/openaps-dev
#git fetch --all && git reset --hard origin/master && git pull
#git pull
stat -c %y clock.json | cut -c 1-19
cat clock.json | sed 's/"//g' | sed 's/T/ /'
echo
#calculate-iob pumphistory.json profile.json clock.json > iob.json.new && grep iob iob.json.new && mv iob.json.new iob.json
node ~/openaps-js/bin/iob.js pumphistory.json profile.json clock.json > iob.json.new && grep iob iob.json.new && cp iob.json.new iob.json #&& git commit -m"iob found: committing" iob.json
#node ~/openaps-js/bin/determine-basal.js iob.json currenttemp.json glucose.json profile.json > requestedtemp.json.new && grep temp requestedtemp.json.new && cp requestedtemp.json.new requestedtemp.json #&& git commit -m"temp found: committing" requestedtemp.json
#git fetch origin master && git merge -X theirs origin/master && git push
#git pull && git push
node ~/openaps-js/bin/pebble.js  glucose.json clock.json iob.json current_basal_profile.json currenttemp.json isf.json requestedtemp.json > /tmp/pebble-openaps.json
cat /tmp/pebble-openaps.json
grep "refresh_frequency" /tmp/pebble-openaps.json && cp /tmp/pebble-openaps.json www/openaps.json 
cat www/openaps.json
{'fraction_non_alphanumeric': 0.13496932515337423, 'fraction_numerical': 0.0023006134969325155, 'mean_word_length': 4.186878727634195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4499379', 'n_tokens_mistral': 938, 'n_tokens_neox': 906, 'n_words': 237}