code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
import bpy
data_dictionary = '/mnt/storage/Projects/3dconomy/data/'
datafile = 'us_data.txt'
# datafile = 'cdn_data.txt'
# datafile = 'eu_data.txt'
def InitFunction():
line_data_list = []
dataset = open(data_dictionary + datafile)
for line in dataset:
items = line.split(",")
line_data_list.append(items)
dat... | [
[
1,
0,
0.0127,
0.0127,
0,
0.66,
0,
573,
0,
1,
0,
0,
573,
0,
0
],
[
14,
0,
0.038,
0.0127,
0,
0.66,
0.1667,
963,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0506,
0.0127,
0,
0... | [
"import bpy",
"data_dictionary = '/mnt/storage/Projects/3dconomy/data/'",
"datafile = 'us_data.txt'",
"def InitFunction():\n\n\tline_data_list = []\n\tdataset = open(data_dictionary + datafile)\n\n\tfor line in dataset:\n\t\titems = line.split(\",\")\n\t\tline_data_list.append(items)",
"\tline_data_list = [... |
import os, sys
import OpenEXR
import Imath
import math
import time
import numpy as np
from numpy import array
import myextension
from readEXR import *
from writeEXR import *
from MRF_Utils import *
# this function will return the indices of the new localImage, whose area is 1.5 times bigger than the bounding box of... | [
[
1,
0,
0.0069,
0.0069,
0,
0.66,
0,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.0207,
0.0069,
0,
0.66,
0.0833,
661,
0,
1,
0,
0,
661,
0,
0
],
[
1,
0,
0.0276,
0.0069,
0,
... | [
"import os, sys",
"import OpenEXR",
"import Imath",
"import math",
"import time",
"import numpy as np",
"from numpy import array",
"import myextension",
"from readEXR import *",
"from writeEXR import *",
"from MRF_Utils import *",
"def localImage(labels, Nth):\n\n tmp = np.where(labels==Nth... |
import numpy as np
def positionFeature(labels, Nth):
tmp = np.where(labels == Nth)
return np.mean(tmp[0]),np.std(tmp[0]),np.mean(tmp[1]),np.std(tmp[1])
def colorFeature(L,labels, Nth):
tmp = np.where(labels == Nth, L)
return np.mean(tmp),np.std(tmp)
def features( L,labels, Nth )... | [
[
1,
0,
0.02,
0.01,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
2,
0,
0.07,
0.05,
0,
0.66,
0.1111,
762,
0,
2,
1,
0,
0,
0,
5
],
[
14,
1,
0.07,
0.01,
1,
0.49,
0,
... | [
"import numpy as np",
"def positionFeature(labels, Nth):\n \n tmp = np.where(labels == Nth)\n \n return np.mean(tmp[0]),np.std(tmp[0]),np.mean(tmp[1]),np.std(tmp[1])",
" tmp = np.where(labels == Nth)",
" return np.mean(tmp[0]),np.std(tmp[0]),np.mean(tmp[1]),np.std(tmp[1])",
"def colorFea... |
import myextension
import numpy as np
import ctypes
a = np.arange(4*3*2).reshape(4,3,2) * 5.0
b = np.arange(4*3*2).reshape(4,3,2) * 1.0 # double array !
#print myextension.MRF(a,b)
a = np.arange(4*3).reshape(4,3) * 1.1
b = np.arange(4*3).reshape(4,3) * 5.2 # double array !
c = np.arange(4*3).reshape(4,3) *... | [
[
1,
0,
0.0476,
0.0476,
0,
0.66,
0,
54,
0,
1,
0,
0,
54,
0,
0
],
[
1,
0,
0.0952,
0.0476,
0,
0.66,
0.125,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1429,
0.0476,
0,
0.6... | [
"import myextension",
"import numpy as np",
"import ctypes",
"a = np.arange(4*3*2).reshape(4,3,2) * 5.0",
"b = np.arange(4*3*2).reshape(4,3,2) * 1.0 # double array !",
"a = np.arange(4*3).reshape(4,3) * 1.1",
"b = np.arange(4*3).reshape(4,3) * 5.2 # double array !",
"c = np.arange(4*3).reshape... |
import numpy as N
from numpy.ctypeslib import load_library
from numpyctypes import c_ndarray
import ctypes as C
mylib = load_library('libMRF', '../cpp/') # '.' is the directory of the C++ lib
def MRF(array1, array2):
arg1 = c_ndarray(array1, dtype=N.double, ndim = 3)
arg2 = c_ndarray(array2, dtype=N.d... | [
[
1,
0,
0.013,
0.013,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.026,
0.013,
0,
0.66,
0.1,
82,
0,
1,
0,
0,
82,
0,
0
],
[
1,
0,
0.039,
0.013,
0,
0.66,
0... | [
"import numpy as N",
"from numpy.ctypeslib import load_library",
"from numpyctypes import c_ndarray",
"import ctypes as C",
"mylib = load_library('libMRF', '../cpp/') # '.' is the directory of the C++ lib",
"def MRF(array1, array2):\n arg1 = c_ndarray(array1, dtype=N.double, ndim = 3)\n arg2 =... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (2323,5615-2427) #5
entrancePixel = (2622,5615-1935) #6
entrancePixel = (3123,5615-1859) #7
entrancePixel = (... | [
[
1,
0,
0.013,
0.0065,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0195,
0.0065,
0,
0.66,
0.0189,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.026,
0.0065,
0,
0.... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (2323,5615-2427) #5",
"entrancePixel = (2622,5615-1935) #6",
"entrancePixel = (3123,5615-1859) #7",
"entrancePixel = (3479,5615-2224) #1",
"entrancePixel = (3341,5615-2345) #2",
"entrancePixel = (3127,5615-2... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (3473,5615-3043)
#entrancePixel = (1848,5615-2341)
#center = (1867.5,5616-2979.5)
#center = (1884.18,2834.89... | [
[
1,
0,
0.018,
0.009,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.027,
0.009,
0,
0.66,
0.025,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.036,
0.009,
0,
0.66,
... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (3473,5615-3043)",
"center = (1853,5616-2874.5)",
"center = (1860.79,5615-2836.5)",
"def Rd(pixel):\n c = center\n return np.sqrt( (pixel[0] - c[0])*(pixel[0] - c[0]) + (pixel[1] - c[1])*(pixel[1] - c[1]) ... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (3479,5615-2224) #1
entrancePixel = (3341,5615-2345) #2
#entrancePixel = (3127,5615-2538) #3
physicCenter = (... | [
[
1,
0,
0.0139,
0.0069,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0208,
0.0069,
0,
0.66,
0.0222,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0278,
0.0069,
0,
... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (3479,5615-2224) #1",
"entrancePixel = (3341,5615-2345) #2",
"physicCenter = (1867.5,5615-2818.5)",
"distortionCenter = (1860.79,5615-2836.5)",
"distortionCenter = (1864,5615-2834)",
"def Rd_distortion(pixel... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (3341,5615-2345)
#entrancePixel = (1867.5 + 300,2979.5)
center = (1867.5,2979,5)
f = 8
d = 89+79
T1 = np.... | [
[
1,
0,
0.0211,
0.0105,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0316,
0.0105,
0,
0.66,
0.0303,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0421,
0.0105,
0,
... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (3341,5615-2345)",
"center = (1867.5,2979,5)",
"f = 8",
"d = 89+79",
"T1 = np.matrix([d,-d,0])",
"R = np.matrix([[0,-1,0],[1,0,0],[0,0,1]])",
"e1 = np.matrix([-f,d+f,0])",
"e2 = np.matrix([d+f,-f,0])",
... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (2323,5615-2427) #5
entrancePixel = (2622,5615-1935) #6
entrancePixel = (3123,5615-1859) #7
entrancePixel = (... | [
[
1,
0,
0.013,
0.0065,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0195,
0.0065,
0,
0.66,
0.0189,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.026,
0.0065,
0,
0.... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (2323,5615-2427) #5",
"entrancePixel = (2622,5615-1935) #6",
"entrancePixel = (3123,5615-1859) #7",
"entrancePixel = (3479,5615-2224) #1",
"entrancePixel = (3341,5615-2345) #2",
"entrancePixel = (3127,5615-2... |
#! /opt/local/bin/python2.6
import numpy as np
import time
import sys
from rwEXR import *
# 3744 23.9
# 5616 35.8
# distortion correction parameters in rad
# 0.207029529537 0.0422547753997
entrancePixel = (3341,5615-2345)
#entrancePixel = (1848,5615-2341)
physicCenter = (1867.5,5615-2979.5)
#center = (1884.18,28... | [
[
1,
0,
0.0153,
0.0076,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0229,
0.0076,
0,
0.66,
0.0227,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0305,
0.0076,
0,
... | [
"import numpy as np",
"import time",
"import sys",
"from rwEXR import *",
"entrancePixel = (3341,5615-2345)",
"physicCenter = (1867.5,5615-2979.5)",
"distortionCenter = (1860.79,2836.5)",
"def Rd_distortion(pixel):\n c = distortionCenter\n return np.sqrt( (pixel[0] - c[0])*(pixel[0] - c[0]) + (p... |
import OpenEXR
import Imath
import math
import numpy as np
def readExr(exrfile):
exrfile = str(exrfile)
file = OpenEXR.InputFile(exrfile)
pt = Imath.PixelType(Imath.PixelType.FLOAT)
dw = file.header()['dataWindow']
size = (dw.max.x - dw.min.x + 1, dw.max.y - dw.... | [
[
1,
0,
0.0323,
0.0323,
0,
0.66,
0,
661,
0,
1,
0,
0,
661,
0,
0
],
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0.25,
773,
0,
1,
0,
0,
773,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.... | [
"import OpenEXR",
"import Imath",
"import math",
"import numpy as np",
"def readExr(exrfile): \n \n \n \n exrfile = str(exrfile)\n \n file = OpenEXR.InputFile(exrfile)",
" exrfile = str(exrfile)",
" file = OpenEXR.InputFile(exrfile)",
" pt = Imath.PixelType(Imath.PixelType.F... |
import OpenEXR
import Imath
import math
import time
import numpy as np
def writeEXR(fileName,outputR,outputG,outputB, sz):
print "Writing "+fileName
(strR, strG, strB) = [Channel.tostring() for Channel in (outputR, outputG, outputB)]
patchOut = OpenEXR.OutputFile(fileName, OpenEXR.Header(sz[... | [
[
1,
0,
0.0714,
0.0714,
0,
0.66,
0,
661,
0,
1,
0,
0,
661,
0,
0
],
[
1,
0,
0.1429,
0.0714,
0,
0.66,
0.2,
773,
0,
1,
0,
0,
773,
0,
0
],
[
1,
0,
0.2143,
0.0714,
0,
0.6... | [
"import OpenEXR",
"import Imath",
"import math",
"import time",
"import numpy as np",
"def writeEXR(fileName,outputR,outputG,outputB, sz):\n \n print(\"Writing \"+fileName)\n \n (strR, strG, strB) = [Channel.tostring() for Channel in (outputR, outputG, outputB)]\n \n patchOut = OpenEXR.... |
import os, sys
import OpenEXR
import Imath
import math
import time
import numpy
from numpy import array
np = numpy
import myextension
def readExr(exrfile):
exrfile = str(exrfile)
file = OpenEXR.InputFile(exrfile)
pt = Imath.PixelType(Imath.PixelType.FLOAT)
dw = file.header()['dataWindo... | [
[
1,
0,
0.0024,
0.0024,
0,
0.66,
0,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.0073,
0.0024,
0,
0.66,
0.05,
661,
0,
1,
0,
0,
661,
0,
0
],
[
1,
0,
0.0097,
0.0024,
0,
0.... | [
"import os, sys",
"import OpenEXR",
"import Imath",
"import math",
"import time",
"import numpy",
"from numpy import array",
"np = numpy",
"import myextension",
"def readExr(exrfile): \n\n \n\n exrfile = str(exrfile)\n\n file = OpenEXR.InputFile(exrfile)",
" exrfile = str(exrfile)",
... |
env = Environment()
DEBUG = ARGUMENTS.get('DEBUG','0')
#env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic'])
#env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic'])
env.Replace(CPPPATH=['/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include','/opt/local/include'])
if DEBUG=='1':
print "DEBUG"
... | [
[
14,
0,
0.0435,
0.0435,
0,
0.66,
0,
803,
3,
0,
0,
0,
947,
10,
1
],
[
14,
0,
0.1304,
0.0435,
0,
0.66,
0.25,
309,
3,
2,
0,
0,
607,
10,
1
],
[
8,
0,
0.3913,
0.0435,
0,
... | [
"env = Environment()",
"DEBUG = ARGUMENTS.get('DEBUG','0')",
"env.Replace(CPPPATH=['/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include','/opt/local/include'])",
"if DEBUG=='1':\n print(\"DEBUG\")\n env.Replace(CXXFLAGS=['-O2','-Wall','-DDEBUG'])\nelse:\n print(\"NO DEBUG\")\n env.Repl... |
"""
Basic functions and utilities
"""
class RepoConfig(object):
def __init__(self):
self.repos = {}
self.defaults = {}
self.autoUpdatePath = True
def get3(self, opt, repo, path):
if not (repo, opt) in self.repos:
return self.defaults.get(opt)
keys, map = self.repos[repo, opt]
for k... | [
[
8,
0,
0.0202,
0.0303,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.2677,
0.4444,
0,
0.66,
0.2,
147,
0,
7,
0,
0,
186,
0,
8
],
[
2,
1,
0.0758,
0.0404,
1,
0.7,
... | [
"\"\"\"\nBasic functions and utilities\n\"\"\"",
"class RepoConfig(object):\n def __init__(self):\n self.repos = {}\n self.defaults = {}\n self.autoUpdatePath = True\n\n def get3(self, opt, repo, path): \n if not (repo, opt) in self.repos:",
" def __init__(self):\n self.repos = {}\n self.de... |
import os, sys, unittest
import pysvn
from mock import Mock
from svncommitchecker import CommitContext
from svncommitchecker import CommitChecker
from scmtools import RepoConfig
class DummyClass(object): pass
class CommitContextTests(unittest.TestCase):
def testBase0(self):
ctx = CommitContext()
ctx.d('deb... | [
[
1,
0,
0.007,
0.007,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.0141,
0.007,
0,
0.66,
0.1111,
783,
0,
1,
0,
0,
783,
0,
0
],
[
1,
0,
0.0211,
0.007,
0,
0.66... | [
"import os, sys, unittest",
"import pysvn",
"from mock import Mock",
"from svncommitchecker import CommitContext",
"from svncommitchecker import CommitChecker",
"from scmtools import RepoConfig",
"class DummyClass(object): pass",
"class CommitContextTests(unittest.TestCase):\n def testBase0(self):\n ... |
import os, sys, unittest, inspect
from scmtools import RepoConfig, LoadRepoConfig
from scmtools import VersionString, FileExtMatch
from scmtools import FileExt
class SCMToolsTests(unittest.TestCase):
def testFileExtMatch(self):
assert FileExtMatch(None, 'java')
assert FileExtMatch('', 'java')
assert File... | [
[
1,
0,
0.0055,
0.0055,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
1,
0,
0.011,
0.0055,
0,
0.66,
0.1667,
632,
0,
2,
0,
0,
632,
0,
0
],
[
1,
0,
0.0165,
0.0055,
0,
0... | [
"import os, sys, unittest, inspect",
"from scmtools import RepoConfig, LoadRepoConfig",
"from scmtools import VersionString, FileExtMatch",
"from scmtools import FileExt",
"class SCMToolsTests(unittest.TestCase):\n def testFileExtMatch(self):\n assert FileExtMatch(None, 'java')\n assert FileExtMatch(... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Utility
#
import os, time, sys
import socket
from cStringIO import StringIO
from traceback import print_tb, print_stack
def mkdir_p(dir):
if os.path.isdir(dir):
pass
elif os.path.isfile(dir):
raise OSError("a file with same name as the desired " \
... | [
[
1,
0,
0.0588,
0.0065,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.0654,
0.0065,
0,
0.66,
0.0526,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.0784,
0.0065,
0,
... | [
"import os, time, sys",
"import socket",
"from cStringIO import StringIO",
"from traceback import print_tb, print_stack",
"def mkdir_p(dir):\n\tif os.path.isdir(dir):\n\t\tpass\n\t\n\telif os.path.isfile(dir):\n\t\traise OSError(\"a file with same name as the desired \" \\\n\t\t\t\"dir, '%s', already exists... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Debug info
#
__all__ = (
'errorInfo', 'svcInfo', 'returnInfo',)
import constants as CC
errorInfo = {}
svcInfo = {}
returnInfo = {}
def I(d, id):
d[getattr(CC, id)] = id
def EI(id):
I(errorInfo, id)
def SI(id):
I(svcInfo, id)
def RI(id):
I(returnInf... | [
[
14,
0,
0.1667,
0.0351,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
8,
0
],
[
1,
0,
0.2105,
0.0175,
0,
0.66,
0.04,
208,
0,
1,
0,
0,
208,
0,
0
],
[
14,
0,
0.2456,
0.0175,
0,
0.... | [
"__all__ = (\n\t'errorInfo', 'svcInfo', 'returnInfo',)",
"import constants as CC",
"errorInfo = {}",
"svcInfo = {}",
"returnInfo = {}",
"def I(d, id):\n\td[getattr(CC, id)] = id",
"\td[getattr(CC, id)] = id",
"def EI(id):\n\tI(errorInfo, id)",
"\tI(errorInfo, id)",
"def SI(id):\n\tI(svcInfo, id)",... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Protocol
#
#from cPickle import loads, dumps, HIGHEST_PROTOCOL
from fastmap import _loads as loads, _dumps as dumps
from struct import pack, unpack
from zlib import compress as _compress, decompress as _dcompress
import socket
from o3grid import constants a... | [
[
1,
0,
0.0488,
0.0049,
0,
0.66,
0,
960,
0,
2,
0,
0,
960,
0,
0
],
[
1,
0,
0.0537,
0.0049,
0,
0.66,
0.0833,
399,
0,
2,
0,
0,
399,
0,
0
],
[
1,
0,
0.0585,
0.0049,
0,
... | [
"from fastmap import _loads as loads, _dumps as dumps",
"from struct import pack, unpack",
"from zlib import compress as _compress, decompress as _dcompress",
"import socket",
"from o3grid import constants as CC",
"def CreateMessage(*ins):\n\t#buf = dumps(ins, HIGHEST_PROTOCOL)\n\tbuf =dumps(ins)\n\tbufle... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Mission and Job
#
import threading, time
import constants as CC
class MissionBase(object): pass
class SJobBase(object): pass
# ------
# mid - Mission id
# jid - Job ID
# jobid - Full job ID
# mname - Mission name
# jname - Job name
# ------
class Mission(M... | [
[
1,
0,
0.0811,
0.009,
0,
0.66,
0,
83,
0,
2,
0,
0,
83,
0,
0
],
[
1,
0,
0.0991,
0.009,
0,
0.66,
0.2,
208,
0,
1,
0,
0,
208,
0,
0
],
[
3,
0,
0.1171,
0.009,
0,
0.66,
... | [
"import threading, time",
"import constants as CC",
"class MissionBase(object): pass",
"class SJobBase(object): pass",
"class Mission(MissionBase):\n\tdef __init__(self, id, kwargs = None):\n\t\tself.serial = 0\n\t\tself.id = id\n\n\t\tself.jobs = {}\n\t\tself.waitJobs= {}\n\t\tself.readyJobs = {}",
"\tde... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# HUB Service
#
import os
import sys
import constants as CC
from service import ServiceBase
from protocol import O3Channel, O3Call
from utility import D as _D
class HubService(ServiceBase):
SVCID = CC.SVC_HUB
svcDescription = "HUB Service"
svcName = 'HUB'
... | [
[
1,
0,
0.0526,
0.0066,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0592,
0.0066,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0724,
0.0066,
0,
... | [
"import os",
"import sys",
"import constants as CC",
"from service import ServiceBase",
"from protocol import O3Channel, O3Call",
"from utility import D as _D",
"class HubService(ServiceBase):\n\tSVCID = CC.SVC_HUB\n\tsvcDescription = \"HUB Service\"\n\tsvcName = 'HUB'\n\tsvcVersion = '0.0.1.4'\n\n\tdef... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Base service module
#
import threading
import socket
import cPickle as pickle
import struct
import os
import constants as CC
from protocol import CreateMessage0, GetMessageFromSocket, CreateMessage
class ServiceException(Exception):
def __init__(self, *pa... | [
[
1,
0,
0.1154,
0.0128,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.1282,
0.0128,
0,
0.66,
0.1,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.141,
0.0128,
0,
0.66,
... | [
"import threading",
"import socket",
"import cPickle as pickle",
"import struct",
"import os",
"import constants as CC",
"from protocol import CreateMessage0, GetMessageFromSocket, CreateMessage",
"class ServiceException(Exception):\n\tdef __init__(self, *param):\n\t\tException.__init__(self, *param)"... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Auto Configure Policy
#
import socket
import constants as CC
class AutoConfigPolicy(object):
def __init__(self, service):
self.service = service
self.storageGroup = ['z01', 'z03', 'z15', 'z26']
def autoConfig0(self, channel, group, hostid):
#if not ... | [
[
1,
0,
0.12,
0.0133,
0,
0.66,
0,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.1333,
0.0133,
0,
0.66,
0.3333,
208,
0,
1,
0,
0,
208,
0,
0
],
[
3,
0,
0.5667,
0.8267,
0,
0.... | [
"import socket",
"import constants as CC",
"class AutoConfigPolicy(object):\n\tdef __init__(self, service):\n\t\tself.service = service\n\t\tself.storageGroup = ['z01', 'z03', 'z15', 'z26']\n\n\tdef autoConfig0(self, channel, group, hostid):\n\t\t#if not hostid.startswith('p-'):\n\t\t#\thid = \"p-%s\" % hostid"... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Autoconfig server in O3 grids
#
import threading
import sys
from service import ServiceBase
import constants as CC
class AutoConfigService(ServiceBase):
SVCID = CC.SVC_AUTOCONFIG
svcDescription = "Auto config service"
svcName = 'AUTOCONFIG'
svcVersion =... | [
[
1,
0,
0.225,
0.025,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.25,
0.025,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3,
0.025,
0,
0.66,
0.5... | [
"import threading",
"import sys",
"from service import ServiceBase",
"import constants as CC",
"class AutoConfigService(ServiceBase):\n\tSVCID = CC.SVC_AUTOCONFIG\n\tsvcDescription = \"Auto config service\"\n\tsvcName = 'AUTOCONFIG'\n\tsvcVersion = '0.0.1.0'\n\n\tdef __init__(self, server):\n\t\tself.server... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Name server in O3 grids
#
import threading
from service import ServiceBase
import constants as CC
class NameService(ServiceBase):
SVCID = CC.SVC_NAMES
svcDescription = "Name service"
svcName = 'NAMES'
svcVersion = '0.0.1.0'
def __init__(self, server):... | [
[
1,
0,
0.1154,
0.0128,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.141,
0.0128,
0,
0.66,
0.3333,
314,
0,
1,
0,
0,
314,
0,
0
],
[
1,
0,
0.1538,
0.0128,
0,
0.6... | [
"import threading",
"from service import ServiceBase",
"import constants as CC",
"class NameService(ServiceBase):\n\tSVCID = CC.SVC_NAMES\n\tsvcDescription = \"Name service\"\n\tsvcName = 'NAMES'\n\tsvcVersion = '0.0.1.0'\n\n\tdef __init__(self, server):\n\t\tself.server = server",
"\tSVCID = CC.SVC_NAMES",... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Warehouse server in O3 grids
#
from __future__ import with_statement
WAREHOUSE_VERSION = '0.0.0.28'
import sys, os, time
import threading
from random import choice, random
import constants as CC
from service import ServiceBase
from protocol import O3Channe... | [
[
1,
0,
0.0113,
0.0013,
0,
0.66,
0,
777,
0,
1,
0,
0,
777,
0,
0
],
[
14,
0,
0.0138,
0.0013,
0,
0.66,
0.0769,
382,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0164,
0.0013,
0,
0... | [
"from __future__ import with_statement",
"WAREHOUSE_VERSION = '0.0.0.28'",
"import sys, os, time",
"import threading",
"from random import choice, random",
"import constants as CC",
"from service import ServiceBase",
"from protocol import O3Channel, O3Call",
"from warehousedb import WarehouseDB",
... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Constants
#
DEFAULT_PORT = 50333
DEFAULT_LOG_PORT = 50332
DEFAULT_WAREHOUSE_PORT = 50333
DEFAULT_BASE = '/is/app/o3'
# ====
SVC_SYSTEM = 1
SVC_BASE = 2
SVC_SCHEDULE = 1003
SVC_SCHE = SVC_SCHEDULE
SVC_WORKSPACE = 1004
SVC_WS = SVC_WORKSPACE
SVC_FILESYSTEM =... | [
[
14,
0,
0.0804,
0.0089,
0,
0.66,
0,
924,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0893,
0.0089,
0,
0.66,
0.0132,
712,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0982,
0.0089,
0,
0... | [
"DEFAULT_PORT = 50333",
"DEFAULT_LOG_PORT = 50332",
"DEFAULT_WAREHOUSE_PORT = 50333",
"DEFAULT_BASE = '/is/app/o3'",
"SVC_SYSTEM = 1",
"SVC_BASE = 2",
"SVC_SCHEDULE = 1003",
"SVC_SCHE = SVC_SCHEDULE",
"SVC_WORKSPACE = 1004",
"SVC_WS = SVC_WORKSPACE",
"SVC_FILESYSTEM = 1005",
"SVC_FS = SVC_FILE... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# DB Layer for Warehouse
#
__all__ = [
'WarehouseDB',
'Entity',
'Room',
]
from sqlalchemy import *
import time
import constants as CC
from utility import appendinmap, removeinmap
from utility import sizeK
class Room(object): pass
class Entity(object): pa... | [
[
14,
0,
0.0453,
0.0206,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0617,
0.0041,
0,
0.66,
0.1111,
835,
0,
1,
0,
0,
835,
0,
0
],
[
1,
0,
0.07,
0.0041,
0,
0.6... | [
"__all__ = [\n\t'WarehouseDB',\n\t'Entity',\n\t'Room',\n]",
"from sqlalchemy import *",
"import time",
"import constants as CC",
"from utility import appendinmap, removeinmap",
"from utility import sizeK",
"class Room(object): pass",
"class Entity(object): pass",
"class Shadow(object): pass",
"cla... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Config
#
import os
def GetConfigCode(name):
paths = [
'%s/%s' % ('/is/app/o3/etc', name),
name ]
for fn in paths:
if os.path.isfile(fn):
break
fin = file(fn, 'r')
configcode = fin.read()
fin.close()
return configcode
def Load(name):
confi... | [
[
1,
0,
0.3214,
0.0357,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.6071,
0.4643,
0,
0.66,
0.5,
306,
0,
1,
1,
0,
0,
0,
4
],
[
14,
1,
0.4643,
0.1071,
1,
0.05... | [
"import os",
"def GetConfigCode(name):\n\tpaths = [\n\t\t'%s/%s' % ('/is/app/o3/etc', name),\n\t\tname ]\n\tfor fn in paths:\n\t\tif os.path.isfile(fn):\n\t\t\tbreak",
"\tpaths = [\n\t\t'%s/%s' % ('/is/app/o3/etc', name),\n\t\tname ]",
"\tfor fn in paths:\n\t\tif os.path.isfile(fn):\n\t\t\tbreak",
"\t\tif o... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# SNIP
#
# ==Description
# Simple space stroage client
#
import socket
import constants as CC
import cStringIO as StringIO
from protocol import CreateMessage, GetMessageFromSocket, O3Space, O3Call
class RemoteSnipClient(object):
def __init__(self, space):
... | [
[
1,
0,
0.1319,
0.011,
0,
0.66,
0,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.1429,
0.011,
0,
0.66,
0.25,
208,
0,
1,
0,
0,
208,
0,
0
],
[
1,
0,
0.1538,
0.011,
0,
0.66,... | [
"import socket",
"import constants as CC",
"import cStringIO as StringIO",
"from protocol import CreateMessage, GetMessageFromSocket, O3Space, O3Call",
"class RemoteSnipClient(object):\n\tdef __init__(self, space):\n\t\tself.addr = space\n\t\tself.error = None\n\t\n\tdef getTransport(self):\n\t\ts = socket.... |
#!/usr/bin/python
from o3grid import constants as CC
BASE = '/is/app/o3'
def B(p, b = BASE):
return '%s/%s' % (b, p)
common = {
'name': 'z00',
'id': 'z00',
'zone': 'o3dev',
'entry': ('10.6.32.197', CC.DEFAULT_PORT),
'base': BASE,
'names': {
'HUB': ('10.6.32.197', CC.DEFAULT_PORT),
'NAMES': ('10.6.32.197',... | [
[
1,
0,
0.0435,
0.0145,
0,
0.66,
0,
791,
0,
1,
0,
0,
791,
0,
0
],
[
14,
0,
0.058,
0.0145,
0,
0.66,
0.1,
315,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.0942,
0.029,
0,
0.66,
... | [
"from o3grid import constants as CC",
"BASE = '/is/app/o3'",
"def B(p, b = BASE):\n\treturn '%s/%s' % (b, p)",
"\treturn '%s/%s' % (b, p)",
"common = {\n\t'name': 'z00',\n\t'id': 'z00',\n\t'zone': 'o3dev',\n\t'entry': ('10.6.32.197', CC.DEFAULT_PORT),\n\t'base': BASE,\n\t'names': {\n\t\t'HUB': ('10.6.32.197... |
#!python2.5
import os
from o3grid.service import BaseService, EchoService
from o3grid.hub import HubService
from o3grid.baseserver import ServerBase
from o3grid import config
from o3grid.utility import D
from o3grid.protocol import O3Channel
from o3grid import constants as CC
def readfile(fn):
fin = file(fn, 'r')
... | [
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1316,
0.0263,
0,
0.66,
0.1,
220,
0,
2,
0,
0,
220,
0,
0
],
[
1,
0,
0.1579,
0.0263,
0,
0.6... | [
"import os",
"from o3grid.service import BaseService, EchoService",
"from o3grid.hub import HubService",
"from o3grid.baseserver import ServerBase",
"from o3grid import config",
"from o3grid.utility import D",
"from o3grid.protocol import O3Channel",
"from o3grid import constants as CC",
"def readfi... |
import socket
import time
fout = file('/is/app/o3/log/o3.log', 'a')
sin = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
sin.bind(('0.0.0.0', 50332))
while True:
try:
buf = sin.recv(300)
log = '%s %s' % (time.strftime('%m%d %H:%M:%S'), buf)
fout.write(log)
fout.write('\n')
fout.flush()
print log... | [
[
1,
0,
0.0385,
0.0385,
0,
0.66,
0,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0.1429,
654,
0,
1,
0,
0,
654,
0,
0
],
[
14,
0,
0.1923,
0.0385,
0,
... | [
"import socket",
"import time",
"fout = file('/is/app/o3/log/o3.log', 'a')",
"sin = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)",
"sin.bind(('0.0.0.0', 50332))",
"while True:\n\ttry:\n\t\tbuf = sin.recv(300)\n\n\t\tlog = '%s %s' % (time.strftime('%m%d %H:%M:%S'), buf)\n\n\t\tfout.write(log)\n\t\tf... |
#!/usr/bin/python
import pprint
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB')
pprint.pprint(res)
| [
[
1,
0,
0.3,
0.1,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.4,
0.1,
0,
0.66,
0.2,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.5,
0.1,
0,
0.66,
0.4,
99... | [
"import pprint",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB')",
"pprint.pprint(res)"
] |
from o3lib import fs
import Queue
queue = Queue.Queue()
fs.O3EntityReader(queue,
label = '0',
node = 'p-dx69',
name = 'test/TEST.iz0',
addr = '10.6.39.218',
entityid = 4498)
fout = file('/tmp/TEST_ER01', 'wb')
while True:
c = queue.get()
if not c:
break
print len(c)
fout.write(c)
fout.close()
| [
[
1,
0,
0.0435,
0.0435,
0,
0.66,
0,
816,
0,
1,
0,
0,
816,
0,
0
],
[
1,
0,
0.087,
0.0435,
0,
0.66,
0.1667,
952,
0,
1,
0,
0,
952,
0,
0
],
[
14,
0,
0.1739,
0.0435,
0,
... | [
"from o3lib import fs",
"import Queue",
"queue = Queue.Queue()",
"fs.O3EntityReader(queue,\n\tlabel = '0',\n\tnode = 'p-dx69',\n\tname = 'test/TEST.iz0',\n\taddr = '10.6.39.218',\n\tentityid = 4498)",
"fout = file('/tmp/TEST_ER01', 'wb')",
"while True:\n\tc = queue.get()\n\tif not c:\n\t\tbreak\n\tprint(l... |
#!/usr/bin/python
import pprint,sys
from o3grid import constants as CC
from o3grid.protocol import O3Call
res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),
CC.SVC_HUB, 'UNLOADO3LIB')
| [
[
1,
0,
0.375,
0.125,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.5,
0.125,
0,
0.66,
0.3333,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.625,
0.125,
0,
0.66,
... | [
"import pprint,sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),\n\tCC.SVC_HUB, 'UNLOADO3LIB')"
] |
#!/usr/bin/python
import pprint,sys
import time
from o3grid import constants as CC
from o3grid.protocol import O3Call
import o3testmisc
#S = O3Channel()
#S.connect(('127.0.0.1', CC.DEFAULT_PORT))
#res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION',
# 'ls01', {
# 'module': 'logsplit01.logsplit01',
# 'missionclass': 'O3Missio... | [
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
0.66,
0.1429,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1064,
0.0213,
0,
... | [
"import pprint,sys",
"import time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"import o3testmisc",
"if len(sys.argv) >= 2:\n\tdatename = sys.argv[1]\nelse:\n\tdatename = '2007/01/18'",
"\tdatename = sys.argv[1]",
"\tdatename = '2007/01/18'",
"dname = datename.replac... |
#!/usr/bin/python
import pprint
import sys
from o3grid import constants as CC
from o3grid.protocol import O3Channel
import time
entitys = ['1']
if len(sys.argv) > 1:
entitys = []
for x in sys.argv[1:]:
try:
entitys.append(int(x))
except ValueError:
entitys.append(x)
S = O3Channel().connect(('localhost'... | [
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1765,
0.0294,
0,
... | [
"import pprint",
"import sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel",
"import time",
"entitys = ['1']",
"if len(sys.argv) > 1:\n\tentitys = []\n\tfor x in sys.argv[1:]:\n\t\ttry:\n\t\t\tentitys.append(int(x))\n\t\texcept ValueError:\n\t\t\tentitys.append(x)",
"\... |
#!/usr/bin/python
import pprint,sys
import time
from o3grid import constants as CC
from o3grid.protocol import O3Call
import o3testmisc
if len(sys.argv) >= 2:
prefix = sys.argv[1]
else:
prefix = 'uume/2007/01/18'
logname, sep, datename = prefix.partition('/')
mid = 'ODT1-%s-%s' % (logname, datename.replace('/', ... | [
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.66,
0.1,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1471,
0.0294,
0,
0.6... | [
"import pprint,sys",
"import time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"import o3testmisc",
"if len(sys.argv) >= 2:\n\tprefix = sys.argv[1]\nelse:\n\tprefix = 'uume/2007/01/18'",
"\tprefix = sys.argv[1]",
"\tprefix = 'uume/2007/01/18'",
"logname, sep, datenam... |
#!/usr/bin/python
import pprint
import socket
from o3grid import constants as CC
from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket
import time
#res = O3Call(('p-dx59-in', CC.DEFAULT_PORT),
# CC.SVC_SPACE, 'ROOMENTITYSPLIT0', '0', 'plog/uume/2006/12/26/2100', 1024 * 1024 * 256)
#pprint.pprint(res)
S ... | [
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.66,
0.0909,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.1923,
0.0385,
0,
... | [
"import pprint",
"import socket",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket",
"import time",
"S = O3Channel().connect(('p-dx63-in', CC.DEFAULT_PORT))",
"res = S(CC.SVC_SPACE, 'ROOMGET', '0', 'plog/uume/2006/12/26/2100', 0, 1242365418)",
... |
#!/usr/bin/python
import pprint
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB')
pprint.pprint(res)
| [
[
1,
0,
0.3,
0.1,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.4,
0.1,
0,
0.66,
0.2,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.5,
0.1,
0,
0.66,
0.4,
99... | [
"import pprint",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB')",
"pprint.pprint(res)"
] |
#!/usr/bin/python
import pprint,sys
import time
from o3grid import constants as CC
from o3grid.protocol import O3Call
import o3testmisc
#S = O3Channel()
#S.connect(('127.0.0.1', CC.DEFAULT_PORT))
#res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION',
# 'ls01', {
# 'module': 'logsplit01.logsplit01',
# 'missionclass': 'O3Missio... | [
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
0.66,
0.1429,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1064,
0.0213,
0,
... | [
"import pprint,sys",
"import time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"import o3testmisc",
"if len(sys.argv) >= 2:\n\tdatename = sys.argv[1]\nelse:\n\tdatename = '2007/01/18'",
"\tdatename = sys.argv[1]",
"\tdatename = '2007/01/18'",
"dname = datename.replac... |
#!/usr/bin/python
import pprint,sys
import time
from o3grid import constants as CC
from o3grid.protocol import O3Call
import o3testmisc
if len(sys.argv) >= 2:
prefix = sys.argv[1]
else:
prefix = 'uume/2007/01/18'
logname, sep, datename = prefix.partition('/')
mid = 'ODT1-%s-%s' % (logname, datename.replace('/', ... | [
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.66,
0.1,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1471,
0.0294,
0,
0.6... | [
"import pprint,sys",
"import time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"import o3testmisc",
"if len(sys.argv) >= 2:\n\tprefix = sys.argv[1]\nelse:\n\tprefix = 'uume/2007/01/18'",
"\tprefix = sys.argv[1]",
"\tprefix = 'uume/2007/01/18'",
"logname, sep, datenam... |
#!/usr/bin/python
import pprint,sys
from o3grid import constants as CC
from o3grid.protocol import O3Call
res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),
CC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')
| [
[
1,
0,
0.375,
0.125,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.5,
0.125,
0,
0.66,
0.3333,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.625,
0.125,
0,
0.66,
... | [
"import pprint,sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),\n\tCC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')"
] |
#!/usr/bin/python
import pprint
import sys
from o3grid import constants as CC
from o3grid.protocol import O3Channel
import time
entitys = ['1']
if len(sys.argv) > 1:
entitys = []
for x in sys.argv[1:]:
try:
entitys.append(int(x))
except ValueError:
entitys.append(x)
S = O3Channel().connect(('localhost'... | [
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1765,
0.0294,
0,
... | [
"import pprint",
"import sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel",
"import time",
"entitys = ['1']",
"if len(sys.argv) > 1:\n\tentitys = []\n\tfor x in sys.argv[1:]:\n\t\ttry:\n\t\t\tentitys.append(int(x))\n\t\texcept ValueError:\n\t\t\tentitys.append(x)",
"\... |
#!/usr/bin/python
import pprint
import sys, os
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
if len(sys.argv) >= 2:
name = sys.argv[1]
else:
name = 'plog/uume/2006/12/31/'
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name)
pprint.ppri... | [
[
1,
0,
0.1875,
0.0625,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.25,
0.0625,
0,
0.66,
0.1429,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.3125,
0.0625,
0,
0.... | [
"import pprint",
"import sys, os",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"if len(sys.argv) >= 2:\n\tname = sys.argv[1]\nelse:\n\tname = 'plog/uume/2006/12/31/'",
"\tname = sys.argv[1]",
"\tname = 'plog/uume/2006/12/31/'",
"res = O3Call(... |
#!/usr/bin/python
import pprint, sys, time
from o3grid import constants as CC
from o3grid.protocol import O3Call
#S = O3Channel()
#S.connect(('127.0.0.1', CC.DEFAULT_PORT))
#res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION',
# 'ls01', {
# 'module': 'logsplit01.logsplit01',
# 'missionclass': 'O3Mission',
# })
if len(sys.ar... | [
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0,
276,
0,
3,
0,
0,
276,
0,
0
],
[
1,
0,
0.129,
0.0323,
0,
0.66,
0.1667,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.1613,
0.0323,
0,
0... | [
"import pprint, sys, time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"if len(sys.argv) >= 2:\n\tprefix = sys.argv[1]\nelse:\n\tprefix = 'plog/uume/2006/12/31'",
"\tprefix = sys.argv[1]",
"\tprefix = 'plog/uume/2006/12/31'",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),... |
#!/usr/bin/python
import pprint
import sys, os
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
if len(sys.argv) >= 2:
name = sys.argv[1]
else:
name = 'plog/uume/2006/12/31/'
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name)
pprint.pprin... | [
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.2222,
0.0556,
0,
0.66,
0.1111,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.2778,
0.0556,
0,
... | [
"import pprint",
"import sys, os",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"if len(sys.argv) >= 2:\n\tname = sys.argv[1]\nelse:\n\tname = 'plog/uume/2006/12/31/'",
"\tname = sys.argv[1]",
"\tname = 'plog/uume/2006/12/31/'",
"res = O3Call(... |
#!/usr/bin/python
import pprint
from o3grid import constants as CC
from o3grid.protocol import O3Channel
import time
S = O3Channel().connect(('localhost', CC.DEFAULT_PORT))
res = S(CC.SVC_WAREHOUSE, 'LISTROOM')
pprint.pprint(res[2])
for r in res[2]:
res = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0])
pprint.pprint(res)
#... | [
[
1,
0,
0.12,
0.04,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.16,
0.04,
0,
0.66,
0.125,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.2,
0.04,
0,
0.66,
0.25... | [
"import pprint",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel",
"import time",
"S = O3Channel().connect(('localhost', CC.DEFAULT_PORT))",
"res = S(CC.SVC_WAREHOUSE, 'LISTROOM')",
"pprint.pprint(res[2])",
"for r in res[2]:\n\tres = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0])\... |
#!/usr/bin/python
import pprint,sys
from o3grid import constants as CC
from o3grid.protocol import O3Call
res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),
CC.SVC_HUB, 'UNLOADO3LIB')
| [
[
1,
0,
0.375,
0.125,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.5,
0.125,
0,
0.66,
0.3333,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.625,
0.125,
0,
0.66,
... | [
"import pprint,sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),\n\tCC.SVC_HUB, 'UNLOADO3LIB')"
] |
import os
HOME = os.environ.get('HOME', '/root')
O3PROFILEDIR = HOME + '/.o3'
def IsDebugMission(missionname):
m1 = O3PROFILEDIR + '/_debug/all'
m2 = O3PROFILEDIR + '/_debug/' + missionname
if os.path.exists(m1):
return True
if os.path.exists(m2):
return True
return False
| [
[
1,
0,
0.0769,
0.0769,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.2308,
0.0769,
0,
0.66,
0.3333,
962,
3,
2,
0,
0,
607,
10,
1
],
[
14,
0,
0.3077,
0.0769,
0,
... | [
"import os",
"HOME = os.environ.get('HOME', '/root')",
"O3PROFILEDIR = HOME + '/.o3'",
"def IsDebugMission(missionname):\n\tm1 = O3PROFILEDIR + '/_debug/all'\n\tm2 = O3PROFILEDIR + '/_debug/' + missionname\n\tif os.path.exists(m1):\n\t\treturn True\n\tif os.path.exists(m2):\n\t\treturn True\n\treturn False",
... |
#!/usr/bin/python
import pprint, sys, time
from o3grid import constants as CC
from o3grid.protocol import O3Call
#S = O3Channel()
#S.connect(('127.0.0.1', CC.DEFAULT_PORT))
#res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION',
# 'ls01', {
# 'module': 'logsplit01.logsplit01',
# 'missionclass': 'O3Mission',
# })
if len(sys.ar... | [
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0,
276,
0,
3,
0,
0,
276,
0,
0
],
[
1,
0,
0.129,
0.0323,
0,
0.66,
0.1667,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.1613,
0.0323,
0,
0... | [
"import pprint, sys, time",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"if len(sys.argv) >= 2:\n\tprefix = sys.argv[1]\nelse:\n\tprefix = 'plog/uume/2006/12/31'",
"\tprefix = sys.argv[1]",
"\tprefix = 'plog/uume/2006/12/31'",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),... |
#!/usr/bin/python
import pprint
import sys, os
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
if len(sys.argv) >= 2:
name = sys.argv[1]
else:
name = 'plog/uume/2006/12/31/'
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name)
pprint.pprin... | [
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.2222,
0.0556,
0,
0.66,
0.1111,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.2778,
0.0556,
0,
... | [
"import pprint",
"import sys, os",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"if len(sys.argv) >= 2:\n\tname = sys.argv[1]\nelse:\n\tname = 'plog/uume/2006/12/31/'",
"\tname = sys.argv[1]",
"\tname = 'plog/uume/2006/12/31/'",
"res = O3Call(... |
#!/usr/bin/python
import pprint,sys
from o3grid import constants as CC
from o3grid.protocol import O3Call
res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),
CC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')
| [
[
1,
0,
0.375,
0.125,
0,
0.66,
0,
276,
0,
2,
0,
0,
276,
0,
0
],
[
1,
0,
0.5,
0.125,
0,
0.66,
0.3333,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.625,
0.125,
0,
0.66,
... | [
"import pprint,sys",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call",
"res = O3Call(('127.0.0.1', CC.DEFAULT_PORT),\n\tCC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')"
] |
#!/usr/bin/python
import pprint
from o3grid import constants as CC
from o3grid.protocol import O3Channel
import time
S = O3Channel().connect(('localhost', CC.DEFAULT_PORT))
res = S(CC.SVC_WAREHOUSE, 'LISTROOM')
pprint.pprint(res[2])
for r in res[2]:
res = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0])
pprint.pprint(res)
#... | [
[
1,
0,
0.12,
0.04,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.16,
0.04,
0,
0.66,
0.125,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.2,
0.04,
0,
0.66,
0.25... | [
"import pprint",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel",
"import time",
"S = O3Channel().connect(('localhost', CC.DEFAULT_PORT))",
"res = S(CC.SVC_WAREHOUSE, 'LISTROOM')",
"pprint.pprint(res[2])",
"for r in res[2]:\n\tres = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0])\... |
#!/usr/bin/python
import pprint
import socket
from o3grid import constants as CC
from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket
import time
#res = O3Call(('p-dx59-in', CC.DEFAULT_PORT),
# CC.SVC_SPACE, 'ROOMENTITYSPLIT0', '0', 'plog/uume/2006/12/26/2100', 1024 * 1024 * 256)
#pprint.pprint(res)
S ... | [
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.66,
0.0909,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.1923,
0.0385,
0,
... | [
"import pprint",
"import socket",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket",
"import time",
"S = O3Channel().connect(('p-dx63-in', CC.DEFAULT_PORT))",
"res = S(CC.SVC_SPACE, 'ROOMGET', '0', 'plog/uume/2006/12/26/2100', 0, 1242365418)",
... |
#!/usr/bin/python
import pprint
import sys, os
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import time
if len(sys.argv) >= 2:
name = sys.argv[1]
else:
name = 'plog/uume/2006/12/31/'
res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name)
pprint.ppri... | [
[
1,
0,
0.1875,
0.0625,
0,
0.66,
0,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.25,
0.0625,
0,
0.66,
0.1429,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.3125,
0.0625,
0,
0.... | [
"import pprint",
"import sys, os",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import time",
"if len(sys.argv) >= 2:\n\tname = sys.argv[1]\nelse:\n\tname = 'plog/uume/2006/12/31/'",
"\tname = sys.argv[1]",
"\tname = 'plog/uume/2006/12/31/'",
"res = O3Call(... |
#
# O3 base library entry
#
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
__VERSION__ = '0.0.0.2'
class O3(object):
def __init__(self, workspace):
self.ws = workspace
self.localnames = {}
def saveResult(self, name, value, resnodename = 'RESULT'):
respoint = self.localna... | [
[
1,
0,
0.1429,
0.0286,
0,
0.66,
0,
791,
0,
1,
0,
0,
791,
0,
0
],
[
1,
0,
0.1714,
0.0286,
0,
0.66,
0.3333,
993,
0,
2,
0,
0,
993,
0,
0
],
[
14,
0,
0.2286,
0.0286,
0,
... | [
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"__VERSION__ = '0.0.0.2'",
"class O3(object):\n\tdef __init__(self, workspace):\n\t\tself.ws = workspace\n\t\tself.localnames = {}\n\t\n\tdef saveResult(self, name, value, resnodename = 'RESULT'):\n\t\trespoint = self.local... |
from struct import pack as ipack, unpack as iunpack
from zlib import decompress as _decompress, MAX_WBITS
from o3grid import constants as CC
from o3grid.protocol import O3Call, O3Channel
import threading
import Queue
# ------
# File services ...
# ------
def O3EntityReader0(queue, **P):
try:
node = P['node']
ad... | [
[
1,
0,
0.013,
0.013,
0,
0.66,
0,
399,
0,
2,
0,
0,
399,
0,
0
],
[
1,
0,
0.026,
0.013,
0,
0.66,
0.125,
373,
0,
2,
0,
0,
373,
0,
0
],
[
1,
0,
0.0519,
0.013,
0,
0.66,
... | [
"from struct import pack as ipack, unpack as iunpack",
"from zlib import decompress as _decompress, MAX_WBITS",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Call, O3Channel",
"import threading",
"import Queue",
"def O3EntityReader0(queue, **P):\n\ttry:\n\t\tnode = P['node']\n\t\t... |
#
# Special compress file format for O3 warehouse
#
# File Structure
# Offset Length
# 0 4B "ISZ0" (4char)
# 4B FLAGS (dowrd)
# 4B VERSION (dword)
# 4B NOUSED, 0
# 16 4B "HD01" (4char)
# 4B NOUSED, 0
# 4B FILE BLOCKS
# ... | [
[
1,
0,
0.2627,
0.0085,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.2712,
0.0085,
0,
0.66,
0.1667,
984,
0,
1,
0,
0,
984,
0,
0
],
[
1,
0,
0.2797,
0.0085,
0,
... | [
"import os, sys, zlib",
"import binascii",
"from zlib import compress as _compress, decompress as _decompress",
"import struct",
"def CompressFile(finame, foname, linemode = True, bs = 16777216, level = 6):\n\tfin = file(finame, 'rb')\n\tfout = file(foname, 'wb')\n\n\tbi = list() # block index\n\tdbb = 0 # ... |
O3LIB_VERSION = '0.0.0.1'
| [
[
14,
0,
1,
1,
0,
0.66,
0,
493,
1,
0,
0,
0,
0,
3,
0
]
] | [
"O3LIB_VERSION = '0.0.0.1'"
] |
#!python2.5
import os
from o3grid.service import BaseService, EchoService
from o3grid.hub import HubService
from o3grid.baseserver import ServerBase
from o3grid import config
from o3grid.utility import D
CONFIG = 'config.o3'
def main():
global CONFIG
if os.environ.has_key('O3_CONFIG'):
CONFIG = os.environ['O3_C... | [
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1613,
0.0323,
0,
0.66,
0.125,
220,
0,
2,
0,
0,
220,
0,
0
],
[
1,
0,
0.1935,
0.0323,
0,
0... | [
"import os",
"from o3grid.service import BaseService, EchoService",
"from o3grid.hub import HubService",
"from o3grid.baseserver import ServerBase",
"from o3grid import config",
"from o3grid.utility import D",
"CONFIG = 'config.o3'",
"def main():\n\tglobal CONFIG\n\tif os.environ.has_key('O3_CONFIG'):... |
#!python2.5
import os
from o3grid.service import BaseService, EchoService
from o3grid.hub import HubService
from o3grid.baseserver import ServerBase
from o3grid import config
from o3grid.utility import D
from o3grid.protocol import O3Channel
from o3grid import constants as CC
def readfile(fn):
fin = file(fn, 'r')
... | [
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1316,
0.0263,
0,
0.66,
0.1,
220,
0,
2,
0,
0,
220,
0,
0
],
[
1,
0,
0.1579,
0.0263,
0,
0.6... | [
"import os",
"from o3grid.service import BaseService, EchoService",
"from o3grid.hub import HubService",
"from o3grid.baseserver import ServerBase",
"from o3grid import config",
"from o3grid.utility import D",
"from o3grid.protocol import O3Channel",
"from o3grid import constants as CC",
"def readfi... |
#!/usr/bin/python
from o3grid import constants as CC
BASE = '/is/app/o3'
def B(p, b = BASE):
return '%s/%s' % (b, p)
common = {
'name': 'z00',
'id': 'z00',
'zone': 'o3dev',
'entry': ('10.6.32.197', CC.DEFAULT_PORT),
'base': BASE,
'names': {
'HUB': ('10.6.32.197', CC.DEFAULT_PORT),
'NAMES': ('10.6.32.197',... | [
[
1,
0,
0.0435,
0.0145,
0,
0.66,
0,
791,
0,
1,
0,
0,
791,
0,
0
],
[
14,
0,
0.058,
0.0145,
0,
0.66,
0.1,
315,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.0942,
0.029,
0,
0.66,
... | [
"from o3grid import constants as CC",
"BASE = '/is/app/o3'",
"def B(p, b = BASE):\n\treturn '%s/%s' % (b, p)",
"\treturn '%s/%s' % (b, p)",
"common = {\n\t'name': 'z00',\n\t'id': 'z00',\n\t'zone': 'o3dev',\n\t'entry': ('10.6.32.197', CC.DEFAULT_PORT),\n\t'base': BASE,\n\t'names': {\n\t\t'HUB': ('10.6.32.197... |
#!python2.5
import os
from o3grid.service import BaseService, EchoService
from o3grid.hub import HubService
from o3grid.baseserver import ServerBase
from o3grid import config
from o3grid.utility import D
CONFIG = 'config.o3'
def main():
global CONFIG
if os.environ.has_key('O3_CONFIG'):
CONFIG = os.environ['O3_C... | [
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1613,
0.0323,
0,
0.66,
0.125,
220,
0,
2,
0,
0,
220,
0,
0
],
[
1,
0,
0.1935,
0.0323,
0,
0... | [
"import os",
"from o3grid.service import BaseService, EchoService",
"from o3grid.hub import HubService",
"from o3grid.baseserver import ServerBase",
"from o3grid import config",
"from o3grid.utility import D",
"CONFIG = 'config.o3'",
"def main():\n\tglobal CONFIG\n\tif os.environ.has_key('O3_CONFIG'):... |
#!/usr/bin/python
import os
SOURCE='/is/app/o3/base'
TARGET='/is/app/o3/o3svn'
def GetINodeNumber(path1):
try:
return os.stat(path1)[1]
except:
return -1
def IsSameFile(path1, path2):
return GetINodeNumber(path1) == GetINodeNumber(path2)
def L(str, chr = '|'):
print '%s %s' % (chr, str)
# ===
def ScanDir... | [
[
1,
0,
0.0333,
0.0111,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.0556,
0.0111,
0,
0.66,
0.1111,
792,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0667,
0.0111,
0,
... | [
"import os",
"SOURCE='/is/app/o3/base'",
"TARGET='/is/app/o3/o3svn'",
"def GetINodeNumber(path1):\n\ttry:\n\t\treturn os.stat(path1)[1]\n\texcept:\n\t\treturn -1",
"\ttry:\n\t\treturn os.stat(path1)[1]\n\texcept:\n\t\treturn -1",
"\t\treturn os.stat(path1)[1]",
"\t\treturn -1",
"def IsSameFile(path1, ... |
#
# ==AUTHOR
# Sin Yu <scaner@gmail.com>
#
# ==MODULE
# Create WareHouse Index DB
#
DBURL = 'mysql://o3:o3indexdb@p-dx44-in/o3'
import sys
sys.path.append('/is/app/o3/lib/o3')
from sqlalchemy import *
def CreateO3WarehouseDatabase(url):
engine = create_engine(url)
metadata = BoundMetaData(engine)
engine.ech... | [
[
14,
0,
0.0865,
0.0096,
0,
0.66,
0,
354,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1058,
0.0096,
0,
0.66,
0.2,
509,
0,
1,
0,
0,
509,
0,
0
],
[
8,
0,
0.1154,
0.0096,
0,
0.66... | [
"DBURL = 'mysql://o3:o3indexdb@p-dx44-in/o3'",
"import sys",
"sys.path.append('/is/app/o3/lib/o3')",
"from sqlalchemy import *",
"def CreateO3WarehouseDatabase(url):\n\tengine = create_engine(url)\n\tmetadata = BoundMetaData(engine)\n\n\tengine.echo = True\n\n\troomTable = Table(\n\t\t'room', metadata,",
... |
#!/usr/bin/python
import os
SOURCE='/is/app/o3/base'
TARGET='/is/app/o3/o3svn'
def GetINodeNumber(path1):
try:
return os.stat(path1)[1]
except:
return -1
def IsSameFile(path1, path2):
return GetINodeNumber(path1) == GetINodeNumber(path2)
def L(str, chr = '|'):
print '%s %s' % (chr, str)
# ===
def ScanDir... | [
[
1,
0,
0.0333,
0.0111,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.0556,
0.0111,
0,
0.66,
0.1111,
792,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0667,
0.0111,
0,
... | [
"import os",
"SOURCE='/is/app/o3/base'",
"TARGET='/is/app/o3/o3svn'",
"def GetINodeNumber(path1):\n\ttry:\n\t\treturn os.stat(path1)[1]\n\texcept:\n\t\treturn -1",
"\ttry:\n\t\treturn os.stat(path1)[1]\n\texcept:\n\t\treturn -1",
"\t\treturn os.stat(path1)[1]",
"\t\treturn -1",
"def IsSameFile(path1, ... |
import os, sys, time
import socket
import random
O3_BASE_PATH = '/is/app/o3'
O3_LIB_PATH = ['base', 'lib/o3']
sys.path.extend([ '%s/%s' % (O3_BASE_PATH, lib) for lib in O3_LIB_PATH])
from o3grid import constants as CC
from o3grid.protocol import O3Channel, O3Call
# -----
def ReadConfigStrFromFile(fn):
fin = file(f... | [
[
1,
0,
0.0108,
0.0108,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.0215,
0.0108,
0,
0.66,
0.0909,
687,
0,
1,
0,
0,
687,
0,
0
],
[
1,
0,
0.0323,
0.0108,
0,
... | [
"import os, sys, time",
"import socket",
"import random",
"O3_BASE_PATH = '/is/app/o3'",
"O3_LIB_PATH = ['base', 'lib/o3']",
"sys.path.extend([ '%s/%s' % (O3_BASE_PATH, lib) for lib in O3_LIB_PATH])",
"from o3grid import constants as CC",
"from o3grid.protocol import O3Channel, O3Call",
"def ReadCon... |
#!/usr/bin/python
codebase = {
'name': 'isgrid0',
'version': '0.0.0.1',
'files': [
'isgrid0/__init__.py',
'isgrid0/isgrid0.py',
],
'modules': [
'isgrid0.isgrid0',
'isgrid0',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'isgrid0',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'isgrid0/__init__.py',\n\t\t'isgrid0/isgrid0.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'oneday01',
'version': '0.0.0.1',
'files': [
'oneday01/__init__.py',
'oneday01/oneday01.py',
],
'modules': [
'oneday01.oneday01',
'oneday01',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'oneday01',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'oneday01/__init__.py',\n\t\t'oneday01/oneday01.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'oneday02',
'version': '0.0.0.1',
'files': [
'oneday02/__init__.py',
'oneday02/oneday02.py',
],
'modules': [
'oneday02.oneday02',
'oneday02',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'oneday02',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'oneday02/__init__.py',\n\t\t'oneday02/oneday02.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'isgrid0',
'version': '0.0.0.1',
'files': [
'isgrid0/__init__.py',
'isgrid0/isgrid0.py',
],
'modules': [
'isgrid0.isgrid0',
'isgrid0',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'isgrid0',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'isgrid0/__init__.py',\n\t\t'isgrid0/isgrid0.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'uipreducer01',
'version': '0.0.0.1',
'files': [
'uipreducer01/__init__.py',
'uipreducer01/uipreducer01.py',
],
'modules': [
'uipreducer01.uipreducer01',
'uipreducer01',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'uipreducer01',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'uipreducer01/__init__.py',\n\t\t'uipreducer01/uipreducer01.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'uipreducer01',
'version': '0.0.0.1',
'files': [
'uipreducer01/__init__.py',
'uipreducer01/uipreducer01.py',
],
'modules': [
'uipreducer01.uipreducer01',
'uipreducer01',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'uipreducer01',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'uipreducer01/__init__.py',\n\t\t'uipreducer01/uipreducer01.py',\n\t],"
] |
#!/usr/bin/python
codebase = {
'name': 'oneday01',
'version': '0.0.0.1',
'files': [
'oneday01/__init__.py',
'oneday01/oneday01.py',
],
'modules': [
'oneday01.oneday01',
'oneday01',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'oneday01',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'oneday01/__init__.py',\n\t\t'oneday01/oneday01.py',\n\t],"
] |
#!/usr/bin/python
from o3grid.utility import cout
class IsGrid0Job(object):
def run(self):
cout("I'm iSGrid0.Job")
cout("Load IsGrid0.IsGrid0")
def generateJob(jobinfo, workspace):
return IsGrid0Job()
| [
[
1,
0,
0.25,
0.0833,
0,
0.66,
0,
120,
0,
1,
0,
0,
120,
0,
0
],
[
3,
0,
0.5,
0.25,
0,
0.66,
0.3333,
256,
0,
1,
0,
0,
186,
0,
1
],
[
2,
1,
0.5417,
0.1667,
1,
0.46,
... | [
"from o3grid.utility import cout",
"class IsGrid0Job(object):\n\tdef run(self):\n\t\tcout(\"I'm iSGrid0.Job\")",
"\tdef run(self):\n\t\tcout(\"I'm iSGrid0.Job\")",
"\t\tcout(\"I'm iSGrid0.Job\")",
"cout(\"Load IsGrid0.IsGrid0\")",
"def generateJob(jobinfo, workspace):\n\treturn IsGrid0Job()",
"\treturn ... |
#!/usr/bin/python
from o3grid.utility import cout
class IsGrid0Job(object):
def run(self):
cout("I'm iSGrid0.Job")
cout("Load IsGrid0.IsGrid0")
def generateJob(jobinfo, workspace):
return IsGrid0Job()
| [
[
1,
0,
0.25,
0.0833,
0,
0.66,
0,
120,
0,
1,
0,
0,
120,
0,
0
],
[
3,
0,
0.5,
0.25,
0,
0.66,
0.3333,
256,
0,
1,
0,
0,
186,
0,
1
],
[
2,
1,
0.5417,
0.1667,
1,
0.85,
... | [
"from o3grid.utility import cout",
"class IsGrid0Job(object):\n\tdef run(self):\n\t\tcout(\"I'm iSGrid0.Job\")",
"\tdef run(self):\n\t\tcout(\"I'm iSGrid0.Job\")",
"\t\tcout(\"I'm iSGrid0.Job\")",
"cout(\"Load IsGrid0.IsGrid0\")",
"def generateJob(jobinfo, workspace):\n\treturn IsGrid0Job()",
"\treturn ... |
import threading, Queue
import os, random, time
import struct, zlib
import cPickle as pickle, cStringIO as StringIO
import operator, heapq
from o3grid import constants as CC
from o3grid.utility import cout, D as _D, D2 as _D2, DE as _E
from o3grid.protocol import O3Call, O3Channel, O3Space
from o3grid import job
impo... | [
[
1,
0,
0.0025,
0.0025,
0,
0.66,
0,
83,
0,
2,
0,
0,
83,
0,
0
],
[
1,
0,
0.0049,
0.0025,
0,
0.66,
0.0357,
688,
0,
3,
0,
0,
688,
0,
0
],
[
1,
0,
0.0074,
0.0025,
0,
0.... | [
"import threading, Queue",
"import os, random, time",
"import struct, zlib",
"import cPickle as pickle, cStringIO as StringIO",
"import operator, heapq",
"from o3grid import constants as CC",
"from o3grid.utility import cout, D as _D, D2 as _D2, DE as _E",
"from o3grid.protocol import O3Call, O3Channe... |
#!/usr/bin/python
codebase = {
'name': 'oneday02',
'version': '0.0.0.1',
'files': [
'oneday02/__init__.py',
'oneday02/oneday02.py',
],
'modules': [
'oneday02.oneday02',
'oneday02',
],
}
| [
[
14,
0,
0.5938,
0.875,
0,
0.66,
0,
227,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codebase = {\n\t'name': 'oneday02',\n\t'version': '0.0.0.1',\n\t\n\t'files': [\n\t\t'oneday02/__init__.py',\n\t\t'oneday02/oneday02.py',\n\t],"
] |
import wx
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self,None)
self.menubar = wx.MenuBar()
self.file = wx.Menu()
self.file.Append(wx.ID_ANY,'&Test')
self.menubar.Append(self.file,'File')
self.SetMenuBar(self.menubar)
self.Show... | [
[
1,
0,
0.0667,
0.0667,
0,
0.66,
0,
666,
0,
1,
0,
0,
666,
0,
0
],
[
3,
0,
0.4667,
0.6,
0,
0.66,
0.25,
418,
0,
1,
0,
0,
610,
0,
7
],
[
2,
1,
0.5,
0.5333,
1,
0.65,
... | [
"import wx",
"class MainFrame(wx.Frame):\n def __init__(self):\n wx.Frame.__init__(self,None)\n self.menubar = wx.MenuBar()\n self.file = wx.Menu()\n self.file.Append(wx.ID_ANY,'&Test')\n self.menubar.Append(self.file,'File')\n self.SetMenuBar(self.menubar)",
" de... |
import MySQLdb
import time
import random
import operator
db=MySQLdb.connect(host="localhost",user="root", passwd="",db="phone_tracker")
c=db.cursor()
c.executemany(""" TRUNCATE TABLE `resultset-location`""",[()])
long = 1
lat = 1
x = 3
y = 4
i = 0
for y in range(1,y+1):
for x in range(1,x+1):
... | [
[
1,
0,
0.0345,
0.0345,
0,
0.66,
0,
838,
0,
1,
0,
0,
838,
0,
0
],
[
1,
0,
0.069,
0.0345,
0,
0.66,
0.0667,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0... | [
"import MySQLdb",
"import time",
"import random",
"import operator",
"db=MySQLdb.connect(host=\"localhost\",user=\"root\", passwd=\"\",db=\"phone_tracker\")",
"c=db.cursor()",
"c.executemany(\"\"\" TRUNCATE TABLE `resultset-location`\"\"\",[()])",
"long = 1",
"lat = 1",
"x = 3",
"y = 4",
"i =... |
import MySQLdb
import time
import random
import operator
class sniffer:
def __init__(self):
self.db=MySQLdb.connect(host="localhost",user="root", passwd="",db="phone_tracker")
self.db.query("""SELECT * FROM `resultset-location`""")
r=self.db.use_result()
self.sniffer = []
... | [
[
1,
0,
0.0076,
0.0076,
0,
0.66,
0,
838,
0,
1,
0,
0,
838,
0,
0
],
[
1,
0,
0.0153,
0.0076,
0,
0.66,
0.0667,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0229,
0.0076,
0,
... | [
"import MySQLdb",
"import time",
"import random",
"import operator",
"class sniffer:\n def __init__(self):\n self.db=MySQLdb.connect(host=\"localhost\",user=\"root\", passwd=\"\",db=\"phone_tracker\")\n self.db.query(\"\"\"SELECT * FROM `resultset-location`\"\"\")\n r=self.db.use_res... |
# Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
# Use of this source code is governed by a Mozilla-1.1 license that can be
# found in the LICENSE file.
import googlecode_upload
import tempfile
import urllib2
import optparse
import os
extensionid = 'lgllffgicojgllpmdbemgglaponefajn'
... | [
[
1,
0,
0.093,
0.0233,
0,
0.66,
0,
481,
0,
1,
0,
0,
481,
0,
0
],
[
1,
0,
0.1163,
0.0233,
0,
0.66,
0.1111,
516,
0,
1,
0,
0,
516,
0,
0
],
[
1,
0,
0.1395,
0.0233,
0,
0... | [
"import googlecode_upload",
"import tempfile",
"import urllib2",
"import optparse",
"import os",
"extensionid = 'lgllffgicojgllpmdbemgglaponefajn'",
"def download():\n url = (\"https://clients2.google.com/service/update2/crx?\"\n \"response=redirect&x=id%3D\" + extensionid + \"%26uc\")\n respons... |
import subprocess
import tempfile
import shutil
import os
import codecs
import json
import zipfile
class Packer:
def __init__(self, input_path, outputfile):
self.input_path = os.path.abspath(input_path)
self.outputfile = os.path.abspath(outputfile)
self.tmppath = None
def pack(self):
... | [
[
1,
0,
0.0116,
0.0116,
0,
0.66,
0,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0233,
0.0116,
0,
0.66,
0.1,
516,
0,
1,
0,
0,
516,
0,
0
],
[
1,
0,
0.0349,
0.0116,
0,
0.6... | [
"import subprocess",
"import tempfile",
"import shutil",
"import os",
"import codecs",
"import json",
"import zipfile",
"class Packer:\n def __init__(self, input_path, outputfile):\n self.input_path = os.path.abspath(input_path)\n self.outputfile = os.path.abspath(outputfile)\n self.tmppath ... |
#!/usr/bin/env python
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
... | [
[
8,
0,
0.1816,
0.0078,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1914,
0.0039,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1992,
0.0039,
0,
0.66,... | [
"\"\"\"Google Code file uploader script.\n\"\"\"",
"__author__ = 'danderson@google.com (David Anderson)'",
"import httplib",
"import os.path",
"import optparse",
"import getpass",
"import base64",
"import sys",
"def upload(file, project_name, user_name, password, summary, labels=None):\n \"\"\"Uplo... |
maxVf = 200
# Generating the header
head = """// Copyright qiuc12@gmail.com
// This file is generated autmatically by python. DONT MODIFY IT!
#pragma once
#include <OleAuto.h>
class FakeDispatcher;
HRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...);
extern "C" void DualProcessCommandWrap()... | [
[
14,
0,
0.0172,
0.0172,
0,
0.66,
0,
302,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.1466,
0.1724,
0,
0.66,
0.0476,
217,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.319,
0.1379,
0,
0.... | [
"maxVf = 200",
"head = \"\"\"// Copyright qiuc12@gmail.com\n// This file is generated autmatically by python. DONT MODIFY IT!\n\n#pragma once\n#include <OleAuto.h>\nclass FakeDispatcher;\nHRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...);\nextern \"C\" void DualProcessCommandWrap();",
"patter... |
"""
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/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")
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... | [
[
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... | [
[
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")
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")
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.