<commit_before>import cherrypy
import redis
import GetNSEStockPrice.get_stock as get_stock
from cherrypy.process.plugins import Monitor
import datetime
import simplejson as json

songs = {
    '1': {
        'title': 'Lumberjack Song',
        'artist': '<NAME>'
    },

    '2': {
        'title': 'Always Look On the Bright Side of Life',
        'artist': '<NAME>'
    },

    '3': {
        'title': 'Spam Spam Spam',
        'artist': '<NAME>'
    }
}
REDIS_OBJ = redis.Redis(host='localhost', port=6379, db=0)
SCRIPS = REDIS_OBJ.get('scrips').split(',')

class HelloWorld(object):
    @cherrypy.expose
    def index(self):
        return "Hello world!"

class NSECards:

    exposed = True

    def GET(self, id=None):
        scrip_data = {}
        scrips = REDIS_OBJ.get('scrips').split(',')
        for scrip in scrips:<commit_msg>Using Ordered Dict to support sortting<commit_after>import cherrypy
import redis
import GetNSEStockPrice.get_stock as get_stock
from cherrypy.process.plugins import Monitor
import datetime
import simplejson as json
from collections import OrderedDict

REDIS_OBJ = redis.Redis(host='localhost', port=6379, db=0)
SCRIPS = REDIS_OBJ.get('scrips').split(',')

class HelloWorld(object):
    @cherrypy.expose
    def index(self):
        return open('index.html')

class NSECards:

    exposed = True

    def GET(self, id=None):
        scrip_data = OrderedDict()
        scrips = REDIS_OBJ.get('scrips').split(',')
        for scrip in scrips:
{'fraction_non_alphanumeric': 0.12635135135135134, 'fraction_numerical': 0.008783783783783784, 'mean_word_length': 3.2927536231884056, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5959725', 'n_tokens_mistral': 520, 'n_tokens_neox': 496, 'n_words': 126}