code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
import datetime import cPickle import pickle import sys from PyQt4 import QtGui, QtCore class person(object): def __init__(self, name, dob, house_no): self.name = name self.dob = dob self.addr = "%d LAS NENAS!!!!!"% house_no def __repr__(self): return "%s\n%s\n%s...
[ [ 1, 0, 0.0068, 0.0068, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0136, 0.0068, 0, 0.66, 0.1111, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.0204, 0.0068, 0, ...
[ "import datetime", "import cPickle", "import pickle", "import sys", "from PyQt4 import QtGui, QtCore", "class person(object):\n\n def __init__(self, name, dob, house_no):\n self.name = name\n self.dob = dob\n self.addr = \"%d LAS NENAS!!!!!\"% house_no\n def __repr__(self):\n ...
# -*- coding: utf-8 -*- """ Created on Fri Feb 04 14:22:51 2011 @author: Jeniffer Mazariegos """ from cocina import * #Es una lista donde estàn almacenados todos los #objetos a desplegar en pantalla #Cocina puede ser remplazado por cualquier otra #escena lista=cocina() for o in lista.getObjetos(): ...
[ [ 8, 0, 0.1538, 0.1923, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3077, 0.0385, 0, 0.66, 0.3333, 823, 0, 1, 0, 0, 823, 0, 0 ], [ 14, 0, 0.5385, 0.0385, 0, 0.6...
[ "\"\"\"\nCreated on Fri Feb 04 14:22:51 2011\n\n@author: Jeniffer Mazariegos\n\"\"\"", "from cocina import *", "lista=cocina()", "for o in lista.getObjetos(): \n #Obtener el path de la imagen\n print(o.getImagen())\n #Ver que sea visible\n print(o.esVisible())\n #Ver obtener una posicion [x,y]\...
# -*- coding: utf-8 -*- """ Created on Thu Feb 03 22:20:05 2011 @author: Mauricio zaz """ #!/usr/bin/python # -*- coding: utf-8 -*- from PyQt4 import QtGui, QtCore import sys import ImageViewerUI from logico.iABJ import * class ImageViewer(QtGui.QMainWindow, ImageViewerUI.Ui_mainWindow): ...
[ [ 8, 0, 0.08, 0.1, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.22, 0.02, 0, 0.66, 0.1667, 154, 0, 2, 0, 0, 154, 0, 0 ], [ 1, 0, 0.24, 0.02, 0, 0.66, 0.3333,...
[ "\"\"\"\nCreated on Thu Feb 03 22:20:05 2011\n\n@author: Mauricio zaz\n\"\"\"", "from PyQt4 import QtGui, QtCore", "import sys", "import ImageViewerUI", "from logico.iABJ import *", "class ImageViewer(QtGui.QMainWindow, ImageViewerUI.Ui_mainWindow):\n\n \n def __init__(self, parent=None):\n supe...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ImageViewerUI.ui' # # Created: Thu Feb 03 22:58:56 2011 # by: PyQt4 UI code generator 4.5.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_mainWindow(object): def setu...
[ [ 1, 0, 0.2, 0.02, 0, 0.66, 0, 154, 0, 2, 0, 0, 154, 0, 0 ], [ 3, 0, 0.61, 0.76, 0, 0.66, 1, 775, 0, 2, 0, 0, 186, 0, 39 ], [ 2, 1, 0.56, 0.62, 1, 0.26, 0, ...
[ "from PyQt4 import QtCore, QtGui", "class Ui_mainWindow(object):\n def setupUi(self, mainWindow):\n mainWindow.setObjectName(\"mainWindow\")\n mainWindow.resize(800, 600)\n self.centralwidget = QtGui.QWidget(mainWindow)\n self.centralwidget.setObjectName(\"centralwidget\")\n ...
import OSC import time, threading, sys, os import visual, visual.controls ACC = 0 FORCE = 1 values = {'fx':0, 'fy':0, 'fz':0, 'ax':0, 'ay':0, 'az':0} ######################################################################## ####################### Start the support software ##################### # Launch glovepie wi...
[ [ 1, 0, 0.0057, 0.0057, 0, 0.66, 0, 188, 0, 1, 0, 0, 188, 0, 0 ], [ 1, 0, 0.0115, 0.0057, 0, 0.66, 0.0233, 654, 0, 4, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0172, 0.0057, 0, ...
[ "import OSC", "import time, threading, sys, os", "import visual, visual.controls", "ACC = 0", "FORCE = 1", "values = {'fx':0, 'fy':0, 'fz':0, 'ax':0, 'ay':0, 'az':0}", "os.system(\"start GlovePIE3\\\\GlovePIE.exe -wiimote.pie /tray\")", "receive_address = '127.0.0.1', 9999 # Define the address to list...
import OSC import time, threading, sys, os import visual, visual.controls ACC = 0 FORCE = 1 values = {'fx':0, 'fy':0, 'fz':0, 'ax':0, 'ay':0, 'az':0} ######################################################################## ####################### Start the support software ##################### # Launch glovepie wi...
[ [ 1, 0, 0.0047, 0.0047, 0, 0.66, 0, 188, 0, 1, 0, 0, 188, 0, 0 ], [ 1, 0, 0.0093, 0.0047, 0, 0.66, 0.0222, 654, 0, 4, 0, 0, 654, 0, 0 ], [ 1, 0, 0.014, 0.0047, 0, 0...
[ "import OSC", "import time, threading, sys, os", "import visual, visual.controls", "ACC = 0", "FORCE = 1", "values = {'fx':0, 'fy':0, 'fz':0, 'ax':0, 'ay':0, 'az':0}", "os.system(\"start GlovePIE3\\\\GlovePIE.exe -wiimote.pie /tray\")", "receive_address = '127.0.0.1', 9999 # Define the address to list...
import WConio def setup(): old_setting = WConio.gettextinfo()[4] & 0x00FF #Store current attribute settings WConio.clrscr() #Clear the screen def display(): WConio.gotoxy(5,5) WConio.cputs("High video\r\n") WConio.textattr(WConio.LIGHTRED) ...
[ [ 1, 0, 0.0256, 0.0256, 0, 0.66, 0, 178, 0, 1, 0, 0, 178, 0, 0 ], [ 2, 0, 0.1026, 0.0769, 0, 0.66, 0.1429, 234, 0, 0, 0, 0, 0, 0, 2 ], [ 14, 1, 0.1026, 0.0256, 1, 0...
[ "import WConio", "def setup():\n old_setting = WConio.gettextinfo()[4] & 0x00FF #Store current attribute settings\n WConio.clrscr() #Clear the screen", " old_setting = WConio.gettextinfo()[4] & 0x00FF #Store current attribute settings", " WConio.clrscr() ...
# -*- coding: utf-8 -*- import time class serial(): """ A class for resistors in series """ def __init__(self): self.res_list = [] def add(self, value): """ Adds a resistor to the network """ if "." in str(value): self.res_list.append( str(value) ) ...
[ [ 1, 0, 0.0323, 0.0108, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 3, 0, 0.2742, 0.4516, 0, 0.66, 0.5, 601, 0, 5, 0, 0, 0, 0, 25 ], [ 8, 1, 0.0645, 0.0108, 1, 0.65...
[ "import time", "class serial():\n \"\"\" A class for resistors in series \"\"\"\n def __init__(self):\n self.res_list = []\n\n def add(self, value):\n \"\"\" Adds a resistor to the network \"\"\"\n if \".\" in str(value):", " \"\"\" A class for resistors in series \"\"\"", " ...
import ctypes import serial import time def drive(): # START SENDINPUT TYPE DECLARATIONS PUL = ctypes.POINTER(ctypes.c_ulong) class KeyBdInput(ctypes.Structure): _fields_ = [("wVk", ctypes.c_ushort), ("wScan", ctypes.c_ushort), ("dwFlags", ctypes.c_ulong)...
[ [ 1, 0, 0.0099, 0.0099, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0198, 0.0099, 0, 0.66, 0.3333, 601, 0, 1, 0, 0, 601, 0, 0 ], [ 1, 0, 0.0297, 0.0099, 0, ...
[ "import ctypes", "import serial", "import time", "def drive():\n # START SENDINPUT TYPE DECLARATIONS\n PUL = ctypes.POINTER(ctypes.c_ulong)\n class KeyBdInput(ctypes.Structure):\n _fields_ = [(\"wVk\", ctypes.c_ushort),\n (\"wScan\", ctypes.c_ushort),\n (\"dwFla...
import sys from CVtypes import cv def detect(image): image_size = cv.GetSize(image) # create grayscale version grayscale = cv.CreateImage(image_size, 8, 1) cv.CvtColor(image, grayscale, cv.BGR2GRAY) # create storage storage = cv.CreateMemStorage(0) cv.ClearMemStorage(storag...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0.5, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 2, 0, 0.5536, 0.8571, 0, 0.6...
[ "import sys", "from CVtypes import cv", "def detect(image):\n image_size = cv.GetSize(image)\n \n # create grayscale version\n grayscale = cv.CreateImage(image_size, 8, 1)\n cv.CvtColor(image, grayscale, cv.BGR2GRAY)\n \n # create storage", " image_size = cv.GetSize(image)", " grayscale...
#!/usr/bin/env python # example helloworld.py import pygtk pygtk.require('2.0') import gtk class HelloWorld: # This is a callback function. The data arguments are ignored # in this example. More on callbacks below. def hello(self, widget, data=None): print "Hello World" def delete_event(sel...
[ [ 1, 0, 0.061, 0.0122, 0, 0.66, 0, 106, 0, 1, 0, 0, 106, 0, 0 ], [ 8, 0, 0.0732, 0.0122, 0, 0.66, 0.25, 66, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0854, 0.0122, 0, 0.66, ...
[ "import pygtk", "pygtk.require('2.0')", "import gtk", "class HelloWorld:\n\n # This is a callback function. The data arguments are ignored\n # in this example. More on callbacks below.\n def hello(self, widget, data=None):\n print(\"Hello World\")\n\n def delete_event(self, widget, event, d...
def primes(number): primes = [] for num in range(2, number + 1): res = map(lambda x: num % x, range(2, math.sqrt(num))) if 0 not in res: primes.append(num) print "Primes up!" print primes print str(len(primes)) + " primes found!"
[ [ 2, 0, 0.5556, 1, 0, 0.66, 0, 973, 0, 1, 0, 0, 0, 0, 10 ], [ 14, 1, 0.2222, 0.1111, 1, 0.2, 0, 973, 0, 0, 0, 0, 0, 5, 0 ], [ 6, 1, 0.5, 0.4444, 1, 0.2, 0.25, ...
[ "def primes(number):\n primes = []\n for num in range(2, number + 1):\n res = map(lambda x: num % x, range(2, math.sqrt(num)))\n if 0 not in res:\n primes.append(num)\n print(\"Primes up!\")\n print(primes)", " primes = []", " for num in range(2, number + 1):\n ...
#!/usr/bin/python import serial """ __version__ = "$Revision: 1.5 $" __date__ = "$Date: 2004/04/30 16:26:12 $" """ from PythonCard import model class MyBackground(model.Background): def on_initialize(self, event): ser = serial.Serial() pass if __name__ == '__main__': app ...
[ [ 1, 0, 0.1, 0.05, 0, 0.66, 0, 601, 0, 1, 0, 0, 601, 0, 0 ], [ 8, 0, 0.275, 0.2, 0, 0.66, 0.25, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.45, 0.05, 0, 0.66, 0.5, ...
[ "import serial", "\"\"\"\n__version__ = \"$Revision: 1.5 $\"\n__date__ = \"$Date: 2004/04/30 16:26:12 $\"\n\"\"\"", "from PythonCard import model", "class MyBackground(model.Background):\n\n def on_initialize(self, event):\n ser = serial.Serial()\n pass", " def on_initialize(self, event)...
#!/usr/bin/python import serial """ __version__ = "$Revision: 1.5 $" __date__ = "$Date: 2004/04/30 16:26:12 $" """ from PythonCard import model class MyBackground(model.Background): def on_initialize(self, event): ser = serial.Serial() pass if __name__ == '__main__': app ...
[ [ 1, 0, 0.1, 0.05, 0, 0.66, 0, 601, 0, 1, 0, 0, 601, 0, 0 ], [ 8, 0, 0.275, 0.2, 0, 0.66, 0.25, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.45, 0.05, 0, 0.66, 0.5, ...
[ "import serial", "\"\"\"\n__version__ = \"$Revision: 1.5 $\"\n__date__ = \"$Date: 2004/04/30 16:26:12 $\"\n\"\"\"", "from PythonCard import model", "class MyBackground(model.Background):\n\n def on_initialize(self, event):\n ser = serial.Serial()\n pass", " def on_initialize(self, event)...
{'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'serial controller', 'title':'Arduino Serial Controller', 'size':(500, 410), 'statusBar':1, 'menubar': {'type':'MenuBar', 'menus': ...
[ [ 8, 0, 0.5054, 1, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{'application':{'type':'Application',\n 'name':'Template',\n 'backgrounds': [\n {'type':'Background',\n 'name':'serial controller',\n 'title':'Arduino Serial Controller',\n 'size':(500, 410),\n 'statusBar':1," ]
import math number = 10000000 primes = [] for num in range(2, number + 1): res = map(lambda x: num % x, range(2, math.sqrt(num))) if 0 not in res: primes.append(num) if len(primes) > 10000: print "Broke" break for obs in primes: print obs
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 14, 0, 0.1667, 0.0833, 0, 0.66, 0.25, 408, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.25, 0.0833, 0, 0.66...
[ "import math", "number = 10000000", "primes = []", "for num in range(2, number + 1):\n res = map(lambda x: num % x, range(2, math.sqrt(num)))\n if 0 not in res:\n primes.append(num)\n if len(primes) > 10000:\n print(\"Broke\")\n break", " res = map(lambda x: num % x, range(2...
import urllib2 base = "" password = "" def menu(): print "" print "1. Login" print "2. Download config.bin" print "3. Restart" print "4. Reset" print "5. Logout" print "" print "6. Exit" print "" goto = int(raw_input("> ")) if (goto == 1): login() eli...
[ [ 1, 0, 0.0164, 0.0164, 0, 0.66, 0, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 14, 0, 0.0492, 0.0164, 0, 0.66, 0.0833, 47, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0656, 0.0164, 0, 0...
[ "import urllib2", "base = \"\"", "password = \"\"", "def menu():\n print(\"\")\n print(\"1. Login\")\n print(\"2. Download config.bin\")\n print(\"3. Restart\")\n print(\"4. Reset\")\n print(\"5. Logout\")\n print(\"\")", " print(\"\")", " print(\"1. Login\")", " print(\"2....
#!/usr/bin/env python # example helloworld.py import pygtk pygtk.require('2.0') import gtk class HelloWorld: # This is a callback function. The data arguments are ignored # in this example. More on callbacks below. def hello(self, widget, data=None): print "Hello World" def delete_event(sel...
[ [ 1, 0, 0.061, 0.0122, 0, 0.66, 0, 106, 0, 1, 0, 0, 106, 0, 0 ], [ 8, 0, 0.0732, 0.0122, 0, 0.66, 0.25, 66, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0854, 0.0122, 0, 0.66, ...
[ "import pygtk", "pygtk.require('2.0')", "import gtk", "class HelloWorld:\n\n # This is a callback function. The data arguments are ignored\n # in this example. More on callbacks below.\n def hello(self, widget, data=None):\n print(\"Hello World\")\n\n def delete_event(self, widget, event, d...
import WConio old_setting = WConio.gettextinfo()[4] & 0x00FF #Store current attribute settings WConio.clrscr() #Clear the screen place = 1 def display(): WConio.gotoxy(5,5) WConio.cputs("Memory Sprint Hacker\r\n") print ...
[ [ 1, 0, 0.0312, 0.0312, 0, 0.66, 0, 178, 0, 1, 0, 0, 178, 0, 0 ], [ 14, 0, 0.0938, 0.0312, 0, 0.66, 0.1667, 669, 4, 0, 0, 0, 0, 0, 1 ], [ 8, 0, 0.125, 0.0312, 0, 0....
[ "import WConio", "old_setting = WConio.gettextinfo()[4] & 0x00FF #Store current attribute settings", "WConio.clrscr() #Clear the screen", "place = 1", "def display():\n WConio.gotoxy(5,5)\n WConio.cputs(\"Memory Sprint Hacker\\r\\n\")\n print(\"K for for use...
import turtle import time import random turtle.setup(width=500, height=500) while True: pos = turtle.position() head = turtle.heading() if pos[0] < -200: if 180 < head < 270: turtle.setheading(random.randint(90, 180)) elif 270 < head < 359: turtle.set...
[ [ 1, 0, 0.0244, 0.0244, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0488, 0.0244, 0, 0.66, 0.25, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0732, 0.0244, 0, 0....
[ "import turtle", "import time", "import random", "turtle.setup(width=500, height=500)", "while True:\n pos = turtle.position()\n head = turtle.heading()\n\n if pos[0] < -200:\n if 180 < head < 270:\n turtle.setheading(random.randint(90, 180))\n elif 270 < head < 359:", " ...
import ogre.renderer.OGRE as ogre import SampleFramework as sf class TutorialApplication(sf.Application): def _createScene(self): sceneManager = self.sceneManager sceneManager.ambientLight = ogre.ColourValue(1, 1, 1) ent1 = sceneManager.createEntity("Robot", "robot.mesh") ...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 737, 0, 1, 0, 0, 737, 0, 0 ], [ 1, 0, 0.1333, 0.0667, 0, 0.66, 0.3333, 743, 0, 1, 0, 0, 743, 0, 0 ], [ 3, 0, 0.5, 0.5333, 0, 0.6...
[ "import ogre.renderer.OGRE as ogre", "import SampleFramework as sf", "class TutorialApplication(sf.Application):\n \n def _createScene(self):\n sceneManager = self.sceneManager\n sceneManager.ambientLight = ogre.ColourValue(1, 1, 1)\n ent1 = sceneManager.createEntity(\"Robot\", \"robot.me...
import random pw = "pass1" response = {"details": "Twisted bot under test. In emergency /msg AbstractBeliefs", "random": str(random.randint(1, 10)) } password = "pass1" nickname = "TwistBot" channel = "##practice2" server = "irc.freenode.net" port = 6667 def name(): print "Fir...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 14, 0, 0.1071, 0.0357, 0, 0.66, 0.1, 18, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1786, 0.1071, 0, 0.66...
[ "import random", "pw = \"pass1\"", "response = {\"details\": \"Twisted bot under test. In emergency /msg AbstractBeliefs\",\n \"random\": str(random.randint(1, 10))\n }", "password = \"pass1\"", "nickname = \"TwistBot\"", "channel = \"##practice2\"", "server = \"irc.freenode.net\""...
# Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ An simple IRC bot - listens a channel's events to and reacts. Configuration is set by twistbotconfig.py To start, simply $ python ircBot.py """ # twisted imports from twisted.words.protocols import irc from twisted.internet i...
[ [ 8, 0, 0.0616, 0.0616, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1164, 0.0068, 0, 0.66, 0.1429, 235, 0, 1, 0, 0, 235, 0, 0 ], [ 1, 0, 0.1233, 0.0068, 0, 0.66...
[ "\"\"\"\nAn simple IRC bot - listens a channel's events to and reacts.\nConfiguration is set by twistbotconfig.py\n\nTo start, simply\n\n $ python ircBot.py", "from twisted.words.protocols import irc", "from twisted.internet import reactor, protocol", "import twistbotconf", "import time, sys, random", "c...
import xml.parsers.expat import urllib2 # 3 handler functions def start_element(name, attrs): print 'Start element:', name, attrs def end_element(name): print 'End element:', name def char_data(data): print 'Character data:', repr(data) p = xml.parsers.expat.ParserCreate() p.StartElementHand...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 573, 0, 1, 0, 0, 573, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.0833, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 2, 0, 0.25, 0.0909, 0, 0....
[ "import xml.parsers.expat", "import urllib2", "def start_element(name, attrs):\n print('Start element:', name, attrs)", " print('Start element:', name, attrs)", "def end_element(name):\n print('End element:', name)", " print('End element:', name)", "def char_data(data):\n print('Character...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.documentos.models import Documento class Fiscal(models.Model): nombre_apellido = models.CharField("Nombre y Apellido", max_length=70) fiscalia = models.CharField(max_length=100) observ...
[ [ 1, 0, 0.025, 0.0063, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.0312, 0.0063, 0, 0.66, 0.0769, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.0375, 0.0063, 0, 0.6...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.documentos.models import Documento", "class Fiscal(models.Model):\n nombre_apellido = models.CharField(\"Nombre y Apellido\", max_length=70)\n fiscalia = models.CharField(max_length=100)\n observaciones = mod...
#!/usr/bin/env python #coding=utf-8 from abuelas.casos.models import * from django.template import RequestContext from django.shortcuts import get_object_or_404, render_to_response from django.contrib.admin.views.decorators import staff_member_required from django.contrib.admin.views.main import change_stage, add_stage...
[ [ 1, 0, 0.1, 0.0333, 0, 0.66, 0, 900, 0, 1, 0, 0, 900, 0, 0 ], [ 1, 0, 0.1333, 0.0333, 0, 0.66, 0.1429, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.1667, 0.0333, 0, 0.6...
[ "from abuelas.casos.models import *", "from django.template import RequestContext", "from django.shortcuts import get_object_or_404, render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "from django.contrib.admin.views.main import change_stage, add_stage", "from ...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.casos.models import * class FiscalAdmin(admin.ModelAdmin): fieldsets = ((None, {'fields': ('nombre_apellido', 'fiscalia', 'observaciones')}), ('Informacion de contacto', {'classes...
[ [ 1, 0, 0.0685, 0.0137, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.0822, 0.0137, 0, 0.66, 0.0588, 900, 0, 1, 0, 0, 900, 0, 0 ], [ 3, 0, 0.1712, 0.137, 0, 0...
[ "from django.contrib import admin", "from abuelas.casos.models import *", "class FiscalAdmin(admin.ModelAdmin):\n fieldsets = ((None, {'fields': ('nombre_apellido', 'fiscalia',\n 'observaciones')}),\n ('Informacion de contacto',\n {'classes': 'collapse','fields...
#!/usr/bin/env python #coding=utf-8 from abuelas.casos.models import * from django.template import RequestContext from django.shortcuts import get_object_or_404, render_to_response from django.contrib.admin.views.decorators import staff_member_required from django.contrib.admin.views.main import change_stage, add_stage...
[ [ 1, 0, 0.1, 0.0333, 0, 0.66, 0, 900, 0, 1, 0, 0, 900, 0, 0 ], [ 1, 0, 0.1333, 0.0333, 0, 0.66, 0.1429, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.1667, 0.0333, 0, 0.6...
[ "from abuelas.casos.models import *", "from django.template import RequestContext", "from django.shortcuts import get_object_or_404, render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "from django.contrib.admin.views.main import change_stage, add_stage", "from ...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.documentos.models import Documento class Fiscal(models.Model): nombre_apellido = models.CharField("Nombre y Apellido", max_length=70) fiscalia = models.CharField(max_length=100) observ...
[ [ 1, 0, 0.025, 0.0063, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.0312, 0.0063, 0, 0.66, 0.0769, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.0375, 0.0063, 0, 0.6...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.documentos.models import Documento", "class Fiscal(models.Model):\n nombre_apellido = models.CharField(\"Nombre y Apellido\", max_length=70)\n fiscalia = models.CharField(max_length=100)\n observaciones = mod...
# Create your views here.
[]
[]
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.casos.models import * class FiscalAdmin(admin.ModelAdmin): fieldsets = ((None, {'fields': ('nombre_apellido', 'fiscalia', 'observaciones')}), ('Informacion de contacto', {'classes...
[ [ 1, 0, 0.0685, 0.0137, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.0822, 0.0137, 0, 0.66, 0.0588, 900, 0, 1, 0, 0, 900, 0, 0 ], [ 3, 0, 0.1712, 0.137, 0, 0...
[ "from django.contrib import admin", "from abuelas.casos.models import *", "class FiscalAdmin(admin.ModelAdmin):\n fieldsets = ((None, {'fields': ('nombre_apellido', 'fiscalia',\n 'observaciones')}),\n ('Informacion de contacto',\n {'classes': 'collapse','fields...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Caso, Documento, Juzgado class Incidente(models.Model): nombre_caso_padre = models.ForeignKey(Caso) nombre_caso = models.CharField(max_length=100) caratula = mode...
[ [ 1, 0, 0.2105, 0.0526, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.2632, 0.0526, 0, 0.66, 0.3333, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.3158, 0.0526, 0, 0....
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Caso, Documento, Juzgado", "class Incidente(models.Model):\n nombre_caso_padre = models.ForeignKey(Caso)\n nombre_caso = models.CharField(max_length=100)\n caratula = models.CharField(max_...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.incidentes.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(Incidente, GenericAdmin)
[ [ 1, 0, 0.4, 0.1, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.5, 0.1, 0, 0.66, 0.3333, 825, 0, 1, 0, 0, 825, 0, 0 ], [ 3, 0, 0.75, 0.2, 0, 0.66, 0.6667,...
[ "from django.contrib import admin", "from abuelas.incidentes.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(Incidente, GenericAdmin)" ]
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Caso, Documento, Juzgado class Incidente(models.Model): nombre_caso_padre = models.ForeignKey(Caso) nombre_caso = models.CharField(max_length=100) caratula = mode...
[ [ 1, 0, 0.2105, 0.0526, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.2632, 0.0526, 0, 0.66, 0.3333, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.3158, 0.0526, 0, 0....
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Caso, Documento, Juzgado", "class Incidente(models.Model):\n nombre_caso_padre = models.ForeignKey(Caso)\n nombre_caso = models.CharField(max_length=100)\n caratula = models.CharField(max_...
# Create your views here.
[]
[]
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.incidentes.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(Incidente, GenericAdmin)
[ [ 1, 0, 0.4, 0.1, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.5, 0.1, 0, 0.66, 0.3333, 825, 0, 1, 0, 0, 825, 0, 0 ], [ 3, 0, 0.75, 0.2, 0, 0.66, 0.6667,...
[ "from django.contrib import admin", "from abuelas.incidentes.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(Incidente, GenericAdmin)" ]
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.tareas.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(Proyecto, GenericAdmin) class TareaAdmin(admin.ModelAdmin): list_filter = ('proyecto', 'prioridad', 'vencimiento', 'asignado', 'completado'...
[ [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.2941, 0.0588, 0, 0.66, 0.2, 515, 0, 1, 0, 0, 515, 0, 0 ], [ 3, 0, 0.4412, 0.1176, 0, 0.6...
[ "from django.contrib import admin", "from abuelas.tareas.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(Proyecto, GenericAdmin)", "class TareaAdmin(admin.ModelAdmin):\n list_filter = ('proyecto', 'prioridad', 'vencimiento', 'asignado', 'completado')\n search_...
# Create your views here.
[]
[]
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.tareas.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(Proyecto, GenericAdmin) class TareaAdmin(admin.ModelAdmin): list_filter = ('proyecto', 'prioridad', 'vencimiento', 'asignado', 'completado'...
[ [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.2941, 0.0588, 0, 0.66, 0.2, 515, 0, 1, 0, 0, 515, 0, 0 ], [ 3, 0, 0.4412, 0.1176, 0, 0.6...
[ "from django.contrib import admin", "from abuelas.tareas.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(Proyecto, GenericAdmin)", "class TareaAdmin(admin.ModelAdmin):\n list_filter = ('proyecto', 'prioridad', 'vencimiento', 'asignado', 'completado')\n search_...
#!/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.71, ...
[ "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 #coding=utf-8 #constantes PATH_ARCHIVOS = 'uploads/%Y/%m/%d'
[ [ 14, 0, 1, 0.1667, 0, 0.66, 0, 645, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "PATH_ARCHIVOS = 'uploads/%Y/%m/%d'" ]
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^abues/', include('abues.foo.urls')), # Uncomment the next line to enable admin documentation: (r'^doc/', inclu...
[ [ 1, 0, 0.0588, 0.0588, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0.3333, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 8, 0, 0.3529, 0.0588, 0, ...
[ "from django.conf.urls.defaults import *", "from django.contrib import admin", "admin.autodiscover()", "urlpatterns = patterns('',\n # Example:\n # (r'^abues/', include('abues.foo.urls')),\n\n # Uncomment the next line to enable admin documentation:\n (r'^doc/', include('django.contrib.admindocs.u...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User PATH_ARCHIVOS = '%Y/%m/%d' class Documento(models.Model): archivo = models.FileField("Archivo", upload_to=PATH_ARCHIVOS) titulo = models.CharField(u'Título', unique=True, max_length=50, help_text=u'In...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.3333, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 14, 0, 0.3333, 0.0556, 0, 0...
[ "from django.db import models", "from django.contrib.auth.models import User", "PATH_ARCHIVOS = '%Y/%m/%d'", "class Documento(models.Model):\n archivo = models.FileField(\"Archivo\", upload_to=PATH_ARCHIVOS)\n titulo = models.CharField(u'Título', unique=True, max_length=50, help_text=u'Ingresa un título...
#!/usr/bin/env python #coding=utf-8 from abuelas.documentos.models import Documento from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.admin.views.decorators import staff_member_required def listado(request): return render_to_response( "admin/doc...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.1667, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, ...
[ "from abuelas.documentos.models import Documento", "from django.template import RequestContext", "from django.shortcuts import render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "def listado(request):\n return render_to_response(\n \"admin/documentos/li...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.documentos.models import Documento class DocumentoAdmin(admin.ModelAdmin): list_display = ('titulo', 'fecha_upload', 'archivo', 'descripcion') list_display_links = ('titulo',) list_filter = ('fecha_upload',) search_fiel...
[ [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.3571, 0.0714, 0, 0.66, 0.3333, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 3, 0, 0.6786, 0.4286, 0, ...
[ "from django.contrib import admin", "from abuelas.documentos.models import Documento", "class DocumentoAdmin(admin.ModelAdmin):\n list_display = ('titulo', 'fecha_upload', 'archivo', 'descripcion')\n list_display_links = ('titulo',)\n list_filter = ('fecha_upload',)\n search_fields = ('titulo', 'des...
#!/usr/bin/env python #coding=utf-8 from abuelas.documentos.models import Documento from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.admin.views.decorators import staff_member_required def listado(request): return render_to_response( "admin/doc...
[ [ 1, 0, 0.2, 0.0667, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.2667, 0.0667, 0, 0.66, 0.2, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.3333, 0.0667, 0, 0.66, ...
[ "from abuelas.documentos.models import Documento", "from django.template import RequestContext", "from django.shortcuts import render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "def listado(request):\n return render_to_response(\n \"admin/documentos/li...
#!/usr/bin/env python #coding=utf-8 from abuelas.documentos.models import Documento from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.admin.views.decorators import staff_member_required def listado(request): return render_to_response( "admin/doc...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.1667, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, ...
[ "from abuelas.documentos.models import Documento", "from django.template import RequestContext", "from django.shortcuts import render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "def listado(request):\n return render_to_response(\n \"admin/documentos/li...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User PATH_ARCHIVOS = '%Y/%m/%d' class Documento(models.Model): archivo = models.FileField("Archivo", upload_to=PATH_ARCHIVOS) titulo = models.CharField(u'Título', unique=True, max_length=50, help_text=u'In...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.3333, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 14, 0, 0.3333, 0.0556, 0, 0...
[ "from django.db import models", "from django.contrib.auth.models import User", "PATH_ARCHIVOS = '%Y/%m/%d'", "class Documento(models.Model):\n archivo = models.FileField(\"Archivo\", upload_to=PATH_ARCHIVOS)\n titulo = models.CharField(u'Título', unique=True, max_length=50, help_text=u'Ingresa un título...
# Create your views here.
[]
[]
#!/usr/bin/env python #coding=utf-8 from abuelas.documentos.models import Documento from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.admin.views.decorators import staff_member_required def listado(request): return render_to_response( "admin/doc...
[ [ 1, 0, 0.2, 0.0667, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.2667, 0.0667, 0, 0.66, 0.2, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.3333, 0.0667, 0, 0.66, ...
[ "from abuelas.documentos.models import Documento", "from django.template import RequestContext", "from django.shortcuts import render_to_response", "from django.contrib.admin.views.decorators import staff_member_required", "def listado(request):\n return render_to_response(\n \"admin/documentos/li...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.documentos.models import Documento class DocumentoAdmin(admin.ModelAdmin): list_display = ('titulo', 'fecha_upload', 'archivo', 'descripcion') list_display_links = ('titulo',) list_filter = ('fecha_upload',) search_fiel...
[ [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.3571, 0.0714, 0, 0.66, 0.3333, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 3, 0, 0.6786, 0.4286, 0, ...
[ "from django.contrib import admin", "from abuelas.documentos.models import Documento", "class DocumentoAdmin(admin.ModelAdmin):\n list_display = ('titulo', 'fecha_upload', 'archivo', 'descripcion')\n list_display_links = ('titulo',)\n list_filter = ('fecha_upload',)\n search_fields = ('titulo', 'des...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Documento, Caso, Testigo, Imputado class ParrafoPunteo(models.Model): """Punteo""" caso = models.ForeignKey(Caso) fecha_ingreso = models.DateTimeField(auto_now_add...
[ [ 1, 0, 0.0732, 0.0244, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.0976, 0.0244, 0, 0.66, 0.2, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.122, 0.0244, 0, 0.66, ...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Documento, Caso, Testigo, Imputado", "class ParrafoPunteo(models.Model):\n \"\"\"Punteo\"\"\"\n caso = models.ForeignKey(Caso)\n fecha_ingreso = models.DateTimeField(auto_now_add=True)\n ...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.punteo.models import * class GenericAdmin(admin.ModelAdmin): pass class PunteoAdmin(admin.ModelAdmin): class Media: js = ('/datos/js/rte.jquery/jquery.js', '/datos/js/rte.jquery/jquery.rte.js', ...
[ [ 1, 0, 0.1429, 0.0357, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.1786, 0.0357, 0, 0.66, 0.1667, 970, 0, 1, 0, 0, 970, 0, 0 ], [ 3, 0, 0.2679, 0.0714, 0, ...
[ "from django.contrib import admin", "from abuelas.punteo.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "class PunteoAdmin(admin.ModelAdmin):\n class Media:\n js = ('/datos/js/rte.jquery/jquery.js',\n '/datos/js/rte.jquery/jquery.rte.js',\n '/dato...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Documento, Caso, Testigo, Imputado class ParrafoPunteo(models.Model): """Punteo""" caso = models.ForeignKey(Caso) fecha_ingreso = models.DateTimeField(auto_now_add...
[ [ 1, 0, 0.0732, 0.0244, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.0976, 0.0244, 0, 0.66, 0.2, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.122, 0.0244, 0, 0.66, ...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Documento, Caso, Testigo, Imputado", "class ParrafoPunteo(models.Model):\n \"\"\"Punteo\"\"\"\n caso = models.ForeignKey(Caso)\n fecha_ingreso = models.DateTimeField(auto_now_add=True)\n ...
# Create your views here.
[]
[]
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.punteo.models import * class GenericAdmin(admin.ModelAdmin): pass class PunteoAdmin(admin.ModelAdmin): class Media: js = ('/datos/js/rte.jquery/jquery.js', '/datos/js/rte.jquery/jquery.rte.js', ...
[ [ 1, 0, 0.1429, 0.0357, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.1786, 0.0357, 0, 0.66, 0.1667, 970, 0, 1, 0, 0, 970, 0, 0 ], [ 3, 0, 0.2679, 0.0714, 0, ...
[ "from django.contrib import admin", "from abuelas.punteo.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "class PunteoAdmin(admin.ModelAdmin):\n class Media:\n js = ('/datos/js/rte.jquery/jquery.js',\n '/datos/js/rte.jquery/jquery.rte.js',\n '/dato...
#!/usr/bin/env python #coding=utf-8 #constantes PATH_ARCHIVOS = 'uploads/%Y/%m/%d'
[ [ 14, 0, 1, 0.1667, 0, 0.66, 0, 645, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "PATH_ARCHIVOS = 'uploads/%Y/%m/%d'" ]
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Caso, Testigo from abuelas.documentos.models import Documento from abuelas.incidentes.models import Incidente from abuelas.tareas.models import Tarea class CategoriaSeguimient...
[ [ 1, 0, 0.087, 0.0217, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.1087, 0.0217, 0, 0.66, 0.125, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.1304, 0.0217, 0, 0.66...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Caso, Testigo", "from abuelas.documentos.models import Documento", "from abuelas.incidentes.models import Incidente", "from abuelas.tareas.models import Tarea", "class CategoriaSeguimiento(mo...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.seguimiento.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(CategoriaSeguimiento, GenericAdmin) class SeguimientoAdmin(admin.ModelAdmin): class Media: js = ('/datos/js/rte.jquery/jquery....
[ [ 1, 0, 0.1081, 0.027, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.1351, 0.027, 0, 0.66, 0.1429, 545, 0, 1, 0, 0, 545, 0, 0 ], [ 3, 0, 0.2027, 0.0541, 0, 0....
[ "from django.contrib import admin", "from abuelas.seguimiento.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(CategoriaSeguimiento, GenericAdmin)", "class SeguimientoAdmin(admin.ModelAdmin):\n class Media:\n js = ('/datos/js/rte.jquery/jquery.js',\n ...
#!/usr/bin/env python #coding=utf-8 from django.db import models from django.contrib.auth.models import User from abuelas.casos.models import Caso, Testigo from abuelas.documentos.models import Documento from abuelas.incidentes.models import Incidente from abuelas.tareas.models import Tarea class CategoriaSeguimient...
[ [ 1, 0, 0.087, 0.0217, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.1087, 0.0217, 0, 0.66, 0.125, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.1304, 0.0217, 0, 0.66...
[ "from django.db import models", "from django.contrib.auth.models import User", "from abuelas.casos.models import Caso, Testigo", "from abuelas.documentos.models import Documento", "from abuelas.incidentes.models import Incidente", "from abuelas.tareas.models import Tarea", "class CategoriaSeguimiento(mo...
from django.http import HttpResponse,HttpResponseRedirect from django.shortcuts import render_to_response from django import newforms as forms from django.db.models import Q from abuelas.casos.models import * from abuelas.seguimiento.models import * from abuelas.punteo.models import * from django.contrib.auth.models im...
[ [ 1, 0, 0.0075, 0.0075, 0, 0.66, 0, 779, 0, 2, 0, 0, 779, 0, 0 ], [ 1, 0, 0.0149, 0.0075, 0, 0.66, 0.0556, 852, 0, 1, 0, 0, 852, 0, 0 ], [ 1, 0, 0.0224, 0.0075, 0, ...
[ "from django.http import HttpResponse,HttpResponseRedirect", "from django.shortcuts import render_to_response", "from django import newforms as forms", "from django.db.models import Q", "from abuelas.casos.models import *", "from abuelas.seguimiento.models import *", "from abuelas.punteo.models import *...
#! /usr/bin/env python #coding=utf-8 from django.contrib import admin from abuelas.seguimiento.models import * class GenericAdmin(admin.ModelAdmin): pass admin.site.register(CategoriaSeguimiento, GenericAdmin) class SeguimientoAdmin(admin.ModelAdmin): class Media: js = ('/datos/js/rte.jquery/jquery....
[ [ 1, 0, 0.1081, 0.027, 0, 0.66, 0, 302, 0, 1, 0, 0, 302, 0, 0 ], [ 1, 0, 0.1351, 0.027, 0, 0.66, 0.1429, 545, 0, 1, 0, 0, 545, 0, 0 ], [ 3, 0, 0.2027, 0.0541, 0, 0....
[ "from django.contrib import admin", "from abuelas.seguimiento.models import *", "class GenericAdmin(admin.ModelAdmin):\n pass", "admin.site.register(CategoriaSeguimiento, GenericAdmin)", "class SeguimientoAdmin(admin.ModelAdmin):\n class Media:\n js = ('/datos/js/rte.jquery/jquery.js',\n ...
#!/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.48, ...
[ "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/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 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 ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.0859, 0.0051, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0051, 0, 0.66, 0.0455, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.096, 0.0051, 0, 0.6...
[ "import sys", "import os.path", "import logging", "import httplib", "import urllib", "import shutil", "import hashlib", "sys.path.insert(0, \"lib\")", "import html5lib", "from html5lib import treebuilders", "def getFileContents(path): \n if os.path.isfile(path):\n f = open(path)\n data = ...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.5, 0.0294, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5294, 0.0294, 0, 0.66, 0.1667, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.5588, 0.0294, 0, 0.6...
[ "import os", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import util", "from google.appengine.ext.webapp import template", "class MainHandler(webapp.RequestHandler):\n def get(self):\n template_values = {}\n path = os.path.join(os.path.dirname(__file__), 'fronte...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.25, 0.0147, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2647, 0.0147, 0, 0.66, 0.1429, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.2941, 0.0147, 0, 0....
[ "import logging", "import hashlib", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import util", "from google.appengine.api import memcache", "class MainHandler(webapp.RequestHandler):\n\n def get(self, key=None):\n logging.info(key)\n \n if key is None:\n self...
try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset try: from collections import deque except ImportError: from utils import deque from constants import spaceCharacters from constants import ent...
[ [ 7, 0, 0.0022, 0.0038, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0013, 0.0006, 1, 0.33, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0032, 0.0006, 1, 0.33, 0, ...
[ "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import Set as set\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import Set as set", " from sets import ImmutableSet as frozenset", "try:\n from collections impor...
import re from xml.sax.saxutils import escape, unescape from tokenizer import HTMLTokenizer from constants import tokenTypes class HTMLSanitizerMixin(object): """ sanitization of XHTML+MathML+SVG and of inline style attributes.""" acceptable_elements = ['a', 'abbr', 'acronym', 'address', 'area', 'b', ...
[ [ 1, 0, 0.0043, 0.0043, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0087, 0.0043, 0, 0.66, 0.2, 759, 0, 2, 0, 0, 759, 0, 0 ], [ 1, 0, 0.0174, 0.0043, 0, 0.6...
[ "import re", "from xml.sax.saxutils import escape, unescape", "from tokenizer import HTMLTokenizer", "from constants import tokenTypes", "class HTMLSanitizerMixin(object):\n \"\"\" sanitization of XHTML+MathML+SVG and of inline style attributes.\"\"\"\n\n acceptable_elements = ['a', 'abbr', 'acronym',...
from htmlserializer import HTMLSerializer class XHTMLSerializer(HTMLSerializer): quote_attr_values = True minimize_boolean_attributes = False use_trailing_solidus = True escape_lt_in_attrs = True omit_optional_tags = False escape_rcdata = True
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 528, 0, 1, 0, 0, 528, 0, 0 ], [ 3, 0, 0.6667, 0.7778, 0, 0.66, 1, 62, 0, 0, 0, 0, 170, 0, 0 ], [ 14, 1, 0.4444, 0.1111, 1, 0.81,...
[ "from htmlserializer import HTMLSerializer", "class XHTMLSerializer(HTMLSerializer):\n quote_attr_values = True\n minimize_boolean_attributes = False\n use_trailing_solidus = True\n escape_lt_in_attrs = True\n omit_optional_tags = False\n escape_rcdata = True", " quote_attr_values = True", ...
try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import ImmutableSet as frozenset import gettext _ = gettext.gettext from html5lib.constants import voidElements, booleanAttributes, spaceCharacters from html5lib.constants import rcdataElements from xml.sax.saxutils i...
[ [ 7, 0, 0.0128, 0.0214, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0085, 0.0043, 1, 0.83, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0214, 0.0043, 1, 0.83, 0, ...
[ "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import ImmutableSet as frozenset", "import gettext", "_ = gettext.gettext", "from html5lib.constants import voidElements, booleanAttri...
import string, gettext _ = gettext.gettext try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset EOF = None E = { "null-character": _(u"Null character in input stream, replaced with U+FFFD."), ...
[ [ 1, 0, 0.0009, 0.0009, 0, 0.66, 0, 890, 0, 2, 0, 0, 890, 0, 0 ], [ 14, 0, 0.0017, 0.0009, 0, 0.66, 0.0323, 660, 7, 0, 0, 0, 0, 0, 0 ], [ 7, 0, 0.0056, 0.0051, 0, 0...
[ "import string, gettext", "_ = gettext.gettext", "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import Set as set\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import Set as set", " from sets import ImmutableS...
import new import warnings import re import _base from html5lib.constants import DataLossWarning import html5lib.constants as constants import etree as etree_builders from html5lib import ihatexml try: import lxml.etree as etree except ImportError: pass fullTree = True """Module for supporting the lxml.etre...
[ [ 1, 0, 0.003, 0.003, 0, 0.66, 0, 145, 0, 1, 0, 0, 145, 0, 0 ], [ 1, 0, 0.006, 0.003, 0, 0.66, 0.0667, 358, 0, 1, 0, 0, 358, 0, 0 ], [ 1, 0, 0.009, 0.003, 0, 0.66, ...
[ "import new", "import warnings", "import re", "import _base", "from html5lib.constants import DataLossWarning", "import html5lib.constants as constants", "import etree as etree_builders", "from html5lib import ihatexml", "try:\n import lxml.etree as etree\nexcept ImportError:\n pass", " i...