code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
import os
from Tkinter import *
from Tkconstants import W, E
import Tkinter as tk
from tkMessageBox import askyesnocancel
from multiprocessing import freeze_support
from globalconst import *
from aboutbox import AboutBox
from setupboard import SetupBoard
from gamemanager import GameManager
from centeredwindow... | [
[
1,
0,
0.0053,
0.0053,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0107,
0.0053,
0,
0.66,
0.0714,
368,
0,
1,
0,
0,
368,
0,
0
],
[
1,
0,
0.016,
0.0053,
0,
0... | [
"import os",
"from Tkinter import *",
"from Tkconstants import W, E",
"import Tkinter as tk",
"from tkMessageBox import askyesnocancel",
"from multiprocessing import freeze_support",
"from globalconst import *",
"from aboutbox import AboutBox",
"from setupboard import SetupBoard",
"from gamemanage... |
from globalconst import BLACK, WHITE, MAN, KING
from goalevaluator import GoalEvaluator
from onekingattack import Goal_OneKingAttack
class OneKingAttackOneKingEvaluator(GoalEvaluator):
def __init__(self, bias):
GoalEvaluator.__init__(self, bias)
def calculateDesirability(self, board):
... | [
[
1,
0,
0.0145,
0.0145,
0,
0.66,
0,
871,
0,
4,
0,
0,
871,
0,
0
],
[
1,
0,
0.029,
0.0145,
0,
0.66,
0.25,
37,
0,
1,
0,
0,
37,
0,
0
],
[
1,
0,
0.0435,
0.0145,
0,
0.66,... | [
"from globalconst import BLACK, WHITE, MAN, KING",
"from goalevaluator import GoalEvaluator",
"from onekingattack import Goal_OneKingAttack",
"class OneKingAttackOneKingEvaluator(GoalEvaluator):\n def __init__(self, bias):\n GoalEvaluator.__init__(self, bias)\n\n def calculateDesirability(self, b... |
from Tkinter import *
class CenteredWindow:
def __init__(self, root):
self.root = root
self.root.after_idle(self.center_on_screen)
self.root.update()
def center_on_screen(self):
self.root.update_idletasks()
sw = self.root.winfo_screenwidth()
sh = self... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
3,
0,
0.5938,
0.875,
0,
0.66,
1,
592,
0,
2,
0,
0,
0,
0,
8
],
[
2,
1,
0.3438,
0.25,
1,
0.19,
... | [
"from Tkinter import *",
"class CenteredWindow:\n def __init__(self, root):\n self.root = root\n self.root.after_idle(self.center_on_screen)\n self.root.update()\n\n def center_on_screen(self):\n self.root.update_idletasks()",
" def __init__(self, root):\n self.root =... |
import sys
from goal import Goal
from composite import CompositeGoal
class Goal_OneKingFlee(CompositeGoal):
def __init__(self, owner):
CompositeGoal.__init__(self, owner)
def activate(self):
self.status = self.ACTIVE
self.removeAllSubgoals()
# because goals are *push... | [
[
1,
0,
0.0095,
0.0095,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.019,
0.0095,
0,
0.66,
0.2,
914,
0,
1,
0,
0,
914,
0,
0
],
[
1,
0,
0.0286,
0.0095,
0,
0.66... | [
"import sys",
"from goal import Goal",
"from composite import CompositeGoal",
"class Goal_OneKingFlee(CompositeGoal):\n def __init__(self, owner):\n CompositeGoal.__init__(self, owner)\n\n def activate(self):\n self.status = self.ACTIVE\n self.removeAllSubgoals()\n # because ... |
class Move(object):
def __init__(self, squares, annotation=''):
self.affected_squares = squares
self.annotation = annotation
def __repr__(self):
return str(self.affected_squares)
| [
[
3,
0,
0.5714,
1,
0,
0.66,
0,
512,
0,
2,
0,
0,
186,
0,
1
],
[
2,
1,
0.4286,
0.4286,
1,
0.24,
0,
555,
0,
3,
0,
0,
0,
0,
0
],
[
14,
2,
0.4286,
0.1429,
2,
0.14,
0... | [
"class Move(object):\n def __init__(self, squares, annotation=''):\n self.affected_squares = squares\n self.annotation = annotation\n\n def __repr__(self):\n return str(self.affected_squares)",
" def __init__(self, squares, annotation=''):\n self.affected_squares = squares\n ... |
from Tkinter import *
from tkSimpleDialog import Dialog
from globalconst import *
class AboutBox(Dialog):
def body(self, master):
self.canvas = Canvas(self, width=300, height=275)
self.canvas.pack(side=TOP, fill=BOTH, expand=0)
self.canvas.create_text(152,47,text='Raven', fill='blac... | [
[
1,
0,
0.0196,
0.0196,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
1,
0,
0.0392,
0.0196,
0,
0.66,
0.3333,
774,
0,
1,
0,
0,
774,
0,
0
],
[
1,
0,
0.0588,
0.0196,
0,
... | [
"from Tkinter import *",
"from tkSimpleDialog import Dialog",
"from globalconst import *",
"class AboutBox(Dialog):\n def body(self, master):\n self.canvas = Canvas(self, width=300, height=275)\n self.canvas.pack(side=TOP, fill=BOTH, expand=0)\n self.canvas.create_text(152,47,text='Rav... |
from Tkinter import Widget
from controller import Controller
from globalconst import *
class PlayerController(Controller):
def __init__(self, **props):
self._model = props['model']
self._view = props['view']
self._before_turn_event = None
self._end_turn_event = props['end_t... | [
[
1,
0,
0.0092,
0.0092,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
1,
0,
0.0183,
0.0092,
0,
0.66,
0.3333,
360,
0,
1,
0,
0,
360,
0,
0
],
[
1,
0,
0.0275,
0.0092,
0,
... | [
"from Tkinter import Widget",
"from controller import Controller",
"from globalconst import *",
"class PlayerController(Controller):\n def __init__(self, **props):\n self._model = props['model']\n self._view = props['view']\n self._before_turn_event = None\n self._end_turn_event... |
from abc import ABCMeta, abstractmethod
class GoalEvaluator(object):
__metaclass__ = ABCMeta
def __init__(self, bias):
self.bias = bias
@abstractmethod
def calculateDesirability(self, board):
pass
@abstractmethod
def setGoal(self, board):
pass
... | [
[
1,
0,
0.0556,
0.0556,
0,
0.66,
0,
38,
0,
2,
0,
0,
38,
0,
0
],
[
3,
0,
0.5556,
0.7222,
0,
0.66,
1,
985,
0,
3,
0,
0,
186,
0,
0
],
[
14,
1,
0.2778,
0.0556,
1,
0.17,
... | [
"from abc import ABCMeta, abstractmethod",
"class GoalEvaluator(object):\n __metaclass__ = ABCMeta\n\n def __init__(self, bias):\n self.bias = bias\n\n @abstractmethod\n def calculateDesirability(self, board):",
" __metaclass__ = ABCMeta",
" def __init__(self, bias):\n self.bia... |
from Tkinter import *
from time import time, localtime, strftime
class ToolTip( Toplevel ):
"""
Provides a ToolTip widget for Tkinter.
To apply a ToolTip to any Tkinter widget, simply pass the widget to the
ToolTip constructor
"""
def __init__( self, wdgt, msg=None, msgFunc=None, delay=1, foll... | [
[
1,
0,
0.0066,
0.0066,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
1,
0,
0.0132,
0.0066,
0,
0.66,
0.1429,
654,
0,
3,
0,
0,
654,
0,
0
],
[
3,
0,
0.3059,
0.5658,
0,
... | [
"from Tkinter import *",
"from time import time, localtime, strftime",
"class ToolTip( Toplevel ):\n \"\"\"\n Provides a ToolTip widget for Tkinter.\n To apply a ToolTip to any Tkinter widget, simply pass the widget to the\n ToolTip constructor\n \"\"\" \n def __init__( self, wdgt, msg=None, m... |
class Command(object):
def __init__(self, **props):
self.add = props.get('add') or []
self.remove = props.get('remove') or []
| [
[
3,
0,
0.625,
1,
0,
0.66,
0,
73,
0,
1,
0,
0,
186,
0,
2
],
[
2,
1,
0.75,
0.75,
1,
0.87,
0,
555,
0,
2,
0,
0,
0,
0,
2
],
[
14,
2,
0.75,
0.25,
2,
0.53,
0,
231,... | [
"class Command(object):\n def __init__(self, **props):\n self.add = props.get('add') or []\n self.remove = props.get('remove') or []",
" def __init__(self, **props):\n self.add = props.get('add') or []\n self.remove = props.get('remove') or []",
" self.add = props.get('a... |
from globalconst import BLACK, WHITE, KING
import checkers
class Operator(object):
pass
class OneKingAttackOneKing(Operator):
def precondition(self, board):
plr_color = board.to_move
opp_color = board.enemy
return (board.count(plr_color) == 1 and board.count(opp_color) == 1 a... | [
[
1,
0,
0.0111,
0.0111,
0,
0.66,
0,
871,
0,
3,
0,
0,
871,
0,
0
],
[
1,
0,
0.0222,
0.0111,
0,
0.66,
0.1667,
901,
0,
1,
0,
0,
901,
0,
0
],
[
3,
0,
0.05,
0.0222,
0,
0.... | [
"from globalconst import BLACK, WHITE, KING",
"import checkers",
"class Operator(object):\n pass",
"class OneKingAttackOneKing(Operator):\n def precondition(self, board):\n plr_color = board.to_move\n opp_color = board.enemy\n return (board.count(plr_color) == 1 and board.count(opp_... |
class Controller(object):
def stop_process(self):
pass
| [
[
3,
0,
0.6,
0.6,
0,
0.66,
0,
93,
0,
1,
0,
0,
186,
0,
0
],
[
2,
1,
0.7,
0.4,
1,
0.88,
0,
116,
0,
1,
0,
0,
0,
0,
0
]
] | [
"class Controller(object):\n def stop_process(self):\n pass",
" def stop_process(self):\n pass"
] |
from abc import ABCMeta, abstractmethod
class Goal:
__metaclass__ = ABCMeta
INACTIVE = 0
ACTIVE = 1
COMPLETED = 2
FAILED = 3
def __init__(self, owner):
self.owner = owner
self.status = self.INACTIVE
@abstractmethod
def activate(self):
pass
... | [
[
1,
0,
0.0256,
0.0256,
0,
0.66,
0,
38,
0,
2,
0,
0,
38,
0,
0
],
[
3,
0,
0.5385,
0.9487,
0,
0.66,
1,
302,
0,
8,
0,
0,
0,
0,
1
],
[
14,
1,
0.1026,
0.0256,
1,
0.55,
... | [
"from abc import ABCMeta, abstractmethod",
"class Goal:\n __metaclass__ = ABCMeta\n\n INACTIVE = 0\n ACTIVE = 1\n COMPLETED = 2\n FAILED = 3",
" __metaclass__ = ABCMeta",
" INACTIVE = 0",
" ACTIVE = 1",
" COMPLETED = 2",
" FAILED = 3",
" def __init__(self, owner):\n ... |
from Tkinter import *
from ttk import Checkbutton
from tkSimpleDialog import Dialog
from globalconst import *
class SetupBoard(Dialog):
def __init__(self, parent, title, gameManager):
self._master = parent
self._manager = gameManager
self._load_entry_box_vars()
self.result... | [
[
1,
0,
0.0046,
0.0046,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
1,
0,
0.0093,
0.0046,
0,
0.66,
0.25,
718,
0,
1,
0,
0,
718,
0,
0
],
[
1,
0,
0.0139,
0.0046,
0,
0.... | [
"from Tkinter import *",
"from ttk import Checkbutton",
"from tkSimpleDialog import Dialog",
"from globalconst import *",
"class SetupBoard(Dialog):\n def __init__(self, parent, title, gameManager):\n self._master = parent\n self._manager = gameManager\n self._load_entry_box_vars()\n... |
from Tkinter import *
class HyperlinkManager(object):
def __init__(self, textWidget, linkFunc):
self.txt = textWidget
self.linkfunc = linkFunc
self.txt.tag_config('hyper', foreground='blue', underline=1)
self.txt.tag_bind('hyper', '<Enter>', self._enter)
self.txt.tag... | [
[
1,
0,
0.0303,
0.0303,
0,
0.66,
0,
368,
0,
1,
0,
0,
368,
0,
0
],
[
3,
0,
0.5455,
0.9394,
0,
0.66,
1,
220,
0,
6,
0,
0,
186,
0,
11
],
[
2,
1,
0.2273,
0.2424,
1,
0.7,... | [
"from Tkinter import *",
"class HyperlinkManager(object):\n def __init__(self, textWidget, linkFunc):\n self.txt = textWidget\n self.linkfunc = linkFunc\n self.txt.tag_config('hyper', foreground='blue', underline=1)\n self.txt.tag_bind('hyper', '<Enter>', self._enter)\n self.... |
class DocNode(object):
"""
A node in the document.
"""
def __init__(self, kind='', parent=None, content=None):
self.children = []
self.parent = parent
self.kind = kind
self.content = content
if self.parent is not None:
self.parent.children.append(self... | [
[
3,
0,
0.5417,
1,
0,
0.66,
0,
61,
0,
1,
0,
0,
186,
0,
1
],
[
8,
1,
0.25,
0.25,
1,
0.45,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
1,
0.75,
0.5833,
1,
0.45,
1,
555,... | [
"class DocNode(object):\n \"\"\"\n A node in the document.\n \"\"\"\n\n def __init__(self, kind='', parent=None, content=None):\n self.children = []\n self.parent = parent",
" \"\"\"\n A node in the document.\n \"\"\"",
" def __init__(self, kind='', parent=None, content=Non... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
1,
0,
0.0213,
0.0213,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.2,
630,
0,
1,
0,
0,
630,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
0.6... | [
"import os",
"from fckutil import *",
"from fckcommands import * \t# default command's implementation",
"from fckconnector import FCKeditorConnectorBase # import base connector",
"import config as Config",
"class FCKeditorQuickUpload(\tFCKeditorConnectorBase,\n\t\t\t\t\t\t\tUploadFileCommandMixin,\n\t\t\t... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
8,
0,
0.1176,
0.1933,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2269,
0.0084,
0,
0.66,
0.1429,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.2353,
0.0084,
0,
0.66... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"from time import gmtime, strftime",
"import string",
"def escape(text, replac... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
1,
0,
0.0213,
0.0213,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.2,
630,
0,
1,
0,
0,
630,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
0.6... | [
"import os",
"from fckutil import *",
"from fckcommands import * \t# default command's implementation",
"from fckconnector import FCKeditorConnectorBase # import base connector",
"import config as Config",
"class FCKeditorQuickUpload(\tFCKeditorConnectorBase,\n\t\t\t\t\t\t\tUploadFileCommandMixin,\n\t\t\t... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
8,
0,
0.1667,
0.2778,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3111,
0.0111,
0,
0.66,
0.1429,
934,
0,
2,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.0111,
0,
0.66... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"import cgi, os",
"from fckutil import *",
"from fckcommands import * \t# defa... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
8,
0,
0.2586,
0.431,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5,
0.0172,
0,
0.66,
0.2,
385,
0,
1,
0,
0,
385,
0,
0
],
[
1,
0,
0.5172,
0.0172,
0,
0.66,
0... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"from connector import FCKeditorConnector",
"from upload import FCKeditorQuickUp... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.0127,
0.0127,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.038,
0.0127,
0,
0.66,
0.1667,
630,
0,
1,
0,
0,
630,
0,
0
],
[
1,
0,
0.0506,
0.0127,
0,
0... | [
"import os",
"from fckutil import *",
"from fckcommands import * \t# default command's implementation",
"from fckoutput import * \t# base http, xml and html output mixins",
"from fckconnector import FCKeditorConnectorBase # import base connector",
"import config as Config",
"class FCKeditorConnector(\tF... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
8,
0,
0.1176,
0.1933,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2269,
0.0084,
0,
0.66,
0.1429,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.2353,
0.0084,
0,
0.66... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"from time import gmtime, strftime",
"import string",
"def escape(text, replac... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | [
[
8,
0,
0.1667,
0.2778,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3111,
0.0111,
0,
0.66,
0.1429,
934,
0,
2,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.0111,
0,
0.66... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"import cgi, os",
"from fckutil import *",
"from fckcommands import * \t# defa... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
8,
0,
0.2586,
0.431,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5,
0.0172,
0,
0.66,
0.2,
385,
0,
1,
0,
0,
385,
0,
0
],
[
1,
0,
0.5172,
0.0172,
0,
0.66,
0... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"from connector import FCKeditorConnector",
"from upload import FCKeditorQuickUp... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.0127,
0.0127,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.038,
0.0127,
0,
0.66,
0.1667,
630,
0,
1,
0,
0,
630,
0,
0
],
[
1,
0,
0.0506,
0.0127,
0,
0... | [
"import os",
"from fckutil import *",
"from fckcommands import * \t# default command's implementation",
"from fckoutput import * \t# base http, xml and html output mixins",
"from fckconnector import FCKeditorConnectorBase # import base connector",
"import config as Config",
"class FCKeditorConnector(\tF... |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.3333,
0.3333,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.6667,
0.3333,
0,
0.66,
1,
688,
0,
1,
0,
0,
688,
0,
0
]
] | [
"import cgi",
"import os"
] |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.2,
0.2,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.4,
0.2,
0,
0.66,
0.5,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.8,
0.2,
0,
0.66,
1,
669,... | [
"import cgi",
"import os",
"import fckeditor"
] |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.3333,
0.3333,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.6667,
0.3333,
0,
0.66,
1,
688,
0,
1,
0,
0,
688,
0,
0
]
] | [
"import cgi",
"import os"
] |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | [
[
1,
0,
0.2,
0.2,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.4,
0.2,
0,
0.66,
0.5,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.8,
0.2,
0,
0.66,
1,
669,... | [
"import cgi",
"import os",
"import fckeditor"
] |
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http://www.gnu.org/license... | [
[
8,
0,
0.0719,
0.1375,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.15,
0.0063,
0,
0.66,
0.1667,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1562,
0.0063,
0,
0.66,
... | [
"\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2010 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:",
"import cgi",
"import os",
"import re",
"import string",
"def escape(text,... |
#!/usr/bin/python
# Copyright 2011 Google, Inc. All Rights Reserved.
# simple script to walk source tree looking for third-party licenses
# dumps resulting html page to stdout
import os, re, mimetypes, sys
# read source directories to scan from command line
SOURCE = sys.argv[1:]
# regex to find /* */ style commen... | [
[
1,
0,
0.0816,
0.0102,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
14,
0,
0.1224,
0.0102,
0,
0.66,
0.0714,
792,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1531,
0.0102,
0,
... | [
"import os, re, mimetypes, sys",
"SOURCE = sys.argv[1:]",
"COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)",
"COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)",
"COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)",
"EXCLUDE_TYPES = [\n \"application/xml\... |
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'build_angle.gypi',
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shif... | [
[
8,
0,
0.4667,
0.3333,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n 'includes': [\n 'build_angle.gypi',\n ],\n}"
] |
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'angle_code': 1,
},
'target_defaults': {
'defines': [
'ANGLE_DISABLE_TRACE',
'ANGLE_COMPILE_OPTIMIZATION_... | [
[
8,
0,
0.4952,
0.969,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n 'variables': {\n 'angle_code': 1,\n },\n 'target_defaults': {\n 'defines': [\n 'ANGLE_DISABLE_TRACE',\n 'ANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1',"
] |
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This script generates a function that converts 16-bit precision floating
# point numbers to 32-bit.
# It is based on ftp://ftp.fox-toolkit.org/p... | [
[
2,
0,
0.2143,
0.4,
0,
0.66,
0,
107,
0,
1,
1,
0,
0,
0,
0
],
[
4,
1,
0.2286,
0.3714,
1,
0.68,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
13,
2,
0.0857,
0.0286,
2,
0.69,
0,
... | [
"def convertMantissa(i):\n if i == 0:\n return 0\n elif i < 1024:\n m = i << 13\n e = 0\n while not (m & 0x00800000):\n e -= 0x00800000",
" if i == 0:\n return 0\n elif i < 1024:\n m = i << 13\n e = 0\n while not (m & 0x00800000):\n ... |
deps = {
"trunk/third_party/gyp":
"http://gyp.googlecode.com/svn/trunk@1564",
"trunk/third_party/googletest":
"http://googletest.googlecode.com/svn/trunk@573", #release 1.6.0
"trunk/third_party/googlemock":
"http://googlemock.googlecode.com/svn/trunk@387", #release 1.6.0
}
hooks = [
{
#... | [
[
14,
0,
0.3056,
0.5556,
0,
0.66,
0,
565,
0,
0,
0,
0,
0,
6,
0
],
[
14,
0,
0.8333,
0.3889,
0,
0.66,
1,
91,
0,
0,
0,
0,
0,
5,
0
]
] | [
"deps = {\n \"trunk/third_party/gyp\":\n \"http://gyp.googlecode.com/svn/trunk@1564\",\n\n \"trunk/third_party/googletest\":\n \"http://googletest.googlecode.com/svn/trunk@573\", #release 1.6.0\n\n \"trunk/third_party/googlemock\":",
"hooks = [\n {\n # A change to a .gyp, .gypi, or to GYP itself ... |
# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'essl_to_glsl',
'type': 'executable',
'dependencies': [
'../src/build_angle.gyp:tran... | [
[
8,
0,
0.4972,
0.9438,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n 'targets': [\n {\n 'target_name': 'essl_to_glsl',\n 'type': 'executable',\n 'dependencies': [\n '../src/build_angle.gyp:translator_glsl',\n ],"
] |
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'gtest',
'type': 'static_library',
'include_dirs': [
'../third_party/googletest',
... | [
[
8,
0,
0.4946,
0.8925,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n 'targets': [\n {\n 'target_name': 'gtest',\n 'type': 'static_library',\n 'include_dirs': [\n '../third_party/googletest',\n '../third_party/googletest/include',"
] |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you ... | [
[
1,
0,
0.3514,
0.0135,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3649,
0.0135,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3784,
0.0135,
0,
... | [
"import os",
"import re",
"import tempfile",
"import shutil",
"ignore_pattern = re.compile('^(.svn|target|bin|classes)')",
"java_pattern = re.compile('^.*\\.java')",
"annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')",
"def process_dir(dir):\n files = os.listdir(dir)\n for... |
#!/usr/bin/env python
from os import mkdir, makedirs, environ, chdir, getcwd, system, listdir
from os.path import join
from shutil import copy, copytree, move, rmtree
# Usage
def Usage():
return 'Usage: createversion.py <version>'
# Run Xcode
def RunXcode(project, target):
system('/usr/bin/xcodebuild -projec... | [
[
1,
0,
0.0357,
0.0119,
0,
0.66,
0,
688,
0,
7,
0,
0,
688,
0,
0
],
[
1,
0,
0.0476,
0.0119,
0,
0.66,
0.0222,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0595,
0.0119,
0,
0.... | [
"from os import mkdir, makedirs, environ, chdir, getcwd, system, listdir",
"from os.path import join",
"from shutil import copy, copytree, move, rmtree",
"def Usage():\n return 'Usage: createversion.py <version>'",
" return 'Usage: createversion.py <version>'",
"def RunXcode(project, target):\n s... |
dataTypes = ["CPUndefinedDataType", "CPIntegerDataType", "CPUnsignedIntegerDataType", "CPFloatingPointDataType", "CPComplexFloatingPointDataType", "CPDecimalDataType"]
types = { "CPUndefinedDataType" : [],
"CPIntegerDataType" : ["int8_t", "int16_t", "int32_t", "int64_t"],
"CPUnsignedIntegerDataType" : ... | [
[
14,
0,
0.0068,
0.0068,
0,
0.66,
0,
302,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.0372,
0.0405,
0,
0.66,
0.04,
209,
0,
0,
0,
0,
0,
6,
0
],
[
14,
0,
0.1115,
0.0946,
0,
0.6... | [
"dataTypes = [\"CPUndefinedDataType\", \"CPIntegerDataType\", \"CPUnsignedIntegerDataType\", \"CPFloatingPointDataType\", \"CPComplexFloatingPointDataType\", \"CPDecimalDataType\"]",
"types = { \"CPUndefinedDataType\" : [],\n \"CPIntegerDataType\" : [\"int8_t\", \"int16_t\", \"int32_t\", \"int64_t\"],\n ... |
#!/usr/bin/env python
"create rootfs"
import sys
import os
import getopt
support_fs_tbl = ["yaffs", "cramfs", "ramfs"]
#line swith char
linesep = os.linesep
#option table
#if option has param,must follow char':' or '=' when long opt
opt_short_tbl = 'hf:v'
opt_long_tbl = ["help", "fstype="]
#usage string for tips... | [
[
8,
0,
0.0286,
0.0095,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0476,
0.0095,
0,
0.66,
0.0588,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0571,
0.0095,
0,
0.66... | [
"\"create rootfs\"",
"import sys",
"import os",
"import getopt",
"support_fs_tbl = [\"yaffs\", \"cramfs\", \"ramfs\"]",
"linesep = os.linesep",
"opt_short_tbl = 'hf:v'",
"opt_long_tbl = [\"help\", \"fstype=\"]",
"usage_str = '[options] -f fsname' + linesep +\\\n '\\t-f, --fstype=name\\tfi... |
#!/usr/bin/env python
"create rootfs"
import sys
import os
import getopt
import time
#line swith char
linesep = os.linesep
#rootfs class, base is object
class CRootFs(object):
"""
rootfs base class
"""
def __init__(self, name, fstype):
global linesep
#time stamp
self.stamp =... | [
[
8,
0,
0.0184,
0.0061,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0307,
0.0061,
0,
0.66,
0.0526,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0368,
0.0061,
0,
0.66... | [
"\"create rootfs\"",
"import sys",
"import os",
"import getopt",
"import time",
"linesep = os.linesep",
"class CRootFs(object):\n \"\"\"\n rootfs base class\n \"\"\"\n def __init__(self, name, fstype):\n global linesep\n #time stamp\n self.stamp = time.strftime(\"%Y%m%d%... |
#!/usr/bin/env python
i = 1 + 2 * 4
print i,
print 'test raw input'
i = raw_input('pls input:\n')
print int(i)
print 'test while'
count = 0
while count <= 10:
print count
count += 1
print 'test for'
for i in range(11):
print i
print 'test if elif else'
i = int(raw_input('input num\n')... | [
[
14,
0,
0.027,
0.0135,
0,
0.66,
0,
826,
4,
0,
0,
0,
0,
0,
0
],
[
8,
0,
0.0405,
0.0135,
0,
0.66,
0.027,
535,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.0676,
0.0135,
0,
0.66,... | [
"i = 1 + 2 * 4",
"print(i,)",
"print('test raw input')",
"i = raw_input('pls input:\\n')",
"print(int(i))",
"print('test while')",
"count = 0",
"while count <= 10:\n print(count)\n count += 1",
" print(count)",
"print('test for')",
"for i in range(11):\n print(i)",
" print(i)",
... |
#!/usr/bin/env python
"""
Network Monitoring System Server Mock
"""
import json, socket
hash_number = 1;
def register(params):
answer = { 'command':'register' }
global hash_number
services=''
client_hash = params['hash']
client_port = params['port']
client_service_list = params['service_list']
if client_has... | [
[
8,
0,
0.0692,
0.0615,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1231,
0.0154,
0,
0.66,
0.0833,
463,
0,
2,
0,
0,
463,
0,
0
],
[
14,
0,
0.1538,
0.0154,
0,
0.6... | [
"\"\"\"\nNetwork Monitoring System Server Mock\n\n\"\"\"",
"import json, socket",
"hash_number = 1;",
"def register(params):\n\tanswer = { 'command':'register' }\n\tglobal hash_number\n\tservices=''\n\tclient_hash = params['hash']\n\tclient_port = params['port']\n\tclient_service_list = params['service_list']... |
#!/usr/bin/env python
"""
Network Monitoring System Server Mock
"""
import json, socket
hash_number = 1;
def register(params):
answer = { 'command':'register' }
global hash_number
services=''
client_hash = params['hash']
client_port = params['port']
client_service_list = params['service_list']
if client_has... | [
[
8,
0,
0.0692,
0.0615,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1231,
0.0154,
0,
0.66,
0.0833,
463,
0,
2,
0,
0,
463,
0,
0
],
[
14,
0,
0.1538,
0.0154,
0,
0.6... | [
"\"\"\"\nNetwork Monitoring System Server Mock\n\n\"\"\"",
"import json, socket",
"hash_number = 1;",
"def register(params):\n\tanswer = { 'command':'register' }\n\tglobal hash_number\n\tservices=''\n\tclient_hash = params['hash']\n\tclient_port = params['port']\n\tclient_service_list = params['service_list']... |
#!/usr/bin/env python
"""
NetSpy Client
by Marcin Ciechowicz for ZPR
v0.01
"""
import socket
import json
from subprocess import call
import logging
import argparse
import os.path
appName = 'NetSpyClient'
scriptDir = 'scripts'
logger = logging.getLogger(appName)
def initLogger():
formatter = logging.Formatter('%... | [
[
8,
0,
0.0205,
0.0205,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0369,
0.0041,
0,
0.66,
0.0556,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.041,
0.0041,
0,
0.66,... | [
"\"\"\"\nNetSpy Client\t\t\nby Marcin Ciechowicz for ZPR\nv0.01\n\"\"\"",
"import socket",
"import json",
"from subprocess import call",
"import logging",
"import argparse",
"import os.path",
"appName = 'NetSpyClient'",
"scriptDir = 'scripts'",
"logger = logging.getLogger(appName)",
"def initLog... |
#!/usr/bin/env python
"""
NetSpy Client
by Marcin Ciechowicz for ZPR
v0.01
"""
import socket
import json
from subprocess import call
import logging
import argparse
import os.path
appName = 'NetSpyClient'
scriptDir = 'scripts'
logger = logging.getLogger(appName)
def initLogger():
formatter = logging.Formatter('%... | [
[
8,
0,
0.0205,
0.0205,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0369,
0.0041,
0,
0.66,
0.0556,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.041,
0.0041,
0,
0.66,... | [
"\"\"\"\nNetSpy Client\t\t\nby Marcin Ciechowicz for ZPR\nv0.01\n\"\"\"",
"import socket",
"import json",
"from subprocess import call",
"import logging",
"import argparse",
"import os.path",
"appName = 'NetSpyClient'",
"scriptDir = 'scripts'",
"logger = logging.getLogger(appName)",
"def initLog... |
#-------- DEFAULT ---------------------------
flags = ['-O2','-Wall','-pedantic']
lib_boost = ['boost_system', 'boost_thread','boost_random','boost_program_options']
lib_cppcms = ['cppcms','cppdb']
libs = lib_boost + lib_cppcms
env = Environment(CPPFLAGS=flags, LIBS=libs)
netspy = 'netspy-server'
dbtest = 'dbtest'... | [
[
14,
0,
0.06,
0.02,
0,
0.66,
0,
375,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.1,
0.02,
0,
0.66,
0.0833,
384,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.12,
0.02,
0,
0.66,
0.16... | [
"flags = ['-O2','-Wall','-pedantic']",
"lib_boost = ['boost_system', 'boost_thread','boost_random','boost_program_options']",
"lib_cppcms = ['cppcms','cppdb']",
"libs = lib_boost + lib_cppcms",
"env = Environment(CPPFLAGS=flags, LIBS=libs)",
"netspy = 'netspy-server'",
"dbtest = 'dbtest'",
"sources = ... |
#!/usr/bin/env python
import gluon
from gluon.fileutils import untar
import os
import sys
def main():
path = gluon.__path__
out_path = os.getcwd()
try:
if sys.argv[1] and os.path.exists(sys.argv[1]):# To untar the web2py env to the selected path
out_path = sys.argv[1]
else:
... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
826,
0,
1,
0,
0,
826,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.2,
948,
0,
1,
0,
0,
948,
0,
0
],
[
1,
0,
0.1481,
0.037,
0,
0.66,
... | [
"import gluon",
"from gluon.fileutils import untar",
"import os",
"import sys",
"def main():\n path = gluon.__path__\n out_path = os.getcwd()\n try:\n if sys.argv[1] and os.path.exists(sys.argv[1]):# To untar the web2py env to the selected path\n out_path = sys.argv[1]\n el... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a WSGI handler for Apache
Requires apache+mod_wsgi.
In httpd.conf put something like:
LoadMo... | [
[
8,
0,
0.25,
0.3409,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4773,
0.0227,
0,
0.66,
0.0909,
136,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.5,
0.0227,
0,
0.66,
... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\n\nThis is a WSGI handler for Apache\nRequires apache+mod_wsgi.",
"LOGGING = False",
"SOFTCRON = False",
"import sys",
"import os",
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a handler for lighttpd+fastcgi
This file has to be in the PYTHONPATH
Put something like this in the... | [
[
8,
0,
0.2925,
0.4528,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5472,
0.0189,
0,
0.66,
0.0833,
136,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.566,
0.0189,
0,
0.66,... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nThis is a handler for lighttpd+fastcgi\nThis file has to be in the PYTHONPATH\nPut something like this in the lighttpd.conf file:",
"LOGGIN... |
def webapp_add_wsgi_middleware(app):
from google.appengine.ext.appstats import recording
app = recording.appstats_wsgi_middleware(app)
return app
| [
[
2,
0,
0.625,
1,
0,
0.66,
0,
156,
0,
1,
1,
0,
0,
0,
1
],
[
1,
1,
0.5,
0.25,
1,
0.03,
0,
215,
0,
1,
0,
0,
215,
0,
0
],
[
14,
1,
0.75,
0.25,
1,
0.03,
0.5,
49... | [
"def webapp_add_wsgi_middleware(app):\n from google.appengine.ext.appstats import recording\n app = recording.appstats_wsgi_middleware(app)\n return app",
" from google.appengine.ext.appstats import recording",
" app = recording.appstats_wsgi_middleware(app)",
" return app"
] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
scgihandler.py - handler for SCGI protocol
Modified by Michele Comitini <michele.comitini@glisco.it>
from fcgihandler.py to support SCGI
fcgihandler has the following copyright:
" This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipi... | [
[
8,
0,
0.2973,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5676,
0.0135,
0,
0.66,
0.0714,
136,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.5811,
0.0135,
0,
0.66,
... | [
"\"\"\"\nscgihandler.py - handler for SCGI protocol\n\nModified by Michele Comitini <michele.comitini@glisco.it>\nfrom fcgihandler.py to support SCGI\n\nfcgihandler has the following copyright:\n\" This file is part of the web2py Web Framework",
"LOGGING = False",
"SOFTCRON = False",
"import sys",
"import o... |
# -*- coding: utf-8 -*-
# when web2py is run as a windows service (web2py.py -W)
# it does not load the command line options but it
# expects to find configuration settings in a file called
#
# web2py/options.py
#
# this file is an example for options.py
import socket
import os
ip = '0.0.0.0'
port = 80
interfaces ... | [
[
1,
0,
0.3333,
0.0303,
0,
0.66,
0,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.3636,
0.0303,
0,
0.66,
0.0526,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.4242,
0.0303,
0,
... | [
"import socket",
"import os",
"ip = '0.0.0.0'",
"port = 80",
"interfaces = [('0.0.0.0', 80)]",
"password = '<recycle>' # ## <recycle> means use the previous password",
"pid_filename = 'httpserver.pid'",
"log_filename = 'httpserver.log'",
"profiler_filename = None",
"ssl_certificate = '' # 'ssl_c... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This file is based, although a rewrite, on MIT-licensed code from the Bottle web framework.
"""
import os
... | [
[
8,
0,
0.0202,
0.0202,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0346,
0.0029,
0,
0.66,
0.0833,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0375,
0.0029,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nThis file is based, although a rewrite, on MIT-licensed code from the Bottle web framework.\n\"\"\"",
"import os",
"import sys",
"impor... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage:
Install py2exe: http://sourceforge.net/projects/py2exe/files/
Copy script to the web2py directory
c:\bin\python26\python build_windows_exe.py py2exe
Adapted from http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/view/head:/static/scripts/tools/... | [
[
8,
0,
0.0401,
0.0428,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0695,
0.0053,
0,
0.66,
0.0244,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.0749,
0.0053,
0,
0.66... | [
"\"\"\"\nUsage:\n Install py2exe: http://sourceforge.net/projects/py2exe/files/\n Copy script to the web2py directory\n c:\\bin\\python26\\python build_windows_exe.py py2exe\n\nAdapted from http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/view/head:/static/scripts/tools/standalone_exe.py\n\"\"\"",
... |
#!/usr/bin/env python
import os
import sys
"""
Author: Christopher Steel on behalf of Voice of Access
Copyright: Copyrighted (c) by Massimo Di Pierro (2007-2013)
web2py_clone becomes part of the web2py distribution available
on Pypi via 'pip install web2py'
web2py_clone is one of multiple commands that become availa... | [
[
1,
0,
0.0364,
0.0182,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0545,
0.0182,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
8,
0,
0.2455,
0.3273,
0,
0.... | [
"import os",
"import sys",
"\"\"\"\nAuthor: Christopher Steel on behalf of Voice of Access\nCopyright: Copyrighted (c) by Massimo Di Pierro (2007-2013)\n\nweb2py_clone becomes part of the web2py distribution available\non Pypi via 'pip install web2py'\n\nweb2py_clone is one of multiple commands that become avai... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
path = os.getcwd()
try:
if sys.argv[1] and os.path.exists(sys.argv[1]):
path = sys.argv[1]
except:
pass
os.chdir(path)
sys.path = [path]+[p for p in sys.path if not p==path]
# import gluon.import_all ##### This should be uncommented f... | [
[
1,
0,
0.1667,
0.0417,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2083,
0.0417,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.2917,
0.0417,
0,
... | [
"import os",
"import sys",
"path = os.getcwd()",
"try:\n if sys.argv[1] and os.path.exists(sys.argv[1]):\n path = sys.argv[1]\nexcept:\n pass",
" if sys.argv[1] and os.path.exists(sys.argv[1]):\n path = sys.argv[1]",
" path = sys.argv[1]",
"os.chdir(path)",
"sys.path = [p... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# portalocker.py
# Cross-platform (posix/nt) API for flock-style file locking.
# Requires python 1.5.2 or better.
"""
Cross-platform (posix/nt) API for flock-style file locking.
Synopsis:
import portalocker
file = open(\"somefile\", \"r+\")
port... | [
[
8,
0,
0.1433,
0.2105,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2573,
0.0058,
0,
0.66,
0.1,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.2632,
0.0058,
0,
0.66,
... | [
"\"\"\"\nCross-platform (posix/nt) API for flock-style file locking.\n\nSynopsis:\n\n import portalocker\n file = open(\\\"somefile\\\", \\\"r+\\\")\n portalocker.lock(file, portalocker.LOCK_EX)",
"import logging",
"import platform",
"logger = logging.getLogger(\"web2py\")",
"os_locking = None",
"tr... |
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
import os
import sys
import socket
import platform
from storage import Storage
global_settings = Storage()
settings = global_settings # legacy compa... | [
[
8,
0,
0.0789,
0.1316,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1842,
0.0263,
0,
0.66,
0.0667,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2105,
0.0263,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\"\"\"",
"import os",
"import sys",
"import socket",
"import platform",
"from storage import Storage",
"global_settings = Storage()... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
import re
__all__ = ['HTTP', 'redirect']
defined_status = {
200: 'OK',
201: 'CREATED',
20... | [
[
8,
0,
0.0366,
0.0305,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.061,
0.0061,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
14,
0,
0.0732,
0.0061,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\"\"\"",
"import re",
"__all__ = ['HTTP', 'redirect']",
"defined_status = {\n 200: 'OK',\n 201: 'CREATED',\n 202: 'ACCEPTED',\n ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>,
limodou <limodou@gmail.com> and srackham <srackham@gmail.com>.
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
import logging
import os
import pdb
impo... | [
[
8,
0,
0.0357,
0.0357,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0612,
0.0051,
0,
0.66,
0.0357,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0663,
0.0051,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu>,\nlimodou <limodou@gmail.com> and srackham <srackham@gmail.com>.\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\n\"\"\"",
"import logging",
"import os",
"import pdb",
"import Queue",
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This file specifically includes utilities for security.
"""
import threading
import struct
import hashlib
... | [
[
8,
0,
0.0215,
0.0215,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0369,
0.0031,
0,
0.66,
0.0278,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.04,
0.0031,
0,
0.66,
... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nThis file specifically includes utilities for security.\n\"\"\"",
"import threading",
"import struct",
"import hashlib",
"import hmac... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Provides:
- List; like list but returns None instead of IndexOutOfBounds
- Storage; like dictionary allowi... | [
[
8,
0,
0.0299,
0.0352,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0528,
0.0035,
0,
0.66,
0.0714,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.0563,
0.0035,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nProvides:\n\n- List; like list but returns None instead of IndexOutOfBounds",
"import cPickle",
"import portalocker",
"__all__ = ['List... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
import re
# pattern to find defined tables
regex_tables = re.compile(
"""^[\w]+\.define_table\(\s... | [
[
8,
0,
0.2143,
0.1786,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3571,
0.0357,
0,
0.66,
0.2,
540,
0,
1,
0,
0,
540,
0,
0
],
[
14,
0,
0.5357,
0.1071,
0,
0.66,
... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\"\"\"",
"import re",
"regex_tables = re.compile(\n \"\"\"^[\\w]+\\.define_table\\(\\s*[\\'\\\"](?P<name>\\w+)[\\'\\\"]\"\"\",\n flag... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Created by Vladyslav Kozlovskyy (Ukraine) <dbdevelop©gmail.com>
for Web2py project
Utilities and cla... | [
[
1,
0,
0.0014,
0.0014,
0,
0.66,
0,
364,
0,
1,
0,
0,
364,
0,
0
],
[
2,
0,
0.0185,
0.033,
0,
0.66,
0.1667,
916,
0,
1,
1,
0,
0,
0,
7
],
[
8,
1,
0.0124,
0.0179,
1,
0.7... | [
"import __builtin__",
"def sort_key(s):\n \"\"\" Unicode Collation Algorithm (UCA) (http://www.unicode.org/reports/tr10/)\n is used for utf-8 and unicode strings sorting and for utf-8 strings\n comparison\n\n NOTE: pyuca is a very memory cost module! It loads the whole\n \"all... |
# this file exists for backward compatibility
__all__ = ['DAL', 'Field', 'DRIVERS']
from dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, DRIVERS, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType
| [
[
14,
0,
0.6,
0.2,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
1,
0.2,
0,
0.66,
1,
4,
0,
21,
0,
0,
4,
0,
0
]
] | [
"__all__ = ['DAL', 'Field', 'DRIVERS']",
"from dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, DRIVERS, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType"
] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
::
# from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496942
# Title: Cross-site scripting (XSS) defense
# Submitter: Josh Goldfoot (other recipes)
# Last Updated: 2006/08/05
# Version no: 1.0
"""
from htmllib import HTMLParser
from ... | [
[
8,
0,
0.0373,
0.0439,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0702,
0.0044,
0,
0.66,
0.1,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.0746,
0.0044,
0,
0.66,
... | [
"\"\"\"\n::\n\n # from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496942\n # Title: Cross-site scripting (XSS) defense\n # Submitter: Josh Goldfoot (other recipes)\n # Last Updated: 2006/08/05\n # Version no: 1.0",
"from htmllib import HTMLParser",
"from cgi import escape",
"from u... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework (Copyrighted, 2007-2011).
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Author: Thadeus Burgess
Contributors:
- Thank you to Massimo Di Pierro for creating the original gluon/template.py
- Thank you to Jonathan... | [
[
8,
0,
0.0104,
0.0131,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0185,
0.0011,
0,
0.66,
0.0556,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0196,
0.0011,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework (Copyrighted, 2007-2011).\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nAuthor: Thadeus Burgess\n\nContributors:",
"import os",
"import cgi",
"import logging",
"from re import compile, sub, escape, DOTALL",
"try:\n import cStringIO as... |
import codecs
import encodings
"""Caller will hand this library a buffer and ask it to either convert
it or auto-detect the type.
Based on http://code.activestate.com/recipes/52257/
Licensed under the PSF License
"""
# None represents a potentially variable byte. "##" in the XML spec...
autodetect_dict = { # bytep... | [
[
1,
0,
0.013,
0.013,
0,
0.66,
0,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.026,
0.013,
0,
0.66,
0.2,
786,
0,
1,
0,
0,
786,
0,
0
],
[
8,
0,
0.0909,
0.0909,
0,
0.66,
... | [
"import codecs",
"import encodings",
"\"\"\"Caller will hand this library a buffer and ask it to either convert\nit or auto-detect the type.\n\nBased on http://code.activestate.com/recipes/52257/\n\nLicensed under the PSF License\n\"\"\"",
"autodetect_dict = { # bytepattern : (\"name\",\n ... |
import logging
import os
try:
import Tkinter
except:
Tkinter = None
class MessageBoxHandler(logging.Handler):
def __init__(self):
logging.Handler.__init__(self)
def emit(self, record):
if Tkinter:
msg = self.format(record)
root = Tkinter.Tk()
root.... | [
[
1,
0,
0.0286,
0.0286,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0571,
0.0286,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
7,
0,
0.1571,
0.1143,
0,
0.... | [
"import logging",
"import os",
"try:\n import Tkinter\nexcept:\n Tkinter = None",
" import Tkinter",
" Tkinter = None",
"class MessageBoxHandler(logging.Handler):\n def __init__(self):\n logging.Handler.__init__(self)\n\n def emit(self, record):\n if Tkinter:\n m... |
# encoding utf-8
__author__ = "Thadeus Burgess <thadeusb@thadeusb.com>"
# we classify as "non-reserved" those key words that are explicitly known
# to the parser but are allowed as column or table names. Some key words
# that are otherwise non-reserved cannot be used as function or data type n
# ames and ... | [
[
14,
0,
0.0017,
0.0006,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0259,
0.0233,
0,
0.66,
0.0714,
63,
3,
1,
0,
0,
21,
10,
1
],
[
14,
0,
0.0812,
0.085,
0,
0... | [
"__author__ = \"Thadeus Burgess <thadeusb@thadeusb.com>\"",
"COMMON = set((\n 'SELECT',\n 'INSERT',\n 'DELETE',\n 'UPDATE',\n 'DROP',\n 'CREATE',\n 'ALTER',",
"POSTGRESQL = set((\n 'FALSE',\n 'TRUE',\n 'ALL',\n 'ANALYSE',\n 'ANALYZE',\n 'AND',\n 'ANY',",
"POSTGRESQL_N... |
# -*- coding: utf-8 -*-
# This file is part of the Rocket Web Server
# Copyright (c) 2011 Timothy Farrell
# Modified by Massimo Di Pierro
# Import System Modules
import sys
import errno
import socket
import logging
import platform
# Define Constants
VERSION = '1.2.6'
SERVER_NAME = socket.gethostname()
SERVER_SOFTWAR... | [
[
1,
0,
0.0043,
0.0005,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0048,
0.0005,
0,
0.66,
0.0108,
546,
0,
1,
0,
0,
546,
0,
0
],
[
1,
0,
0.0053,
0.0005,
0,
... | [
"import sys",
"import errno",
"import socket",
"import logging",
"import platform",
"VERSION = '1.2.6'",
"SERVER_NAME = socket.gethostname()",
"SERVER_SOFTWARE = 'Rocket %s' % VERSION",
"HTTP_SERVER_SOFTWARE = '%s Python/%s' % (\n SERVER_SOFTWARE, sys.version.split(' ')[0])",
"BUF_SIZE = 16384"... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Functions required to execute app components
============================================
FOR INTERNAL USE... | [
[
8,
0,
0.1604,
0.1887,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.283,
0.0189,
0,
0.66,
0.1429,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3019,
0.0189,
0,
0.66,... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nFunctions required to execute app components\n============================================",
"from os import stat",
"import thread",
"i... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
CONTENT_TYPE dictionary created against freedesktop.org' shared mime info
database version 1.1.
Deviations... | [
[
8,
0,
0.0147,
0.0211,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.027,
0.0012,
0,
0.66,
0.3333,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.5053,
0.9531,
0,
0.66,... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nCONTENT_TYPE dictionary created against freedesktop.org' shared mime info\ndatabase version 1.1.",
"__all__ = ['contenttype']",
"CONTENT_... |
from test_http import *
from test_cache import *
from test_dal import *
from test_html import *
from test_is_url import *
from test_languages import *
from test_router import *
from test_routes import *
from test_storage import *
from test_template import *
from test_utils import *
from test_contribs import *
from test... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
891,
0,
1,
0,
0,
891,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.0714,
215,
0,
1,
0,
0,
215,
0,
0
],
[
1,
0,
0.1765,
0.0588,
0,
... | [
"from test_http import *",
"from test_cache import *",
"from test_dal import *",
"from test_html import *",
"from test_is_url import *",
"from test_languages import *",
"from test_router import *",
"from test_routes import *",
"from test_storage import *",
"from test_template import *",
"from te... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
from SimpleXMLRPCServer import SimpleXMLRPCDispatcher
def handler(request, response, methods):
re... | [
[
8,
0,
0.2857,
0.2381,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4762,
0.0476,
0,
0.66,
0.5,
73,
0,
1,
0,
0,
73,
0,
0
],
[
2,
0,
0.8095,
0.4286,
0,
0.66,
... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\"\"\"",
"from SimpleXMLRPCServer import SimpleXMLRPCDispatcher",
"def handler(request, response, methods):\n response.session_id = None... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> and
Limodou <limodou@gmail.com>.
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This makes uses of the pywin32 package
(http://sourceforge.net/projects/pywin... | [
[
8,
0,
0.0399,
0.0563,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0751,
0.0047,
0,
0.66,
0.0714,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0798,
0.0047,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu> and\nLimodou <limodou@gmail.com>.\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nThis makes uses of the pywin32 package\n(http://sourceforge.net/projects/pywin32/).",
"import time",
"imp... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
"""
import cgi
import os
import re
import copy
import types
import urllib
import base64
import sanitizer
im... | [
[
8,
0,
0.0022,
0.0018,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0037,
0.0004,
0,
0.66,
0.0097,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0041,
0.0004,
0,
0.66... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\"\"\"",
"import cgi",
"import os",
"import re",
"import copy",
"import types",
"import urllib",
"import base64",
"import sanit... |
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will... | [
[
8,
0,
0.0789,
0.0066,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0921,
0.0066,
0,
0.66,
0.0556,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0987,
0.0066,
0,
0.66... | [
"\"Pythonic simple JSON RPC Client implementation\"",
"__author__ = \"Mariano Reingart (reingart@gmail.com)\"",
"__copyright__ = \"Copyright (C) 2011 Mariano Reingart\"",
"__license__ = \"LGPL 3.0\"",
"__version__ = \"0.05\"",
"import urllib",
"from xmlrpclib import Transport, SafeTransport",
"from cS... |
#!/usr/bin/env python
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Attention: Requires Chrome or Safari. For IE of Firefox you need https://github.com/gimite/web-socket-js
1) install tornado (requir... | [
[
8,
0,
0.1763,
0.3382,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3527,
0.0048,
0,
0.66,
0.0588,
17,
0,
1,
0,
0,
17,
0,
0
],
[
1,
0,
0.3575,
0.0048,
0,
0.66,
... | [
"\"\"\"\nThis file is part of the web2py Web Framework\nCopyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\nLicense: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n\nAttention: Requires Chrome or Safari. For IE of Firefox you need https://github.com/gimite/web-socket-js\n\n1) install tornado (requires Torn... |
#!/usr/bin/env python
# coding: utf8
"""
RPX Authentication for web2py
Developed by Nathan Freeze (Copyright © 2009)
Email <nathan@freezable.com>
Modified by Massimo Di Pierro
This file contains code to allow using RPXNow.com (now Jainrain.com)
services with web2py
"""
import os
import re
import ur... | [
[
8,
0,
0.0597,
0.0672,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1045,
0.0075,
0,
0.66,
0.1111,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1119,
0.0075,
0,
0.66... | [
"\"\"\"\n RPX Authentication for web2py\n Developed by Nathan Freeze (Copyright © 2009)\n Email <nathan@freezable.com>\n Modified by Massimo Di Pierro\n\n This file contains code to allow using RPXNow.com (now Jainrain.com)\n services with web2py",
"import os",
"import re",
"import urllib",
"fro... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of web2py Web Framework (Copyrighted, 2007-2009).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>.
License: GPL v2
Thanks to Hans Donner <hans.donner@pobox.com> for GaeGoogleAccount.
"""
from google.appengine.api import users
class GaeGoo... | [
[
8,
0,
0.1842,
0.1842,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3158,
0.0263,
0,
0.66,
0.5,
279,
0,
1,
0,
0,
279,
0,
0
],
[
3,
0,
0.6974,
0.6316,
0,
0.66,
... | [
"\"\"\"\nThis file is part of web2py Web Framework (Copyrighted, 2007-2009).\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu>.\nLicense: GPL v2\n\nThanks to Hans Donner <hans.donner@pobox.com> for GaeGoogleAccount.\n\"\"\"",
"from google.appengine.api import users",
"class GaeGoogleAccount(object):\n ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of web2py Web Framework (Copyrighted, 2007-2009).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>.
License: GPL v2
Thanks to Hans Donner <hans.donner@pobox.com> for GaeGoogleAccount.
"""
from gluon.http import HTTP
try:
import linkedin
... | [
[
8,
0,
0.1373,
0.1373,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2353,
0.0196,
0,
0.66,
0.3333,
453,
0,
1,
0,
0,
453,
0,
0
],
[
7,
0,
0.2843,
0.0784,
0,
0.66... | [
"\"\"\"\nThis file is part of web2py Web Framework (Copyrighted, 2007-2009).\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu>.\nLicense: GPL v2\n\nThanks to Hans Donner <hans.donner@pobox.com> for GaeGoogleAccount.\n\"\"\"",
"from gluon.http import HTTP",
"try:\n import linkedin\nexcept ImportError:... |
#!/usr/bin/env python
# coding: utf8
"""
Dropbox Authentication for web2py
Developed by Massimo Di Pierro (2012)
Same License as Web2py License
"""
# mind here session is dropbox session, not current.session
import os
import re
import urllib
from dropbox import client, rest, session
from gluon import *
from gluon.to... | [
[
8,
0,
0.0458,
0.0382,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0916,
0.0076,
0,
0.66,
0.1,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0992,
0.0076,
0,
0.66,
... | [
"\"\"\"\nDropbox Authentication for web2py\nDeveloped by Massimo Di Pierro (2012)\nSame License as Web2py License\n\"\"\"",
"import os",
"import re",
"import urllib",
"from dropbox import client, rest, session",
"from gluon import *",
"from gluon.tools import fetch",
"from gluon.storage import Storage... |
#!/usr/bin/env python
# coding: utf8
"""
Oneall Authentication for web2py
Developed by Nathan Freeze (Copyright © 2013)
Email <nathan@freezable.com>
This file contains code to allow using onall.com
authentication services with web2py
"""
import os
import base64
from gluon import *
from gluon.storage i... | [
[
8,
0,
0.0701,
0.0748,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1215,
0.0093,
0,
0.66,
0.1111,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1308,
0.0093,
0,
0.66... | [
"\"\"\"\n Oneall Authentication for web2py\n Developed by Nathan Freeze (Copyright © 2013)\n Email <nathan@freezable.com>\n\n This file contains code to allow using onall.com\n authentication services with web2py\n\"\"\"",
"import os",
"import base64",
"from gluon import *",
"from gluon.storage im... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
BrowserID Authentication for web2py
developed by Madhukar R Pai (Copyright 2012)
Email <madspai@gmail.com>
License : LGPL
thanks and credits to the web2py community
This custom authenticator allows web2py to authenticate using browserid (https... | [
[
8,
0,
0.1374,
0.1978,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2418,
0.011,
0,
0.66,
0.1667,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2527,
0.011,
0,
0.66,
... | [
"\"\"\"\n BrowserID Authentication for web2py\n developed by Madhukar R Pai (Copyright 2012)\n Email <madspai@gmail.com>\n License : LGPL\n\n thanks and credits to the web2py community",
"import time",
"from gluon import *",
"from gluon.storage import Storage",
"from gluon.tools import fetch"... |
#!/usr/bin/env python
# coding: utf8
"""
ExtendedLoginForm is used to extend normal login form in web2py with one more login method.
So user can choose the built-in login or extended login methods.
"""
from gluon import current, DIV
class ExtendedLoginForm(object):
"""
Put extended_login_form under web2py/g... | [
[
8,
0,
0.0524,
0.0381,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0857,
0.0095,
0,
0.66,
0.5,
826,
0,
2,
0,
0,
826,
0,
0
],
[
3,
0,
0.5571,
0.8952,
0,
0.66,
... | [
"\"\"\"\nExtendedLoginForm is used to extend normal login form in web2py with one more login method.\nSo user can choose the built-in login or extended login methods.\n\"\"\"",
"from gluon import current, DIV",
"class ExtendedLoginForm(object):\n \"\"\"\n Put extended_login_form under web2py/gluon/contrib... |
import urllib
import urllib2
import base64
def basic_auth(server="http://127.0.0.1"):
"""
to use basic login with a different server
from gluon.contrib.login_methods.basic_auth import basic_auth
auth.settings.login_methods.append(basic_auth('http://server'))
"""
def basic_login_aux(username,
... | [
[
1,
0,
0.0417,
0.0417,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0.3333,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.125,
0.0417,
0,
0... | [
"import urllib",
"import urllib2",
"import base64",
"def basic_auth(server=\"http://127.0.0.1\"):\n \"\"\"\n to use basic login with a different server\n from gluon.contrib.login_methods.basic_auth import basic_auth\n auth.settings.login_methods.append(basic_auth('http://server'))\n \"\"\"\n\n ... |
#!/usr/bin/env python
import time
from hashlib import md5
from gluon.dal import DAL
def motp_auth(db=DAL('sqlite://storage.sqlite'),
time_offset=60):
"""
motp allows you to login with a one time password(OTP) generated on a motp client,
motp clients are available for practically all platfo... | [
[
1,
0,
0.027,
0.009,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.036,
0.009,
0,
0.66,
0.3333,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.045,
0.009,
0,
0.66,
... | [
"import time",
"from hashlib import md5",
"from gluon.dal import DAL",
"def motp_auth(db=DAL('sqlite://storage.sqlite'),\n time_offset=60):\n\n \"\"\"\n motp allows you to login with a one time password(OTP) generated on a motp client,\n motp clients are available for practically all pla... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Written by Michele Comitini <mcm@glisco.it>
License: GPL v3
Adds support for x509 authentication.
"""
from gluon.globals import current
from gluon.storage import Storage
from gluon.http import HTTP, redirect
#requires M2Crypto
from M2Crypto import X509
class X509... | [
[
8,
0,
0.0714,
0.0714,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1224,
0.0102,
0,
0.66,
0.2,
703,
0,
1,
0,
0,
703,
0,
0
],
[
1,
0,
0.1327,
0.0102,
0,
0.66,
... | [
"\"\"\"\nWritten by Michele Comitini <mcm@glisco.it>\nLicense: GPL v3\n\nAdds support for x509 authentication.\n\n\"\"\"",
"from gluon.globals import current",
"from gluon.storage import Storage",
"from gluon.http import HTTP, redirect",
"from M2Crypto import X509",
"class X509Auth(object):\n \"\"\"\n ... |
from gluon.contrib.pam import authenticate
def pam_auth():
"""
to use pam_login:
from gluon.contrib.login_methods.pam_auth import pam_auth
auth.settings.login_methods.append(pam_auth())
or
auth.settings.actions_disabled=[
'register','change_password','request_reset_password']
auth... | [
[
1,
0,
0.0455,
0.0455,
0,
0.66,
0,
109,
0,
1,
0,
0,
109,
0,
0
],
[
2,
0,
0.5909,
0.8636,
0,
0.66,
1,
1,
0,
0,
1,
0,
0,
0,
1
],
[
8,
1,
0.5,
0.5909,
1,
0.62,
0,... | [
"from gluon.contrib.pam import authenticate",
"def pam_auth():\n \"\"\"\n to use pam_login:\n from gluon.contrib.login_methods.pam_auth import pam_auth\n auth.settings.login_methods.append(pam_auth())\n\n or",
" \"\"\"\n to use pam_login:\n from gluon.contrib.login_methods.pam_auth impor... |
#!/usr/bin/env python
# coding: utf8
"""
LoginRadius Authentication for web2py
Developed by Nathan Freeze (Copyright © 2013)
Email <nathan@freezable.com>
This file contains code to allow using loginradius.com
authentication services with web2py
"""
import os
from gluon import *
from gluon.storage impo... | [
[
8,
0,
0.0773,
0.0825,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.134,
0.0103,
0,
0.66,
0.125,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1443,
0.0103,
0,
0.66,
... | [
"\"\"\"\n LoginRadius Authentication for web2py\n Developed by Nathan Freeze (Copyright © 2013)\n Email <nathan@freezable.com>\n\n This file contains code to allow using loginradius.com\n authentication services with web2py\n\"\"\"",
"import os",
"from gluon import *",
"from gluon.storage import Sto... |
import smtplib
import logging
def email_auth(server="smtp.gmail.com:587",
domain="@gmail.com",
tls_mode=None):
"""
to use email_login:
from gluon.contrib.login_methods.email_auth import email_auth
auth.settings.login_methods.append(email_auth("smtp.gmail.com:587",
... | [
[
1,
0,
0.0217,
0.0217,
0,
0.66,
0,
389,
0,
1,
0,
0,
389,
0,
0
],
[
1,
0,
0.0435,
0.0217,
0,
0.66,
0.5,
715,
0,
1,
0,
0,
715,
0,
0
],
[
2,
0,
0.5543,
0.913,
0,
0.66... | [
"import smtplib",
"import logging",
"def email_auth(server=\"smtp.gmail.com:587\",\n domain=\"@gmail.com\",\n tls_mode=None):\n \"\"\"\n to use email_login:\n from gluon.contrib.login_methods.email_auth import email_auth\n auth.settings.login_methods.append(email_auth(\"s... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of web2py Web Framework (Copyrighted, 2007-2009).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>.
License: GPL v2
Tinkered by Szabolcs Gyuris < szimszo n @ o regpreshaz dot eu>
"""
from gluon import current, redirect
class CasAuth(object... | [
[
8,
0,
0.0486,
0.0486,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0833,
0.0069,
0,
0.66,
0.5,
826,
0,
2,
0,
0,
826,
0,
0
],
[
3,
0,
0.5521,
0.9028,
0,
0.66,
... | [
"\"\"\"\nThis file is part of web2py Web Framework (Copyrighted, 2007-2009).\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu>.\nLicense: GPL v2\n\nTinkered by Szabolcs Gyuris < szimszo n @ o regpreshaz dot eu>\n\"\"\"",
"from gluon import current, redirect",
"class CasAuth(object):\n \"\"\"\n Log... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Loginza.ru authentication for web2py
Developed by Vladimir Dronnikov (Copyright © 2011)
Email <dronnikov@gmail.com>
"""
import urllib
from gluon.html import *
from gluon.tools import fetch
from gluon.storage import Storage
import gluon.contrib.simplejson as j... | [
[
8,
0,
0.0522,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.087,
0.0087,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0957,
0.0087,
0,
0.66,... | [
"\"\"\"\n Loginza.ru authentication for web2py\n Developed by Vladimir Dronnikov (Copyright © 2011)\n Email <dronnikov@gmail.com>\n\"\"\"",
"import urllib",
"from gluon.html import *",
"from gluon.tools import fetch",
"from gluon.storage import Storage",
"import gluon.contrib.simplejson as json",
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Written by Michele Comitini <mcm@glisco.it>
License: GPL v3
Adds support for OAuth1.0a authentication to web2py.
Dependencies:
- python-oauth2 (http://github.com/simplegeo/python-oauth2)
"""
import oauth2 as oauth
import cgi
from urllib import urlencode
from gl... | [
[
8,
0,
0.0464,
0.0546,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.082,
0.0055,
0,
0.66,
0.2,
311,
0,
1,
0,
0,
311,
0,
0
],
[
1,
0,
0.0874,
0.0055,
0,
0.66,
... | [
"\"\"\"\nWritten by Michele Comitini <mcm@glisco.it>\nLicense: GPL v3\n\nAdds support for OAuth1.0a authentication to web2py.\n\nDependencies:\n - python-oauth2 (http://github.com/simplegeo/python-oauth2)",
"import oauth2 as oauth",
"import cgi",
"from urllib import urlencode",
"from gluon import current",... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of web2py Web Framework (Copyrighted, 2007-2009).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> and
Robin B <robi123@gmail.com>.
License: GPL v2
"""
__all__ = ['MEMDB', 'Field']
import re
import sys
import os
import types
import datetime
... | [
[
8,
0,
0.0072,
0.0066,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0121,
0.0011,
0,
0.66,
0.0238,
272,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0143,
0.0011,
0,
0.66,... | [
"\"\"\"\nThis file is part of web2py Web Framework (Copyrighted, 2007-2009).\nDeveloped by Massimo Di Pierro <mdipierro@cs.depaul.edu> and\nRobin B <robi123@gmail.com>.\nLicense: GPL v2\n\"\"\"",
"__all__ = ['MEMDB', 'Field']",
"import re",
"import sys",
"import os",
"import types",
"import datetime",
... |
# Only Python 2.6 and up, because of NamedTuple.
import time
from collections import namedtuple
Score = namedtuple('Score', ['tag', 'stamp'])
class TimeCollector(object):
def __init__(self):
'''The first time stamp is created here'''
self.scores = [Score(tag='start', stamp=time.clock())]
def ... | [
[
1,
0,
0.0196,
0.0098,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0294,
0.0098,
0,
0.66,
0.25,
193,
0,
1,
0,
0,
193,
0,
0
],
[
14,
0,
0.0392,
0.0098,
0,
0... | [
"import time",
"from collections import namedtuple",
"Score = namedtuple('Score', ['tag', 'stamp'])",
"class TimeCollector(object):\n def __init__(self):\n '''The first time stamp is created here'''\n self.scores = [Score(tag='start', stamp=time.clock())]\n\n def addStamp(self, description... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.