<commit_before>import os, bcrypt
from eve import Eve
from flask.ext.bootstrap import Bootstrap
from eve_docs import eve_docs
from eve.auth import BasicAuth

class BCryptAuth(BasicAuth):
  def check_auth(self, username, password, allowed_roles, resource, method):
    accounts = app.data.driver.db['accounts']
    account = accounts.find_one({'username': username})
    return (
      account and
      bcrypt.hashpw(password, account['password']) == account['password']
    )

if __name__ == '__main__':
  port = int(os.environ.get('PORT', 5000))
  app = Eve(auth=BCryptAuth)
  Bootstrap(app)
  app.register_blueprint(eve_docs, url_prefix='/docs')
  app.run(host='127.0.0.1', port=port, debug=True)<commit_msg>run: rm heroku config<commit_after>import os, bcrypt
from eve import Eve
from flask.ext.bootstrap import Bootstrap
from eve_docs import eve_docs
from eve.auth import BasicAuth

class BCryptAuth(BasicAuth):
  def check_auth(self, username, password, allowed_roles, resource, method):
    accounts = app.data.driver.db['accounts']
    account = accounts.find_one({'username': username})
    return (
      account and
      bcrypt.hashpw(password, account['password']) == account['password']
    )

if __name__ == '__main__':
  app = Eve(auth=BCryptAuth)
  Bootstrap(app)
  app.register_blueprint(eve_docs, url_prefix='/docs')
  app.run()
{'fraction_non_alphanumeric': 0.12407132243684993, 'fraction_numerical': 0.007429420505200594, 'mean_word_length': 4.933920704845815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2412090', 'n_tokens_mistral': 444, 'n_tokens_neox': 427, 'n_words': 103}