code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import sys import os #在用匹配表达式之前,要将中文字符用utf-8编码 def abstract_tran_info(info,lang): reg_transaction_amount = re.compile(r".*交易金额:.*?(\d+[,\.]\d+)\s(\w{3})") reg_invoice_no = re.compile(r".*账单号:([_\w-]*)") reg_transaction_no =...
[ [ 1, 0, 0.0494, 0.0123, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0617, 0.0123, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0741, 0.0123, 0, 0....
[ "import re", "import sys", "import os", "def abstract_tran_info(info,lang):\n reg_transaction_amount = re.compile(r\".*交易金额:.*?(\\d+[,\\.]\\d+)\\s(\\w{3})\")\n reg_invoice_no = re.compile(r\".*账单号:([_\\w-]*)\")\n reg_transaction_no = re.compile(r\".*您的交易号:\\s?(\\w*)\")\n reg_case_id ...
# -*- coding:utf-8 -*- # Create your views here. from django.conf import settings from django.http import HttpResponseRedirect from django.template import Template from django.shortcuts import render_to_response, get_object_or_404 from django.contrib.auth.decorators import login_required from django.template.co...
[ [ 1, 0, 0.0106, 0.0035, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.0141, 0.0035, 0, 0.66, 0.0588, 779, 0, 1, 0, 0, 779, 0, 0 ], [ 1, 0, 0.0177, 0.0035, 0, ...
[ "from django.conf import settings", "from django.http import HttpResponseRedirect", "from django.template import Template", "from django.shortcuts import render_to_response, get_object_or_404", "from django.contrib.auth.decorators import login_required", "from django.template.context import RequestContex...
from django.contrib import admin from pp_case.models import PPCaseInfo,PPCaseInvestigation,PPCaseHandle,PPCaseRefund class PPCaseInfoAdmin(admin.ModelAdmin): list_display = ('caseID', 'orderNo', 'transactionID', 'caseStartDate', ...
[ [ 1, 0, 0.0476, 0.0476, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.0952, 0.0476, 0, 0.66, 0.2, 943, 0, 4, 0, 0, 943, 0, 0 ], [ 3, 0, 0.4524, 0.5714, 0, 0.6...
[ "from django.contrib import admin", "from pp_case.models import PPCaseInfo,PPCaseInvestigation,PPCaseHandle,PPCaseRefund", "class PPCaseInfoAdmin(admin.ModelAdmin):\n list_display = ('caseID',\n 'orderNo',\n 'transactionID',\n 'caseStartDate',\n ...
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've custo...
[ [ 1, 0, 0.1429, 0.0714, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0.25, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 7, 0, 0.4643, 0.4286, 0, 0....
[ "from django.core.management import execute_manager", "import imp", "try:\n imp.find_module('settings') # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized thi...
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin from django.conf import settings from django.contrib.auth.views import login import pp_case admin.autodiscover() urlpatterns = patterns('', # Examples: ...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 341, 0, 3, 0, 0, 341, 0, 0 ], [ 1, 0, 0.1538, 0.0385, 0, 0.66, 0.1667, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.1923, 0.0385, 0, ...
[ "from django.conf.urls.defaults import patterns, include, url", "from django.contrib import admin", "from django.conf import settings", "from django.contrib.auth.views import login", "import pp_case", "admin.autodiscover()", "urlpatterns = patterns('',\n # Examples:\n url(r'^$', 'accountm.views.ho...
from django.contrib import auth from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template.context import RequestContext def login(request): redirect_url = request.GET.get('next','') username = request.POST['username'] password = request.POST['...
[ [ 1, 0, 0.04, 0.04, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.08, 0.04, 0, 0.66, 0.2, 779, 0, 1, 0, 0, 779, 0, 0 ], [ 1, 0, 0.12, 0.04, 0, 0.66, 0.4, ...
[ "from django.contrib import auth", "from django.http import HttpResponseRedirect", "from django.shortcuts import render_to_response", "from django.template.context import RequestContext", "def login(request):\n redirect_url = request.GET.get('next','')\n username = request.POST['username']\n passwo...
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've custo...
[ [ 1, 0, 0.1429, 0.0714, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0.25, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 7, 0, 0.4643, 0.4286, 0, 0....
[ "from django.core.management import execute_manager", "import imp", "try:\n imp.find_module('settings') # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized thi...
#!/usr/bin/env python from time import strftime import os PASSWORDCODE_OFFSET = 0x00000042 PASSWORDCODE_SIZE = 40 PASSWORDCODE_XORMAP = (0x55,0xEC,0x8E,0x9C,0x15,0x28,0xC0,0x8A,0x87,0x7B,0x26,0xDF,0xA4,0x13,0x1C,0xB1,0xE7,0x79,0x41,0x7C) class Decryptor2000: def __init__(self,path): self.DBVersi...
[ [ 1, 0, 0.0238, 0.0119, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0357, 0.0119, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0595, 0.0119, 0, 0....
[ "from time import strftime", "import os", "PASSWORDCODE_OFFSET = 0x00000042", "PASSWORDCODE_SIZE = 40", "PASSWORDCODE_XORMAP = (0x55,0xEC,0x8E,0x9C,0x15,0x28,0xC0,0x8A,0x87,0x7B,0x26,0xDF,0xA4,0x13,0x1C,0xB1,0xE7,0x79,0x41,0x7C)", "class Decryptor2000:\n def __init__(self,path):\n self.DBVersion...
#!/usr/bin/env python from time import strftime import os PASSWORDCODE_OFFSET = 0x00000042 PASSWORDCODE_SIZE = 40 PASSWORDCODE_XORMAP = (0x55,0xEC,0x8E,0x9C,0x15,0x28,0xC0,0x8A,0x87,0x7B,0x26,0xDF,0xA4,0x13,0x1C,0xB1,0xE7,0x79,0x41,0x7C) class Decryptor2000: def __init__(self,path): self.DBVersi...
[ [ 1, 0, 0.0238, 0.0119, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0357, 0.0119, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0595, 0.0119, 0, 0....
[ "from time import strftime", "import os", "PASSWORDCODE_OFFSET = 0x00000042", "PASSWORDCODE_SIZE = 40", "PASSWORDCODE_XORMAP = (0x55,0xEC,0x8E,0x9C,0x15,0x28,0xC0,0x8A,0x87,0x7B,0x26,0xDF,0xA4,0x13,0x1C,0xB1,0xE7,0x79,0x41,0x7C)", "class Decryptor2000:\n def __init__(self,path):\n self.DBVersion...
from django.db import models # Create your models here.
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ] ]
[ "from django.db import models" ]
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ ...
[ [ 8, 0, 0.1522, 0.2609, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3478, 0.0435, 0, 0.66, 0.3333, 944, 0, 1, 0, 0, 944, 0, 0 ], [ 3, 0, 0.5435, 0.2609, 0, 0.66...
[ "\"\"\"\nThis file demonstrates two different styles of tests (one doctest and one\nunittest). These will both pass when you run \"manage.py test\".\n\nReplace these with more appropriate tests for your application.\n\"\"\"", "from django.test import TestCase", "class SimpleTest(TestCase):\n def test_basic_a...
# Create your views here. from django.shortcuts import render_to_response def HomeView(request): return render_to_response('home/homepage.html')
[ [ 1, 0, 0.5, 0.1667, 0, 0.66, 0, 852, 0, 1, 0, 0, 852, 0, 0 ], [ 2, 0, 0.9167, 0.3333, 0, 0.66, 1, 89, 0, 1, 1, 0, 0, 0, 1 ], [ 13, 1, 1, 0.1667, 1, 0.61, 0, ...
[ "from django.shortcuts import render_to_response", "def HomeView(request):\n return render_to_response('home/homepage.html')", " return render_to_response('home/homepage.html')" ]
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 7, 0, 0.5, 0.5455, 0, 0.66, 0.5, 0, 0, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.3636, 0.0909, 1, 0.91, ...
[ "from django.core.management import execute_manager", "try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 7, 0, 0.5, 0.5455, 0, 0.66, 0.5, 0, 0, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.3636, 0.0909, 1, 0.88, ...
[ "from django.core.management import execute_manager", "try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj...
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^$', 'login_register.views.LandingPage'), (r'^login/$', 'login_register.views.LoginView'), (r'^logout/$', 'login_register.views.Lo...
[ [ 1, 0, 0.04, 0.04, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.16, 0.04, 0, 0.66, 0.3333, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 8, 0, 0.2, 0.04, 0, 0.66, 0.6...
[ "from django.conf.urls.defaults import *", "from django.contrib import admin", "admin.autodiscover()", "urlpatterns = patterns('',\n (r'^$', 'login_register.views.LandingPage'),\n (r'^login/$', 'login_register.views.LoginView'),\n (r'^logout/$', 'login_register.views.LogoutView'),\n (r'^register/$...
# Django settings for acadonline project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Hariharan', 'hariharan.cs@gmail.com'), ('Deepak', 'scdeepak@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'm...
[ [ 14, 0, 0.0303, 0.0101, 0, 0.66, 0, 309, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0404, 0.0101, 0, 0.66, 0.0556, 7, 2, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0758, 0.0404, 0, 0.6...
[ "DEBUG = True", "TEMPLATE_DEBUG = DEBUG", "ADMINS = (\n ('Hariharan', 'hariharan.cs@gmail.com'),\n ('Deepak', 'scdeepak@gmail.com'),\n)", "MANAGERS = ADMINS", "DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3'...
from django import forms class LoginForm(forms.Form): username = forms.CharField(label = "Username") password = forms.CharField(widget = forms.PasswordInput, label = "Password") class RegisterForm(forms.Form): first_name = forms.CharField(label = "Your first name") last_name = forms.CharField(label = ...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 294, 0, 1, 0, 0, 294, 0, 0 ], [ 3, 0, 0.3077, 0.2308, 0, 0.66, 0.5, 914, 0, 0, 0, 0, 953, 0, 2 ], [ 14, 1, 0.3077, 0.0769, 1, 0....
[ "from django import forms", "class LoginForm(forms.Form):\n username = forms.CharField(label = \"Username\")\n password = forms.CharField(widget = forms.PasswordInput, label = \"Password\")", " username = forms.CharField(label = \"Username\")", " password = forms.CharField(widget = forms.PasswordI...
from django.db import models # Create your models here.
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ] ]
[ "from django.db import models" ]
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ ...
[ [ 8, 0, 0.1522, 0.2609, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3478, 0.0435, 0, 0.66, 0.3333, 944, 0, 1, 0, 0, 944, 0, 0 ], [ 3, 0, 0.5435, 0.2609, 0, 0.66...
[ "\"\"\"\nThis file demonstrates two different styles of tests (one doctest and one\nunittest). These will both pass when you run \"manage.py test\".\n\nReplace these with more appropriate tests for your application.\n\"\"\"", "from django.test import TestCase", "class SimpleTest(TestCase):\n def test_basic_a...
from django.contrib.auth.models import User def AddUser(username, email, password): user = User.objects.create_user(username, email, password) user.save() return True
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 2, 0, 0.75, 0.6667, 0, 0.66, 1, 533, 0, 3, 1, 0, 0, 0, 2 ], [ 14, 1, 0.6667, 0.1667, 1, 0.96, ...
[ "from django.contrib.auth.models import User", "def AddUser(username, email, password):\n user = User.objects.create_user(username, email, password)\n user.save()\n return True", " user = User.objects.create_user(username, email, password)", " user.save()", " return True" ]
from django.contrib.auth import authenticate, login, logout def AuthenticateUser(request, username, password): user = authenticate(username = username, password = password) if user is not None: if user.is_active: login(request, user) return (True, 'logged in') else: ...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 895, 0, 3, 0, 0, 895, 0, 0 ], [ 2, 0, 0.4688, 0.625, 0, 0.66, 0.5, 415, 0, 3, 1, 0, 0, 0, 2 ], [ 14, 1, 0.25, 0.0625, 1, 0.45, ...
[ "from django.contrib.auth import authenticate, login, logout", "def AuthenticateUser(request, username, password):\n user = authenticate(username = username, password = password)\n if user is not None:\n if user.is_active:\n login(request, user)\n return (True, 'logged in')\n ...
#!/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 applic...
[ [ 1, 0, 0.2931, 0.0172, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.3103, 0.0172, 0, 0.66, 0.0833, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.3276, 0.0172, 0, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "from appengine.billmodel import Bill", "class GetBillData...
#!/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 applic...
[ [ 1, 0, 0.4474, 0.0263, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4737, 0.0263, 0, 0.66, 0.1, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.5, 0.0263, 0, 0.66, ...
[ "import re", "import django.utils.simplejson", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "class AddCategory(webapp.RequestHandler):\n\tdef post(self):\n\t\tcategory = Bil...
#!/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 applic...
[ [ 1, 0, 0.4474, 0.0263, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.4737, 0.0263, 0, 0.66, 0.1, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.5, 0.0263, 0, 0.66, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from appengine.billmodel import Bill", "class AddBill(webapp.RequestHandler):\n\tdef post(self):\n\t\tbill = Bill(CreateTime=datetime.datetime.strpt...
#!/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 applic...
[ [ 1, 0, 0.5, 0.0294, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.5882, 0.0882, 0, 0.66, 0.3333, 399, 0, 0, 0, 0, 697, 0, 2 ], [ 14, 1, 0.5882, 0.0294, 1, 0....
[ "from google.appengine.ext import db", "class Account(db.Model):\n\tName = db.StringProperty(required=True)\n\tPassword = db.StringProperty(required=True)", "\tName = db.StringProperty(required=True)", "\tPassword = db.StringProperty(required=True)", "class BillCategory(db.Model):\n\tName = db.StringPropert...
#!/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 applic...
[ [ 1, 0, 0.2208, 0.013, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2338, 0.013, 0, 0.66, 0.0833, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.2468, 0.013, 0, 0.6...
[ "import datetime", "import re", "import django.utils.simplejson", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "from appengine.billmodel import Bill", "class LoadBillDat...
#!/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 applic...
[ [ 1, 0, 0.3091, 0.0182, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.3273, 0.0182, 0, 0.66, 0.0909, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.3455, 0.0182, 0, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Bill", "class GetTrend(webapp.RequestHandler):\n\tdef post(self):\n\t\tsear...
#!/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 applic...
[ [ 1, 0, 0.4595, 0.027, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4865, 0.027, 0, 0.66, 0.1111, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.5135, 0.027, 0, 0.6...
[ "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Account", "class RegisterAccount(webapp.RequestHandler):\n\tdef post(self):\n\t\taccount = Account(Name=self.request.get(\"user\"), ...
#!/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 applic...
[ [ 1, 0, 0.4359, 0.0256, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4615, 0.0256, 0, 0.66, 0.1111, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.4872, 0.0256, 0, ...
[ "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Account", "class AccountLogin(webapp.RequestHandler):\n\tdef post(self):\n\t\taccounts = db.GqlQuery(\"SELECT * FROM Account WHERE N...
#!/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 applic...
[ [ 1, 0, 0.2931, 0.0172, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.3103, 0.0172, 0, 0.66, 0.0833, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.3276, 0.0172, 0, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "from appengine.billmodel import Bill", "class GetBillData...
#!/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 applic...
[ [ 1, 0, 0.5, 0.0294, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.5882, 0.0882, 0, 0.66, 0.3333, 399, 0, 0, 0, 0, 697, 0, 2 ], [ 14, 1, 0.5882, 0.0294, 1, 0....
[ "from google.appengine.ext import db", "class Account(db.Model):\n\tName = db.StringProperty(required=True)\n\tPassword = db.StringProperty(required=True)", "\tName = db.StringProperty(required=True)", "\tPassword = db.StringProperty(required=True)", "class BillCategory(db.Model):\n\tName = db.StringPropert...
#!/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 applic...
[ [ 1, 0, 0.3091, 0.0182, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.3273, 0.0182, 0, 0.66, 0.0909, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.3455, 0.0182, 0, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Bill", "class GetTrend(webapp.RequestHandler):\n\tdef post(self):\n\t\tsear...
#!/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 applic...
[ [ 1, 0, 0.4474, 0.0263, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4737, 0.0263, 0, 0.66, 0.1, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.5, 0.0263, 0, 0.66, ...
[ "import re", "import django.utils.simplejson", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "class AddCategory(webapp.RequestHandler):\n\tdef post(self):\n\t\tcategory = Bil...
#!/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 applic...
[ [ 1, 0, 0.4359, 0.0256, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4615, 0.0256, 0, 0.66, 0.1111, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.4872, 0.0256, 0, ...
[ "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Account", "class AccountLogin(webapp.RequestHandler):\n\tdef post(self):\n\t\taccounts = db.GqlQuery(\"SELECT * FROM Account WHERE N...
#!/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 applic...
[ [ 1, 0, 0.4595, 0.027, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4865, 0.027, 0, 0.66, 0.1111, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.5135, 0.027, 0, 0.6...
[ "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import Account", "class RegisterAccount(webapp.RequestHandler):\n\tdef post(self):\n\t\taccount = Account(Name=self.request.get(\"user\"), ...
#!/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 applic...
[ [ 1, 0, 0.2208, 0.013, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2338, 0.013, 0, 0.66, 0.0833, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.2468, 0.013, 0, 0.6...
[ "import datetime", "import re", "import django.utils.simplejson", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from google.appengine.ext import db", "from appengine.billmodel import BillCategory", "from appengine.billmodel import Bill", "class LoadBillDat...
#!/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 applic...
[ [ 1, 0, 0.4474, 0.0263, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.4737, 0.0263, 0, 0.66, 0.1, 480, 0, 1, 0, 0, 480, 0, 0 ], [ 1, 0, 0.5, 0.0263, 0, 0.66, ...
[ "import datetime", "import django.utils.simplejson", "import re", "import string", "import wsgiref.handlers", "from google.appengine.ext import webapp", "from appengine.billmodel import Bill", "class AddBill(webapp.RequestHandler):\n\tdef post(self):\n\t\tbill = Bill(CreateTime=datetime.datetime.strpt...
#!/usr/bin/env python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print 'Compiled %s slides.' % len(m...
[ [ 1, 0, 0.0526, 0.0175, 0, 0.66, 0, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0702, 0.0175, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0877, 0.0175, 0, ...
[ "import codecs", "import re", "import jinja2", "import markdown", "def process_slides():\n with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:\n md = codecs.open('slides.md', encoding='utf8').read()\n md_slides = md.split('\\n---\\n')\n print('Compiled %s slides.' ...
# -*- coding: utf-8 -*- # Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: # # 21 22 23 24 25 # 20 7 8 9 10 # 19 6 1 2 11 # 18 5 4 3 12 # 17 16 15 14 13 # # It can be verified that the sum of the numbers on the diagonals is 101. # #...
[ [ 14, 0, 0.1685, 0.0112, 0, 0.66, 0, 876, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.1798, 0.0112, 0, 0.66, 0.0833, 275, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.2022, 0.0112, 0, 0...
[ "cols = 5", "rows = 5", "directions = ['w', 's', 'e', 'n']", "matrix = [[0 for i in range(cols)] for i in range(rows)]", "current_direction = 0", "current_cell = [0, cols-1]", "counter = cols * rows", "matrix[current_cell[0]][current_cell[1]] = counter", "def next_cell(current_cell):\n\n\tglobal cur...
# The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317. # # Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000. import time start_time = time.time() result = 0 for a in range(1,1001): result += a**a print str(result)[-10:] print "Elapsed: ", round(time.time() - start_time, 3)...
[ [ 1, 0, 0.3125, 0.0625, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.4375, 0.0625, 0, 0.66, 0.2, 511, 3, 0, 0, 0, 654, 10, 1 ], [ 14, 0, 0.5625, 0.0625, 0, ...
[ "import time", "start_time = time.time()", "result = 0", "for a in range(1,1001):\n\tresult += a**a", "print(str(result)[-10:])", "print(\"Elapsed: \", round(time.time() - start_time, 3), \"\\\"\")" ]
# -*- coding: utf-8 -*- # Euler published the remarkable quadratic formula: # # n² + n + 41 # # It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 402 + 40 + 41 = 40(40 + 1) + 41 is divisible by 41, and certainly when n = 41, 41² + 41 + 41 is clear...
[ [ 1, 0, 0.3393, 0.0179, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.375, 0.0179, 0, 0.66, 0.125, 511, 3, 0, 0, 0, 654, 10, 1 ], [ 2, 0, 0.5, 0.1964, 0, 0.6...
[ "import time", "start_time = time.time()", "def isPrime( n ):\n\tn = abs(n)\n\tc = 2\n\tceil = n / 2\n\twhile c <= ceil:\n\t\tif n%c == 0:\n\t\t\t#print \"n is not prime \", n\n\t\t\treturn False", "\tn = abs(n)", "\tc = 2", "\tceil = n / 2", "\twhile c <= ceil:\n\t\tif n%c == 0:\n\t\t\t#print \"n is no...
import SocketServer PORTNO = 10552 class handler(SocketServer.DatagramRequestHandler): def handle(self): newmsg = self.rfile.readline().rstrip() print "Client %s said ``%s''" % (self.client_address[0], newmsg) self.wfile.write(self.server.oldmsg) self.server.oldmsg = new...
[ [ 1, 0, 0.125, 0.0625, 0, 0.66, 0, 646, 0, 1, 0, 0, 646, 0, 0 ], [ 14, 0, 0.25, 0.0625, 0, 0.66, 0.1667, 347, 1, 0, 0, 0, 0, 1, 0 ], [ 3, 0, 0.5312, 0.375, 0, 0.66,...
[ "import SocketServer", "PORTNO = 10552", "class handler(SocketServer.DatagramRequestHandler):\n def handle(self):\n newmsg = self.rfile.readline().rstrip()\n print(\"Client %s said ``%s''\" % (self.client_address[0], newmsg))\n self.wfile.write(self.server.oldmsg)\n self.server.ol...
#!/usr/bin/python """Runs a very basic file server so that we can test Xinha. By default, the server runs on port 8080, but you can pass the -p or --port option to change the port used.""" import os import SimpleHTTPServer import SocketServer # File server for testing Xinha def __main(): """Use the embed_url.p...
[ [ 8, 0, 0.0645, 0.0484, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1129, 0.0161, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.129, 0.0161, 0, 0.66,...
[ "\"\"\"Runs a very basic file server so that we can test Xinha. By default, the\nserver runs on port 8080, but you can pass the -p or --port option to change\nthe port used.\"\"\"", "import os", "import SimpleHTTPServer", "import SocketServer", "def __main():\n \"\"\"Use the embed_url.py program from th...
from pyo import * import wx, os s = Server().boot() class MyFrame(wx.Frame): def __init__(self, parent, title, pos, size): wx.Frame.__init__(self, parent, id=-1, title=title, pos=pos, size=size) self.panel = wx.Panel(self) self.panel.SetBackgroundColour("#DDDDDD") ### self...
[ [ 1, 0, 0.0189, 0.0189, 0, 0.66, 0, 535, 0, 1, 0, 0, 535, 0, 0 ], [ 1, 0, 0.0377, 0.0189, 0, 0.66, 0.1429, 666, 0, 2, 0, 0, 666, 0, 0 ], [ 14, 0, 0.0566, 0.0189, 0, ...
[ "from pyo import *", "import wx, os", "s = Server().boot()", "class MyFrame(wx.Frame):\n def __init__(self, parent, title, pos, size):\n wx.Frame.__init__(self, parent, id=-1, title=title, pos=pos, size=size)\n self.panel = wx.Panel(self)\n self.panel.SetBackgroundColour(\"#DDDDDD\")\n...
choix = Choice(choice=midiToHz(notes), freq=5) p = Port(choix, risetime=.003, falltime=0) sines1 = SineLoop(freq=p*[random.uniform(.98,1.02) for i in range(20)], feedback=.04, mul=.1) reverb = Freeverb (sines1, size=0.90, damp=0.40, bal=0.35, mul=.8, add=0).out()
[ [ 14, 0, 0.25, 0.25, 0, 0.66, 0, 259, 3, 2, 0, 0, 811, 10, 2 ], [ 14, 0, 0.5, 0.25, 0, 0.66, 0.3333, 491, 3, 3, 0, 0, 508, 10, 1 ], [ 14, 0, 0.75, 0.25, 0, 0.66, ...
[ "choix = Choice(choice=midiToHz(notes), freq=5)", "p = Port(choix, risetime=.003, falltime=0)", "sines1 = SineLoop(freq=p*[random.uniform(.98,1.02) for i in range(20)], feedback=.04, mul=.1)", "reverb = Freeverb (sines1, size=0.90, damp=0.40, bal=0.35, mul=.8, add=0).out()" ]
from pyo import * ### Il faudrait integrer l'interface a ce script... ### Evaluation 1 : 16/20 s= Server().boot() texte = "salut comment ca va" dictio = {'a':60, 'b':62, 'c':64, 'd':65, 'e':67, 'f':69, 'g':71, 'h'...
[ [ 1, 0, 0.0172, 0.0172, 0, 0.66, 0, 535, 0, 1, 0, 0, 535, 0, 0 ], [ 14, 0, 0.1034, 0.0172, 0, 0.66, 0.0769, 553, 3, 0, 0, 0, 150, 10, 2 ], [ 14, 0, 0.1552, 0.0172, 0, ...
[ "from pyo import *", "s= Server().boot()", "texte = \"salut comment ca va\"", "dictio = {'a':60, \n 'b':62, \n 'c':64,\n 'd':65,\n 'e':67, \n 'f':69,\n 'g':71,\n 'h':72,", "note=[]", "lettre= [x for x in texte]", ...
""" Python adaptation of standard CRC-32 code. Adapted from the C++ code at below link, which produces results matching test data from AC34. * http://www.createwindow.com/programming/crc32/index.htm Here are some other CRC-32 implementations. Their function is replicated by the create_table_standard() function. T...
[ [ 8, 0, 0.125, 0.2368, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.25, 0.0132, 0, 0.66, 0.2, 371, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.2632, 0.0132, 0, 0.66, ...
[ "\"\"\"\nPython adaptation of standard CRC-32 code.\n\nAdapted from the C++ code at below link, which produces results\nmatching test data from AC34.\n\n * http://www.createwindow.com/programming/crc32/index.htm", "DEFAULT_POLYNOMIAL = 0xedb88320 # Use with create_table_standard", "REFLECTED_POLYNOMIAL = 0x04...
#!/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.61, ...
[ "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.45, ...
[ "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.89, ...
[ "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.83, ...
[ "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.1,...
[ "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.07, ...
[ "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.26, ...
[ "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.18, ...
[ "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.52, ...
[ "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.08, ...
[ "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.58...
[ "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.35,...
[ "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, ...
[ "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.18, ...
[ "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.33, ...
[ "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.06,...
[ "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",...