# Path: nudge/json.py
# def json_decode(o):
#     # remove tabs if they exists
#     o = o.replace('\t','')
#     data = _decoder.decode(o)
#     return data


from optparse import OptionParser
from nudge.json import json_decode
import tornado.httpserver
import tornado.ioloop
import tornado.web
# Copyright (C) 2011 Evite LLC

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

"""
This is an example of how things are done using tornado.

This tends to lead to a lot of duplicated code.
"""





class HelloWorldService():

    def index(self):
        return """

# Path: nudge/json.py
# def json_decode(o):
#     # remove tabs if they exists
#     o = o.replace('\t','')
#     data = _decoder.decode(o)
#     return data


# Path: examples/oldstylehelloworld.py
from optparse import OptionParser
from nudge.json import json_decode
import tornado.httpserver
import tornado.ioloop
import tornado.web

# Copyright (C) 2011 Evite LLC

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

"""
This is an example of how things are done using tornado.

This tends to lead to a lot of duplicated code.
"""





class HelloWorldService():

    def index(self):
        return """

                <html>