code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
"""engine.SCons.Tool.cvf
Tool-specific initialization for the Compaq Visual Fortran compiler.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated docume... | [
[
8,
0,
0.0517,
0.0862,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5172,
0.0172,
0,
0.66,
0.2,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5517,
0.0172,
0,
0.66,
... | [
"\"\"\"engine.SCons.Tool.cvf\n\nTool-specific initialization for the Compaq Visual Fortran compiler.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Tool/cvf.py 4720 2010/03/24 03:14:11 jars\"",
"import fortran",
"compilers = ['f90']",
"def generate(env):\n \"\"\"Add Builders and construction variables fo... |
"""SCons.Tool.yacc
Tool-specific initialization for yacc.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
#... | [
[
8,
0,
0.0382,
0.0687,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2595,
0.0076,
0,
0.66,
0.0769,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2748,
0.0076,
0,
0.66,... | [
"\"\"\"SCons.Tool.yacc\n\nTool-specific initialization for yacc.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/yacc.py 4720 2010/03/24 03:14:11 jars\"",
"impo... |
"""SCons.Tool.rpcgen
Tool-specific initialization for RPCGEN tools.
Three normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Found... | [
[
8,
0,
0.0643,
0.1143,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4714,
0.0143,
0,
0.66,
0.1,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5,
0.0143,
0,
0.66,
0... | [
"\"\"\"SCons.Tool.rpcgen\n\nTool-specific initialization for RPCGEN tools.\n\nThree normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Tool/rpcgen.py 4720 2010/03/24 03:14... |
"""SCons.Tool.Perforce.py
Tool-specific initialization for Perforce Source Code Management system.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, ... | [
[
8,
0,
0.0481,
0.0865,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3269,
0.0096,
0,
0.66,
0.0909,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3462,
0.0096,
0,
0.66,... | [
"\"\"\"SCons.Tool.Perforce.py\n\nTool-specific initialization for Perforce Source Code Management system.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/Perforce... |
"""SCons.Tool.aixcc
Tool-specific initialization for IBM xlc / Visual Age C compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 20... | [
[
8,
0,
0.0608,
0.1081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4459,
0.0135,
0,
0.66,
0.125,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.473,
0.0135,
0,
0.66,
... | [
"\"\"\"SCons.Tool.aixcc\n\nTool-specific initialization for IBM xlc / Visual Age C compiler.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Tool/aixcc.py 4720... |
"""SCons.Tool.wix
Tool-specific initialization for wix, the Windows Installer XML Tool.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, ... | [
[
8,
0,
0.045,
0.08,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.33,
0.01,
0,
0.66,
0.1429,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.35,
0.01,
0,
0.66,
0.2857... | [
"\"\"\"SCons.Tool.wix\n\nTool-specific initialization for wix, the Windows Installer XML Tool.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Tool/wix.py 4720... |
"""SCons.Tool.javac
Tool-specific initialization for javac.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#... | [
[
8,
0,
0.0214,
0.0385,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1453,
0.0043,
0,
0.66,
0.0588,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1538,
0.0043,
0,
0.66,... | [
"\"\"\"SCons.Tool.javac\n\nTool-specific initialization for javac.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/javac.py 4720 2010/03/24 03:14:11 jars\"",
"i... |
"""SCons.Tool.sunf90
Tool-specific initialization for sunf90, the Sun Studio F90 compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20... | [
[
8,
0,
0.0781,
0.1406,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5312,
0.0156,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5625,
0.0156,
0,
0.66,... | [
"\"\"\"SCons.Tool.sunf90\n\nTool-specific initialization for sunf90, the Sun Studio F90 compiler.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/sunf90.py 4720 2... |
"""SCons.Tool.midl
Tool-specific initialization for midl (Microsoft IDL compiler).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010... | [
[
8,
0,
0.0556,
0.1,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3778,
0.0111,
0,
0.66,
0.0714,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4,
0.0111,
0,
0.66,
0... | [
"\"\"\"SCons.Tool.midl\n\nTool-specific initialization for midl (Microsoft IDL compiler).\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/midl.py 4720 2010/03/24 ... |
"""SCons.Tool.default
Initialization with a default tool list.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundatio... | [
[
8,
0,
0.1,
0.18,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.68,
0.02,
0,
0.66,
0.25,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.72,
0.02,
0,
0.66,
0.5,
1... | [
"\"\"\"SCons.Tool.default\n\nInitialization with a default tool list.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/default.py 4720 2010/03/24 03:14:11 jars\"",... |
"""SCons.Tool.tex
Tool-specific initialization for TeX.
Generates .dvi files from .tex files
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, ... | [
[
8,
0,
0.0068,
0.0124,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0435,
0.0012,
0,
0.66,
0.0159,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.046,
0.0012,
0,
0.66,
... | [
"\"\"\"SCons.Tool.tex\n\nTool-specific initialization for TeX.\nGenerates .dvi files from .tex files\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.",
"__revision__ = \"src/engine/SCons/Tool/tex.py 4720 2... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.1935,
0.0081,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2903,
0.1694,
0,
0.66,
0.0667,
155,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.4032,
0.0403,
0,
0.... | [
"__revision__ = \"src/engine/SCons/compat/_scons_itertools.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"\nImplementations of itertools functions for Python versions that don't\nhave iterators.\n\nThese implement the functions by creating the entire list, not returning\nit element-by-element as the real i... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.2449,
0.0102,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3061,
0.0918,
0,
0.66,
0.2,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3673,
0.0102,
0,
0.66,... | [
"__revision__ = \"src/engine/SCons/compat/_scons_UserString.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"\nA user-defined wrapper around string objects\n\nThis class is \"borrowed\" from the Python 2.2 UserString and modified\nslightly for use with SCons. It is *NOT* guaranteed to be fully compliant\nwi... |
"""SCons.Scanner.Fortran
This module implements the dependency scanner for Fortran code.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentati... | [
[
8,
0,
0.0094,
0.0156,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0938,
0.0031,
0,
0.66,
0.1,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1,
0.0031,
0,
0.66,
0... | [
"\"\"\"SCons.Scanner.Fortran\n\nThis module implements the dependency scanner for Fortran code.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/Fortran.py 4720 2010/03/24 03:14:11 jars\"",
"import re",
"import string",
"import SCons.Node",
"import SCons.Node.FS",
"import SCons.Scanner",
"import... |
"""SCons.Scanner.LaTeX
This module implements the dependency scanner for LaTeX code.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation f... | [
[
8,
0,
0.0079,
0.0132,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0794,
0.0026,
0,
0.66,
0.0667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0847,
0.0026,
0,
0.66,... | [
"\"\"\"SCons.Scanner.LaTeX\n\nThis module implements the dependency scanner for LaTeX code.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/LaTeX.py 4720 2010/03/24 03:14:11 jars\"",
"import os.path",
"import string",
"import re",
"import SCons.Scanner",
"import SCons.Util",
"TexGraphics = ['... |
"""SCons.Scanner.D
Scanner for the Digital Mars "D" programming language.
Coded by Andy Friesen
17 Nov 2003
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and as... | [
[
8,
0,
0.0608,
0.1081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4459,
0.0135,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.473,
0.0135,
0,
0.66,
... | [
"\"\"\"SCons.Scanner.D\n\nScanner for the Digital Mars \"D\" programming language.\n\nCoded by Andy Friesen\n17 Nov 2003\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/D.py 4720 2010/03/24 03:14:11 jars\"",
"import re",
"import string",
"import SCons.Scanner",
"def DScanner():\n \"\"\"Return a ... |
"""SCons.Scanner.RC
This module implements the depenency scanner for RC (Interface
Definition Language) files.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and ... | [
[
8,
0,
0.0636,
0.1091,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5636,
0.0182,
0,
0.66,
0.2,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.6,
0.0182,
0,
0.66,
0... | [
"\"\"\"SCons.Scanner.RC\n\nThis module implements the depenency scanner for RC (Interface\nDefinition Language) files.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/RC.py 4720 2010/03/24 03:14:11 jars\"",
"import SCons.Node.FS",
"import SCons.Scanner",
"import re",
"def RCScan():\n \"\"\"Retur... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.233,
0.0097,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2524,
0.0097,
0,
0.66,
0.125,
890,
0,
1,
0,
0,
890,
0,
0
],
[
1,
0,
0.2718,
0.0097,
0,
0.6... | [
"__revision__ = \"src/engine/SCons/Scanner/Prog.py 4720 2010/03/24 03:14:11 jars\"",
"import string",
"import SCons.Node",
"import SCons.Node.FS",
"import SCons.Scanner",
"import SCons.Util",
"print_find_libs = None",
"def ProgramScanner(**kw):\n \"\"\"Return a prototype Scanner instance for scanni... |
"""SCons.Scanner
The Scanner package for the SCons software construction utility.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation file... | [
[
8,
0,
0.0072,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0719,
0.0024,
0,
0.66,
0.0714,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0767,
0.0024,
0,
0.66,
... | [
"\"\"\"SCons.Scanner\n\nThe Scanner package for the SCons software construction utility.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/__init__.py 4720 2010/03/24 03:14:11 jars\"",
"import re",
"import string",
"import SCons.Node.FS",
"import SCons.Util",
"class _Null:\n pass",
"_null = _N... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.2162,
0.009,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2342,
0.009,
0,
0.66,
0.0909,
482,
0,
1,
0,
0,
482,
0,
0
],
[
1,
0,
0.2432,
0.009,
0,
0.66... | [
"__revision__ = \"src/engine/SCons/Scanner/Dir.py 4720 2010/03/24 03:14:11 jars\"",
"import SCons.Node.FS",
"import SCons.Scanner",
"def only_dirs(nodes):\n is_Dir = lambda n: isinstance(n.disambiguate(), SCons.Node.FS.Dir)\n return filter(is_Dir, nodes)",
" is_Dir = lambda n: isinstance(n.disambig... |
"""SCons.Scanner.IDL
This module implements the depenency scanner for IDL (Interface
Definition Language) files.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software an... | [
[
8,
0,
0.0729,
0.125,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.6458,
0.0208,
0,
0.66,
0.25,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.6875,
0.0208,
0,
0.66,
... | [
"\"\"\"SCons.Scanner.IDL\n\nThis module implements the depenency scanner for IDL (Interface\nDefinition Language) files.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Scanner/IDL.py 4720 2010/03/24 03:14:11 jars\"",
"import SCons.Node.FS",
"import SCons.Scanner",
"def IDLScan():\n \"\"\"Return a prototy... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.381,
0.0159,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4841,
0.1587,
0,
0.66,
0.0909,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5873,
0.0159,
0,
0.6... | [
"__revision__ = \"src/engine/SCons/Sig.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Sig module hierarchy\n\nThis is no longer used, but code out there (such as the NSIS module on\nthe SCons wiki) may try to import SCons.Sig. If so, we generate a warning\nthat points them t... |
"""SCons.Script
This file implements the main() function used by the scons script.
Architecturally, this *is* the scons script, and will likely only be
called from the external "scons" wrapper. Consequently, anything here
should not be, or be considered, part of the build engine. If it's
something that we expect ot... | [
[
8,
0,
0.0157,
0.029,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0894,
0.0024,
0,
0.66,
0.0101,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0942,
0.0024,
0,
0.66,
... | [
"\"\"\"SCons.Script\n\nThis file implements the main() function used by the scons script.\n\nArchitecturally, this *is* the scons script, and will likely only be\ncalled from the external \"scons\" wrapper. Consequently, anything here\nshould not be, or be considered, part of the build engine. If it's\nsomething ... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.48,
0.02,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.57,
0.12,
0,
0.66,
0.2,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.66,
0.02,
0,
0.66,
0.4,
... | [
"__revision__ = \"src/engine/SCons/Options/ListOption.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some day)... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.48,
0.02,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.57,
0.12,
0,
0.66,
0.2,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.66,
0.02,
0,
0.66,
0.4,
... | [
"__revision__ = \"src/engine/SCons/Options/BoolOption.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some day)... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.3158,
0.0132,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.375,
0.0789,
0,
0.66,
0.1667,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4342,
0.0132,
0,
0.6... | [
"__revision__ = \"src/engine/SCons/Options/PathOption.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some day)... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.3243,
0.0135,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3851,
0.0811,
0,
0.66,
0.1,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4459,
0.0135,
0,
0.66,... | [
"__revision__ = \"src/engine/SCons/Options/__init__.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some day),\... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.48,
0.02,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.57,
0.12,
0,
0.66,
0.2,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.66,
0.02,
0,
0.66,
0.4,
... | [
"__revision__ = \"src/engine/SCons/Options/EnumOption.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some day)... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.48,
0.02,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.57,
0.12,
0,
0.66,
0.2,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.66,
0.02,
0,
0.66,
0.4,
... | [
"__revision__ = \"src/engine/SCons/Options/PackageOption.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Place-holder for the old SCons.Options module hierarchy\n\nThis is for backwards compatibility. The new equivalent is the Variables/\nclass hierarchy. These will have deprecation warnings added (some d... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
8,
0,
0.114,
0.0219,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1316,
0.0044,
0,
0.66,
0.0244,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1404,
0.0044,
0,
0.66,
... | [
"\"\"\"SCons.Warnings\n\nThis file implements the warnings framework for SCons.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Warnings.py 4720 2010/03/24 03:14:11 jars\"",
"import string",
"import sys",
"import SCons.Errors",
"class Warning(SCons.Errors.UserError):\n pass",
"class MandatoryWarning(W... |
"""SCons.exitfuncs
Register functions which are executed when SCons exits for any reason.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentat... | [
[
8,
0,
0.039,
0.0649,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3896,
0.013,
0,
0.66,
0.1429,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4416,
0.013,
0,
0.66,
... | [
"\"\"\"SCons.exitfuncs\n\nRegister functions which are executed when SCons exits for any reason.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/exitfuncs.py 4720 2010/03/24 03:14:11 jars\"",
"_exithandlers = []",
"def _run_exitfuncs():\n \"\"\"run any registered exit functions\n\n _exithandlers is trave... |
"""engine.SCons.Variables.BoolVariable
This file defines the option type for SCons implementing true/false values.
Usage example:
opts = Variables()
opts.Add(BoolVariable('embedded', 'build for an embedded system', 0))
...
if env['embedded'] == 1:
...
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, ... | [
[
8,
0,
0.0714,
0.1319,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4066,
0.011,
0,
0.66,
0.1111,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4286,
0.011,
0,
0.66,
... | [
"\"\"\"engine.SCons.Variables.BoolVariable\n\nThis file defines the option type for SCons implementing true/false values.\n\nUsage example:\n\n opts = Variables()\n opts.Add(BoolVariable('embedded', 'build for an embedded system', 0))",
"__revision__ = \"src/engine/SCons/Variables/BoolVariable.py 4720 2010/03/2... |
"""engine.SCons.Variables.PackageVariable
This file defines the option type for SCons implementing 'package
activation'.
To be used whenever a 'package' may be enabled/disabled and the
package path may be specified.
Usage example:
Examples:
x11=no (disables X11 support)
x11=yes (will search for the... | [
[
8,
0,
0.133,
0.2569,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4862,
0.0092,
0,
0.66,
0.1111,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.5046,
0.0092,
0,
0.66,... | [
"\"\"\"engine.SCons.Variables.PackageVariable\n\nThis file defines the option type for SCons implementing 'package\nactivation'.\n\nTo be used whenever a 'package' may be enabled/disabled and the\npackage path may be specified.",
"__revision__ = \"src/engine/SCons/Variables/PackageVariable.py 4720 2010/03/24 03:1... |
"""engine.SCons.Variables.EnumVariable
This file defines the option type for SCons allowing only specified
input-values.
Usage example:
opts = Variables()
opts.Add(EnumVariable('debug', 'debug output and symbols', 'no',
allowed_values=('yes', 'no', 'full'),
map={}, ign... | [
[
8,
0,
0.0748,
0.1402,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3738,
0.0093,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3925,
0.0093,
0,
0.66... | [
"\"\"\"engine.SCons.Variables.EnumVariable\n\nThis file defines the option type for SCons allowing only specified\ninput-values.\n\nUsage example:\n\n opts = Variables()",
"__revision__ = \"src/engine/SCons/Variables/EnumVariable.py 4720 2010/03/24 03:14:11 jars\"",
"__all__ = ['EnumVariable',]",
"import str... |
"""SCons.Variables.PathVariable
This file defines an option type for SCons implementing path settings.
To be used whenever a a user-specified path override should be allowed.
Arguments to PathVariable are:
option-name = name of this option on the command line (e.g. "prefix")
option-help = help string for optio... | [
[
8,
0,
0.1599,
0.3129,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.483,
0.0068,
0,
0.66,
0.1429,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4966,
0.0068,
0,
0.66,... | [
"\"\"\"SCons.Variables.PathVariable\n\nThis file defines an option type for SCons implementing path settings.\n\nTo be used whenever a a user-specified path override should be allowed.\n\nArguments to PathVariable are:\n option-name = name of this option on the command line (e.g. \"prefix\")",
"__revision__ = \... |
"""engine.SCons.Variables.ListVariable
This file defines the option type for SCons implementing 'lists'.
A 'list' option may either be 'all', 'none' or a list of names
separated by comma. After the option has been processed, the option
value holds either the named list elements, all list elemens or no
list elements a... | [
[
8,
0,
0.0935,
0.1799,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3597,
0.0072,
0,
0.66,
0.125,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3957,
0.0072,
0,
0.66,... | [
"\"\"\"engine.SCons.Variables.ListVariable\n\nThis file defines the option type for SCons implementing 'lists'.\n\nA 'list' option may either be 'all', 'none' or a list of names\nseparated by comma. After the option has been processed, the option\nvalue holds either the named list elements, all list elemens or no\n... |
"""SCons.Debug
Code for debugging SCons internal things. Not everything here is
guaranteed to work all the way back to Python 1.5.2, and shouldn't be
needed by most users.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of ... | [
[
8,
0,
0.0169,
0.0295,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.135,
0.0042,
0,
0.66,
0.0357,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1435,
0.0042,
0,
0.66,
... | [
"\"\"\"SCons.Debug\n\nCode for debugging SCons internal things. Not everything here is\nguaranteed to work all the way back to Python 1.5.2, and shouldn't be\nneeded by most users.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/Debug.py 4720 2010/03/24 03:14:11 jars\"",
"import os",
"import string",
"impor... |
"""SCons
The main package for the SCons software construction utility.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "S... | [
[
8,
0,
0.0612,
0.102,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.6122,
0.0204,
0,
0.66,
0.1429,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.6531,
0.0204,
0,
0.66,... | [
"\"\"\"SCons\n\nThe main package for the SCons software construction utility.\n\n\"\"\"",
"__revision__ = \"src/engine/SCons/__init__.py 4720 2010/03/24 03:14:11 jars\"",
"__version__ = \"1.3.0\"",
"__build__ = \"r4720\"",
"__buildsys__ = \"jars-desktop\"",
"__date__ = \"2010/03/24 03:14:11\"",
"__devel... |
"""engine.SCons.Platform.darwin
Platform-specific initialization for Mac OS X systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008... | [
[
8,
0,
0.0978,
0.1739,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7174,
0.0217,
0,
0.66,
0.3333,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.7609,
0.0217,
0,
0.66,... | [
"\"\"\"engine.SCons.Platform.darwin\n\nPlatform-specific initialization for Mac OS X systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform... |
"""SCons.Platform.os2
Platform-specific initialization for OS/2 systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 T... | [
[
8,
0,
0.0776,
0.1379,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.569,
0.0172,
0,
0.66,
0.3333,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5862,
0.0172,
0,
0.66,
... | [
"\"\"\"SCons.Platform.os2\n\nPlatform-specific initialization for OS/2 systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/os2.py 4720 2... |
"""engine.SCons.Platform.aix
Platform-specific initialization for IBM AIX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20... | [
[
8,
0,
0.0643,
0.1143,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4714,
0.0143,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5,
0.0143,
0,
0.66,
... | [
"\"\"\"engine.SCons.Platform.aix\n\nPlatform-specific initialization for IBM AIX systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/aix... |
"""SCons.Platform.cygwin
Platform-specific initialization for Cygwin systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2... | [
[
8,
0,
0.0818,
0.1455,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.6,
0.0182,
0,
0.66,
0.25,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.6364,
0.0182,
0,
0.66,
... | [
"\"\"\"SCons.Platform.cygwin\n\nPlatform-specific initialization for Cygwin systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/cygwin.p... |
"""SCons.Platform.irix
Platform-specific initialization for SGI IRIX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2... | [
[
8,
0,
0.1023,
0.1818,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.75,
0.0227,
0,
0.66,
0.3333,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.7955,
0.0227,
0,
0.66,
... | [
"\"\"\"SCons.Platform.irix\n\nPlatform-specific initialization for SGI IRIX systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/irix.py ... |
"""engine.SCons.Platform.hpux
Platform-specific initialization for HP-UX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 200... | [
[
8,
0,
0.0978,
0.1739,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7174,
0.0217,
0,
0.66,
0.3333,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.7609,
0.0217,
0,
0.66,... | [
"\"\"\"engine.SCons.Platform.hpux\n\nPlatform-specific initialization for HP-UX systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/hpux... |
"""engine.SCons.Platform.sunos
Platform-specific initialization for Sun systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009... | [
[
8,
0,
0.09,
0.16,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.66,
0.02,
0,
0.66,
0.3333,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.7,
0.02,
0,
0.66,
0.6667,
... | [
"\"\"\"engine.SCons.Platform.sunos\n\nPlatform-specific initialization for Sun systems.\n\nThere normally shouldn't be any need to import this module directly. It\nwill usually be imported through the generic SCons.Platform.Platform()\nselection method.\n\"\"\"",
"__revision__ = \"src/engine/SCons/Platform/sunos... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | [
[
14,
0,
0.0825,
0.0034,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2509,
0.3265,
0,
0.66,
0.0909,
155,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4192,
0.0034,
0,
0.... | [
"__revision__ = \"src/engine/SCons/Memoize.py 4720 2010/03/24 03:14:11 jars\"",
"__doc__ = \"\"\"Memoizer\n\nA metaclass implementation to count hits and misses of the computed\nvalues that various methods cache in memory.\n\nUse of this modules assumes that wrapped methods be coded to cache their\nvalues in a co... |
"""Script to generate doxygen documentation.
"""
import re
import os
import os.path
import sys
import shutil
from devtools import tarball
def find_program(*filenames):
"""find a program in folders path_lst, and sets env[var]
@param filenames: a list of possible names of the program to search for
@return: ... | [
[
8,
0,
0.009,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.024,
0.006,
0,
0.66,
0.0833,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0299,
0.006,
0,
0.66,
... | [
"\"\"\"Script to generate doxygen documentation.\n\"\"\"",
"import re",
"import os",
"import os.path",
"import sys",
"import shutil",
"from devtools import tarball",
"def find_program(*filenames):\n \"\"\"find a program in folders path_lst, and sets env[var]\n @param filenames: a list of possibl... |
# removes all files created during testing
import glob
import os
paths = []
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
paths += glob.glob( 'data/' + pattern )
for path in paths:
os.unlink( path )
| [
[
1,
0,
0.2,
0.1,
0,
0.66,
0,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.3,
0.1,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.5,
0.1,
0,
0.66,
0.5,
... | [
"import glob",
"import os",
"paths = []",
"for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:\n paths += glob.glob( 'data/' + pattern )",
"for path in paths:\n os.unlink( path )",
" os.unlink( path )"
] |
import glob
import os.path
for path in glob.glob( '*.json' ):
text = file(path,'rt').read()
target = os.path.splitext(path)[0] + '.expected'
if os.path.exists( target ):
print 'skipping:', target
else:
print 'creating:', target
file(target,'wt').write(text)
| [
[
1,
0,
0.0909,
0.0909,
0,
0.66,
0,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0.5,
79,
0,
1,
0,
0,
79,
0,
0
],
[
6,
0,
0.5909,
0.7273,
0,
0.66,... | [
"import glob",
"import os.path",
"for path in glob.glob( '*.json' ):\n text = file(path,'rt').read()\n target = os.path.splitext(path)[0] + '.expected'\n if os.path.exists( target ):\n print('skipping:', target)\n else:\n print('creating:', target)\n file(target,'wt').write(text... |
# Simple implementation of a json test runner to run the test against json-py.
import sys
import os.path
import json
import types
if len(sys.argv) != 2:
print "Usage: %s input-json-file", sys.argv[0]
sys.exit(3)
input_path = sys.argv[1]
base_path = os.path.splitext(input_path)[0]
actual_path = base_path ... | [
[
1,
0,
0.0469,
0.0156,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0625,
0.0156,
0,
0.66,
0.0588,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0781,
0.0156,
0,
0.... | [
"import sys",
"import os.path",
"import json",
"import types",
"if len(sys.argv) != 2:\n print(\"Usage: %s input-json-file\", sys.argv[0])\n sys.exit(3)",
" print(\"Usage: %s input-json-file\", sys.argv[0])",
" sys.exit(3)",
"input_path = sys.argv[1]",
"base_path = os.path.splitext(input... |
#! /usr/bin/env python
# encoding: utf-8
# waf 1.6.10
VERSION='0.3.3'
import sys
APPNAME='p2t'
top = '.'
out = 'build'
CPP_SOURCES = ['poly2tri/common/shapes.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/sweep_context.cc',
... | [
[
14,
0,
0.1111,
0.0222,
0,
0.66,
0,
557,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.0909,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.1556,
0.0222,
0,
... | [
"VERSION='0.3.3'",
"import sys",
"APPNAME='p2t'",
"top = '.'",
"out = 'build'",
"CPP_SOURCES = ['poly2tri/common/shapes.cc',\n 'poly2tri/sweep/cdt.cc',\n 'poly2tri/sweep/advancing_front.cc',\n 'poly2tri/sweep/sweep_context.cc',\n 'poly2tri/sweep/swee... |
#!/usr/bin/env python
import time
t = time.time()
u = time.gmtime(t)
s = time.strftime('%a, %e %b %Y %T GMT', u)
print 'Content-Type: text/javascript'
print 'Cache-Control: no-cache'
print 'Date: ' + s
print 'Expires: ' + s
print ''
print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
| [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
14,
0,
0.2727,
0.0909,
0,
0.66,
0.1111,
15,
3,
0,
0,
0,
654,
10,
1
],
[
14,
0,
0.3636,
0.0909,
0,
... | [
"import time",
"t = time.time()",
"u = time.gmtime(t)",
"s = time.strftime('%a, %e %b %Y %T GMT', u)",
"print('Content-Type: text/javascript')",
"print('Cache-Control: no-cache')",
"print('Date: ' + s)",
"print('Expires: ' + s)",
"print('')",
"print('var timeskew = new Date().getTime() - ' + str(t... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | [
[
1,
0,
0.0714,
0.0238,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.1548,
0.0952,
0,
0.66,
0.25,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1429,
0.0238,
1,
0.8... | [
"import sys, hashlib",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + sys.argv[0] + \" infile outfile label\")",
"\tprint (\"Usage: \" + sys.argv[0] + \" infile outfi... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | [
[
1,
0,
0.0577,
0.0192,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
2,
0,
0.125,
0.0769,
0,
0.66,
0.2,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1154,
0.0192,
1,
0.68,... | [
"import sys, re, os",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + os.path.split(__file__)[1] + \" version outfile\")",
"\tprint (\"Usage: \" + os.path.split(__file... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | [
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.5345,
0.7586,
0,
0.66,
0.5,
624,
0,
0,
0,
0,
0,
0,
3
],
[
14,
1,
0.431,
0.4828,
1,
0.13,... | [
"import os",
"def main():\n\tlists = [\n\t\t\t\"ISODrivers/Galaxy/galaxy.prx\",\n\t\t\t\"ISODrivers/March33/march33.prx\",\n\t\t\t\"ISODrivers/March33/march33_620.prx\",\n\t\t\t\"ISODrivers/March33/march33_660.prx\",\n\t\t\t\"ISODrivers/Inferno/inferno.prx\",\n\t\t\t\"Popcorn/popcorn.prx\",",
"\tlists = [\n\t\t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | [
[
3,
0,
0.0909,
0.0682,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.1023,
0.0455,
1,
0.75,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.1136,
0.0227,
2,
0.12,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import os, gzip, StringIO",
"gzip.time = FakeTime()",
"def create_gzip(input, output):\n\tf_in=open(input, 'rb')\n\ttemp=StringIO.StringIO()\n\tf=g... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | [
[
1,
0,
0.0536,
0.0179,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
2,
0,
0.0982,
0.0357,
0,
0.66,
0.25,
129,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
0.1071,
0.0179,
1,
0.36... | [
"import os, sys, getopt",
"def usage():\n\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | [
[
1,
0,
0.0652,
0.0217,
0,
0.66,
0,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.087,
0.0217,
0,
0.66,
0.2,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.2065,
0.1739,
0,
0.66... | [
"from hashlib import *",
"import sys, struct",
"def sha512(psid):\n\tif len(psid) != 16:\n\t\treturn \"\".encode()\n\n\tfor i in range(512):\n\t\tpsid = sha1(psid).digest()\n\n\treturn psid",
"\tif len(psid) != 16:\n\t\treturn \"\".encode()",
"\t\treturn \"\".encode()",
"\tfor i in range(512):\n\t\tpsid =... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | [
[
1,
0,
0.0909,
0.0303,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
2,
0,
0.197,
0.1212,
0,
0.66,
0.25,
336,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1818,
0.0303,
1,
0.57... | [
"import sys, os, gzip, StringIO",
"def dump_binary(fn, data):\n\tf = open(fn, \"wb\")\n\tf.write(data)\n\tf.close()",
"\tf = open(fn, \"wb\")",
"\tf.write(data)",
"\tf.close()",
"def dec_prx(fn):\n\tf = open(fn, \"rb\")\n\tf.seek(0x150)\n\tdat = f.read()\n\tf.close()\n\n\ttemp=StringIO.StringIO(dat)\n\tf=... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | [
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.4615,
0.2308,
0,
0.66,
0.5,
259,
0,
1,
1,
0,
0,
0,
4
],
[
14,
1,
0.4615,
0.0769,
1,
0.41... | [
"import sys, hashlib",
"def toNID(name):\n\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()\n\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]",
"\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()",
"\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + ha... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | [
[
8,
0,
0.022,
0.0165,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0385,
0.0055,
0,
0.66,
0.0769,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.044,
0.0055,
0,
0.66,
... | [
"\"\"\"\npspbtcnf_editor: An script that add modules from pspbtcnf\n\"\"\"",
"import sys, os, re",
"from getopt import *",
"from struct import *",
"BTCNF_MAGIC=0x0F803001",
"verbose = False",
"def print_usage():\n\tprint (\"%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]\" ... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | [
[
3,
0,
0.0488,
0.0366,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.0549,
0.0244,
1,
0.88,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.061,
0.0122,
2,
0.27,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import sys, os, struct, gzip, hashlib, StringIO",
"gzip.time = FakeTime()",
"def binary_replace(data, newdata, offset):\n\treturn data[0:offset] + ... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | [
[
8,
0,
0.0297,
0.0099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0495,
0.0099,
0,
0.66,
0.0909,
688,
0,
3,
0,
0,
688,
0,
0
],
[
14,
0,
0.0693,
0.0099,
0,
0.6... | [
"\"\"\" PRO build script\"\"\"",
"import os, shutil, sys",
"NIGHTLY=0",
"VERSION=\"B10\"",
"PRO_BUILD = [\n\t\t\t{ \"fn\": \"620PRO-%s.rar\", \"config\": \"CONFIG_620=1\" },\n\t\t\t{ \"fn\": \"635PRO-%s.rar\", \"config\": \"CONFIG_635=1\" },\n\t\t\t{ \"fn\": \"639PRO-%s.rar\", \"config\": \"CONFIG_639=1\" }... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | [
[
1,
0,
0.0714,
0.0238,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.1548,
0.0952,
0,
0.66,
0.25,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1429,
0.0238,
1,
0.8... | [
"import sys, hashlib",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + sys.argv[0] + \" infile outfile label\")",
"\tprint (\"Usage: \" + sys.argv[0] + \" infile outfi... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | [
[
1,
0,
0.0577,
0.0192,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
2,
0,
0.125,
0.0769,
0,
0.66,
0.2,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1154,
0.0192,
1,
0.69,... | [
"import sys, re, os",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + os.path.split(__file__)[1] + \" version outfile\")",
"\tprint (\"Usage: \" + os.path.split(__file... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | [
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.5345,
0.7586,
0,
0.66,
0.5,
624,
0,
0,
0,
0,
0,
0,
3
],
[
14,
1,
0.431,
0.4828,
1,
0.11,... | [
"import os",
"def main():\n\tlists = [\n\t\t\t\"ISODrivers/Galaxy/galaxy.prx\",\n\t\t\t\"ISODrivers/March33/march33.prx\",\n\t\t\t\"ISODrivers/March33/march33_620.prx\",\n\t\t\t\"ISODrivers/March33/march33_660.prx\",\n\t\t\t\"ISODrivers/Inferno/inferno.prx\",\n\t\t\t\"Popcorn/popcorn.prx\",",
"\tlists = [\n\t\t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | [
[
3,
0,
0.0909,
0.0682,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.1023,
0.0455,
1,
0.8,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.1136,
0.0227,
2,
0.29,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import os, gzip, StringIO",
"gzip.time = FakeTime()",
"def create_gzip(input, output):\n\tf_in=open(input, 'rb')\n\ttemp=StringIO.StringIO()\n\tf=g... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | [
[
1,
0,
0.0536,
0.0179,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
2,
0,
0.0982,
0.0357,
0,
0.66,
0.25,
129,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
0.1071,
0.0179,
1,
0.87... | [
"import os, sys, getopt",
"def usage():\n\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | [
[
1,
0,
0.0652,
0.0217,
0,
0.66,
0,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.087,
0.0217,
0,
0.66,
0.2,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.2065,
0.1739,
0,
0.66... | [
"from hashlib import *",
"import sys, struct",
"def sha512(psid):\n\tif len(psid) != 16:\n\t\treturn \"\".encode()\n\n\tfor i in range(512):\n\t\tpsid = sha1(psid).digest()\n\n\treturn psid",
"\tif len(psid) != 16:\n\t\treturn \"\".encode()",
"\t\treturn \"\".encode()",
"\tfor i in range(512):\n\t\tpsid =... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | [
[
1,
0,
0.0909,
0.0303,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
2,
0,
0.197,
0.1212,
0,
0.66,
0.25,
336,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1818,
0.0303,
1,
0.98... | [
"import sys, os, gzip, StringIO",
"def dump_binary(fn, data):\n\tf = open(fn, \"wb\")\n\tf.write(data)\n\tf.close()",
"\tf = open(fn, \"wb\")",
"\tf.write(data)",
"\tf.close()",
"def dec_prx(fn):\n\tf = open(fn, \"rb\")\n\tf.seek(0x150)\n\tdat = f.read()\n\tf.close()\n\n\ttemp=StringIO.StringIO(dat)\n\tf=... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | [
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.4615,
0.2308,
0,
0.66,
0.5,
259,
0,
1,
1,
0,
0,
0,
4
],
[
14,
1,
0.4615,
0.0769,
1,
0.02... | [
"import sys, hashlib",
"def toNID(name):\n\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()\n\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]",
"\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()",
"\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + ha... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | [
[
8,
0,
0.022,
0.0165,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0385,
0.0055,
0,
0.66,
0.0769,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.044,
0.0055,
0,
0.66,
... | [
"\"\"\"\npspbtcnf_editor: An script that add modules from pspbtcnf\n\"\"\"",
"import sys, os, re",
"from getopt import *",
"from struct import *",
"BTCNF_MAGIC=0x0F803001",
"verbose = False",
"def print_usage():\n\tprint (\"%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]\" ... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | [
[
3,
0,
0.0488,
0.0366,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.0549,
0.0244,
1,
0.79,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.061,
0.0122,
2,
0.23,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import sys, os, struct, gzip, hashlib, StringIO",
"gzip.time = FakeTime()",
"def binary_replace(data, newdata, offset):\n\treturn data[0:offset] + ... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | [
[
8,
0,
0.0297,
0.0099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0495,
0.0099,
0,
0.66,
0.0909,
688,
0,
3,
0,
0,
688,
0,
0
],
[
14,
0,
0.0693,
0.0099,
0,
0.6... | [
"\"\"\" PRO build script\"\"\"",
"import os, shutil, sys",
"NIGHTLY=0",
"VERSION=\"B10\"",
"PRO_BUILD = [\n\t\t\t{ \"fn\": \"620PRO-%s.rar\", \"config\": \"CONFIG_620=1\" },\n\t\t\t{ \"fn\": \"635PRO-%s.rar\", \"config\": \"CONFIG_635=1\" },\n\t\t\t{ \"fn\": \"639PRO-%s.rar\", \"config\": \"CONFIG_639=1\" }... |
# -*- coding: utf-8 -*-
'''
Created on 2014/01/03
@author: deadblue
'''
import webapp2
import logging
import template_wrapper
class MainPage(webapp2.RequestHandler):
def get(self):
logging.info("hello!")
data = {
'name' : 'world!'
}
template_wrapper.render_response(sel... | [
[
8,
0,
0.2,
0.25,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4,
0.05,
0,
0.66,
0.2,
123,
0,
1,
0,
0,
123,
0,
0
],
[
1,
0,
0.45,
0.05,
0,
0.66,
0.4,
71... | [
"'''\nCreated on 2014/01/03\n\n@author: deadblue\n'''",
"import webapp2",
"import logging",
"import template_wrapper",
"class MainPage(webapp2.RequestHandler):\n def get(self):\n logging.info(\"hello!\")\n data = {\n 'name' : 'world!'\n }\n template_wrapper.render_r... |
print 'Content-Type: text/plain'
print ''
print 'Hello, world!' | [
[
8,
0,
0.3333,
0.3333,
0,
0.66,
0,
535,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.6667,
0.3333,
0,
0.66,
0.5,
535,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
1,
0.3333,
0,
0.66,
1,... | [
"print('Content-Type: text/plain')",
"print('')",
"print('Hello, world!')"
] |
# -*- coding: utf-8 -*-
'''
Created on 2014/01/03
@author: deadblue
'''
import jinja2
import os
template_ext = 'html'
jinja2_env = jinja2.Environment(autoescape=True, extensions=['jinja2.ext.autoescape'],
loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'template')))
def render(name, data)... | [
[
8,
0,
0.1739,
0.2174,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3043,
0.0435,
0,
0.66,
0.1667,
436,
0,
1,
0,
0,
436,
0,
0
],
[
1,
0,
0.3478,
0.0435,
0,
0.66... | [
"'''\nCreated on 2014/01/03\n\n@author: deadblue\n'''",
"import jinja2",
"import os",
"template_ext = 'html'",
"jinja2_env = jinja2.Environment(autoescape=True, extensions=['jinja2.ext.autoescape'],\n loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'template')))",
"def render(nam... |
#! /usr/bin/env python
# encoding: utf-8
# waf 1.6.10
VERSION='0.3.3'
import sys
APPNAME='p2t'
top = '.'
out = 'build'
CPP_SOURCES = ['poly2tri/common/shapes.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/sweep_context.cc',
... | [
[
14,
0,
0.1111,
0.0222,
0,
0.66,
0,
557,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.0909,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.1556,
0.0222,
0,
... | [
"VERSION='0.3.3'",
"import sys",
"APPNAME='p2t'",
"top = '.'",
"out = 'build'",
"CPP_SOURCES = ['poly2tri/common/shapes.cc',\n 'poly2tri/sweep/cdt.cc',\n 'poly2tri/sweep/advancing_front.cc',\n 'poly2tri/sweep/sweep_context.cc',\n 'poly2tri/sweep/swee... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | [
[
1,
0,
0.0714,
0.0238,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.1548,
0.0952,
0,
0.66,
0.25,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1429,
0.0238,
1,
0.6... | [
"import sys, hashlib",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + sys.argv[0] + \" infile outfile label\")",
"\tprint (\"Usage: \" + sys.argv[0] + \" infile outfi... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | [
[
1,
0,
0.0577,
0.0192,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
2,
0,
0.125,
0.0769,
0,
0.66,
0.2,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1154,
0.0192,
1,
0.46,... | [
"import sys, re, os",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + os.path.split(__file__)[1] + \" version outfile\")",
"\tprint (\"Usage: \" + os.path.split(__file... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | [
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.5345,
0.7586,
0,
0.66,
0.5,
624,
0,
0,
0,
0,
0,
0,
3
],
[
14,
1,
0.431,
0.4828,
1,
0.84,... | [
"import os",
"def main():\n\tlists = [\n\t\t\t\"ISODrivers/Galaxy/galaxy.prx\",\n\t\t\t\"ISODrivers/March33/march33.prx\",\n\t\t\t\"ISODrivers/March33/march33_620.prx\",\n\t\t\t\"ISODrivers/March33/march33_660.prx\",\n\t\t\t\"ISODrivers/Inferno/inferno.prx\",\n\t\t\t\"Popcorn/popcorn.prx\",",
"\tlists = [\n\t\t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | [
[
3,
0,
0.0909,
0.0682,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.1023,
0.0455,
1,
0.35,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.1136,
0.0227,
2,
0.09,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import os, gzip, StringIO",
"gzip.time = FakeTime()",
"def create_gzip(input, output):\n\tf_in=open(input, 'rb')\n\ttemp=StringIO.StringIO()\n\tf=g... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | [
[
1,
0,
0.0536,
0.0179,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
2,
0,
0.0982,
0.0357,
0,
0.66,
0.25,
129,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
0.1071,
0.0179,
1,
0.47... | [
"import os, sys, getopt",
"def usage():\n\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | [
[
1,
0,
0.0652,
0.0217,
0,
0.66,
0,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.087,
0.0217,
0,
0.66,
0.2,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.2065,
0.1739,
0,
0.66... | [
"from hashlib import *",
"import sys, struct",
"def sha512(psid):\n\tif len(psid) != 16:\n\t\treturn \"\".encode()\n\n\tfor i in range(512):\n\t\tpsid = sha1(psid).digest()\n\n\treturn psid",
"\tif len(psid) != 16:\n\t\treturn \"\".encode()",
"\t\treturn \"\".encode()",
"\tfor i in range(512):\n\t\tpsid =... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | [
[
1,
0,
0.0909,
0.0303,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
2,
0,
0.197,
0.1212,
0,
0.66,
0.25,
336,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1818,
0.0303,
1,
0.87... | [
"import sys, os, gzip, StringIO",
"def dump_binary(fn, data):\n\tf = open(fn, \"wb\")\n\tf.write(data)\n\tf.close()",
"\tf = open(fn, \"wb\")",
"\tf.write(data)",
"\tf.close()",
"def dec_prx(fn):\n\tf = open(fn, \"rb\")\n\tf.seek(0x150)\n\tdat = f.read()\n\tf.close()\n\n\ttemp=StringIO.StringIO(dat)\n\tf=... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | [
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.4615,
0.2308,
0,
0.66,
0.5,
259,
0,
1,
1,
0,
0,
0,
4
],
[
14,
1,
0.4615,
0.0769,
1,
0.97... | [
"import sys, hashlib",
"def toNID(name):\n\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()\n\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]",
"\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()",
"\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + ha... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | [
[
8,
0,
0.022,
0.0165,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0385,
0.0055,
0,
0.66,
0.0769,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.044,
0.0055,
0,
0.66,
... | [
"\"\"\"\npspbtcnf_editor: An script that add modules from pspbtcnf\n\"\"\"",
"import sys, os, re",
"from getopt import *",
"from struct import *",
"BTCNF_MAGIC=0x0F803001",
"verbose = False",
"def print_usage():\n\tprint (\"%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]\" ... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | [
[
3,
0,
0.0488,
0.0366,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.0549,
0.0244,
1,
0.38,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.061,
0.0122,
2,
0.09,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import sys, os, struct, gzip, hashlib, StringIO",
"gzip.time = FakeTime()",
"def binary_replace(data, newdata, offset):\n\treturn data[0:offset] + ... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | [
[
8,
0,
0.0297,
0.0099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0495,
0.0099,
0,
0.66,
0.0909,
688,
0,
3,
0,
0,
688,
0,
0
],
[
14,
0,
0.0693,
0.0099,
0,
0.6... | [
"\"\"\" PRO build script\"\"\"",
"import os, shutil, sys",
"NIGHTLY=0",
"VERSION=\"B10\"",
"PRO_BUILD = [\n\t\t\t{ \"fn\": \"620PRO-%s.rar\", \"config\": \"CONFIG_620=1\" },\n\t\t\t{ \"fn\": \"635PRO-%s.rar\", \"config\": \"CONFIG_635=1\" },\n\t\t\t{ \"fn\": \"639PRO-%s.rar\", \"config\": \"CONFIG_639=1\" }... |
#Boa:Frame:IncomingRequestFrame
import wx
from request import *
import logging
from request import *
#get the logger instance for this app
logger = logging.getLogger('provinci')
def create(parent, request):
return IncomingRequestFrame(parent, request)
[wxID_INCOMINGREQUESTFRAME, wxID_INCOMINGREQUE... | [
[
1,
0,
0.0333,
0.0111,
0,
0.66,
0,
666,
0,
1,
0,
0,
666,
0,
0
],
[
1,
0,
0.0444,
0.0111,
0,
0.66,
0.1429,
50,
0,
1,
0,
0,
50,
0,
0
],
[
1,
0,
0.0556,
0.0111,
0,
0.... | [
"import wx",
"from request import *",
"import logging",
"from request import *",
"logger = logging.getLogger('provinci')",
"def create(parent, request):\n return IncomingRequestFrame(parent, request)",
" return IncomingRequestFrame(parent, request)",
"[wxID_INCOMINGREQUESTFRAME, wxID_INCOMINGREQ... |
import yaml
from datetime import datetime
import logging
import pythoncom
#get the logger instance for this app
logger = logging.getLogger('provinci')
class Request(object):
def __init__(self, requester):
self.guid = str(pythoncom.CreateGuid())
self.timestamp = datetime.now()
... | [
[
1,
0,
0.0182,
0.0182,
0,
0.66,
0,
960,
0,
1,
0,
0,
960,
0,
0
],
[
1,
0,
0.0364,
0.0182,
0,
0.66,
0.1111,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0545,
0.0182,
0,
... | [
"import yaml",
"from datetime import datetime",
"import logging",
"import pythoncom",
"logger = logging.getLogger('provinci')",
"class Request(object):\n \n def __init__(self, requester):\n self.guid = str(pythoncom.CreateGuid())\n self.timestamp = datetime.now()\n self.requeste... |
#!/usr/bin/env python
#Boa:App:BoaApp
import sys
import wx
import logging
import MainFrame
logger = logging.getLogger('provinci')
modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],
u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],
u'RequestFrame': [0, '', u'RequestFr... | [
[
1,
0,
0.1026,
0.0256,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1282,
0.0256,
0,
0.66,
0.125,
666,
0,
1,
0,
0,
666,
0,
0
],
[
1,
0,
0.1538,
0.0256,
0,
0... | [
"import sys",
"import wx",
"import logging",
"import MainFrame",
"logger = logging.getLogger('provinci')",
"modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],\n u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],\n u'RequestFrame': [0, '', u'RequestFrame.py']}",
"class ... |
#Boa:Frame:requestFrame
import wx
import logging
from request import *
#get the logger instance for this app
logger = logging.getLogger('provinci')
def create(parent):
return requestFrame(parent)
[wxID_REQUESTFRAME, wxID_REQUESTFRAMEADDBUTTON,
wxID_REQUESTFRAMEADDRESSTEXTCTRL, wxID_REQUESTFRAMECA... | [
[
1,
0,
0.0184,
0.0061,
0,
0.66,
0,
666,
0,
1,
0,
0,
666,
0,
0
],
[
1,
0,
0.0245,
0.0061,
0,
0.66,
0.1667,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0307,
0.0061,
0,
... | [
"import wx",
"import logging",
"from request import *",
"logger = logging.getLogger('provinci')",
"def create(parent):\n return requestFrame(parent)",
" return requestFrame(parent)",
"[wxID_REQUESTFRAME, wxID_REQUESTFRAMEADDBUTTON, \n wxID_REQUESTFRAMEADDRESSTEXTCTRL, wxID_REQUESTFRAMECANCELBUTTON... |
#!/usr/bin/env python
#Boa:App:BoaApp
import sys
import wx
import logging
import MainFrame
logger = logging.getLogger('provinci')
modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],
u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],
u'RequestFrame': [0, '', u'RequestFr... | [
[
1,
0,
0.1026,
0.0256,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1282,
0.0256,
0,
0.66,
0.125,
666,
0,
1,
0,
0,
666,
0,
0
],
[
1,
0,
0.1538,
0.0256,
0,
0... | [
"import sys",
"import wx",
"import logging",
"import MainFrame",
"logger = logging.getLogger('provinci')",
"modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],\n u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],\n u'RequestFrame': [0, '', u'RequestFrame.py']}",
"class ... |
#This contains global definition of Browser class and other useful thing
#######################################################################################
# #
# File: browser_bogus.py ... | [
[
1,
0,
0.75,
0.0227,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.7727,
0.0227,
0,
0.66,
0.5,
591,
0,
1,
0,
0,
591,
0,
0
],
[
3,
0,
0.9091,
0.2045,
0,
0.66,... | [
"import urllib2",
"import cookielib",
"class Browser():\n def __init__(self, user, passwd):\n self.username = user\n self.password = passwd\n self.cookie = cookielib.CookieJar()\n self.urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookie))\n self.logout_... |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater ... | [
[
1,
0,
0.2448,
0.007,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2587,
0.007,
0,
0.66,
0.0667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2657,
0.007,
0,
0.6... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.2dgal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"ad_char = \"diy... |
#######################################################################################
# #
# File: gojuon.py #
# Part of 2dgal-cheater ... | [
[
14,
0,
0.568,
0.868,
0,
0.66,
0,
833,
0,
0,
0,
0,
0,
6,
0
]
] | [
"gojuon = {\n\t\"=%A4%A2\":\"a\",\n\t\"=%A5%A2\":\"a\",\n\t\"=%A4%A4\":\"i\",\n\t\"=%A5%A4\":\"i\",\n\t\"=%A4%A6\":\"u\",\n\t\"=%A5%A6\":\"u\",\n\t\"=%A4%A8\":\"e\","
] |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater ... | [
[
1,
0,
0.2448,
0.007,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2587,
0.007,
0,
0.66,
0.0667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2657,
0.007,
0,
0.6... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.2dgal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"ad_char = \"diy... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater ... | [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater ... | [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.