code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python from __future__ import print_function ################################################################################ # # graph.py # # # Copyright (c) 10/9/2009 Leo Goodstadt # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated...
[ [ 1, 0, 0.0016, 0.0008, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0249, 0.0056, 0, 0.66, 0.0345, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0281, 0.0008, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n graph.py\n\n provides support for diacyclic graph\n with topological_sort\n\n\"\"\"", "import sys, re, os", "try:\n import json\nexcept ImportError:\n import simplejson\n json = simplejson", " import json", " import simplej...
#!/usr/bin/env python from __future__ import print_function import sys if sys.hexversion < 0x03000000: from future_builtins import zip ################################################################################ # # adjacent_pairs_iterate.py # # # Copyright (c) 2007 Leo Goodstadt # # Permission is hereby ...
[ [ 1, 0, 0.0294, 0.0147, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0441, 0.0147, 0, 0.66, 0.2, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.0662, 0.0294, 0, 0.6...
[ "from __future__ import print_function", "import sys", "if sys.hexversion < 0x03000000:\n from future_builtins import zip", " from future_builtins import zip", "def adjacent_pairs_iterate (array, reverse = False):\n \"\"\"\n returns pairs of iterators to successive positions\n \"\"\"\n if ...
#!/usr/bin/env python from __future__ import print_function ################################################################################ # # file_name_parameters # # # Copyright (c) 10/9/2009 Leo Goodstadt # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software an...
[ [ 1, 0, 0.0014, 0.0007, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0256, 0.0093, 0, 0.66, 0.0213, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0377, 0.0007, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n\n********************************************\n:mod:`file_name_parameters` -- Overview\n********************************************\n\n\n.. moduleauthor:: Leo Goodstadt <ruffus@llew.org.uk>", "import os,copy", "import re,sys", "import glob", "from operat...
#!/usr/bin/env python from __future__ import print_function """ simpler_with_shared_logging.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optparse i...
[ [ 1, 0, 0.0062, 0.0031, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0155, 0.0155, 0, 0.66, 0.0238, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0528, 0.0031, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n\n simpler_with_shared_logging.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "try:\n import StringIO as io\nexcept:\n import io as io", " import StringIO as io", " import io as io", "exe_path =...
#!/usr/bin/env python from __future__ import print_function """ draw_specified_dependency_tree.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optpars...
[ [ 1, 0, 0.006, 0.003, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0151, 0.0151, 0, 0.66, 0.0286, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0512, 0.003, 0, 0.66, ...
[ "from __future__ import print_function", "\"\"\"\n\n draw_specified_dependency_tree.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "try:\n import StringIO as io\nexcept:\n import io as io", " import StringIO as io", " import io as io", "exe_pat...
#!/usr/bin/env python from __future__ import print_function """ play_with_colours.py [--log_file PATH] [--verbose] """ ################################################################################ # # test # # # Copyright (c) 7/13/2010 Leo Goodstadt # # Permission is hereby granted, free of char...
[ [ 1, 0, 0.0071, 0.0035, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0213, 0.0248, 0, 0.66, 0.0312, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1312, 0.0035, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n\n play_with_colours.py\n [--log_file PATH]\n [--verbose]\n\n\"\"\"", "import sys, os", "exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]", "sys.path.insert(0,os.path.abspath(os.path.join(exe_path,\"..\", \"..\")))", "if __name__ == '__ma...
#!/usr/bin/env python from __future__ import print_function """ test_tasks.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optparse import OptionParse...
[ [ 1, 0, 0.0085, 0.0043, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0214, 0.0214, 0, 0.66, 0.0263, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0726, 0.0043, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n\n test_tasks.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "try:\n import StringIO as io\nexcept:\n import io as io", " import StringIO as io", " import io as io", "exe_path = os.path.split(os...
#!/usr/bin/env python from time import sleep import random import sys try: for i in range(50): sleep(1) #if random.randint(5) == 4: # print >> sys.stderr, "Throw" # raise Exception("WWWWW") print >> sys.stderr, i, sleep(1) print >> sys.stderr, "Done" except: ...
[ [ 1, 0, 0.1176, 0.0588, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0.3333, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2353, 0.0588, 0, ...
[ "from time import sleep", "import random", "import sys", "try:\n for i in range(50):\n sleep(1)\n #if random.randint(5) == 4:\n # print >> sys.stderr, \"Throw\"\n # raise Exception(\"WWWWW\")\n print >> sys.stderr, i,\n sleep(1)", " for i in range(50):\n ...
#!/usr/bin/env python from __future__ import print_function """ complicated_example.py """ import os, sys exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0] sys.path.append(os.path.abspath(os.path.join(exe_path,"..", ".."))) from ruffus import * from time import sleep import random #888888888888888888888...
[ [ 1, 0, 0.0038, 0.0019, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0094, 0.0094, 0, 0.66, 0.0204, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0169, 0.0019, 0, 0.66...
[ "from __future__ import print_function", "\"\"\"\n\n complicated_example.py\n\n\"\"\"", "import os, sys", "exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]", "sys.path.append(os.path.abspath(os.path.join(exe_path,\"..\", \"..\")))", "from ruffus import *", "from time import sleep", "import...
#!/usr/bin/env python2.5 """ test_tasks.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optparse import OptionParser import sys, os import os.path imp...
[ [ 8, 0, 0.0158, 0.0198, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0632, 0.004, 0, 0.66, 0.025, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.0672, 0.004, 0, 0.66, ...
[ "\"\"\"\n\n test_tasks.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "import StringIO", "exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]", "if __name__ == '__main__':\n module_name = os.path.split(sys.argv[0])[1]\n module_name = os.path.splite...
#!/usr/bin/env python2.5 """ test_tasks.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optparse import OptionParser import sys, os import os.path imp...
[ [ 8, 0, 0.0149, 0.0186, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0595, 0.0037, 0, 0.66, 0.0233, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.0632, 0.0037, 0, 0.66...
[ "\"\"\"\n\n test_tasks.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "import StringIO", "exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]", "if __name__ == '__main__':\n module_name = os.path.split(sys.argv[0])[1]\n module_name = os.path.splite...
#!/usr/bin/env python from __future__ import print_function """ draw_specified_dependency_tree.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optpars...
[ [ 1, 0, 0.0096, 0.0048, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.024, 0.024, 0, 0.66, 0.0345, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0817, 0.0048, 0, 0.66, ...
[ "from __future__ import print_function", "\"\"\"\n\n draw_specified_dependency_tree.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "try:\n import StringIO as io\nexcept:\n import io as io", " import StringIO as io", " import io as io", "exe_pat...
#!/usr/bin/env python from __future__ import print_function import os, sys # add self to search path for testing exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0] sys.path.insert(0,os.path.abspath(os.path.join(exe_path,"..", ".."))) if __name__ == '__main__': module_name = os.path.split(sys.argv[0])[1] ...
[ [ 1, 0, 0.04, 0.02, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.06, 0.02, 0, 0.66, 0.1, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1, 0.02, 0, 0.66, 0.2, ...
[ "from __future__ import print_function", "import os, sys", "exe_path = os.path.split(os.path.abspath(sys.argv[0]))[0]", "sys.path.insert(0,os.path.abspath(os.path.join(exe_path,\"..\", \"..\")))", "if __name__ == '__main__':\n module_name = os.path.split(sys.argv[0])[1]\n module_name = os.path.splitex...
#!/usr/bin/env python from __future__ import print_function """ test_tasks.py """ #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 # options #88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 from optparse import OptionParse...
[ [ 1, 0, 0.0079, 0.004, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 8, 0, 0.0198, 0.0198, 0, 0.66, 0.0256, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0672, 0.004, 0, 0.66, ...
[ "from __future__ import print_function", "\"\"\"\n\n test_tasks.py\n\n\"\"\"", "from optparse import OptionParser", "import sys, os", "import os.path", "try:\n import StringIO as io\nexcept:\n import io as io", " import StringIO as io", " import io as io", "exe_path = os.path.split(os...
'''Debugging utilities.''' import sys import traceback import inspect def excepthook(type, value, tb): """ Automatically start the debugger on an exception. See also: - http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287 """ if hasattr(sys, 'ps1') \ or not (sys.stdin.isatty()...
[ [ 8, 0, 0.0278, 0.0278, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1111, 0.0278, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1389, 0.0278, 0, 0.66...
[ "'''Debugging utilities.'''", "import sys", "import traceback", "import inspect", "def excepthook(type, value, tb):\n \"\"\"\n Automatically start the debugger on an exception.\n\n See also:\n - http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287\n \"\"\"", " \"\"\"\n Automa...
#!/usr/bin/env python # # Copyright 2007 Jose Fonseca # # This program 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 3 of the License, or # (at your option) any later version. # # This ...
[ [ 2, 0, 0.4357, 0.3429, 0, 0.66, 0, 679, 0, 3, 1, 0, 0, 0, 11 ], [ 1, 1, 0.2857, 0.0143, 1, 0.64, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 1, 0.3, 0.0143, 1, 0.64, ...
[ "def run(statement, filename=None, sort=-1):\n import os, tempfile, hotshot, hotshot.stats\n logfd, logfn = tempfile.mkstemp()\n prof = hotshot.Profile(logfn)\n try:\n prof = prof.run(statement)\n except SystemExit:\n pass", " import os, tempfile, hotshot, hotshot.stats", " lo...
#!/usr/bin/python import os import dircache list = dircache.listdir('src/datasoul/icons/v2') for icon in list: ret = os.system('[ $(grep -l "'+icon+'" src -r | grep .java$ | wc -l) -eq 0 ]') if ret == 0: print icon
[ [ 1, 0, 0.2308, 0.0769, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3077, 0.0769, 0, 0.66, 0.3333, 724, 0, 1, 0, 0, 724, 0, 0 ], [ 14, 0, 0.4615, 0.0769, 0, ...
[ "import os", "import dircache", "list = dircache.listdir('src/datasoul/icons/v2')", "for icon in list:\n\tret = os.system('[ $(grep -l \"'+icon+'\" src -r | grep .java$ | wc -l) -eq 0 ]')\n\tif ret == 0:\n\t\tprint(icon)", "\tret = os.system('[ $(grep -l \"'+icon+'\" src -r | grep .java$ | wc -l) -eq 0 ]'...
#!/usr/bin/python import sys import os def convert(s): return s.replace("*", "\\*"); f = open('src/datasoul/internationalize.properties', 'r') x = f.read() f.close() for l in x.split('\n'): beg = 0 #print "---> "+l if len(l) == 0 or l[0] == '#': continue while True: idx = l.find("=", beg) if idx > 0 a...
[ [ 1, 0, 0.1034, 0.0345, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1379, 0.0345, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.2241, 0.069, 0, 0...
[ "import sys", "import os", "def convert(s):\n\treturn s.replace(\"*\", \"\\\\*\");", "\treturn s.replace(\"*\", \"\\\\*\");", "f = open('src/datasoul/internationalize.properties', 'r')", "x = f.read()", "f.close()", "for l in x.split('\\n'):\n\tbeg = 0\n\t#print \"---> \"+l\n\tif len(l) == 0 or l[0] ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gener...
[ [ 1, 0, 0.1667, 0.0069, 0, 0.66, 0, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.1806, 0.0069, 0, 0.66, 0.1429, 183, 0, 1, 0, 0, 183, 0, 0 ], [ 1, 0, 0.1875, 0.0069, 0, ...
[ "import wsgiref.handlers", "from handlers import *", "from handlers import Updater", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import template", "webapp.template.register_template_library('templatefilters')", "def main():\n\t\n\t\n\tUpdater.update()\n\n\tapplication = ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.142, 0.0062, 0, 0.66, 0, 294, 0, 1, 0, 0, 294, 0, 0 ], [ 1, 0, 0.1481, 0.0062, 0, 0.66, 0.0667, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1605, 0.0062, 0, 0...
[ "from django import template", "from google.appengine.ext import webapp", "from utilities.AppProperties import AppProperties", "register = webapp.template.create_template_register()", "import datetime", "def relativize(value):\n\tnow = datetime.datetime.now()\n\tdiff = now - value\n\tdays = diff.days\n\ts...
import urllib from google.appengine.api import urlfetch """ Adapted from http://pypi.python.org/pypi/recaptcha-client to use with Google App Engine by Joscha Feth <joscha@feth.com> Version 0.1 """ API_SSL_SERVER ="https://api-secure.recaptcha.net" API_SERVER ="http://api.recaptcha.net" VERIFY_SE...
[ [ 1, 0, 0.0094, 0.0094, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0189, 0.0094, 0, 0.66, 0.125, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 8, 0, 0.0613, 0.0566, 0, 0...
[ "import urllib", "from google.appengine.api import urlfetch", "\"\"\"\n Adapted from http://pypi.python.org/pypi/recaptcha-client\n to use with Google App Engine\n by Joscha Feth <joscha@feth.com>\n Version 0.1\n\"\"\"", "API_SSL_SERVER =\"https://api-secure.recaptcha.net\"", "API_SERVER =...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gener...
[ [ 1, 0, 0.25, 0.0109, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2609, 0.0109, 0, 0.66, 0.2, 263, 0, 1, 0, 0, 263, 0, 0 ], [ 1, 0, 0.2717, 0.0109, 0, 0.66,...
[ "import os", "import sha", "import time", "import Cookie", "COOKIE_NAME = 'vikuit'", "class Session(object):\n\n\tdef __init__(self, seed):\n\t\tself.time = None\n\t\tself.user = None\n\t\tself.auth = None\n\t\tself.seed = seed", "\tdef __init__(self, seed):\n\t\tself.time = None\n\t\tself.user = ...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free S...
[ [ 1, 0, 0.6216, 0.027, 0, 0.66, 0, 386, 0, 1, 0, 0, 386, 0, 0 ], [ 1, 0, 0.6486, 0.027, 0, 0.66, 0.25, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.7027, 0.027, 0, 0.66,...
[ "import simplejson", "import model", "from google.appengine.api import memcache", "from google.appengine.ext import webapp", "class BaseRest(webapp.RequestHandler):\n\t\n\tdef render_json(self, data):\n\t\tself.response.headers['Content-Type'] = 'application/json;charset=UTF-8'\n\t\tself.response.headers['P...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free S...
[ [ 1, 0, 0.8462, 0.0385, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.9615, 0.1154, 0, 0.66, 1, 821, 0, 1, 0, 0, 94, 0, 1 ], [ 2, 1, 0.9808, 0.0769, 1, 0.29, ...
[ "from handlers.BaseHandler import *", "class SearchResult(BaseHandler):\n\tdef execute(self):\n\t\tself.render('templates/search-result.html')", "\tdef execute(self):\n\t\tself.render('templates/search-result.html')", "\t\tself.render('templates/search-result.html')" ]
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
[ [ 1, 0, 0.697, 0.0303, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.8788, 0.2727, 0, 0.66, 1, 493, 0, 1, 0, 0, 94, 0, 9 ], [ 2, 1, 0.9091, 0.2121, 1, 0.2, ...
[ "from handlers.BaseHandler import *", "class Tag(BaseHandler):\n\n\tdef execute(self):\n\t\ttag = self.request.path.split('/', 2)[2]\n\t\tquery = model.Article.all().filter('tags =', tag).filter('draft', False).filter('deletion_date', None).order('-creation_date')\n\t\tself.values['articles'] = self.paging(query,...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.8214, 0.0357, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.9464, 0.1429, 0, 0.66, 1, 658, 0, 1, 0, 0, 94, 0, 1 ], [ 2, 1, 0.9821, 0.0714, 1, 0.17, ...
[ "from handlers.BaseHandler import BaseHandler", "class NotFound(BaseHandler):\n\n\tdef execute(self):\n\t\tself.not_found()", "\tdef execute(self):\n\t\tself.not_found()", "\t\tself.not_found()" ]
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.5, 0.0227, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.5227, 0.0227, 0, 0.66, 0.2, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.5682, 0.0227, 0, 0.66, ...
[ "import model", "import logging", "from google.appengine.api import memcache", "from google.appengine.ext import webapp", "from handlers.BaseHandler import BaseHandler", "class ImageBrowser(BaseHandler):\n \n def execute(self):\n user = self.values['user']\n \n #TODO PAGINATE\n ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.275, 0.0125, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2875, 0.0125, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3, 0.0125, 0, 0.66...
[ "import datetime", "import os", "import model", "import logging", "from google.appengine.api import memcache", "from google.appengine.ext import webapp", "from handlers.AuthenticatedHandler import AuthenticatedHandler", "class ImageUploader(AuthenticatedHandler):\n \n def execute(self):\n ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.0259, 0.0012, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0271, 0.0012, 0, 0.66, 0.1, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.0283, 0.0012, 0, 0.6...
[ "import re", "import model", "import datetime", "from google.appengine.ext import db", "from google.appengine.ext import webapp", "from google.appengine.api import users", "from google.appengine.api import memcache", "from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError", "fr...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2987, 0.013, 0, 0.66, 0, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.3117, 0.013, 0, 0.66, 0.25, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.3247, 0.013, 0, 0.66,...
[ "from google.appengine.api import mail", "from google.appengine.ext import db", "from handlers.BaseHandler import *", "import re", "class Invite(BaseHandler):\n\t\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tmethod = self.request.method\n\n\t\tapp = self.get_application()", "\tdef execute(se...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1204, 0.0052, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.1257, 0.0052, 0, 0.66, 0.1111, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.1309, 0.0052, 0, ...
[ "import time", "import model", "import datetime", "import markdown", "from google.appengine.api import memcache", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import template", "from time import strftime, gmtime, time", "from utilities.AppProperties import AppProperti...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
[ [ 1, 0, 0.4792, 0.0208, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.7604, 0.5, 0, 0.66, 1, 302, 0, 1, 0, 0, 94, 0, 11 ], [ 2, 1, 0.7812, 0.4583, 1, 0.72, ...
[ "from handlers.BaseHandler import *", "class ForumList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/forum.list'\n\t\tquery = model.Thread.all().filter('parent_thread', None)\n\t\tapp = self.get_application()\n\t\tkey = '%s?%s' % (self.request.path, self.request.query)\n\t\tresults = 10", "\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2447, 0.0106, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.2553, 0.0106, 0, 0.66, 0.1667, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.266, 0.0106, 0, 0...
[ "import time", "import datetime", "import re", "from google.appengine.ext import db", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class MBlogEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['use...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.2949, 0.0128, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6538, 0.6795, 0, 0.66, 1, 482, 0, 1, 0, 0, 116, 0, 26 ], [ 2, 1, 0.6667, 0.6538, 1, 0.45...
[ "from handlers.AuthenticatedHandler import *", "class MessageEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tuser_to = model.UserData.all().filter('nickname', self.get_param('user_to')).get()\n\t\tif not user_to:\n\t\t\tself.not_found()\n\t\t\treturn", "\tdef execute(sel...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4694, 0.0204, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.5102, 0.0204, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7755, 0.4694, 0, 0.6...
[ "import datetime", "from handlers.AuthenticatedHandler import *", "class MessageDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tkey = self.request.get('key')\n\t\tmessage = model.Message.get(key)\n\t\tif not message:\n\t\t\tself.not_found()", "\tdef execute(self):\n\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.5476, 0.0238, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7976, 0.4286, 0, 0.66, 1, 720, 0, 1, 0, 0, 116, 0, 7 ], [ 2, 1, 0.8214, 0.381, 1, 0.75, ...
[ "from handlers.AuthenticatedHandler import *", "class MessageRead(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\turl_path = self.request.path.split('/', 2)[2]\n\t\tmessage = model.Message.gql('WHERE url_path=:1', url_path).get()\n\t\tif message.user_to_nickname != user.nicknam...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.7188, 0.0312, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.875, 0.2188, 0, 0.66, 1, 190, 0, 1, 0, 0, 116, 0, 5 ], [ 2, 1, 0.9062, 0.1562, 1, 0.58, ...
[ "from handlers.AuthenticatedHandler import *", "class MessageInbox(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tquery = model.Message.all().filter('user_to', user).filter('to_deletion_date', None)\n\t\tself.values['messages'] = self.paging(query, 10, '-creation_date', user.m...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.7188, 0.0312, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.875, 0.2188, 0, 0.66, 1, 49, 0, 1, 0, 0, 116, 0, 5 ], [ 2, 1, 0.9062, 0.1562, 1, 0.13, ...
[ "from handlers.AuthenticatedHandler import *", "class MessageSent(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tquery = model.Message.all().filter('user_from', user).filter('from_deletion_date', None)\n\t\tself.values['messages'] = self.paging(query, 10, '-creation_date', use...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.575, 0.025, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.6, 0.025, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.825, 0.375, 0, 0.66, 1...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserFavourites(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.3333, 0.0145, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.3478, 0.0145, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.6884, 0.6377, 0, 0.6...
[ "import model", "from handlers.BaseHandler import *", "class UserResetPassword(BaseHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\n\t\tif method == 'GET':\n\t\t\tnickname = self.request.get('nickname')\n\t\t\ttoken = self.request.get('token')", "\tdef execute(self):\n\t\tmethod = self.r...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.7188, 0.0312, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 1, 0, 0.75, 0.0312, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.9062, 0.2188, 0, 0.66,...
[ "from handlers.AuthenticatedHandler import *", "from google.appengine.api import users", "class UserEvents(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.get_current_user()\n\t\tquery = model.Event.all().filter('followers', user.nickname)\n\t\tself.values['events'] = self.paging(query, 10, '-cr...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.7188, 0.0312, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.8906, 0.25, 0, 0.66, 1, 580, 0, 1, 0, 0, 116, 0, 2 ], [ 2, 1, 0.9219, 0.1875, 1, 0.7, ...
[ "from handlers.AuthenticatedHandler import *", "class UserPromote(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tuser = self.values['user']\n\t\tapp = self.get_application()\n\t\tself.values['user_url'] = '%s/module/user/%s' % (app.url, user.nickname)\n\t\tself.r...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3067, 0.0133, 0, 0.66, 0, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.32, 0.0133, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6733, 0.6667, 0, 0.66,...
[ "from google.appengine.api import mail", "from handlers.AuthenticatedHandler import *", "class UserContact(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tuser_to = model.UserData.all().filter('nickname', self.get_param('user_to')).get()\n\t\tif not user_to:\n\t\t\tself.not_f...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.5897, 0.0256, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.6154, 0.0256, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.8333, 0.359, 0, 0.66...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserArticles(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\tif...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2, 0.0087, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.2174, 0.0087, 0, 0.66, 0.2, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2261, 0.0087, 0, 0.66, ...
[ "import img", "from google.appengine.ext import db", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class UserEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.valu...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.5897, 0.0256, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.6154, 0.0256, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.8333, 0.359, 0, 0.66...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserForums(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\tif n...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.7188, 0.0312, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 1, 0, 0.75, 0.0312, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.9062, 0.2188, 0, 0.66,...
[ "from handlers.AuthenticatedHandler import *", "from google.appengine.api import users", "class UserDrafts(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.get_current_user()\n\t\tquery = model.Article.all().filter('author =', user).filter('draft =', True).filter('deletion_date', None)\n\t\tself....
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.5476, 0.0238, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.5952, 0.0238, 0, 0.66, 0.3333, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.619, 0.0238, 0, 0...
[ "import datetime", "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tapp = self.get_application()\n\t\tquery = model.UserData.all()\n\t\tkey = '%s?%s' % (self.request.path, se...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3382, 0.0147, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3529, 0.0147, 0, 0.66, 0.1429, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.3824, 0.0147, 0, ...
[ "import re", "import model", "from img import *", "from utilities import session", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class UserChangePassword(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = sel...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.575, 0.025, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.6, 0.025, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.825, 0.375, 0, 0.66, 1...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserContacts(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\tif...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3333, 0.0145, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.3478, 0.0145, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.6884, 0.6377, 0, 0.6...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserView(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\tif not...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4259, 0.0185, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.4444, 0.0185, 0, 0.66, 0.3333, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.463, 0.0185, 0, 0...
[ "import model", "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserLogout(BaseHandler):\n\n\tdef execute(self):\n\t\t#Check if google account is in use\n\t\t#User registered with different user in vikuit and google\n\t\tuser = users.get_current_user()\n\t\tuserLocalId =...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3433, 0.0149, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.3582, 0.0149, 0, 0.66, 0.2, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.3881, 0.0149, 0, 0.6...
[ "import model", "import random", "from handlers.BaseHandler import *", "from google.appengine.api import mail", "from utilities.AppProperties import AppProperties", "class UserForgotPassword(BaseHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\t\n\t\tif method == 'GET':\n\t\t\tself....
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.575, 0.025, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 1, 0, 0.6, 0.025, 0, 0.66, 0.5, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 3, 0, 0.825, 0.375, 0, 0.66, 1...
[ "from handlers.BaseHandler import *", "from google.appengine.api import users", "class UserCommunities(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/user.list'\n\t\tnickname = self.request.path.split('/')[3]\n\t\tthis_user = model.UserData.gql('WHERE nickname=:1', nickname).get()\n\t\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.125, 0.0054, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1304, 0.0054, 0, 0.66, 0.1667, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1359, 0.0054, 0, 0...
[ "import re", "import random", "import model", "from handlers.BaseHandler import *", "from os import environ", "from recaptcha import captcha", "class UserRegister(BaseHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tif method == 'GET':\n\t\t\tself.send_form(None)\n\t\telse:\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2933, 0.0133, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.3067, 0.0133, 0, 0.66, 0.25, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.32, 0.0133, 0, 0.66...
[ "import model", "import random", "import datetime", "from handlers.BaseHandler import *", "class UserLogin(BaseHandler):\n\t\n\tdef execute(self):\n\t\tself.sess.valid = False\n\t\t\n\t\tmethod = self.request.method\n\t\t\n\t\tif method == 'GET':", "\tdef execute(self):\n\t\tself.sess.valid = False\n\t\t\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3692, 0.0154, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7, 0.6154, 0, 0.66, 1, 169, 0, 1, 0, 0, 116, 0, 14 ], [ 2, 1, 0.7154, 0.5846, 1, 0.13, ...
[ "from handlers.AuthenticatedHandler import *", "class AdminUsers(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\t\t\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tu...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
[ [ 1, 0, 0.3382, 0.0147, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3676, 0.0147, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.3824, 0.0147, 0, 0.6...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminApplication(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
[ [ 1, 0, 0.3239, 0.0141, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3521, 0.0141, 0, 0.66, 0.1667, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.3662, 0.0141, 0, ...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.module.admin.AdminApplication import *", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminLookAndFeel(AuthenticatedHandler):...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2584, 0.0112, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6404, 0.7303, 0, 0.66, 1, 384, 0, 1, 0, 0, 116, 0, 36 ], [ 2, 1, 0.6517, 0.7079, 1, 0.11...
[ "from handlers.AuthenticatedHandler import *", "class AdminCategoryEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
[ [ 1, 0, 0.23, 0.01, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.25, 0.01, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.26, 0.01, 0, 0.66, 0.4, ...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminModules(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.284, 0.0123, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6543, 0.7037, 0, 0.66, 1, 614, 0, 2, 0, 0, 116, 0, 29 ], [ 2, 1, 0.6111, 0.5679, 1, 0.65,...
[ "from handlers.AuthenticatedHandler import *", "class CommunityAddRelated(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
[ [ 1, 0, 0.3594, 0.0156, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3906, 0.0156, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.4062, 0.0156, 0, 0.6...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminMail(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tu...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General ...
[ [ 1, 0, 0.3382, 0.0147, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3676, 0.0147, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.3824, 0.0147, 0, 0.6...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminGoogle(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, e...
[ [ 1, 0, 0.4314, 0.0196, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.4706, 0.0196, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.4902, 0.0196, 0, 0.6...
[ "import img", "from google.appengine.api import images", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "from utilities.AppProperties import AppProperties", "class AdminCache(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.6389, 0.0278, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.8333, 0.3056, 0, 0.66, 1, 969, 0, 1, 0, 0, 116, 0, 2 ], [ 2, 1, 0.8611, 0.25, 1, 0.16, ...
[ "from handlers.AuthenticatedHandler import *", "class Admin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = sel...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.6216, 0.027, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.8378, 0.3514, 0, 0.66, 1, 986, 0, 1, 0, 0, 116, 0, 3 ], [ 2, 1, 0.8649, 0.2973, 1, 0.21, ...
[ "from handlers.AuthenticatedHandler import *", "class AdminCategories(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.6389, 0.0278, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.8333, 0.3056, 0, 0.66, 1, 24, 0, 1, 0, 0, 116, 0, 2 ], [ 2, 1, 0.8611, 0.25, 1, 0.86, ...
[ "from handlers.AuthenticatedHandler import *", "class AdminStats(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':", "\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.0924, 0.004, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0964, 0.004, 0, 0.66, 0.2, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1044, 0.004, 0, 0.66, ...
[ "import time", "import datetime", "from google.appengine.ext import db", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class ArticleEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/article.list'\n\t\tmethod = self.request...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.6216, 0.027, 0, 0.66, 0, 250, 0, 1, 0, 0, 250, 0, 0 ], [ 3, 0, 0.8378, 0.3514, 0, 0.66, 1, 195, 0, 1, 0, 0, 138, 0, 11 ], [ 2, 1, 0.8649, 0.2973, 1, 0.15,...
[ "from handlers.BaseRest import *", "class ArticleVisit(BaseRest):\n\n\tdef get(self):\n\t\tarticle_id = self.request.get('id')\n\n\t\tmemcache.delete(article_id + '_article')\n\t\tarticle = model.Article.get_by_id(int(article_id))\n\t\tarticle.views += 1", "\tdef get(self):\n\t\tarticle_id = self.request.get('i...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3382, 0.0147, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.3529, 0.0147, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6912, 0.6324, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleVote(AuthenticatedHandler):\n\t\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tif not article or article.draft or article.deletion_date:\n\t\t\tself.not_found()\n\t\t\treturn",...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2614, 0.0114, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2727, 0.0114, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6477, 0.7159, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleCommentEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/article.list'\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tcomment_key = self.get_param('key...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1917, 0.0083, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.2, 0.0083, 0, 0.66, 0.2, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2167, 0.0083, 0, 0.66, ...
[ "import time", "import datetime", "from google.appengine.ext import db", "from google.appengine.api import mail", "from handlers.AuthenticatedHandler import *", "class ArticleComment(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')\n\t\tarticl...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3286, 0.0143, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.3429, 0.0143, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6857, 0.6429, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleFavourite(AuthenticatedHandler):\n\t\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tuser = self.values['user']\n\t\tif not article or article.draft or article.deletion_date:\n\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1655, 0.0072, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1727, 0.0072, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.5971, 0.8129, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.BaseHandler import *", "class ArticleView(BaseHandler):\n\n\tdef execute(self):\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tarticle_id = self.request.path.split('/')[3]\n\t\tarticle = self.cache(article_id + '_article', self.get_article)\n\t\t\n\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4259, 0.0185, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.463, 0.0185, 0, 0.66, 0.3333, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.4815, 0.0185, 0, 0...
[ "import datetime", "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleCommentDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn", "\tdef execute(self):\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.6216, 0.027, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.8378, 0.3514, 0, 0.66, 1, 338, 0, 1, 0, 0, 94, 0, 7 ], [ 2, 1, 0.8649, 0.2973, 1, 0.51, ...
[ "from handlers.BaseHandler import *", "class ArticleList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/article.list'\n\t\tquery = model.Article.all().filter('draft =', False).filter('deletion_date', None)\n\t\tapp = self.get_application()\n\t\tkey = '%s?%s' % (self.request.path, self.re...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3594, 0.0156, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.375, 0.0156, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7031, 0.5781, 0, 0.66...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleCommentSubscribe( AuthenticatedHandler ):\n\n\tdef execute(self):\n\t\tkey = self.get_param('key')\n\t\tarticle = model.Article.get(key)\n\t\tmemcache.delete(str(article.key().id()) + '_article')\n\t\tuser = sel...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2091, 0.0091, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2273, 0.0091, 0, 0.66, 0.3333, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2364, 0.0091, 0, ...
[ "import datetime", "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class ArticleDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tmemcache.d...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3239, 0.0141, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6761, 0.662, 0, 0.66, 1, 753, 0, 1, 0, 0, 116, 0, 29 ], [ 2, 1, 0.6901, 0.6338, 1, 0.33,...
[ "from handlers.AuthenticatedHandler import *", "class ArticleAddCommunities(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')\n\t\tarticle = model.Article.get(key)\n\t\tif not article or article.draft or article.deleti...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3151, 0.0137, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.3288, 0.0137, 0, 0.66, 0.25, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.3425, 0.0137, 0, 0....
[ "import logging", "from google.appengine.api import mail", "from handlers.AuthenticatedHandler import *", "from google.appengine.runtime import apiproxy_errors", "class CommunityNewArticle(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('article'))\n\t\tcommuni...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.575, 0.025, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.6, 0.025, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.825, 0.375, 0, 0.66, 1...
[ "from google.appengine.ext import db", "from handlers.BaseHandler import *", "class CommunityUserList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).ge...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2347, 0.0102, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2449, 0.0102, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6327, 0.7449, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityThreadEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')", ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4259, 0.0185, 0, 0.66, 0, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.7315, 0.5556, 0, 0.66, 1, 979, 0, 1, 0, 0, 94, 0, 12 ], [ 2, 1, 0.75, 0.5185, 1, 0.46, ...
[ "from handlers.BaseHandler import *", "class CommunityList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tquery = model.Community.all()\n\t\tkey = '%s?%s' % (self.request.path, self.request.query)\n\t\t\n\t\tcat = self.get_param('cat')", "\tdef execute(self):\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1386, 0.006, 0, 0.66, 0, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1506, 0.006, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.1566, 0.006, 0, 0.66, ...
[ "import img", "from google.appengine.api import images", "from google.appengine.ext import db", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class CommunityEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1554, 0.0068, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1689, 0.0068, 0, 0.66, 0.1667, 155, 0, 1, 0, 0, 155, 0, 0 ], [ 1, 0, 0.1757, 0.0068, 0, ...
[ "import datetime", "from google.appengine.runtime import apiproxy_errors", "from google.appengine.ext import db", "from google.appengine.api import mail", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class CommunityForumReply(AuthenticatedHandler):\n\n\tde...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4259, 0.0185, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7315, 0.5556, 0, 0.66, 1, 707, 0, 1, 0, 0, 116, 0, 17 ], [ 2, 1, 0.75, 0.5185, 1, 0.96, ...
[ "from handlers.AuthenticatedHandler import *", "class CommunityUserUnjoin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not community:\n\t\t\tself.not_found()\n\t\t\treturn", "\tdef execute(self):\n\t\tuse...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.377, 0.0164, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7049, 0.6066, 0, 0.66, 1, 108, 0, 1, 0, 0, 116, 0, 17 ], [ 2, 1, 0.7213, 0.5738, 1, 0.26,...
[ "from handlers.AuthenticatedHandler import *", "class CommunityUserJoin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not community:\n\t\t\tself.not_found()\n\t\t\treturn", "\tdef execute(self):\n\t\tuser ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1292, 0.0056, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1348, 0.0056, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.573, 0.8596, 0, 0.66...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityMove(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn", "\tdef execute(self):...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.1655, 0.0072, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1727, 0.0072, 0, 0.66, 0.1429, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1871, 0.0072, 0, ...
[ "import logging", "import datetime", "from google.appengine.runtime import apiproxy_errors", "from google.appengine.ext import db", "from google.appengine.api import mail", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class CommunityForumEdit(Authenticat...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.575, 0.025, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.6, 0.025, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.825, 0.375, 0, 0.66, 1...
[ "from google.appengine.ext import db", "from handlers.BaseHandler import *", "class CommunityArticleList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path)...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
[ [ 1, 0, 0.5, 0.0217, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.5217, 0.0217, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.7826, 0.4565, 0, 0.66, ...
[ "from google.appengine.ext import db", "from handlers.BaseHandler import *", "class CommunityView(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).get()\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.5227, 0.0227, 0, 0.66, 0, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7841, 0.4545, 0, 0.66, 1, 855, 0, 1, 0, 0, 116, 0, 11 ], [ 2, 1, 0.8068, 0.4091, 1, 0.63...
[ "from handlers.AuthenticatedHandler import *", "class CommunityArticleDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('article'))\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not article or not community:\n\t\t\tself.not_found()\n\...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.4615, 0.0192, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.4808, 0.0192, 0, 0.66, 0.3333, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.5, 0.0192, 0, 0.6...
[ "from google.appengine.ext import db", "from google.appengine.api import memcache", "from handlers.AuthenticatedHandler import *", "class CommunityDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\t\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn", ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.6389, 0.0278, 0, 0.66, 0, 250, 0, 1, 0, 0, 250, 0, 0 ], [ 3, 0, 0.8472, 0.3333, 0, 0.66, 1, 858, 0, 1, 0, 0, 138, 0, 10 ], [ 2, 1, 0.875, 0.2778, 1, 0.93,...
[ "from handlers.BaseRest import *", "class CommunityForumVisit(BaseRest):\n\n\tdef get(self):\n\t\tthread_id = self.request.get('id')\n\t\tmemcache.delete(thread_id + '_thread')\n\t\tthread = model.Thread.get_by_id(int(thread_id))\n\t\tthread.views += 1\n\t\tthread.put()", "\tdef get(self):\n\t\tthread_id = self...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2323, 0.0101, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2424, 0.0101, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6212, 0.7273, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityForumView(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tuser = self.values['user']\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tthread_id = self.reques...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.3607, 0.0164, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.377, 0.0164, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.7049, 0.5738, 0, 0.66...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityForumSubscribe( AuthenticatedHandler ):\n\n\tdef execute(self):\n\t\tkey = self.get_param('key')#TODO if key is empty app crashed\n\t\tthread = model.Thread.get(key)\n\t\tmemcache.delete(str(thread.key().id()) ...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
[ [ 1, 0, 0.3194, 0.0139, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.3472, 0.0139, 0, 0.66, 0.3333, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.3611, 0.0139, 0, ...
[ "import datetime", "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityForumDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn", "\tdef execute(self):\n\t\t...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.5, 0.0227, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.5227, 0.0227, 0, 0.66, 0.5, 437, 0, 1, 0, 0, 437, 0, 0 ], [ 3, 0, 0.7841, 0.4545, 0, 0.66, ...
[ "from google.appengine.ext import db", "from handlers.BaseHandler import *", "class CommunityForumList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).g...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
[ [ 1, 0, 0.2347, 0.0102, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2449, 0.0102, 0, 0.66, 0.5, 548, 0, 1, 0, 0, 548, 0, 0 ], [ 3, 0, 0.6276, 0.7347, 0, 0.6...
[ "from google.appengine.ext import db", "from handlers.AuthenticatedHandler import *", "class CommunityForumMove(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn", "\tdef execute(s...