<commit_before>from datetime import datetime

import app.models
import logging

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s %(funcName)s() - %(message)s')


def main():
    logging.info('Start')

    # TODO instantiate from JSON - perhaps add functionality in Software __init__()
    sw = app.models.Software(software_id=None,
                  name='Climate Analysis',
                  description='Contrived code for Software Carpentry workshops',
                  version='1.0',
                  submitter='JSR',
                  submitted=datetime.utcnow(),
                  url='https://github.com/js-robinson/climate-analysis')

    # process_software(sw)

if __name__ == '__main__':
    main()
<commit_msg>Move to web app from CLI<commit_after>from app import app


# Run this to start the webapp

app.run(debug=True)
app.logger.debug("Started up...")
{'fraction_non_alphanumeric': 0.12053571428571429, 'fraction_numerical': 0.002232142857142857, 'mean_word_length': 2.8497854077253217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1701944', 'n_tokens_mistral': 270, 'n_tokens_neox': 253, 'n_words': 63}