code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/env python
# This script analyses framestats logfiles and saves a log with number statistics about given videos.
#
# Inputs(given as arguments to script call): video1_framestats.txt, video2_framestats.txt etc...
# Output: frame_log.txt
#
# To do:
# Check that x axis is correctly scaled (It seems so but mess... | [
[
1,
0,
0.1008,
0.0084,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1092,
0.0084,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1176,
0.0084,
0,
... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"def new_frame(filep):\n\tline = '1'\n\twhile not line.startswith('[/FRAME]'):\n\t\tline = filep.readline()\n\t\tif line.startswith('pkt_pos='):\n\t\t\tpos = int(l... |
#!/usr/bin/env python
# This script uses framestats logfiles to plot the distribution of I and P frames for a number of videos
#
# Inputs(given as arguments to script call): video1_framestats.txt, video2_framestats.txt etc...
# Output: Plot #2
#
# To do:
# Check that x axis is correctly scaled (It seems so but messy c... | [
[
1,
0,
0.0585,
0.0049,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0634,
0.0049,
0,
0.66,
0.125,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0683,
0.0049,
0,
0... | [
"import numpy as np",
"import pylab as pl",
"import scipy.stats as spstats",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"def new_frame(filep):\n\tline = '1'\n\twhile not line.startswith('[/FRAME]'):\n\t\tline = filep.readline()\n\t\tif line.startsw... |
#!/usr/bin/env python
# This script plots the distribution of the gop data.
#
# Inputs (given as arguments): video1_framestats.txt, video2_framestats.txt, etc...
# Output Plot #3: Distribution of GOP data size (for each file given)
#
# To Do:
# - Verify x-axis scaling
import numpy as np
import pylab as pl # Plotting... | [
[
1,
0,
0.1,
0.0091,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1091,
0.0091,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1182,
0.0091,
0,
0.6... | [
"import numpy as np",
"import pylab as pl # Plotting",
"import os.path as osp # path",
"import sys # Handling command line arguments",
"from matplotlib.font_manager import FontProperties as FP # Font formatting in plots",
"def new_frame(filep):\n\tline = '1'\n\twhile not line.startswith('[/FRAME]'):\n\t\t... |
#!/usr/bin/env python
# This script plots the distribution of the gop data.
#
# Inputs (given as arguments): video1_framestats.txt, video2_framestats.txt, etc...
# Output Plot #3: Distribution of GOP data size (for each file given)
#
# To Do:
# - Verify x-axis scaling
import numpy as np
import pylab as pl # Plotting... | [
[
1,
0,
0.0696,
0.0063,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0759,
0.0063,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0823,
0.0063,
0,
... | [
"import numpy as np",
"import pylab as pl # Plotting",
"import os.path as osp # path",
"import sys # Handling command line arguments",
"from matplotlib.font_manager import FontProperties as FP # Font formatting in plots",
"def new_frame(filep):\n\tline = '1'\n\twhile not line.startswith('[/FRAME]'):\n\t\t... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
# P-frame size estimator function
def p_est(r,fps):
return r/float(fps)
# GOP size estimator function
def gop_est(r,fps,gop):
return r/float(fps)*g... | [
[
1,
0,
0.0242,
0.0081,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0323,
0.0081,
0,
0.66,
0.1,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0403,
0.0081,
0,
0.6... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def p_est(r,fps):\n\treturn r/float(fps)",
"\treturn r/float(fps)",
"def gop_est(r,fps,gop):\n\treturn r/float(fps)*gop",
"\treturn r... |
#!/usr/bin/env python
# This script plots the distribution of the gop data.
#
# Inputs (given as arguments): video1_framestats.txt, video2_framestats.txt, etc...
# Output Plot #3: Distribution of GOP data size (for each file given)
#
# To Do:
# - Verify x-axis scaling
import numpy as np
import pylab as pl # Plotting... | [
[
1,
0,
0.1,
0.0091,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1091,
0.0091,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1182,
0.0091,
0,
0.6... | [
"import numpy as np",
"import pylab as pl # Plotting",
"import os.path as osp # path",
"import sys # Handling command line arguments",
"from matplotlib.font_manager import FontProperties as FP # Font formatting in plots",
"def new_frame(filep):\n\tline = '1'\n\twhile not line.startswith('[/FRAME]'):\n\t\t... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
# P-frame size estimator function
def p_est(r,fps):
return r/float(fps)
# GOP size estimator function
def gop_est(r,fps,gop):
return r/float(fps)*g... | [
[
1,
0,
0.0242,
0.0081,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0323,
0.0081,
0,
0.66,
0.1,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0403,
0.0081,
0,
0.6... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def p_est(r,fps):\n\treturn r/float(fps)",
"\treturn r/float(fps)",
"def gop_est(r,fps,gop):\n\treturn r/float(fps)*gop",
"\treturn r... |
#!/usr/bin/env python
# This script ...
import numpy as np
import pylab as pl
import os.path as osp
import sys
from matplotlib.font_manager import FontProperties as FP
if __name__ == '__main__':
# Font fix
fp = FP()
fp.set_size('small')
# Prepare figure
fig = pl.figure() # Setting aspect ratio , figsize=[1... | [
[
1,
0,
0.061,
0.0122,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0732,
0.0122,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0854,
0.0122,
0,
0.66... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"if __name__ == '__main__':\n\n\t# Font fix\n\tfp = FP()\n\tfp.set_size('small')\n\n\t# Prepare figure \n\tfig = pl.figure() # Setting aspect ratio , figsize=[10,4... |
#!/usr/bin/env python
# This script ...
import numpy as np
import pylab as pl
import os.path as osp
import sys
from matplotlib.font_manager import FontProperties as FP
if __name__ == '__main__':
# Font fix
fp = FP()
fp.set_size('small')
# Prepare figure
fig = pl.figure() # Setting aspect ratio , figsize=[1... | [
[
1,
0,
0.061,
0.0122,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0732,
0.0122,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0854,
0.0122,
0,
0.66... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"if __name__ == '__main__':\n\n\t# Font fix\n\tfp = FP()\n\tfp.set_size('small')\n\n\t# Prepare figure \n\tfig = pl.figure() # Setting aspect ratio , figsize=[10,4... |
#!/usr/bin/env python
# This script ...
import numpy as np
import pylab as pl
import os.path as osp
import sys
from matplotlib.font_manager import FontProperties as FP
if __name__ == '__main__':
# Font fix
fp = FP()
fp.set_size('small')
# Prepare figure
fig = pl.figure() # Setting aspect ratio , figsize=[1... | [
[
1,
0,
0.0556,
0.0111,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0667,
0.0111,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0778,
0.0111,
0,
0.6... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"if __name__ == '__main__':\n\n\t# Font fix\n\tfp = FP()\n\tfp.set_size('small')\n\n\t# Prepare figure \n\tfig = pl.figure() # Setting aspect ratio , figsize=[10,4... |
#!/usr/bin/env python
# This script ...
import numpy as np
import pylab as pl
import os.path as osp
import sys
from matplotlib.font_manager import FontProperties as FP
if __name__ == '__main__':
# Font fix
fp = FP()
fp.set_size('small')
# Prepare figure
fig = pl.figure() # Setting aspect ratio , figsize=[1... | [
[
1,
0,
0.0556,
0.0111,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0667,
0.0111,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0778,
0.0111,
0,
0.6... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"from matplotlib.font_manager import FontProperties as FP",
"if __name__ == '__main__':\n\n\t# Font fix\n\tfp = FP()\n\tfp.set_size('small')\n\n\t# Prepare figure \n\tfig = pl.figure() # Setting aspect ratio , figsize=[10,4... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
from pylab import NaN
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
def ProbabilityMatrix(gen_size,q):
# Generate a probability matrix for EEP generation
P=np.zeros(shape=(gen_size+1,gen_size+1... | [
[
1,
0,
0.0288,
0.0096,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0385,
0.0096,
0,
0.66,
0.1111,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0481,
0.0096,
0,
... | [
"import numpy as np",
"import pylab as pl",
"from pylab import NaN",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def ProbabilityMatrix(gen_size,q):\n\t# Generate a probability matrix for EEP generation\n\tP=np.zeros(shape=(ge... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
from pylab import NaN
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
def ProbabilityMatrix(gen_size,q):
# Generate a probability matrix for EEP generation
P=np.zeros(shape=(gen_size+1,gen_size+1... | [
[
1,
0,
0.0288,
0.0096,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0385,
0.0096,
0,
0.66,
0.1111,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0481,
0.0096,
0,
... | [
"import numpy as np",
"import pylab as pl",
"from pylab import NaN",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def ProbabilityMatrix(gen_size,q):\n\t# Generate a probability matrix for EEP generation\n\tP=np.zeros(shape=(ge... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
def poly2(a,b,c,start,end,res):
# x and y data
x=np.arange(start,end,res)
y=[]
# y=ax^2+bx+c NB: kB!
for val in x:
y.append((a*x[val]**2+b*x... | [
[
1,
0,
0.0448,
0.0149,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0597,
0.0149,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0746,
0.0149,
0,
... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def poly2(a,b,c,start,end,res):\n\n\t# x and y data\n\tx=np.arange(start,end,res)\n\ty=[]\n\n\t# y=ax^2+bx+c NB: kB!\t\n\tfor val in x:",
... |
#!/usr/bin/env python
def CodingOverhead(g,q):
oh=0
for r in range(0,g):
oh+=1./(q**(g-r)-1)
return oh
if __name__ == '__main__':
print CodingOverhead(2,2)
print CodingOverhead(4,2)
print CodingOverhead(8,2)
print CodingOverhead(16,2)
print CodingOverhead(32,2)
print '\n'
print CodingOverhead(2,2**... | [
[
2,
0,
0.0952,
0.1111,
0,
0.66,
0,
373,
0,
2,
1,
0,
0,
0,
1
],
[
14,
1,
0.0794,
0.0159,
1,
0.71,
0,
264,
1,
0,
0,
0,
0,
1,
0
],
[
6,
1,
0.1032,
0.0317,
1,
0.71,
... | [
"def CodingOverhead(g,q):\n\n\toh=0\n\tfor r in range(0,g):\n\t\toh+=1./(q**(g-r)-1)\n\n\treturn oh",
"\toh=0",
"\tfor r in range(0,g):\n\t\toh+=1./(q**(g-r)-1)",
"\treturn oh",
"if __name__ == '__main__':\n\n\tprint(CodingOverhead(2,2))\n\tprint(CodingOverhead(4,2))\n\tprint(CodingOverhead(8,2))\n\tprint(C... |
#!/usr/bin/env python
def CodingOverhead(g,q):
oh=0
for r in range(0,g):
oh+=1./(q**(g-r)-1)
return oh
if __name__ == '__main__':
print CodingOverhead(2,2)
print CodingOverhead(4,2)
print CodingOverhead(8,2)
print CodingOverhead(16,2)
print CodingOverhead(32,2)
print '\n'
print CodingOverhead(2,2**... | [
[
2,
0,
0.0952,
0.1111,
0,
0.66,
0,
373,
0,
2,
1,
0,
0,
0,
1
],
[
14,
1,
0.0794,
0.0159,
1,
0.01,
0,
264,
1,
0,
0,
0,
0,
1,
0
],
[
6,
1,
0.1032,
0.0317,
1,
0.01,
... | [
"def CodingOverhead(g,q):\n\n\toh=0\n\tfor r in range(0,g):\n\t\toh+=1./(q**(g-r)-1)\n\n\treturn oh",
"\toh=0",
"\tfor r in range(0,g):\n\t\toh+=1./(q**(g-r)-1)",
"\treturn oh",
"if __name__ == '__main__':\n\n\tprint(CodingOverhead(2,2))\n\tprint(CodingOverhead(4,2))\n\tprint(CodingOverhead(8,2))\n\tprint(C... |
#!/usr/bin/env python
import numpy as np
import pylab as pl
import os.path as osp
import sys
import matplotlib
from matplotlib.font_manager import FontProperties as FP
def poly2(a,b,c,start,end,res):
# x and y data
x=np.arange(start,end,res)
y=[]
# y=ax^2+bx+c NB: kB!
for val in x:
y.append((a*x[val]**2+b*x... | [
[
1,
0,
0.0448,
0.0149,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0597,
0.0149,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0746,
0.0149,
0,
... | [
"import numpy as np",
"import pylab as pl",
"import os.path as osp",
"import sys",
"import matplotlib",
"from matplotlib.font_manager import FontProperties as FP",
"def poly2(a,b,c,start,end,res):\n\n\t# x and y data\n\tx=np.arange(start,end,res)\n\ty=[]\n\n\t# y=ax^2+bx+c NB: kB!\t\n\tfor val in x:",
... |
#!/usr/bin/python
import os
import sys
import commands
files = os.listdir(".")
sys.argv.pop(0)
args = sys.argv
args = ' '.join(args)
cmd = 'git ' + args
for file in files:
if os.path.isdir(file):
if os.path.exists(os.path.join(file, ".git")) and not ((args.startswith('push') or args.startswith('commit')) and fil... | [
[
1,
0,
0.15,
0.05,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2,
0.05,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.25,
0.05,
0,
0.66,
0.25... | [
"import os",
"import sys",
"import commands",
"files = os.listdir(\".\")",
"sys.argv.pop(0)",
"args = sys.argv",
"args = ' '.join(args)",
"cmd = 'git ' + args",
"for file in files:\n\tif os.path.isdir(file):\n\t\tif os.path.exists(os.path.join(file, \".git\")) and not ((args.startswith('push') or ar... |
#!/usr/bin/env python
#encoding: utf-8
import numpy as np
from sys import argv
from math import factorial
from math import gamma
import math
import pylab as pl
def at_least_1_of_z_out_of_x_total_when_y_is_taken(x,y,z):
#
# Critical regions manually handled (math domain problems):
x = int(x)
y = int(y)
z = int... | [
[
1,
0,
0.0471,
0.0118,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0588,
0.0118,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0824,
0.0118,
0,
... | [
"import numpy as np",
"from sys import argv",
"from math import factorial",
"from math import gamma",
"import math",
"import pylab as pl",
"def at_least_1_of_z_out_of_x_total_when_y_is_taken(x,y,z):\n#\n\t# Critical regions manually handled (math domain problems):\n\t\n\tx = int(x)\n\ty = int(y)\n\tz = ... |
#!/usr/bin/python
import os
import sys
import commands
files = os.listdir(".")
sys.argv.pop(0)
args = sys.argv
args = ' '.join(args)
cmd = 'git ' + args
for file in files:
if os.path.isdir(file):
if os.path.exists(os.path.join(file, ".git")) and not ((args.startswith('push') or args.startswith('commit')) and fil... | [
[
1,
0,
0.15,
0.05,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2,
0.05,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.25,
0.05,
0,
0.66,
0.25... | [
"import os",
"import sys",
"import commands",
"files = os.listdir(\".\")",
"sys.argv.pop(0)",
"args = sys.argv",
"args = ' '.join(args)",
"cmd = 'git ' + args",
"for file in files:\n\tif os.path.isdir(file):\n\t\tif os.path.exists(os.path.join(file, \".git\")) and not ((args.startswith('push') or ar... |
#!/usr/bin/env python
import numpy as np
def transition_matrix(generation_size, field_size):
P = np.zeros((generation_size+1, generation_size+1))
for i in range(generation_size):
P[i,i] = 1./(field_size**(generation_size-i))
P[i+1,i] = 1.-P[i,i]
P[generation_size,generation_size] = 1./(field_size**(generati... | [
[
1,
0,
0.06,
0.02,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
2,
0,
0.22,
0.14,
0,
0.66,
0.5,
333,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.18,
0.02,
1,
0.73,
0,
... | [
"import numpy as np",
"def transition_matrix(generation_size, field_size):\n\tP = np.zeros((generation_size+1, generation_size+1))\n\tfor i in range(generation_size):\n\t\tP[i,i] = 1./(field_size**(generation_size-i))\n\t\tP[i+1,i] = 1.-P[i,i]\n\tP[generation_size,generation_size] = 1./(field_size**(generation_si... |
#!/usr/bin/env python
import numpy as np
def transition_matrix(generation_size, field_size):
P = np.zeros((generation_size+1, generation_size+1))
for i in range(generation_size):
P[i,i] = 1./(field_size**(generation_size-i))
P[i+1,i] = 1.-P[i,i]
P[generation_size,generation_size] = 1./(field_size**(generati... | [
[
1,
0,
0.06,
0.02,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
2,
0,
0.22,
0.14,
0,
0.66,
0.5,
333,
0,
2,
1,
0,
0,
0,
3
],
[
14,
1,
0.18,
0.02,
1,
0.7,
0,
... | [
"import numpy as np",
"def transition_matrix(generation_size, field_size):\n\tP = np.zeros((generation_size+1, generation_size+1))\n\tfor i in range(generation_size):\n\t\tP[i,i] = 1./(field_size**(generation_size-i))\n\t\tP[i+1,i] = 1.-P[i,i]\n\tP[generation_size,generation_size] = 1./(field_size**(generation_si... |
#!/usr/bin/env python
#encoding: utf-8
import numpy as np
from sys import argv
from math import factorial
from math import gamma
import math
import pylab as pl
def at_least_1_of_z_out_of_x_total_when_y_is_taken(x,y,z):
#
# Critical regions manually handled (math domain problems):
x = int(x)
y = int(y)
z = int... | [
[
1,
0,
0.0471,
0.0118,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0588,
0.0118,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0824,
0.0118,
0,
... | [
"import numpy as np",
"from sys import argv",
"from math import factorial",
"from math import gamma",
"import math",
"import pylab as pl",
"def at_least_1_of_z_out_of_x_total_when_y_is_taken(x,y,z):\n#\n\t# Critical regions manually handled (math domain problems):\n\t\n\tx = int(x)\n\ty = int(y)\n\tz = ... |
# 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 or agreed to in writing, ... | [
[
14,
0,
0.3409,
0.0227,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3864,
0.0227,
0,
0.66,
0.2,
976,
0,
1,
0,
0,
976,
0,
0
],
[
2,
0,
0.4886,
0.0909,
0,
0.66... | [
"__author__ = 'damonkohler@google.com (Damon Kohler)'",
"from docutils import nodes",
"def make_roswiki_link(name, rawtext, text, lineno, inliner, options={}, content=[]):\n refuri = 'http://ros.org/wiki/' + text\n node = nodes.reference(rawtext, text, refuri=refuri, **options)\n return [node], []",
" ref... |
# 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 or agreed to in writing, ... | [
[
14,
0,
0.4054,
0.027,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4595,
0.027,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.5135,
0.027,
0,
0.66,
... | [
"__author__ = 'damonkohler@google.com (Damon Kohler)'",
"import os",
"from docutils import nodes, utils",
"def make_javadoc_link(name, rawtext, text, lineno, inliner, options={}, content=[]):\n env = inliner.document.settings.env\n javadoc_root = env.config.javadoc_root\n class_part, method_part = (text.sp... |
#!/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 or ag... | [
[
8,
0,
0.527,
0.1622,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.6486,
0.027,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.7027,
0.027,
0,
0.66,
0... | [
"\"\"\"Prints the serialized bytese of a nav_msgs.Odometry message in hex.\n\nThis can be modified slightly to print the serialized bytes in hex for\narbitrary ROS messages and is useful for generating test cases for rosjava\nmessage serialization.\n\"\"\"",
"__author__ = 'damonkohler@google.com (Damon Kohler)'",... |
#!/usr/bin/env python
from ros import rospy
from ros import test_ros
import test_ros.msg
def publisher():
rospy.init_node('testheader_publisher')
pub = rospy.Publisher('test_header_in', test_ros.msg.TestHeader)
r = rospy.Rate(10)
m = test_ros.msg.TestHeader()
m.caller_id = rospy.get_name()
m.header.stamp =... | [
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0.25,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.2222,
0.0556,
0,
0.... | [
"from ros import rospy",
"from ros import test_ros",
"import test_ros.msg",
"def publisher():\n rospy.init_node('testheader_publisher')\n pub = rospy.Publisher('test_header_in', test_ros.msg.TestHeader)\n r = rospy.Rate(10)\n m = test_ros.msg.TestHeader()\n m.caller_id = rospy.get_name()\n m.header.stam... |
#!/usr/bin/env python
from ros import rospy
from ros import test_ros
import test_ros.msg
import random
def publisher():
rospy.init_node('composite_publisher')
pub = rospy.Publisher('composite_in', test_ros.msg.Composite)
r = rospy.Rate(10)
m = test_ros.msg.Composite()
m.a.x = random.random() * 10000.
m.a.y... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.2,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.6... | [
"from ros import rospy",
"from ros import test_ros",
"import test_ros.msg",
"import random",
"def publisher():\n rospy.init_node('composite_publisher')\n pub = rospy.Publisher('composite_in', test_ros.msg.Composite)\n r = rospy.Rate(10)\n m = test_ros.msg.Composite()\n m.a.x = random.random() * 10000.\... |
#!/usr/bin/env python
from ros import rospy
from ros import std_msgs
import std_msgs.msg
def publisher():
rospy.init_node('int64_publisher')
pub = rospy.Publisher('int64_in', std_msgs.msg.Int64)
i = 0
r = rospy.Rate(10)
m = std_msgs.msg.Int64(i)
while not rospy.is_shutdown():
pub.publish(m)
i += 1
... | [
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0.25,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.2105,
0.0526,
0,
0.... | [
"from ros import rospy",
"from ros import std_msgs",
"import std_msgs.msg",
"def publisher():\n rospy.init_node('int64_publisher')\n pub = rospy.Publisher('int64_in', std_msgs.msg.Int64)\n i = 0\n r = rospy.Rate(10)\n m = std_msgs.msg.Int64(i)\n while not rospy.is_shutdown():\n pub.publish(m)",
" ... |
#!/usr/bin/env python
from ros import rospy
from ros import std_msgs
import std_msgs.msg
def publisher():
rospy.init_node('string_publisher')
pub = rospy.Publisher('string_in', std_msgs.msg.String)
m = std_msgs.msg.String(rospy.get_name())
r = rospy.Rate(10)
while not rospy.is_shutdown():
pub.publish(m)
... | [
[
1,
0,
0.125,
0.0625,
0,
0.66,
0,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.1875,
0.0625,
0,
0.66,
0.25,
673,
0,
1,
0,
0,
673,
0,
0
],
[
1,
0,
0.25,
0.0625,
0,
0.66,... | [
"from ros import rospy",
"from ros import std_msgs",
"import std_msgs.msg",
"def publisher():\n rospy.init_node('string_publisher')\n pub = rospy.Publisher('string_in', std_msgs.msg.String)\n m = std_msgs.msg.String(rospy.get_name())\n r = rospy.Rate(10)\n while not rospy.is_shutdown():\n pub.publish(... |
#!/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 or ag... | [
[
1,
0,
0.3091,
0.0182,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.3455,
0.0182,
0,
0.66,
0.1429,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3455,
0.0182,
0,
0.... | [
"import threading",
"import roslib; roslib.load_manifest('rosjava_benchmarks')",
"import roslib; roslib.load_manifest('rosjava_benchmarks')",
"import rospy",
"import tf.msg as tf_msgs",
"import std_msgs.msg as std_msgs",
"class PubsubBenchmark(object):\n\n def __init__(self):\n self.count = itertool... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | [
[
1,
0,
0.2,
0.0111,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2111,
0.0111,
0,
0.66,
0.0625,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.2611,
0.0444,
0,
0.6... | [
"import os",
"import sys",
"try:\n from urlparse import parse_qsl\nexcept:\n from cgi import parse_qsl",
" from urlparse import parse_qsl",
" from cgi import parse_qsl",
"import oauth2 as oauth",
"REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'",
"ACCESS_TOKEN_URL = 'https://api... |
#!/usr/bin/python2.4
'''Post a message to twitter'''
__author__ = 'dewitt@google.com'
import ConfigParser
import getopt
import os
import sys
import twitter
USAGE = '''Usage: tweet [options] message
This script posts a message to Twitter.
Options:
-h --help : print this help
--consumer-key : the twit... | [
[
8,
0,
0.0213,
0.0071,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0355,
0.0071,
0,
0.66,
0.0667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0496,
0.0071,
0,
0.66,... | [
"'''Post a message to twitter'''",
"__author__ = 'dewitt@google.com'",
"import ConfigParser",
"import getopt",
"import os",
"import sys",
"import twitter",
"USAGE = '''Usage: tweet [options] message\n\n This script posts a message to Twitter.\n\n Options:\n\n -h --help : print this help\n --co... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | [
[
8,
0,
0.2606,
0.0563,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3099,
0.0141,
0,
0.66,
0.5,
614,
0,
1,
0,
0,
614,
0,
0
],
[
3,
0,
0.7535,
0.507,
0,
0.66,
... | [
"'''A class that defines the default URL Shortener.\n\nTinyURL is provided as the default and as an example.\n'''",
"import urllib",
"class ShortenURL(object):\n '''Helper class to make URL Shortener calls if/when required'''\n def __init__(self,\n userid=None,\n password=N... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | [
[
8,
0,
0.2329,
0.0137,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2603,
0.0137,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.274,
0.0137,
0,
0.66,
... | [
"'''The setup and build script for the python-twitter library.'''",
"__author__ = 'python-twitter@googlegroups.com'",
"__version__ = '0.8.3'",
"METADATA = dict(\n name = \"python-twitter\",\n version = __version__,\n py_modules = ['twitter'],\n author='The Python-Twitter Developers',\n author_email='pyth... |
"""JSON token scanner
"""
import re
try:
from simplejson._speedups import make_scanner as c_make_scanner
except ImportError:
c_make_scanner = None
__all__ = ['make_scanner']
NUMBER_RE = re.compile(
r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',
(re.VERBOSE | re.MULTILINE | re.DOTALL))
def py_make_scan... | [
[
8,
0,
0.0231,
0.0308,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0462,
0.0154,
0,
0.66,
0.1667,
540,
0,
1,
0,
0,
540,
0,
0
],
[
7,
0,
0.0846,
0.0615,
0,
0.66... | [
"\"\"\"JSON token scanner\n\"\"\"",
"import re",
"try:\n from simplejson._speedups import make_scanner as c_make_scanner\nexcept ImportError:\n c_make_scanner = None",
" from simplejson._speedups import make_scanner as c_make_scanner",
" c_make_scanner = None",
"__all__ = ['make_scanner']",
... |
"""Implementation of JSONEncoder
"""
import re
try:
from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
try:
from simplejson._speedups import make_encoder as c_make_encoder
except ImportError:
c_make_encoder = None
... | [
[
8,
0,
0.0035,
0.0046,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0069,
0.0023,
0,
0.66,
0.0667,
540,
0,
1,
0,
0,
540,
0,
0
],
[
7,
0,
0.015,
0.0092,
0,
0.66,... | [
"\"\"\"Implementation of JSONEncoder\n\"\"\"",
"import re",
"try:\n from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii\nexcept ImportError:\n c_encode_basestring_ascii = None",
" from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii",... |
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`simplejson` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is the externally maintained
version of ... | [
[
8,
0,
0.1582,
0.3133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3165,
0.0032,
0,
0.66,
0.1,
162,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3244,
0.0127,
0,
0.66,
... | [
"r\"\"\"JSON (JavaScript Object Notation) <http://json.org> is a subset of\nJavaScript syntax (ECMA-262 3rd edition) used as a lightweight data\ninterchange format.\n\n:mod:`simplejson` exposes an API familiar to users of the standard library\n:mod:`marshal` and :mod:`pickle` modules. It is the externally maintaine... |
#!/usr/bin/env pypy
import os, sys, logging, re
import argparse
import fnmatch
configurations = {'lite', 'pro'}
package_dirs = {
'lite': ('src/cx/hell/android/pdfview',),
'pro': ('src/cx/hell/android/pdfviewpro',)
}
file_replaces = {
'lite': (
'cx.hell.android.pdfview.',
'"cx.hell.an... | [
[
1,
0,
0.014,
0.0047,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
1,
0,
0.0187,
0.0047,
0,
0.66,
0.0526,
325,
0,
1,
0,
0,
325,
0,
0
],
[
1,
0,
0.0234,
0.0047,
0,
0... | [
"import os, sys, logging, re",
"import argparse",
"import fnmatch",
"configurations = {'lite', 'pro'}",
"package_dirs = {\n 'lite': ('src/cx/hell/android/pdfview',),\n 'pro': ('src/cx/hell/android/pdfviewpro',)\n}",
"file_replaces = {\n 'lite': (\n 'cx.hell.android.pdfview.',\n '\"c... |
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python
import codecs
import re
import jinja2
import markdown
def process_slides():
with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile:
md = codecs.open('slides.md', encoding='utf8').read()
md_slides = md.split('\n---\n')... | [
[
1,
0,
0.0377,
0.0189,
0,
0.66,
0,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0566,
0.0189,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0755,
0.0189,
0,
... | [
"import codecs",
"import re",
"import jinja2",
"import markdown",
"def process_slides():\n with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile:\n md = codecs.open('slides.md', encoding='utf8').read()\n md_slides = md.split('\\n---\\n')\n print(len(md_slides))\n\n slides = ... |
#!/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.1,
... | [
"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
# t... | [
[
1,
0,
0.7931,
0.0345,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.931,
0.1724,
0,
0.66,
1,
794,
0,
1,
0,
0,
94,
0,
2
],
[
2,
1,
0.9655,
0.1034,
1,
0.1,
... | [
"from handlers.BaseHandler import *",
"class Static(BaseHandler):\n\n\tdef execute(self):\n\t\ttemplate = self.request.path.split('/', 2)[2]\n\t\tself.render('templates/static/%s' % template)",
"\tdef execute(self):\n\t\ttemplate = self.request.path.split('/', 2)[2]\n\t\tself.render('templates/static/%s' % temp... |
#!/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.47,
... | [
"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 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 Public License as published by
# the Free Software Founda... | [
[
1,
0,
0.1513,
0.0066,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1579,
0.0066,
0,
0.66,
0.0909,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1645,
0.0066,
0,
... | [
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.api import memcache",
"from google.appengine.ext.webapp import template",
"from handlers.BaseHandler import *",
"from utilities.AppProperties import AppProperties",
"UPDATER_VERSION = \"0.8\"",
"de... |
#!/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.0632,
0.0026,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0658,
0.0026,
0,
0.66,
0.2,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0684,
0.0026,
0,
0.6... | [
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import template",
"from handlers.BaseHandler import *",
"class Initialization(BaseHandler):\n\n\tdef get(self):\n\t\tself.response.headers['Content-Type'] = 'text/plain'\n\t\t\n\t\tapp = model... |
#!/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.67,
... | [
"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 ... | [
[
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,
116,
0,
1,
0,
0,
94,
0,
3
],
[
2,
1,
0.9091,
0.2121,
1,
0.75,
... | [
"from handlers.BaseHandler import *",
"class AuthenticatedHandler(BaseHandler):\n\n\tdef pre_execute(self):\n\t\tuser = self.get_current_user()\n\t\t#user = self.values['user']\n\t\tif not user:\n\t\t\tself.redirect(self.values['login'])\n\t\t\treturn",
"\tdef pre_execute(self):\n\t\tuser = self.get_current_use... |
#!/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.92,
... | [
"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>
# (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.2243,
0.0093,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.2336,
0.0093,
0,
0.66,
0.25,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.2523,
0.0093,
0,
0.... | [
"import model",
"import logging",
"from google.appengine.api import memcache",
"from google.appengine.ext import webapp",
"class ImageDisplayer(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tcached = memcache.get(self.request.path)\n\t\t\n\t\tparams = self.request.path.split('/')\n\t\tif params[2] == '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.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.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 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 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.1465,
0.0064,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.1529,
0.0064,
0,
0.66,
0.3333,
386,
0,
1,
0,
0,
386,
0,
0
],
[
1,
0,
0.1656,
0.0064,
0,
... | [
"import model",
"import simplejson",
"from google.appengine.ext import webapp",
"class TaskQueue(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tself.response.headers['Content-Type'] = 'text/plain;charset=utf-8'\n\t\t\n\t\ttask = model.Task.all().order('-priority').get()\n\t\t\n\t\tif not task:",
"\tdef ge... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.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.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.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.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.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 ... | [
[
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 ... | [
[
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.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 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.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.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.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.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.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.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.43,
... | [
"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.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 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 Foundation... | [
[
1,
0,
0.3607,
0.0164,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.377,
0.0164,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7049,
0.5738,
0,
0.66... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumSubscribe( AuthenticatedHandler ):\n\n\tdef execute(self):\n\t\tkey = self.get_param('key')#TODO if key is empty app crashed\n\t\tthread = model.Thread.get(key)\n\t\tmemcache.delete(str(thread.key().id()) ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.5227,
0.0227,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7841,
0.4545,
0,
0.66,
1,
855,
0,
1,
0,
0,
116,
0,
11
],
[
2,
1,
0.8068,
0.4091,
1,
0.04... | [
"from handlers.AuthenticatedHandler import *",
"class CommunityArticleDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('article'))\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not article or not community:\n\t\t\tself.not_found()\n\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1361,
0.0059,
0,
0.66,
0,
200,
0,
1,
0,
0,
200,
0,
0
],
[
1,
0,
0.1479,
0.0059,
0,
0.66,
0.2,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.1538,
0.0059,
0,
0.6... | [
"import img",
"from google.appengine.api import images",
"from google.appengine.ext import db",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"class CommunityEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1292,
0.0056,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1348,
0.0056,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.573,
0.8596,
0,
0.66... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityMove(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn",
"\tdef execute(self):... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.6389,
0.0278,
0,
0.66,
0,
250,
0,
1,
0,
0,
250,
0,
0
],
[
3,
0,
0.8472,
0.3333,
0,
0.66,
1,
858,
0,
1,
0,
0,
138,
0,
10
],
[
2,
1,
0.875,
0.2778,
1,
0.12,... | [
"from handlers.BaseRest import *",
"class CommunityForumVisit(BaseRest):\n\n\tdef get(self):\n\t\tthread_id = self.request.get('id')\n\t\tmemcache.delete(thread_id + '_thread')\n\t\tthread = model.Thread.get_by_id(int(thread_id))\n\t\tthread.views += 1\n\t\tthread.put()",
"\tdef get(self):\n\t\tthread_id = self... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1554,
0.0068,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1689,
0.0068,
0,
0.66,
0.1667,
155,
0,
1,
0,
0,
155,
0,
0
],
[
1,
0,
0.1757,
0.0068,
0,
... | [
"import datetime",
"from google.appengine.runtime import apiproxy_errors",
"from google.appengine.ext import db",
"from google.appengine.api import mail",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumReply(AuthenticatedHandler):\n\n\tde... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.575,
0.025,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.6,
0.025,
0,
0.66,
0.5,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.825,
0.375,
0,
0.66,
1... | [
"from google.appengine.ext import db",
"from handlers.BaseHandler import *",
"class CommunityArticleList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path)... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.5,
0.0227,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.5227,
0.0227,
0,
0.66,
0.5,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.7841,
0.4545,
0,
0.66,
... | [
"from google.appengine.ext import db",
"from handlers.BaseHandler import *",
"class CommunityForumList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).g... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1655,
0.0072,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1727,
0.0072,
0,
0.66,
0.1429,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1871,
0.0072,
0,
... | [
"import logging",
"import datetime",
"from google.appengine.runtime import apiproxy_errors",
"from google.appengine.ext import db",
"from google.appengine.api import mail",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumEdit(Authenticat... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.377,
0.0164,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7049,
0.6066,
0,
0.66,
1,
108,
0,
1,
0,
0,
116,
0,
17
],
[
2,
1,
0.7213,
0.5738,
1,
0.07,... | [
"from handlers.AuthenticatedHandler import *",
"class CommunityUserJoin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not community:\n\t\t\tself.not_found()\n\t\t\treturn",
"\tdef execute(self):\n\t\tuser ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2323,
0.0101,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.2424,
0.0101,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6212,
0.7273,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumView(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tuser = self.values['user']\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tthread_id = self.reques... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.5,
0.0217,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.5217,
0.0217,
0,
0.66,
0.5,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.7826,
0.4565,
0,
0.66,
... | [
"from google.appengine.ext import db",
"from handlers.BaseHandler import *",
"class CommunityView(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).get()\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.3151,
0.0137,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.3288,
0.0137,
0,
0.66,
0.25,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.3425,
0.0137,
0,
0.... | [
"import logging",
"from google.appengine.api import mail",
"from handlers.AuthenticatedHandler import *",
"from google.appengine.runtime import apiproxy_errors",
"class CommunityNewArticle(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('article'))\n\t\tcommuni... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2347,
0.0102,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.2449,
0.0102,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6276,
0.7347,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumMove(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn",
"\tdef execute(s... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.4259,
0.0185,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7315,
0.5556,
0,
0.66,
1,
707,
0,
1,
0,
0,
116,
0,
17
],
[
2,
1,
0.75,
0.5185,
1,
0.27,
... | [
"from handlers.AuthenticatedHandler import *",
"class CommunityUserUnjoin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tcommunity = model.Community.get(self.get_param('community'))\n\t\tif not community:\n\t\t\tself.not_found()\n\t\t\treturn",
"\tdef execute(self):\n\t\tuse... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any... | [
[
1,
0,
0.3194,
0.0139,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.3472,
0.0139,
0,
0.66,
0.3333,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.3611,
0.0139,
0,
... | [
"import datetime",
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityForumDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn",
"\tdef execute(self):\n\t\t... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.575,
0.025,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.6,
0.025,
0,
0.66,
0.5,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.825,
0.375,
0,
0.66,
1... | [
"from google.appengine.ext import db",
"from handlers.BaseHandler import *",
"class CommunityUserList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tcommunity = model.Community.gql('WHERE url_path=:1', url_path).ge... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.4615,
0.0192,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.4808,
0.0192,
0,
0.66,
0.3333,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.5,
0.0192,
0,
0.6... | [
"from google.appengine.ext import db",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"class CommunityDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\t\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn",
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2347,
0.0102,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.2449,
0.0102,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6327,
0.7449,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class CommunityThreadEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')",
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.4259,
0.0185,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.7315,
0.5556,
0,
0.66,
1,
979,
0,
1,
0,
0,
94,
0,
12
],
[
2,
1,
0.75,
0.5185,
1,
0.38,
... | [
"from handlers.BaseHandler import *",
"class CommunityList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/community.list'\n\t\tquery = model.Community.all()\n\t\tkey = '%s?%s' % (self.request.path, self.request.query)\n\t\t\n\t\tcat = self.get_param('cat')",
"\tdef execute(self):\n\t\t... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (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>
#
# 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.04,
... | [
"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>
#
# 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.21... | [
"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>
# 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>
# (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\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.