<commit_before># -*- coding: utf-8 -*-
from flask import Flask
from flask import render_template
import requests
import json
# import os

app = Flask(__name__)



@app.route('/')
@app.route('/info')
def index():

    url = 'http://' + 'chive_app' + '/device'

    headers = {"Content-Type": "application/json"}

    try:
        # make request to GET data from REST API
        response = requests.get(url=url, headers=headers)
        # put the data in JSON format
        devices = json.loads(response.text)
        # render data to webpage
        return render_template('device_info.html',
                               title='CHIVE : Cisco Heat Indication & Visualization Engine', devices=devices)

    except:
        print "Problem getting data...trying again..."
        pass


app.run(debug=True, host='0.0.0.0', port=5001)<commit_msg>Moved folders<commit_after># -*- coding: utf-8 -*-
from flask import Flask
from flask import render_template
import requests
import json
# import os

app = Flask(__name__)



@app.route('/')
@app.route('/info')
def index():

    url = 'http://chive_app/device'

    headers = {"Content-Type": "application/json"}

    try:
        # make request to GET data from REST API
        response = requests.get(url=url, headers=headers)
        # put the data in JSON format
        devices = json.loads(response.text)
        # render data to webpage
        return render_template('device_info.html',
                               title='CHIVE : Cisco Heat Indication & Visualization Engine', devices=devices)

    except:
        print "Problem getting data...trying again..."
        pass


app.run(debug=True, host='0.0.0.0', port=5001)
{'fraction_non_alphanumeric': 0.12380952380952381, 'fraction_numerical': 0.010714285714285714, 'mean_word_length': 2.576595744680851, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3672713', 'n_tokens_mistral': 505, 'n_tokens_neox': 474, 'n_words': 144}