code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
""" forlater This file loads the finished app from forlater.config.middleware. """ from forlater.config.middleware import make_app
[ [ 8, 0, 0.4375, 0.75, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 1, 0.125, 0, 0.66, 1, 306, 0, 1, 0, 0, 306, 0, 0 ] ]
[ "\"\"\"\nforlater\n\nThis file loads the finished app from forlater.config.middleware.\n\n\"\"\"", "from forlater.config.middleware import make_app" ]
from forlater.lib.base import * from time import * from sqlalchemy import * from paste.request import get_cookie_dict import os import shutil import sys import urllib import httplib class AController(BaseController): def index(self): return Response('4l8r') def send_sms_message(self): if...
[ [ 1, 0, 0.0091, 0.0091, 0, 0.66, 0, 130, 0, 1, 0, 0, 130, 0, 0 ], [ 1, 0, 0.0182, 0.0091, 0, 0.66, 0.1111, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0273, 0.0091, 0, ...
[ "from forlater.lib.base import *", "from time import *", "from sqlalchemy import *", "from paste.request import get_cookie_dict", "import os", "import shutil", "import sys", "import urllib", "import httplib", "class AController(BaseController):\n\n def index(self):\n return Response('4l8...
from forlater.lib.base import * class TemplateController(BaseController): def view(self, url): """ This is the last place which is tried during a request to try to find a file to serve. It could be used for example to display a template:: def view(self, url): ...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 130, 0, 1, 0, 0, 130, 0, 0 ], [ 3, 0, 0.5536, 0.9286, 0, 0.66, 1, 928, 0, 1, 0, 0, 321, 0, 1 ], [ 2, 1, 0.5714, 0.8929, 1, 0.15,...
[ "from forlater.lib.base import *", "class TemplateController(BaseController):\n def view(self, url):\n \"\"\"\n This is the last place which is tried during a request to try to find a \n file to serve. It could be used for example to display a template::\n \n def view(sel...
from paste import fileapp from forlater.lib.base import * from sqlalchemy import * from forlater.lib.entry import * from time import * import os import shutil class PController(BaseController): def index(self, id): user = session.get('user', None) col = model.entries_table.c if (id == Non...
[ [ 1, 0, 0.0047, 0.0047, 0, 0.66, 0, 525, 0, 1, 0, 0, 525, 0, 0 ], [ 1, 0, 0.0094, 0.0047, 0, 0.66, 0.1429, 130, 0, 1, 0, 0, 130, 0, 0 ], [ 1, 0, 0.0141, 0.0047, 0, ...
[ "from paste import fileapp", "from forlater.lib.base import *", "from sqlalchemy import *", "from forlater.lib.entry import *", "from time import *", "import os", "import shutil", "class PController(BaseController):\n def index(self, id):\n user = session.get('user', None)\n\n col = m...
from forlater.lib.base import * from sqlalchemy import * from paste import fileapp import os import shutil class RController(BaseController): def index(self): user = session.get('user', None) c.studies = None c.recent_entries = None c.users = None try: ...
[ [ 1, 0, 0.002, 0.002, 0, 0.66, 0, 130, 0, 1, 0, 0, 130, 0, 0 ], [ 1, 0, 0.0041, 0.002, 0, 0.66, 0.2, 835, 0, 1, 0, 0, 835, 0, 0 ], [ 1, 0, 0.0081, 0.002, 0, 0.66, ...
[ "from forlater.lib.base import *", "from sqlalchemy import *", "from paste import fileapp", "import os", "import shutil", "class RController(BaseController):\n def index(self):\n user = session.get('user', None)\n\n c.studies = None\n c.recent_entries = None\n c.users = None...
from forlater.lib.base import * from sqlalchemy import * class LoginController(BaseController): def index(self): c.msg = get_message() c.error = get_error() c.attempted_username = '' if request.params.has_key('username') and request.params.has_key('password'): c.attempte...
[ [ 1, 0, 0.0073, 0.0073, 0, 0.66, 0, 130, 0, 1, 0, 0, 130, 0, 0 ], [ 1, 0, 0.0146, 0.0073, 0, 0.66, 0.3333, 835, 0, 1, 0, 0, 835, 0, 0 ], [ 3, 0, 0.427, 0.8029, 0, 0...
[ "from forlater.lib.base import *", "from sqlalchemy import *", "class LoginController(BaseController):\n def index(self):\n c.msg = get_message()\n c.error = get_error()\n c.attempted_username = ''\n if request.params.has_key('username') and request.params.has_key('password'):\n ...
import os.path from paste import fileapp from pylons.middleware import media_path, error_document_template from pylons.util import get_prefix from forlater.lib.base import * forlater_error_template = """\ <html> <head> <title>4l8r - Server Error %(code)s</title> <style> h1 { font-family: calibri,verdana,sans-serif; ...
[ [ 1, 0, 0.011, 0.011, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.022, 0.011, 0, 0.66, 0.1667, 525, 0, 1, 0, 0, 525, 0, 0 ], [ 1, 0, 0.033, 0.011, 0, 0.66, ...
[ "import os.path", "from paste import fileapp", "from pylons.middleware import media_path, error_document_template", "from pylons.util import get_prefix", "from forlater.lib.base import *", "forlater_error_template = \"\"\"\\\n<html>\n<head>\n<title>4l8r - Server Error %(code)s</title>\n<style>\nh1 {\n fo...
""" Setup your Routes options here """ import os from routes import Mapper def make_map(global_conf={}, app_conf={}): root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) map = Mapper(directory=os.path.join(root_path, 'controllers')) # This route handles displaying the error page a...
[ [ 8, 0, 0.0476, 0.0714, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0952, 0.0238, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.119, 0.0238, 0, 0.66,...
[ "\"\"\"\nSetup your Routes options here\n\"\"\"", "import os", "from routes import Mapper", "def make_map(global_conf={}, app_conf={}):\n root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n map = Mapper(directory=os.path.join(root_path, 'controllers'))\n \n # This route han...
#
[]
[]
from paste import httpexceptions from paste.cascade import Cascade from paste.urlparser import StaticURLParser from paste.registry import RegistryManager from paste.deploy.config import ConfigMiddleware, CONFIG from paste.deploy.converters import asbool from pylons.error import error_template from pylons.middleware im...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 525, 0, 1, 0, 0, 525, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.0833, 164, 0, 1, 0, 0, 164, 0, 0 ], [ 1, 0, 0.0469, 0.0156, 0, ...
[ "from paste import httpexceptions", "from paste.cascade import Cascade", "from paste.urlparser import StaticURLParser", "from paste.registry import RegistryManager", "from paste.deploy.config import ConfigMiddleware, CONFIG", "from paste.deploy.converters import asbool", "from pylons.error import error_...
import os import pylons.config import webhelpers from forlater.config.routing import make_map def load_environment(global_conf={}, app_conf={}): map = make_map(global_conf, app_conf) # Setup our paths root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) paths = {'root_path': root_p...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0.25, 164, 0, 1, 0, 0, 164, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0....
[ "import os", "import pylons.config", "import webhelpers", "from forlater.config.routing import make_map", "def load_environment(global_conf={}, app_conf={}):\n map = make_map(global_conf, app_conf)\n # Setup our paths\n root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n pa...
""" Helper functions All names available in this module will be available under the Pylons h object. """ from webhelpers import * from pylons.helpers import log from pylons.i18n import get_lang, set_lang
[ [ 8, 0, 0.375, 0.625, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.75, 0.125, 0, 0.66, 0.3333, 953, 0, 1, 0, 0, 953, 0, 0 ], [ 1, 0, 0.875, 0.125, 0, 0.66, 0...
[ "\"\"\"\nHelper functions\n\nAll names available in this module will be available under the Pylons h object.\n\"\"\"", "from webhelpers import *", "from pylons.helpers import log", "from pylons.i18n import get_lang, set_lang" ]
from pylons import Response, c, g, cache, request, session from pylons.controllers import WSGIController from pylons.decorators import jsonify, validate from pylons.templating import render, render_response from pylons.helpers import abort, redirect_to, etag_cache from pylons.i18n import N_, _, ungettext import forlate...
[ [ 1, 0, 0.0098, 0.0098, 0, 0.66, 0, 113, 0, 6, 0, 0, 113, 0, 0 ], [ 1, 0, 0.0196, 0.0098, 0, 0.66, 0.0417, 571, 0, 1, 0, 0, 571, 0, 0 ], [ 1, 0, 0.0294, 0.0098, 0, ...
[ "from pylons import Response, c, g, cache, request, session", "from pylons.controllers import WSGIController", "from pylons.decorators import jsonify, validate", "from pylons.templating import render, render_response", "from pylons.helpers import abort, redirect_to, etag_cache", "from pylons.i18n import N...
header_txt = """\ <html> <head> <title>4l8r%(title)s</title> <script src="/js/prototype.js" type="text/javascript"></script> <script src="/js/scriptaculous.js" type="text/javascript"></script> <style> a:link {color: #990000} a:visited {color: #990000} a:hover {color: #CC6666} a:active {color: #CC6666} h1 { font-famil...
[ [ 14, 0, 0.336, 0.664, 0, 0.66, 0, 873, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7, 0.048, 0, 0.66, 0.3333, 326, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.856, 0.248, 0, 0.66, ...
[ "header_txt = \"\"\"\\\n<html>\n<head>\n<title>4l8r%(title)s</title>\n<script src=\"/js/prototype.js\" type=\"text/javascript\"></script>\n<script src=\"/js/scriptaculous.js\" type=\"text/javascript\"></script>\n<style>\na:link {color: #990000}", "footer_txt = \"\"\"\\\n</td>\n<td width='1'>&nbsp;</td>\n</body>\n...
from xml.dom.minidom import * class Entry: def __init__(self, id=0, questions=[]): self.id = id self.questions = questions[:] def _to_xml(self, d): e = d.createElement('entry') e.setAttribute('id', str(self.id)) for q in self.questions: e.appendChild(q._to_xm...
[ [ 1, 0, 0.0068, 0.0068, 0, 0.66, 0, 770, 0, 1, 0, 0, 770, 0, 0 ], [ 3, 0, 0.0918, 0.1497, 0, 0.66, 0.1667, 197, 0, 3, 0, 0, 0, 0, 11 ], [ 2, 1, 0.034, 0.0204, 1, 0....
[ "from xml.dom.minidom import *", "class Entry:\n def __init__(self, id=0, questions=[]):\n self.id = id\n self.questions = questions[:]\n def _to_xml(self, d):\n e = d.createElement('entry')\n e.setAttribute('id', str(self.id))\n for q in self.questions:", " def __ini...
import re class Globals(object): def __init__(self, global_conf, app_conf, **extra): """ Globals acts as a container for objects available throughout the life of the application. One instance of Globals is created by Pylons during application initialization and is availabl...
[ [ 1, 0, 0.0208, 0.0208, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 3, 0, 0.5312, 0.9583, 0, 0.66, 1, 512, 0, 2, 0, 0, 186, 0, 1 ], [ 2, 1, 0.4688, 0.75, 1, 0.02, ...
[ "import re", "class Globals(object):\n\n def __init__(self, global_conf, app_conf, **extra):\n \"\"\"\n Globals acts as a container for objects available throughout\n the life of the application.\n\n One instance of Globals is created by Pylons during", " def __init__(self, glo...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='Forlater', version="0.8.5", #description="", #author="", #author_email="", #url="", install_requires=["Pylons>=0.9.5"], packages=find_packages(), package_data={ 'for...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 650, 0, 1, 0, 0, 650, 0, 0 ], [ 8, 0, 0.0769, 0.0385, 0, 0.66, 0.3333, 479, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1154, 0.0385, 0, 0....
[ "from ez_setup import use_setuptools", "use_setuptools()", "from setuptools import setup, find_packages", "setup(\n name='Forlater',\n version=\"0.8.5\",\n #description=\"\",\n #author=\"\",\n #author_email=\"\",\n #url=\"\",\n install_requires=[\"Pylons>=0.9.5\"]," ]
#!/usr/bin/python # Load the WSGI application from the config file from paste.deploy import loadapp wsgi_app = loadapp('config:/usr/lib/cgi-bin/4l8r/production.ini') # Deploy it using FastCGI if __name__ == '__main__': from flup.server.fcgi import WSGIServer WSGIServer(wsgi_app).run()
[ [ 1, 0, 0.4, 0.1, 0, 0.66, 0, 770, 0, 1, 0, 0, 770, 0, 0 ], [ 14, 0, 0.5, 0.1, 0, 0.66, 0.5, 696, 3, 1, 0, 0, 42, 10, 1 ], [ 4, 0, 0.9, 0.3, 0, 0.66, 1, 0, ...
[ "from paste.deploy import loadapp", "wsgi_app = loadapp('config:/usr/lib/cgi-bin/4l8r/production.ini')", "if __name__ == '__main__':\n from flup.server.fcgi import WSGIServer\n WSGIServer(wsgi_app).run()", " from flup.server.fcgi import WSGIServer", " WSGIServer(wsgi_app).run()" ]
#!/usr/bin/python # Load the WSGI application from the config file from paste.deploy import loadapp wsgi_app = loadapp('config:/usr/lib/cgi-bin/4l8r/production.ini') # Deploy it using FastCGI if __name__ == '__main__': from flup.server.fcgi import WSGIServer WSGIServer(wsgi_app).run()
[ [ 1, 0, 0.4, 0.1, 0, 0.66, 0, 770, 0, 1, 0, 0, 770, 0, 0 ], [ 14, 0, 0.5, 0.1, 0, 0.66, 0.5, 696, 3, 1, 0, 0, 42, 10, 1 ], [ 4, 0, 0.9, 0.3, 0, 0.66, 1, 0, ...
[ "from paste.deploy import loadapp", "wsgi_app = loadapp('config:/usr/lib/cgi-bin/4l8r/production.ini')", "if __name__ == '__main__':\n from flup.server.fcgi import WSGIServer\n WSGIServer(wsgi_app).run()", " from flup.server.fcgi import WSGIServer", " WSGIServer(wsgi_app).run()" ]
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: plot.py # $Date: Thu Mar 13 20:23:07 2014 +0800 # $Author: jiakai <jia.kai66@gmail.com> import pyximport pyximport.install() import datafilter from sample_and_record import get_db_conn import matplotlib.pyplot as plt from matplotlib import dates import sys imp...
[ [ 1, 0, 0.068, 0.0097, 0, 0.66, 0, 732, 0, 1, 0, 0, 732, 0, 0 ], [ 8, 0, 0.0777, 0.0097, 0, 0.66, 0.0667, 984, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0971, 0.0097, 0, 0.6...
[ "import pyximport", "pyximport.install()", "import datafilter", "from sample_and_record import get_db_conn", "import matplotlib.pyplot as plt", "from matplotlib import dates", "import sys", "import os.path", "from datetime import datetime", "from collections import namedtuple", "from copy import...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: daemon.py # $Date: Mon Mar 03 09:35:26 2014 +0800 # $Author: jiakai <jia.kai66@gmail.com> from sample_and_record import insert_db_entry import time MIN_UPTIME = 120 SAMPLE_DELTA = 300 def get_uptime(): with open('/proc/uptime') as fin: return map(f...
[ [ 1, 0, 0.2917, 0.0417, 0, 0.66, 0, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.375, 0.0417, 0, 0.66, 0.2, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.4583, 0.0417, 0, 0.6...
[ "from sample_and_record import insert_db_entry", "import time", "MIN_UPTIME = 120", "SAMPLE_DELTA = 300", "def get_uptime():\n with open('/proc/uptime') as fin:\n return map(float, fin.read().split())[0]", " return map(float, fin.read().split())[0]", "if __name__ == '__main__':\n if ...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: dataproc.py # $Date: Tue Mar 11 00:25:03 2014 +0800 # $Author: jiakai <jia.kai66@gmail.com> import math class LinearFunction(object): k = None b = None def __init__(self, x0, y0, x1, y1): self.k = (y1 - y0) / (x1 - x0) self.b = y0 - ...
[ [ 1, 0, 0.1029, 0.0147, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 3, 0, 0.2132, 0.1765, 0, 0.66, 0.1111, 741, 0, 2, 0, 0, 186, 0, 4 ], [ 14, 1, 0.1471, 0.0147, 1, ...
[ "import math", "class LinearFunction(object):\n k = None\n b = None\n\n def __init__(self, x0, y0, x1, y1):\n self.k = (y1 - y0) / (x1 - x0)\n self.b = y0 - self.k * x0\n assert abs(self.eval(x0) - y0) < 1e-5", " k = None", " b = None", " def __init__(self, x0, y0, x1,...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: sample_and_record.py # $Date: Wed Mar 12 23:03:06 2014 +0800 # $Author: jiakai <jia.kai66@gmail.com> from gevent import monkey monkey.patch_all() import gevent import re import json import urllib2 import subprocess import os import os.path import sqlite3 import ...
[ [ 1, 0, 0.0519, 0.0074, 0, 0.66, 0, 703, 0, 1, 0, 0, 703, 0, 0 ], [ 8, 0, 0.0593, 0.0074, 0, 0.66, 0.0435, 472, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0741, 0.0074, 0, 0....
[ "from gevent import monkey", "monkey.patch_all()", "import gevent", "import re", "import json", "import urllib2", "import subprocess", "import os", "import os.path", "import sqlite3", "import calendar", "import sys", "from datetime import datetime", "from dataproc import lowratio2concentra...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: update_db.py # $Date: Tue Mar 11 00:07:07 2014 +0800 # $Author: jiakai <jia.kai66@gmail.com> import sys sys.path.append('..') from sample_and_record import get_db_conn, init_db from dataproc import aqi2concentration, lowratio2concentration def update_db(): ...
[ [ 1, 0, 0.2121, 0.0303, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.2424, 0.0303, 0, 0.66, 0.2, 243, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.303, 0.0303, 0, 0.66, ...
[ "import sys", "sys.path.append('..')", "from sample_and_record import get_db_conn, init_db", "from dataproc import aqi2concentration, lowratio2concentration", "def update_db():\n conn = get_db_conn()\n conn.cursor().execute(\"\"\"ALTER TABLE history RENAME TO history00\"\"\")\n init_db(conn)\n\n ...
# -*- coding: utf-8 -*- from __future__ import with_statement # This isn't required in Python 2.6 __metaclass__ = type from contextlib import closing, contextmanager import os, sys, traceback import os.path from mod_python import apache, util from util import parse_qs today = date.today ver = sys.version_inf...
[ [ 1, 0, 0.0069, 0.0035, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0104, 0.0035, 0, 0.66, 0.0417, 203, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0208, 0.0035, 0, 0...
[ "from __future__ import with_statement # This isn't required in Python 2.6", "__metaclass__ = type", "from contextlib import closing, contextmanager", "import os, sys, traceback", "import os.path", "from mod_python import apache, util", "from util import parse_qs", "today = date.today", "ver = sys.v...
from sys import stdin x, = map(float, stdin.readline().strip().split()) print abs(x)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 190, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "x, = map(float, stdin.readline().strip().split())", "print(abs(x))" ]
from sys import stdin a, b = map(int, stdin.readline().strip().split()) print b, a
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5, 0.25, 0, 0.66, 0.5, 127, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 0.75, 0.25, 0, 0.66, 1, ...
[ "from sys import stdin", "a, b = map(int, stdin.readline().strip().split())", "print(b, a)" ]
from sys import stdin n, = map(int, stdin.readline().strip().split()) print n*(n+1)/2
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "print(n*(n+1)/2)" ]
from sys import stdin a, b, c = map(int, stdin.readline().strip().split()) print "%.3lf" % ((a+b+c)/3.0)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 256, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "a, b, c = map(int, stdin.readline().strip().split())", "print(\"%.3lf\" % ((a+b+c)/3.0))" ]
from sys import stdin n = stdin.readline().strip().split()[0] print '%c%c%c' % (n[2], n[1], n[0])
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5, 0.25, 0, 0.66, 0.5, 773, 6, 0, 0, 0, 0, 0, 3 ], [ 8, 0, 0.75, 0.25, 0, 0.66, 1, ...
[ "from sys import stdin", "n = stdin.readline().strip().split()[0]", "print('%c%c%c' % (n[2], n[1], n[0]))" ]
from sys import stdin n, = map(int, stdin.readline().strip().split()) money = n * 95 if money >= 300: money *= 0.85 print "%.2lf" % money
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.25, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "money = n * 95", "if money >= 300: money *= 0.85", "print(\"%.2lf\" % money)" ]
from sys import stdin from math import * x1, y1, x2, y2 = map(float, stdin.readline().strip().split()) print "%.3lf" % hypot((x1-x2), (y1-y2))
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.75, 0.25, 0, 0.66, 0....
[ "from sys import stdin", "from math import *", "x1, y1, x2, y2 = map(float, stdin.readline().strip().split())", "print(\"%.3lf\" % hypot((x1-x2), (y1-y2)))" ]
from sys import stdin f, = map(float, stdin.readline().strip().split()) print "%.3lf" % (5*(f-32)/9)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 899, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "f, = map(float, stdin.readline().strip().split())", "print(\"%.3lf\" % (5*(f-32)/9))" ]
from sys import stdin n, m = map(int, stdin.readline().strip().split()) a = (4*n-m)/2 b = n-a if m % 2 == 1 or a < 0 or b < 0: print "No answer" else: print a, b
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 51, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "n, m = map(int, stdin.readline().strip().split())", "a = (4*n-m)/2", "b = n-a" ]
from sys import stdin a, b, c = map(int, stdin.readline().strip().split()) if a*a + b*b == c*c or a*a + c*c == b*b or b*b + c*c == a*a: print "yes" elif a + b <= c or a + c <= b or b + c <= a: print "not a triangle" else: print "no"
[ [ 1, 0, 1, 1, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ] ]
[ "from sys import stdin" ]
from sys import stdin n, = map(int, stdin.readline().strip().split()) print ["yes", "no"][n % 2]
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "print [\"yes\", \"no\"][n % 2]" ]
from sys import stdin from math import * n, = map(int, stdin.readline().strip().split()) rad = radians(n) print "%.3lf %.3lf" % (sin(rad), cos(rad))
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.25, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "from math import *", "n, = map(int, stdin.readline().strip().split())", "rad = radians(n)", "print(\"%.3lf %.3lf\" % (sin(rad), cos(rad)))" ]
from sys import stdin a = map(int, stdin.readline().strip().split()) a.sort() print a[0], a[1], a[2]
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 475, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "a = map(int, stdin.readline().strip().split())", "a.sort()", "print(a[0], a[1], a[2])" ]
from sys import stdin from math import * r, h = map(float, stdin.readline().strip().split()) print "Area = %.3lf" % (pi*r*r*2 + 2*pi*r*h)
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.75, 0.25, 0, 0.66, 0....
[ "from sys import stdin", "from math import *", "r, h = map(float, stdin.readline().strip().split())", "print(\"Area = %.3lf\" % (pi*r*r*2 + 2*pi*r*h))" ]
from sys import stdin from calendar import isleap year, = map(int, stdin.readline().strip().split()) if isleap(year): print "yes" else: print "no"
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 917, 0, 1, 0, 0, 917, 0, 0 ], [ 14, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "from calendar import isleap", "year, = map(int, stdin.readline().strip().split())" ]
s = i = 0 while True: term = 1.0 / (i*2+1) s += term * ((-1)**i) if term < 1e-6: break i += 1 print "%.6lf" % s
[ [ 14, 0, 0.1429, 0.1429, 0, 0.66, 0, 553, 1, 0, 0, 0, 0, 1, 0 ], [ 5, 0, 0.5714, 0.7143, 0, 0.66, 0.5, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4286, 0.1429, 1, 0.98, ...
[ "s = i = 0", "while True:\n term = 1.0 / (i*2+1)\n s += term * ((-1)**i)\n if term < 1e-6: break\n i += 1", " term = 1.0 / (i*2+1)", " if term < 1e-6: break", "print(\"%.6lf\" % s)" ]
from sys import stdin n, m = map(int, stdin.readline().strip().split()) print "%.5lf" % sum([1.0/i/i for i in range(n,m+1)])
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 51, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, m = map(int, stdin.readline().strip().split())", "print(\"%.5lf\" % sum([1.0/i/i for i in range(n,m+1)]))" ]
from sys import stdin from decimal import * a, b, c = map(int, stdin.readline().strip().split()) getcontext().prec = c print Decimal(a) / Decimal(b)
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.25, 349, 0, 1, 0, 0, 349, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "from decimal import *", "a, b, c = map(int, stdin.readline().strip().split())", "getcontext().prec = c", "print(Decimal(a) / Decimal(b))" ]
from itertools import product from math import * def issqrt(n): s = int(floor(sqrt(n))) return s*s == n aabb = [a*1100+b*11 for a,b in product(range(1,10),range(10))] print ' '.join(map(str, filter(issqrt, aabb)))
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.2222, 0.1111, 0, 0.66, 0.25, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 2, 0, 0.5556, 0.3333, 0, 0....
[ "from itertools import product", "from math import *", "def issqrt(n):\n s = int(floor(sqrt(n)))\n return s*s == n", " s = int(floor(sqrt(n)))", " return s*s == n", "aabb = [a*1100+b*11 for a,b in product(range(1,10),range(10))]", "print(' '.join(map(str, filter(issqrt, aabb))))" ]
from sys import stdin from math import * n = int(stdin.readline().strip()) print sum(map(factorial, range(1,n+1))) % (10**6)
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "from math import *", "n = int(stdin.readline().strip())", "print(sum(map(factorial, range(1,n+1))) % (10**6))" ]
from sys import stdin def cycle(n): if n == 1: return 0 elif n % 2 == 1: return cycle(n*3+1) + 1 else: return cycle(n/2) + 1 n = int(stdin.readline().strip()) print cycle(n)
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5, 0.4444, 0, 0.66, 0.3333, 276, 0, 1, 1, 0, 0, 0, 2 ], [ 4, 1, 0.5556, 0.3333, 1, 0.88,...
[ "from sys import stdin", "def cycle(n):\n if n == 1: return 0\n elif n % 2 == 1: return cycle(n*3+1) + 1\n else: return cycle(n/2) + 1", " if n == 1: return 0\n elif n % 2 == 1: return cycle(n*3+1) + 1\n else: return cycle(n/2) + 1", " if n == 1: return 0", " elif n % 2 == 1: return cycle(n*3+1) + 1...
for abc in range(123, 329): big = str(abc) + str(abc*2) + str(abc*3) if(''.join(sorted(big)) == '123456789'): print abc, abc*2, abc*3
[ [ 6, 0, 0.75, 1, 0, 0.66, 0, 38, 3, 0, 0, 0, 0, 0, 4 ], [ 14, 1, 1, 0.5, 1, 0.8, 0, 235, 4, 0, 0, 0, 0, 0, 3 ] ]
[ "for abc in range(123, 329):\n big = str(abc) + str(abc*2) + str(abc*3)", " big = str(abc) + str(abc*2) + str(abc*3)" ]
from sys import stdin print len(stdin.readline().strip())
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 1, 0.5, 0, 0.66, 1, 535, 3, 1, 0, 0, 0, 0, 4 ] ]
[ "from sys import stdin", "print(len(stdin.readline().strip()))" ]
from sys import stdin def solve(a, b, c): for i in range(10, 101): if i % 3 == a and i % 5 == b and i % 7 == c: print i return print 'No answer' a, b, c = map(int, stdin.readline().strip().split()) solve(a, b, c)
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5, 0.5455, 0, 0.66, 0.3333, 599, 0, 3, 0, 0, 0, 0, 3 ], [ 6, 1, 0.5, 0.3636, 1, 0.42, ...
[ "from sys import stdin", "def solve(a, b, c):\n for i in range(10, 101):\n if i % 3 == a and i % 5 == b and i % 7 == c:\n print(i)\n return\n print('No answer')", " for i in range(10, 101):\n if i % 3 == a and i % 5 == b and i % 7 == c:\n print(i)\n return", " if i % 3 == a and...
from sys import stdin data = map(int, stdin.readline().strip().split()) n, m = data[0], data[-1] data = data[1:-1] print len(filter(lambda x: x < m, data))
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.25, 929, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "data = map(int, stdin.readline().strip().split())", "n, m = data[0], data[-1]", "data = data[1:-1]", "print(len(filter(lambda x: x < m, data)))" ]
from sys import stdin a = map(int, stdin.readline().strip().split()) print "%d %d %.3lf" % (min(a), max(a), float(sum(a)) / len(a))
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 475, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "a = map(int, stdin.readline().strip().split())", "print(\"%d %d %.3lf\" % (min(a), max(a), float(sum(a)) / len(a)))" ]
from sys import stdin n = int(stdin.readline().strip()) print "%.3lf" % sum([1.0/x for x in range(1,n+1)])
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 1, 0, 0, 901, 10, 3 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n = int(stdin.readline().strip())", "print(\"%.3lf\" % sum([1.0/x for x in range(1,n+1)]))" ]
from itertools import product sol = [a*100+b*10+c for a,b,c in product(range(1,10), range(10), range(10)) if a**3+b**3+c**3 == a*100+b*10+c] print '\n'.join(map(str, sol))
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 723, 5, 0, 0, 0, 0, 0, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from itertools import product", "sol = [a*100+b*10+c for a,b,c in product(range(1,10), range(10), range(10)) if a**3+b**3+c**3 == a*100+b*10+c]", "print('\\n'.join(map(str, sol)))" ]
from sys import stdin n = int(stdin.readline().strip()) count = n*2-1 for i in range(n): print ' '*i + '#'*count count -= 2
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.3333, 0.1667, 0, 0.66, 0.3333, 773, 3, 1, 0, 0, 901, 10, 3 ], [ 14, 0, 0.5, 0.1667, 0, ...
[ "from sys import stdin", "n = int(stdin.readline().strip())", "count = n*2-1", "for i in range(n):\n print(' '*i + '#'*count)\n count -= 2", " print(' '*i + '#'*count)" ]
#! /usr/bin/env python # coding=utf-8 ############################################################################# # # # File: common.py # # ...
[ [ 1, 0, 0.4444, 0.0159, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 2, 0, 0.5079, 0.0794, 0, 0.66, 0.0769, 232, 0, 0, 1, 0, 0, 0, 1 ], [ 8, 1, 0.5, 0.0317, 1, 0.26,...
[ "import os, sys", "def we_are_frozen():\n \"\"\"Returns whether we are frozen via py2exe.\n This will affect how we find out where we are located.\"\"\"\n\n return hasattr(sys, \"frozen\")", " \"\"\"Returns whether we are frozen via py2exe.\n This will affect how we find out where we are located....
#!/usr/bin/env python import sys, os # do the UNIX double-fork magic, see Stevens' "Advanced # Programming in the UNIX Environment" for details (ISBN 0201563177) try: pid = os.fork() if pid > 0: # exit first parent sys.exit(0) except OSError, e: print >>sys.stderr, "fo...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 1, 0, 1, 0.3333, 0, 0.66, 1, 644, 0, 1, 0, 0, 644, 0, 0 ] ]
[ "import sys, os", "import ProxyServer" ]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.1654, 0.0079, 0, 0.66, 0, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.1732, 0.0079, 0, 0.66, 0.0625, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.189, 0.0079, 0, 0...
[ "import wsgiref.handlers", "import os", "from google.appengine.ext import webapp", "from google.appengine.ext import webapp", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from google.appengine.api import urlfetch"...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.1654, 0.0079, 0, 0.66, 0, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.1732, 0.0079, 0, 0.66, 0.0625, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.189, 0.0079, 0, 0...
[ "import wsgiref.handlers", "import os", "from google.appengine.ext import webapp", "from google.appengine.ext import webapp", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from google.appengine.api import urlfetch"...
import xmlrpclib from SimpleXMLRPCServer import SimpleXMLRPCServer def debug(message): print "[Debug] " + message return "OK" def info(message): print "[Infor] " + message server = SimpleXMLRPCServer(("localhost",8888)) print "Listening on port 8888" server.register_function(debug,"debug") server.serve_for...
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 251, 0, 1, 0, 0, 251, 0, 0 ], [ 1, 0, 0.1667, 0.0833, 0, 0.66, 0.1429, 73, 0, 1, 0, 0, 73, 0, 0 ], [ 2, 0, 0.4167, 0.25, 0, 0.66...
[ "import xmlrpclib", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "def debug(message):\n print(\"[Debug] \" + message)\n return \"OK\"", " print(\"[Debug] \" + message)", " return \"OK\"", "def info(message):\n print(\"[Infor] \" + message)", " print(\"[Infor] \" + message)", ...
import os import sys sys.path.append('/var/www/python/application') os.environ['PYTHON_EGG_CACHE'] = '/var/www/python/application/.python-egg' def application(environ, start_response): status = '200 OK' output = 'path /var/www/python/application' response_headers = [('Content-type', 'text/plain'), ...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.25, 0.0625, 0, 0.66,...
[ "import os", "import sys", "sys.path.append('/var/www/python/application')", "os.environ['PYTHON_EGG_CACHE'] = '/var/www/python/application/.python-egg'", "def application(environ, start_response):\n status = '200 OK'\n output = 'path /var/www/python/application'\n\n response_headers = [('Content-t...
s = i = 0 while True: term = 1.0 / (i*2+1) s += term * ((-1)**i) if term < 1e-6: break i += 1 print "%.6lf" % s
[ [ 14, 0, 0.1429, 0.1429, 0, 0.66, 0, 553, 1, 0, 0, 0, 0, 1, 0 ], [ 5, 0, 0.5714, 0.7143, 0, 0.66, 0.5, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4286, 0.1429, 1, 0.07, ...
[ "s = i = 0", "while True:\n term = 1.0 / (i*2+1)\n s += term * ((-1)**i)\n if term < 1e-6: break\n i += 1", " term = 1.0 / (i*2+1)", " if term < 1e-6: break", "print(\"%.6lf\" % s)" ]
from sys import stdin a = map(int, stdin.readline().strip().split()) print "%d %d %.3lf" % (min(a), max(a), float(sum(a)) / len(a))
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 475, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "a = map(int, stdin.readline().strip().split())", "print(\"%d %d %.3lf\" % (min(a), max(a), float(sum(a)) / len(a)))" ]
from sys import stdin from math import * n = int(stdin.readline().strip()) print sum(map(factorial, range(1,n+1))) % (10**6)
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "from math import *", "n = int(stdin.readline().strip())", "print(sum(map(factorial, range(1,n+1))) % (10**6))" ]
from sys import stdin def solve(a, b, c): for i in range(10, 101): if i % 3 == a and i % 5 == b and i % 7 == c: print i return print 'No answer' a, b, c = map(int, stdin.readline().strip().split()) solve(a, b, c)
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5, 0.5455, 0, 0.66, 0.3333, 599, 0, 3, 0, 0, 0, 0, 3 ], [ 6, 1, 0.5, 0.3636, 1, 0.94, ...
[ "from sys import stdin", "def solve(a, b, c):\n for i in range(10, 101):\n if i % 3 == a and i % 5 == b and i % 7 == c:\n print(i)\n return\n print('No answer')", " for i in range(10, 101):\n if i % 3 == a and i % 5 == b and i % 7 == c:\n print(i)\n return", " if i % 3 == a and...
from itertools import product sol = [a*100+b*10+c for a,b,c in product(range(1,10), range(10), range(10)) if a**3+b**3+c**3 == a*100+b*10+c] print '\n'.join(map(str, sol))
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 723, 5, 0, 0, 0, 0, 0, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from itertools import product", "sol = [a*100+b*10+c for a,b,c in product(range(1,10), range(10), range(10)) if a**3+b**3+c**3 == a*100+b*10+c]", "print('\\n'.join(map(str, sol)))" ]
from sys import stdin n = int(stdin.readline().strip()) count = n*2-1 for i in range(n): print ' '*i + '#'*count count -= 2
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.3333, 0.1667, 0, 0.66, 0.3333, 773, 3, 1, 0, 0, 901, 10, 3 ], [ 14, 0, 0.5, 0.1667, 0, ...
[ "from sys import stdin", "n = int(stdin.readline().strip())", "count = n*2-1", "for i in range(n):\n print(' '*i + '#'*count)\n count -= 2", " print(' '*i + '#'*count)" ]
from sys import stdin n, m = map(int, stdin.readline().strip().split()) print "%.5lf" % sum([1.0/i/i for i in range(n,m+1)])
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 51, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, m = map(int, stdin.readline().strip().split())", "print(\"%.5lf\" % sum([1.0/i/i for i in range(n,m+1)]))" ]
from sys import stdin print len(stdin.readline().strip())
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 1, 0.5, 0, 0.66, 1, 535, 3, 1, 0, 0, 0, 0, 4 ] ]
[ "from sys import stdin", "print(len(stdin.readline().strip()))" ]
from sys import stdin from decimal import * a, b, c = map(int, stdin.readline().strip().split()) getcontext().prec = c print Decimal(a) / Decimal(b)
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.25, 349, 0, 1, 0, 0, 349, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "from decimal import *", "a, b, c = map(int, stdin.readline().strip().split())", "getcontext().prec = c", "print(Decimal(a) / Decimal(b))" ]
from itertools import product from math import * def issqrt(n): s = int(floor(sqrt(n))) return s*s == n aabb = [a*1100+b*11 for a,b in product(range(1,10),range(10))] print ' '.join(map(str, filter(issqrt, aabb)))
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.2222, 0.1111, 0, 0.66, 0.25, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 2, 0, 0.5556, 0.3333, 0, 0....
[ "from itertools import product", "from math import *", "def issqrt(n):\n s = int(floor(sqrt(n)))\n return s*s == n", " s = int(floor(sqrt(n)))", " return s*s == n", "aabb = [a*1100+b*11 for a,b in product(range(1,10),range(10))]", "print(' '.join(map(str, filter(issqrt, aabb))))" ]
from sys import stdin data = map(int, stdin.readline().strip().split()) n, m = data[0], data[-1] data = data[1:-1] print len(filter(lambda x: x < m, data))
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.25, 929, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "data = map(int, stdin.readline().strip().split())", "n, m = data[0], data[-1]", "data = data[1:-1]", "print(len(filter(lambda x: x < m, data)))" ]
for abc in range(123, 329): big = str(abc) + str(abc*2) + str(abc*3) if(''.join(sorted(big)) == '123456789'): print abc, abc*2, abc*3
[ [ 6, 0, 0.75, 1, 0, 0.66, 0, 38, 3, 0, 0, 0, 0, 0, 4 ], [ 14, 1, 1, 0.5, 1, 0.56, 0, 235, 4, 0, 0, 0, 0, 0, 3 ] ]
[ "for abc in range(123, 329):\n big = str(abc) + str(abc*2) + str(abc*3)", " big = str(abc) + str(abc*2) + str(abc*3)" ]
from sys import stdin n = int(stdin.readline().strip()) print "%.3lf" % sum([1.0/x for x in range(1,n+1)])
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 1, 0, 0, 901, 10, 3 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n = int(stdin.readline().strip())", "print(\"%.3lf\" % sum([1.0/x for x in range(1,n+1)]))" ]
from sys import stdin def cycle(n): if n == 1: return 0 elif n % 2 == 1: return cycle(n*3+1) + 1 else: return cycle(n/2) + 1 n = int(stdin.readline().strip()) print cycle(n)
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.5, 0.4444, 0, 0.66, 0.3333, 276, 0, 1, 1, 0, 0, 0, 2 ], [ 4, 1, 0.5556, 0.3333, 1, 0.44,...
[ "from sys import stdin", "def cycle(n):\n if n == 1: return 0\n elif n % 2 == 1: return cycle(n*3+1) + 1\n else: return cycle(n/2) + 1", " if n == 1: return 0\n elif n % 2 == 1: return cycle(n*3+1) + 1\n else: return cycle(n/2) + 1", " if n == 1: return 0", " elif n % 2 == 1: return cycle(n*3+1) + 1...
from sys import stdin n, = map(int, stdin.readline().strip().split()) money = n * 95 if money >= 300: money *= 0.85 print "%.2lf" % money
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.25, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "money = n * 95", "if money >= 300: money *= 0.85", "print(\"%.2lf\" % money)" ]
from sys import stdin from math import * x1, y1, x2, y2 = map(float, stdin.readline().strip().split()) print "%.3lf" % hypot((x1-x2), (y1-y2))
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.75, 0.25, 0, 0.66, 0....
[ "from sys import stdin", "from math import *", "x1, y1, x2, y2 = map(float, stdin.readline().strip().split())", "print(\"%.3lf\" % hypot((x1-x2), (y1-y2)))" ]
from sys import stdin n, = map(int, stdin.readline().strip().split()) print ["yes", "no"][n % 2]
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "print [\"yes\", \"no\"][n % 2]" ]
from sys import stdin n, m = map(int, stdin.readline().strip().split()) a = (4*n-m)/2 b = n-a if m % 2 == 1 or a < 0 or b < 0: print "No answer" else: print a, b
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 51, 3, 2, 0, 0, 53, 10, 4 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "n, m = map(int, stdin.readline().strip().split())", "a = (4*n-m)/2", "b = n-a" ]
from sys import stdin from math import * n, = map(int, stdin.readline().strip().split()) rad = radians(n) print "%.3lf %.3lf" % (sin(rad), cos(rad))
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.25, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.6, 0.2, 0, 0.66, 0.5, ...
[ "from sys import stdin", "from math import *", "n, = map(int, stdin.readline().strip().split())", "rad = radians(n)", "print(\"%.3lf %.3lf\" % (sin(rad), cos(rad)))" ]
from sys import stdin from calendar import isleap year, = map(int, stdin.readline().strip().split()) if isleap(year): print "yes" else: print "no"
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 917, 0, 1, 0, 0, 917, 0, 0 ], [ 14, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "from calendar import isleap", "year, = map(int, stdin.readline().strip().split())" ]
from sys import stdin a, b = map(int, stdin.readline().strip().split()) print b, a
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5, 0.25, 0, 0.66, 0.5, 127, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 0.75, 0.25, 0, 0.66, 1, ...
[ "from sys import stdin", "a, b = map(int, stdin.readline().strip().split())", "print(b, a)" ]
from sys import stdin f, = map(float, stdin.readline().strip().split()) print "%.3lf" % (5*(f-32)/9)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 899, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "f, = map(float, stdin.readline().strip().split())", "print(\"%.3lf\" % (5*(f-32)/9))" ]
from sys import stdin a, b, c = map(int, stdin.readline().strip().split()) if a*a + b*b == c*c or a*a + c*c == b*b or b*b + c*c == a*a: print "yes" elif a + b <= c or a + c <= b or b + c <= a: print "not a triangle" else: print "no"
[ [ 1, 0, 1, 1, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ] ]
[ "from sys import stdin" ]
from sys import stdin a = map(int, stdin.readline().strip().split()) a.sort() print a[0], a[1], a[2]
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 475, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 0.6, 0.2, 0, 0.66, 0.6667,...
[ "from sys import stdin", "a = map(int, stdin.readline().strip().split())", "a.sort()", "print(a[0], a[1], a[2])" ]
from sys import stdin n, = map(int, stdin.readline().strip().split()) print n*(n+1)/2
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 773, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "n, = map(int, stdin.readline().strip().split())", "print(n*(n+1)/2)" ]
from sys import stdin x, = map(float, stdin.readline().strip().split()) print abs(x)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 190, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "x, = map(float, stdin.readline().strip().split())", "print(abs(x))" ]
from sys import stdin a, b, c = map(int, stdin.readline().strip().split()) print "%.3lf" % ((a+b+c)/3.0)
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 256, 3, 2, 0, 0, 53, 10, 4 ], [ 8, 0, 1, 0.3333, 0, 0.66, ...
[ "from sys import stdin", "a, b, c = map(int, stdin.readline().strip().split())", "print(\"%.3lf\" % ((a+b+c)/3.0))" ]
from sys import stdin from math import * r, h = map(float, stdin.readline().strip().split()) print "Area = %.3lf" % (pi*r*r*2 + 2*pi*r*h)
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.75, 0.25, 0, 0.66, 0....
[ "from sys import stdin", "from math import *", "r, h = map(float, stdin.readline().strip().split())", "print(\"Area = %.3lf\" % (pi*r*r*2 + 2*pi*r*h))" ]
from sys import stdin n = stdin.readline().strip().split()[0] print '%c%c%c' % (n[2], n[1], n[0])
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5, 0.25, 0, 0.66, 0.5, 773, 6, 0, 0, 0, 0, 0, 3 ], [ 8, 0, 0.75, 0.25, 0, 0.66, 1, ...
[ "from sys import stdin", "n = stdin.readline().strip().split()[0]", "print('%c%c%c' % (n[2], n[1], n[0]))" ]
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import db from google.appengine.api import users class Categories(db.Expando): """ categories of different places data model """ name = db....
[ [ 1, 0, 0.1064, 0.0213, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1277, 0.0213, 0, 0.66, 0.1667, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.2447, 0.1277, 0, ...
[ "from google.appengine.ext import db", "from google.appengine.api import users", "class Categories(db.Expando):\n \"\"\" categories of different places data model \"\"\"\n \n name = db.StringProperty(required=True)\n subname = db.StringProperty(required=True)\n description = db.StringProperty(required=T...
print 'Content-Type: text/plain' print '' print 'Hello, world!'
[ [ 8, 0, 0.25, 0.25, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.5, 0.25, 0, 0.66, 0.5, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.75, 0.25, 0, 0.66, 1, 535...
[ "print('Content-Type: text/plain')", "print('')", "print('Hello, world!')" ]
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import webapp import os # test print envs class PrintEnvironment(webapp.RequestHandler): def get(self): for name in os.environ.keys(): self.respons...
[ [ 1, 0, 0.4, 0.0667, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.4667, 0.0667, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 3, 0, 0.8333, 0.2667, 0, 0.66, ...
[ "from google.appengine.ext import webapp", "import os", "class PrintEnvironment(webapp.RequestHandler):\n def get(self):\n for name in os.environ.keys():\n self.response.out.write(\"%s = %s<br />\\n\" % (name, os.environ[name]))", " def get(self):\n for name in os.environ.keys():\n self.resp...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # import cgi import datetime import logging from google.appengine.ext import db from google.appengine.api import users from google.appengine.ext import webapp from google.appengi...
[ [ 1, 0, 0.0704, 0.0141, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0845, 0.0141, 0, 0.66, 0.0909, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0986, 0.0141, 0, ...
[ "import cgi", "import datetime", "import logging", "from google.appengine.ext import db", "from google.appengine.api import users", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.api import images", "class Greeting(db.Mo...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import webapp from google.appengine.ext import db import os class Point(db.Expando): """ save a point with a comment """ lat = db.StringProperty(req...
[ [ 1, 0, 0.2143, 0.0357, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.25, 0.0357, 0, 0.66, 0.25, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2857, 0.0357, 0, 0.66...
[ "from google.appengine.ext import webapp", "from google.appengine.ext import db", "import os", "class Point(db.Expando):\n \"\"\" save a point with a comment \"\"\"\n \n lat = db.StringProperty(required=True)\n lng = db.StringProperty(required=True)\n comment = db.StringProperty(required=True)", " ...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import db from google.appengine.api import users class Categories(db.Expando): """ categories of different places data model """ name = db....
[ [ 1, 0, 0.1064, 0.0213, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1277, 0.0213, 0, 0.66, 0.1667, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.2447, 0.1277, 0, ...
[ "from google.appengine.ext import db", "from google.appengine.api import users", "class Categories(db.Expando):\n \"\"\" categories of different places data model \"\"\"\n \n name = db.StringProperty(required=True)\n subname = db.StringProperty(required=True)\n description = db.StringProperty(required=T...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.api import urlfetch from google.appengine.ext import webapp # test fetch url class Fetch(webapp.RequestHandler): def get(self): self.response.out.write(""" ...
[ [ 1, 0, 0.1667, 0.0333, 0, 0.66, 0, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.2, 0.0333, 0, 0.66, 0.3333, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.4833, 0.4, 0, 0.66, ...
[ "from google.appengine.api import urlfetch", "from google.appengine.ext import webapp", "class Fetch(webapp.RequestHandler):\n def get(self):\n self.response.out.write(\"\"\"\n <html>\n <head>Fetch A Url</head> \n <body>\n <form action=\"/fetchme\" enctype=\"multipart/form...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # import os import wsgiref.handlers #import cgi import datetime import logging from google.appengine.api import mail from google.appengine.api import memcache from google.appeng...
[ [ 1, 0, 0.0943, 0.0189, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1132, 0.0189, 0, 0.66, 0.0435, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.1509, 0.0189, 0, ...
[ "import os", "import wsgiref.handlers", "import datetime", "import logging", "from google.appengine.api import mail", "from google.appengine.api import memcache", "from google.appengine.api import urlfetch", "from google.appengine.api import users", "from google.appengine.api import images", "from...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import webapp import os # test print envs class PrintEnvironment(webapp.RequestHandler): def get(self): for name in os.environ.keys(): self.respons...
[ [ 1, 0, 0.4, 0.0667, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.4667, 0.0667, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 3, 0, 0.8333, 0.2667, 0, 0.66, ...
[ "from google.appengine.ext import webapp", "import os", "class PrintEnvironment(webapp.RequestHandler):\n def get(self):\n for name in os.environ.keys():\n self.response.out.write(\"%s = %s<br />\\n\" % (name, os.environ[name]))", " def get(self):\n for name in os.environ.keys():\n self.resp...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # # test json rpc call from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from django.utils import simplejson class RPCHandler(webapp.Re...
[ [ 1, 0, 0.0745, 0.0106, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.0851, 0.0106, 0, 0.66, 0.1667, 327, 0, 1, 0, 0, 327, 0, 0 ], [ 1, 0, 0.0957, 0.0106, 0, ...
[ "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from django.utils import simplejson", "class RPCHandler(webapp.RequestHandler):\n \"\"\" Allows the functions defined in the RPCMethods class to be RPCed.\"\"\"\n\n def __init__(self):\n webapp.Reques...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.api import urlfetch from google.appengine.ext import webapp # test fetch url class Fetch(webapp.RequestHandler): def get(self): self.response.out.write(""" ...
[ [ 1, 0, 0.1667, 0.0333, 0, 0.66, 0, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.2, 0.0333, 0, 0.66, 0.3333, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.4833, 0.4, 0, 0.66, ...
[ "from google.appengine.api import urlfetch", "from google.appengine.ext import webapp", "class Fetch(webapp.RequestHandler):\n def get(self):\n self.response.out.write(\"\"\"\n <html>\n <head>Fetch A Url</head> \n <body>\n <form action=\"/fetchme\" enctype=\"multipart/form...