<commit_before>#!/usr/bin/env python
#-----------------------
# Copyright 2014 Halfmoon Labs, Inc.
# All Rights Reserved
#-----------------------

from flask import Flask, make_response, jsonify
from config import DEFAULT_PORT, DEFAULT_HOST, DEBUG 
import json 

from coinrpc.namecoind_api import namecoind_api
from checker.checker_api import checker_api 

app = Flask(__name__)

app.register_blueprint(namecoind_api)
app.register_blueprint(checker_api)

#-----------------------------------
@app.route('/')
def index():
    return 'Welcome to the namecoind API server of <a href="http://halfmoonlabs.com">Halfmoon Labs</a>.'

#-----------------------------------
@app.errorhandler(500)
def internal_error(error):

	reply = []
	return json.dumps(reply)

#-----------------------------------
@app.errorhandler(404)
def not_found(error):
    return make_response(jsonify( { 'error': 'Not found' } ), 404)

#-----------------------------------
if __name__ == '__main__':

	app.run(host=DEFAULT_HOST, port=DEFAULT_PORT,debug=DEBUG)<commit_msg>added separate config file for deployment<commit_after>#!/usr/bin/env python
#-----------------------
# Copyright 2014 Halfmoon Labs, Inc.
# All Rights Reserved
#-----------------------

from flask import Flask, make_response, jsonify
from config import DEFAULT_PORT, DEFAULT_HOST, DEBUG 
import json 

from coinrpc.namecoind_api import namecoind_api
from checker.checker_api import checker_api 

app = Flask(__name__)

app.register_blueprint(namecoind_api)
app.register_blueprint(checker_api)

#-----------------------------------
@app.route('/')
def index():
    return 'Welcome to the namecoind API server of <a href="http://halfmoonlabs.com">Halfmoon Labs</a>.'

#-----------------------------------
@app.errorhandler(500)
def internal_error(error):

	reply = []
	return json.dumps(reply)

#-----------------------------------
@app.errorhandler(404)
def not_found(error):
	return make_response(jsonify( { 'error': 'Not found' } ), 404)

#-----------------------------------
if __name__ == '__main__':

	app.run(host=DEFAULT_HOST, port=DEFAULT_PORT,debug=DEBUG)
{'fraction_non_alphanumeric': 0.27484545886828343, 'fraction_numerical': 0.012363290537327628, 'mean_word_length': 2.3449920508744038, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5479820', 'n_tokens_mistral': 654, 'n_tokens_neox': 610, 'n_words': 144}