code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.1562, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3125, 0.0208, 0, 0.66, 0.25, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.3333, 0.0208, 0, 0.66, ...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "import DataSetAttr", "i...
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.2206, 0.3529, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4412, 0.0294, 0, 0.66, 0.25, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.4706, 0.0294, 0, 0.66, ...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "import DataSetAttr", "i...
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.2344, 0.375, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4688, 0.0312, 0, 0.66, 0.25, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.5, 0.0312, 0, 0.66, 0....
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "import DataSetAttr", "i...
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.1667, 0.2667, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0222, 0, 0.66, 0.2, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.3556, 0.0222, 0, 0.66, ...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "import DataSetAttr", "i...
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.1087, 0.1739, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2174, 0.0145, 0, 0.66, 0.3333, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2464, 0.0145, 0, 0.66,...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "__version__ = \"$Id: Data...
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.2027, 0.3243, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4054, 0.027, 0, 0.66, 0.2, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4595, 0.027, 0, 0.66, ...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "__version__ = \"$Id: Scal...
__version__ = "0.4.74"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"0.4.74\"" ]
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
[ [ 8, 0, 0.1744, 0.2791, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3488, 0.0233, 0, 0.66, 0.1667, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3953, 0.0233, 0, 0.66,...
[ "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", "__version__ = \"$Id: Colo...
#!/usr/bin/env python import os import sys from distutils.core import setup version_file = os.path.join('lib','__version__.py') if 1 or not os.path.exists(version_file): major_version = 0 minor_version = 4 execfile(os.path.join('tools','get_revision.py')) __version__='%d.%d.%d'%(major_version,minor_ve...
[ [ 1, 0, 0.0536, 0.0179, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0714, 0.0179, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0893, 0.0179, 0, 0...
[ "import os", "import sys", "from distutils.core import setup", "version_file = os.path.join('lib','__version__.py')", "if 1 or not os.path.exists(version_file):\n major_version = 0\n minor_version = 4\n execfile(os.path.join('tools','get_revision.py'))\n __version__='%d.%d.%d'%(major_version,min...
#!/usr/bin/env python """ Tensors """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revisi...
[ [ 8, 0, 0.0517, 0.0517, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.181, 0.2069, 0, 0.66, 0.1667, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3103, 0.0172, 0, 0.66, ...
[ "\"\"\"\nTensors\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.",...
#!/usr/bin/env python """ Vectors """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revisi...
[ [ 8, 0, 0.0566, 0.0566, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1981, 0.2264, 0, 0.66, 0.1667, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3396, 0.0189, 0, 0.66, ...
[ "\"\"\"\nVectors\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.",...
#!/usr/bin/env python """ Normals """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revisi...
[ [ 8, 0, 0.0469, 0.0469, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1641, 0.1875, 0, 0.66, 0.1429, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2812, 0.0156, 0, 0.66, ...
[ "\"\"\"\nNormals\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.",...
#!/usr/bin/env python """ DataSet """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revisi...
[ [ 8, 0, 0.0309, 0.0309, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1082, 0.1237, 0, 0.66, 0.0833, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1856, 0.0103, 0, 0.66, ...
[ "\"\"\"\nDataSet\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.",...
#!/usr/bin/env python """ Scalars """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revisi...
[ [ 8, 0, 0.0455, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1591, 0.1818, 0, 0.66, 0.1429, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2727, 0.0152, 0, 0.66, ...
[ "\"\"\"\nScalars\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.",...
__version__ = "0.4.74"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"0.4.74\"" ]
#!/usr/bin/env python """ ColorScalars """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $R...
[ [ 8, 0, 0.0462, 0.0462, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1615, 0.1846, 0, 0.66, 0.1429, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2769, 0.0154, 0, 0.66, ...
[ "\"\"\"\nColorScalars\n\"\"\"", "\"\"\"\n\nCopyright 2001 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@ioc.ee> \nPermission to use, modify, and distribute this software is given under the\nterms of the LGPL. See http://www.fsf.org\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RI...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0...
[ "import logging", "import shutil", "import sys", "import urlparse", "import SimpleHTTPServer", "import BaseHTTPServer", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.1429, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.6...
[ "import os", "import subprocess", "import sys", "BASEDIR = '../main/src/com/joelapenna/foursquare'", "TYPESDIR = '../captures/types/v1'", "captures = sys.argv[1:]", "if not captures:\n captures = os.listdir(TYPESDIR)", " captures = os.listdir(TYPESDIR)", "for f in captures:\n basename = f.split('...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
[ [ 8, 0, 0.0631, 0.0991, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1261, 0.009, 0, 0.66, 0.05, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1351, 0.009, 0, 0.66, 0....
[ "\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD", "import httplib", "import os", "import re", "import sys", "import urllib", "import urllib2", "import urlparse", "import user", "from xml....
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
[ [ 1, 0, 0.0201, 0.0067, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0268, 0.0067, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0336, 0.0067, 0, ...
[ "import datetime", "import sys", "import textwrap", "import common", "from xml.dom import pulldom", "PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;", "BOOLEAN_STANZA = \"\"\"\\\n } else i...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
[ [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0439, 0.0088, 0, 0.66, 0.0833, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0526, 0.0088, 0, ...
[ "import logging", "from xml.dom import minidom", "from xml.dom import pulldom", "BOOLEAN = \"boolean\"", "STRING = \"String\"", "GROUP = \"Group\"", "DEFAULT_INTERFACES = ['FoursquareType']", "INTERFACES = {\n}", "DEFAULT_CLASS_IMPORTS = [\n]", "CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0...
[ "import logging", "import shutil", "import sys", "import urlparse", "import SimpleHTTPServer", "import BaseHTTPServer", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
[ [ 1, 0, 0.0201, 0.0067, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0268, 0.0067, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0336, 0.0067, 0, ...
[ "import datetime", "import sys", "import textwrap", "import common", "from xml.dom import pulldom", "PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;", "BOOLEAN_STANZA = \"\"\"\\\n } else i...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
[ [ 8, 0, 0.0631, 0.0991, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1261, 0.009, 0, 0.66, 0.05, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1351, 0.009, 0, 0.66, 0....
[ "\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD", "import httplib", "import os", "import re", "import sys", "import urllib", "import urllib2", "import urlparse", "import user", "from xml....
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.1429, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.6...
[ "import os", "import subprocess", "import sys", "BASEDIR = '../main/src/com/joelapenna/foursquare'", "TYPESDIR = '../captures/types/v1'", "captures = sys.argv[1:]", "if not captures:\n captures = os.listdir(TYPESDIR)", " captures = os.listdir(TYPESDIR)", "for f in captures:\n basename = f.split('...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
[ [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0439, 0.0088, 0, 0.66, 0.0833, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0526, 0.0088, 0, ...
[ "import logging", "from xml.dom import minidom", "from xml.dom import pulldom", "BOOLEAN = \"boolean\"", "STRING = \"String\"", "GROUP = \"Group\"", "DEFAULT_INTERFACES = ['FoursquareType']", "INTERFACES = {\n}", "DEFAULT_CLASS_IMPORTS = [\n]", "CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP...
#!/usr/bin/python2.5 # # phillias Build Tool - Main Executable Wrapper # import sys sys.path.append('src') import src.phillias_main src.phillias_main.Run()
[ [ 8, 0, 0.6667, 0.1667, 0, 0.66, 0, 243, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.8333, 0.1667, 0, 0.66, 0.5, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 8, 0, 1, 0.1667, 0, 0.66, ...
[ "sys.path.append('src')", "import src.phillias_main", "src.phillias_main.Run()" ]
# -*- python -*- env = Environment(CCFLAGS = ['-Wall']) env.Program('a3dcontrol', 'src/a3dcontrol.c') SConscript(['tools/SConscript', 'examples/SConscript', ])
[ [ 14, 0, 0.3333, 0.1111, 0, 0.66, 0, 803, 3, 1, 0, 0, 947, 10, 1 ], [ 8, 0, 0.5556, 0.1111, 0, 0.66, 0.5, 919, 3, 2, 0, 0, 0, 0, 1 ], [ 8, 0, 0.8889, 0.3333, 0, 0.6...
[ "env = Environment(CCFLAGS = ['-Wall'])", "env.Program('a3dcontrol', 'src/a3dcontrol.c')", "SConscript(['tools/SConscript',\n 'examples/SConscript',\n ])" ]
env = Environment(CCFLAGS = ['-Wall']) env.Program('i2crecorder', 'src/i2crecorder.c', LIBS=['ftdi', ])
[ [ 14, 0, 0.1667, 0.1667, 0, 0.66, 0, 803, 3, 1, 0, 0, 947, 10, 1 ], [ 8, 0, 0.6667, 0.5, 0, 0.66, 1, 919, 3, 3, 0, 0, 0, 0, 1 ] ]
[ "env = Environment(CCFLAGS = ['-Wall'])", "env.Program('i2crecorder',\n 'src/i2crecorder.c',\n LIBS=['ftdi', ])" ]
env = Environment(CCFLAGS = ['-Wall']) env.Program('pulsar', 'src/pulsar.c', LIBS=['GL', 'GLU', 'glut' ])
[ [ 14, 0, 0.1667, 0.1667, 0, 0.66, 0, 803, 3, 1, 0, 0, 947, 10, 1 ], [ 8, 0, 0.6667, 0.5, 0, 0.66, 1, 919, 3, 3, 0, 0, 0, 0, 1 ] ]
[ "env = Environment(CCFLAGS = ['-Wall'])", "env.Program('pulsar',\n 'src/pulsar.c',\n LIBS=['GL', 'GLU', 'glut' ])" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 定义一些常量 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ ROOT_TXT = u"GIS数据:" DIVSROOT_TXT = u"驱动和数据登记:" MAP_TXT = u"地图:" ROOTS=[ROOT_TXT, DIVSROOT_TXT, MAP_TXT]
[ [ 8, 0, 0.3333, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6667, 0.0667, 0, 0.66, 0.25, 63, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7333, 0.0667, 0, 0.66, ...
[ "\"\"\"\n定义一些常量\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "ROOT_TXT = u\"GIS数据:\"", "DIVSROOT_TXT = u\"驱动和数据登记:\"", "MAP_TXT = u\"地图:\"", "ROOTS=[ROOT_TXT, DIVSROOT_TXT, MAP_TXT]" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 定义主界面 - writer:linux_23; create: Thu Jun 05 09:28:28 2008 ; version:1; 创建 """ import wx,os import wx.lib.hyperlink as hl from geosings.ui.core.MainImage import GetBitmapByName from geosings.core.system import * from friendpanel import * from gispanel imp...
[ [ 8, 0, 0.023, 0.023, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0415, 0.0046, 0, 0.66, 0.0667, 666, 0, 2, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0461, 0.0046, 0, 0.66, ...
[ "\"\"\"\n定义主界面\n\n - writer:linux_23; create: Thu Jun 05 09:28:28 2008 ; version:1; 创建\n\"\"\"", "import wx,os", "import wx.lib.hyperlink as hl", "from geosings.ui.core.MainImage import GetBitmapByName", "from geosings.core.system import *", "from friendpanel import *", "from gispanel import *", "def ...
# -*- encoding: utf-8 -*- import os,sys,time thispath = os.path.abspath(__file__)# get the module path! parentdir,f = os.path.split(thispath) msnppath = os.path.join(parentdir,"msnp.zip") sys.path.append( msnppath ) import msnp class MsnChatListener(msnp.ChatCallbacks): def message_received(self, pass...
[ [ 1, 0, 0.0513, 0.0256, 0, 0.66, 0, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1026, 0.0256, 0, 0.66, 0.0909, 611, 3, 1, 0, 0, 142, 10, 1 ], [ 14, 0, 0.1282, 0.0256, 0, ...
[ "import os,sys,time", "thispath = os.path.abspath(__file__)# get the module path!", "parentdir,f = os.path.split(thispath)", "msnppath = os.path.join(parentdir,\"msnp.zip\")", "sys.path.append( msnppath )", "import msnp", "class MsnChatListener(msnp.ChatCallbacks):\n def message_received(self, passpo...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GIS列表面板 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ import wx,sys,os import wx.lib.hyperlink as hl from geosings.ui.core.wxKeyParser import * from geosings.core.system.DefConf import USERHOME from geosings.core.system.EncodeTran import utf82loc...
[ [ 8, 0, 0.0204, 0.0204, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0327, 0.0041, 0, 0.66, 0.0476, 666, 0, 3, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0367, 0.0041, 0, 0.66...
[ "\"\"\"\nGIS列表面板\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "import wx,sys,os", "import wx.lib.hyperlink as hl", "from geosings.ui.core.wxKeyParser import *", "from geosings.core.system.DefConf import USERHOME", "from geosings.core.system.EncodeTran import utf82locale", ...
from binascii import b2a_hex, a2b_hex import tea ,struct import md5 key = md5.new(md5.new("python").digest()).digest() key1='E87B1ED5BF02A8169FBABB701311D8F2' key2='Kr9kxuztjSgWxNcx' print b2a_hex(key) data='66BBA5CF7FFA17A96536C30ED4F24A671A6C17807413B8E83E7B3297C984FB87' data2=a2b_hex('1097099d1c69f1f5000bb...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 984, 0, 2, 0, 0, 984, 0, 0 ], [ 1, 0, 0.1538, 0.0769, 0, 0.66, 0.0909, 99, 0, 2, 0, 0, 99, 0, 0 ], [ 1, 0, 0.2308, 0.0769, 0, 0....
[ "from binascii import b2a_hex, a2b_hex", "import tea ,struct", "import md5", "key = md5.new(md5.new(\"python\").digest()).digest()", "key1='E87B1ED5BF02A8169FBABB701311D8F2'", "key2='Kr9kxuztjSgWxNcx'", "print(b2a_hex(key))", "data='66BBA5CF7FFA17A96536C30ED4F24A671A6C17807413B8E83E7B3297C984FB87'", ...
import pcap ,struct pack=pcap.pcap() pack.setfilter('udp') for recv_time,recv_data in pack: recv_len=len(recv_data) if recv_len==55 and recv_data[42]==chr(02) and recv_data[54]==chr(03): print struct.unpack('>I',recv_data[recv_len-6:recv_len-2])[0]
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 947, 0, 2, 0, 0, 947, 0, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 742, 3, 0, 0, 0, 947, 10, 1 ], [ 8, 0, 0.6, 0.2, 0, 0.66, 0.6667...
[ "import pcap ,struct", "pack=pcap.pcap()", "pack.setfilter('udp')", "for recv_time,recv_data in pack: \n recv_len=len(recv_data)", " recv_len=len(recv_data)" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 朋友列表面板 - writer:linux_23; create: Fri Jun 06 13:56:47 2008 ; version:1; 创建 """ import wx,sys,os import wx.lib.foldpanelbar as fpb import wx.lib.hyperlink as hl import xmpp from geosings.ui.core.wxKeyParser import * import cStringIO from gispanel import * ...
[ [ 8, 0, 0.011, 0.011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0177, 0.0022, 0, 0.66, 0.0625, 666, 0, 3, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0199, 0.0022, 0, 0.66, ...
[ "\"\"\"\n朋友列表面板\n\n - writer:linux_23; create: Fri Jun 06 13:56:47 2008 ; version:1; 创建\n\"\"\"", "import wx,sys,os", "import wx.lib.foldpanelbar as fpb", "import wx.lib.hyperlink as hl", "import xmpp", "from geosings.ui.core.wxKeyParser import *", "import cStringIO", "from gispanel import *", "def ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 定义一些常量 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ ROOT_TXT = u"GIS数据:" DIVSROOT_TXT = u"驱动和数据登记:" MAP_TXT = u"地图:" ROOTS=[ROOT_TXT, DIVSROOT_TXT, MAP_TXT]
[ [ 8, 0, 0.3333, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6667, 0.0667, 0, 0.66, 0.25, 63, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7333, 0.0667, 0, 0.66, ...
[ "\"\"\"\n定义一些常量\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "ROOT_TXT = u\"GIS数据:\"", "DIVSROOT_TXT = u\"驱动和数据登记:\"", "MAP_TXT = u\"地图:\"", "ROOTS=[ROOT_TXT, DIVSROOT_TXT, MAP_TXT]" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GIS列表面板 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ import wx,sys,os import wx.lib.hyperlink as hl from geosings.ui.core.wxKeyParser import * from geosings.core.system.DefConf import USERHOME from geosings.core.system.EncodeTran import utf82loc...
[ [ 8, 0, 0.0204, 0.0204, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0327, 0.0041, 0, 0.66, 0.0476, 666, 0, 3, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0367, 0.0041, 0, 0.66...
[ "\"\"\"\nGIS列表面板\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "import wx,sys,os", "import wx.lib.hyperlink as hl", "from geosings.ui.core.wxKeyParser import *", "from geosings.core.system.DefConf import USERHOME", "from geosings.core.system.EncodeTran import utf82locale", ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GIS树控件 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ import wx from wx.lib.mixins import treemixin from Const import * from conf import * from panels import GetImageByName, GetImageDirPath class DemoTreeMixin(treemixin.VirtualTree, treemixin.D...
[ [ 8, 0, 0.0649, 0.0649, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1299, 0.013, 0, 0.66, 0.1429, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 1, 0, 0.1429, 0.013, 0, 0.66, ...
[ "\"\"\"\nGIS树控件\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "import wx", "from wx.lib.mixins import treemixin", "from Const import *", "from conf import *", "from panels import GetImageByName, GetImageDirPath", "class DemoTreeMixin(treemixin.VirtualTree, treemixin.DragA...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 定义主界面 - writer:linux_23; create: Thu Jun 05 09:28:28 2008 ; version:1; 创建 """ import wx,os import wx.lib.hyperlink as hl from geosings.ui.core.MainImage import GetBitmapByName from geosings.core.system import * from friendpanel import * from gispanel imp...
[ [ 8, 0, 0.023, 0.023, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0415, 0.0046, 0, 0.66, 0.0667, 666, 0, 2, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0461, 0.0046, 0, 0.66, ...
[ "\"\"\"\n定义主界面\n\n - writer:linux_23; create: Thu Jun 05 09:28:28 2008 ; version:1; 创建\n\"\"\"", "import wx,os", "import wx.lib.hyperlink as hl", "from geosings.ui.core.MainImage import GetBitmapByName", "from geosings.core.system import *", "from friendpanel import *", "from gispanel import *", "def ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 进行配置的操作 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ from utils import TALK_CONF import uuid class GisData: def get_gisdivs(self): if 'GIS_DIVS' not in TALK_CONF: TALK_CONF['GIS_DIVS'] = "[]" divlists = TALK_CONF...
[ [ 8, 0, 0.0373, 0.0373, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0597, 0.0075, 0, 0.66, 0.2, 970, 0, 1, 0, 0, 970, 0, 0 ], [ 1, 0, 0.0672, 0.0075, 0, 0.66, ...
[ "\"\"\"\n进行配置的操作\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "from utils import TALK_CONF", "import uuid", "class GisData:\n def get_gisdivs(self):\n if 'GIS_DIVS' not in TALK_CONF:\n TALK_CONF['GIS_DIVS'] = \"[]\"\n divlists = TALK_CONF['GIS_DIVS'...
import bsddb TALK_CONF = bsddb.hashopen('conf.db','c')
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 361, 0, 1, 0, 0, 361, 0, 0 ], [ 14, 0, 1, 0.3333, 0, 0.66, 1, 672, 3, 2, 0, 0, 578, 10, 1 ] ]
[ "import bsddb", "TALK_CONF = bsddb.hashopen('conf.db','c')" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GIS树控件 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ import wx from wx.lib.mixins import treemixin from Const import * from conf import * from panels import GetImageByName, GetImageDirPath class DemoTreeMixin(treemixin.VirtualTree, treemixin.D...
[ [ 8, 0, 0.0649, 0.0649, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1299, 0.013, 0, 0.66, 0.1429, 666, 0, 1, 0, 0, 666, 0, 0 ], [ 1, 0, 0.1429, 0.013, 0, 0.66, ...
[ "\"\"\"\nGIS树控件\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "import wx", "from wx.lib.mixins import treemixin", "from Const import *", "from conf import *", "from panels import GetImageByName, GetImageDirPath", "class DemoTreeMixin(treemixin.VirtualTree, treemixin.DragA...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 进行配置的操作 - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建 """ from utils import TALK_CONF import uuid class GisData: def get_gisdivs(self): if 'GIS_DIVS' not in TALK_CONF: TALK_CONF['GIS_DIVS'] = "[]" divlists = TALK_CONF...
[ [ 8, 0, 0.0373, 0.0373, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0597, 0.0075, 0, 0.66, 0.2, 970, 0, 1, 0, 0, 970, 0, 0 ], [ 1, 0, 0.0672, 0.0075, 0, 0.66, ...
[ "\"\"\"\n进行配置的操作\n\n - writer:linux_23; create: Jun 27 22:23:47 2008 ; version:1; 创建\n\"\"\"", "from utils import TALK_CONF", "import uuid", "class GisData:\n def get_gisdivs(self):\n if 'GIS_DIVS' not in TALK_CONF:\n TALK_CONF['GIS_DIVS'] = \"[]\"\n divlists = TALK_CONF['GIS_DIVS'...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 朋友列表面板 - writer:linux_23; create: Fri Jun 06 13:56:47 2008 ; version:1; 创建 """ import wx,sys,os import wx.lib.foldpanelbar as fpb import wx.lib.hyperlink as hl import xmpp from geosings.ui.core.wxKeyParser import * import cStringIO from gispanel import * ...
[ [ 8, 0, 0.011, 0.011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0177, 0.0022, 0, 0.66, 0.0625, 666, 0, 3, 0, 0, 666, 0, 0 ], [ 1, 0, 0.0199, 0.0022, 0, 0.66, ...
[ "\"\"\"\n朋友列表面板\n\n - writer:linux_23; create: Fri Jun 06 13:56:47 2008 ; version:1; 创建\n\"\"\"", "import wx,sys,os", "import wx.lib.foldpanelbar as fpb", "import wx.lib.hyperlink as hl", "import xmpp", "from geosings.ui.core.wxKeyParser import *", "import cStringIO", "from gispanel import *", "def ...
#!/usr/bin/env python # -*- encoding:utf8 -*- # protoc-gen-erl # Google's Protocol Buffers project, ported to lua. # https://code.google.com/p/protoc-gen-lua/ # # Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com # All rights reserved. # # Use, modification and distribution are subject to the "New BSD License" #...
[ [ 1, 0, 0.0289, 0.0022, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0311, 0.0022, 0, 0.66, 0.0417, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0333, 0.0022, 0, 0....
[ "import sys", "import os.path as path", "from cStringIO import StringIO", "import plugin_pb2", "import google.protobuf.descriptor_pb2 as descriptor_pb2", "_packages = {}", "_files = {}", "_message = {}", "FDP = plugin_pb2.descriptor_pb2.FieldDescriptorProto", "if sys.platform == \"win32\":\n im...
#!/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.1875, 0.0081, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1976, 0.004, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2056, 0.004, 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...
# # Copyright (C) 2011 0xlab - http://0xlab.org/ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ [ 1, 0, 0.1759, 0.0093, 0, 0.66, 0, 467, 0, 1, 0, 0, 467, 0, 0 ], [ 14, 0, 0.1944, 0.0093, 0, 0.66, 0.0476, 143, 1, 0, 0, 0, 0, 9, 0 ], [ 2, 0, 0.2315, 0.0463, 0, 0...
[ "from org.zeroxlab.wookieerunner import WookieeRunner", "DEVICE = None", "def connect(*args, **kwargs):\n global DEVICE\n print('Wating for connection...')\n DEVICE = WookieeRunner.waitForConnection(*args, **kwargs)\n print('Connection established.')", " print('Wating for connection...')", " ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Algoritmo de Cifrado/Descifrado en flujo A5/1 Copyright (C) 2012 Darío López Padial y César Aguilera @bukosabino @Cs4r ‏ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
[ [ 8, 0, 0.1605, 0.2346, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4938, 0.0123, 0, 0.66, 0.0714, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5062, 0.0123, 0, 0.6...
[ "\"\"\"\n Algoritmo de Cifrado/Descifrado en flujo A5/1\n Copyright (C) 2012 Darío López Padial y César Aguilera \n @bukosabino\n @Cs4r\n ‏\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by", "import s...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Algoritmo de Cifrado/Descifrado en flujo A5/1 Copyright (C) 2012 Darío López Padial y César Aguilera @bukosabino @Cs4r ‏ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
[ [ 8, 0, 0.1605, 0.2346, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4938, 0.0123, 0, 0.66, 0.0714, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5062, 0.0123, 0, 0.6...
[ "\"\"\"\n Algoritmo de Cifrado/Descifrado en flujo A5/1\n Copyright (C) 2012 Darío López Padial y César Aguilera \n @bukosabino\n @Cs4r\n ‏\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by", "import s...
#Transfer the original training data provided by JRS organization. #The input may contain lots of zero values. To improve the I/O time, #we eliminate the input to be as the form: #AttrID:Value AttrID:Value ... #-ktchuang import sys if len(sys.argv) <= 2: print('Usage: python {0} LongInputFile EliminateOutp...
[ [ 1, 0, 0.2, 0.0333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.3, 0.1, 0, 0.66, 0.125, 0, 0, 0, 0, 0, 0, 0, 3 ], [ 8, 1, 0.3, 0.0333, 1, 0.15, 0, ...
[ "import sys", "if len(sys.argv) <= 2:\n print('Usage: python {0} LongInputFile EliminateOutputFile '.format(sys.argv[0]))\n raise SystemExit", " print('Usage: python {0} LongInputFile EliminateOutputFile '.format(sys.argv[0]))", "print('Transfer ' + sys.argv[1] + ' to '+ sys.argv[2])", "inf = open(...
#A simple test for integrating to java project print ('this is python talk..')
[ [ 8, 0, 1, 0.5, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "print ('this is python talk..')" ]
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
[ [ 1, 0, 0.1595, 0.0043, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1638, 0.0043, 0, 0.66, 0.1667, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1681, 0.0043, 0, ...
[ "import os", "import re", "import sys", "import traceback", "from PyQt4 import QtCore", "from PyQt4 import QtGui", "class AbcConsoleWidget(QtGui.QPlainTextEdit):\n \"\"\"\n Simple PyQt-based Python interpreter widget with predefined alembic contexts. \n \"\"\"\n def __init__(self, parent=Non...
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
[ [ 1, 0, 0.0554, 0.0015, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0569, 0.0015, 0, 0.66, 0.0556, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.0584, 0.0015, 0, ...
[ "import os", "import string", "import unittest", "import tempfile", "import imath", "import alembic", "import cask", "import meshData", "kFacevaryingScope = alembic.AbcGeom.GeometryScope.kFacevaryingScope", "kConstantScope = alembic.AbcGeom.GeometryScope.kConstantScope", "TEMPDIR = tempfile.mkdt...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2569, 0.0069, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2639, 0.0069, 0, 0.66, 0.125, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 2, 0, 0.2917, 0.0347, 0, 0...
[ "from imath import *", "from alembic.Abc import *", "def setArray( iTPTraits, *iList ):\n array = iTPTraits.arrayType( len( iList ) )\n for i in range( len( iList ) ):\n array[i] = iList[i]\n return array", " array = iTPTraits.arrayType( len( iList ) )", " for i in range( len( iList ) ...
#-****************************************************************************** # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # mo...
[ [ 1, 0, 0.2236, 0.0062, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2298, 0.0062, 0, 0.66, 0.0667, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.236, 0.0062, 0, 0...
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from nurbsData import *", "testList = []", "def nurbsOut1():\n \"\"\"write an oarchive with a nurb in it\"\"\"\n\n myNurbs = ONuPatch( OArchive( 'nurbs1.abc' ).getTop(),\n...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.1947, 0.0053, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2, 0.0053, 0, 0.66, 0.0769, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.2053, 0.0053, 0, 0.6...
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "testList = []", "kScaleFilmBackOperation = FilmBackXformOperationType.kScaleFilmBackOperation", "kTranslateFilmBackOperation = FilmBackXformOperationType.kTranslateFilmBackOpera...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2937, 0.0079, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.3016, 0.0079, 0, 0.66, 0.0833, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.3095, 0.0079, 0, ...
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcCoreAbstract import *", "from alembic.AbcGeom import *", "from meshData import *", "testList = []", "kFacevaryingScope = GeometryScope.kFacevaryingScope", "def meshOut():\n \"\"\"write an oarchive with a mesh in it\"\"\"\n\n me...
import testGeomParam import testXform import testPolyMesh import testCurves import testNurbs import testPoints import testXform import testCamera import testSubDFaceSet import testLight
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 673, 0, 1, 0, 0, 673, 0, 0 ], [ 1, 0, 0.2, 0.1, 0, 0.66, 0.1111, 405, 0, 1, 0, 0, 405, 0, 0 ], [ 1, 0, 0.3, 0.1, 0, 0.66, 0.2222, ...
[ "import testGeomParam", "import testXform", "import testPolyMesh", "import testCurves", "import testNurbs", "import testPoints", "import testXform", "import testCamera", "import testSubDFaceSet", "import testLight" ]
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2868, 0.0078, 0, 0.66, 0, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.2946, 0.0078, 0, 0.66, 0.0556, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.3023, 0.0078, 0, ...
[ "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from alembic.Util import *", "from cubeData import *", "tvec = TimeVector()", "tvec[:] = [ 1, 2, 3 ]", "timePerCycle = 3.0", "numSamplesPerCycle = len(tvec)", "tst = TimeSamplingType( numSamples...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.3333, 0.009, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.3423, 0.009, 0, 0.66, 0.0667, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.3514, 0.009, 0, 0.6...
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from curvesData import *", "testList = []", "kVertexScope = GeometryScope.kVertexScope", "kCubic = CurveType.kCubic", "kNonPeriodic = CurvePeriodicity.kNonPeriodic", "def ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.4744, 0.0128, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.4872, 0.0128, 0, 0.66, 0.1111, 922, 0, 1, 0, 0, 922, 0, 0 ], [ 1, 0, 0.5, 0.0128, 0, 0.6...
[ "import imath", "import alembic", "import traceback", "testList = []", "def archiveOut():\n \"\"\"write out an archive with an object tree\"\"\"\n\n archive = alembic.Abc.OArchive(\"iterator.abc\")\n childObj = alembic.Abc.OObject(archive.getTop(), \"childObj\")\n grandChildObj = alembic.Abc.OOb...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
[ [ 1, 0, 0.3619, 0.0095, 0, 0.66, 0, 982, 0, 1, 0, 0, 982, 0, 0 ], [ 2, 0, 0.4286, 0.1048, 0, 0.66, 0.1429, 747, 0, 1, 0, 0, 0, 0, 9 ], [ 4, 1, 0.3952, 0.019, 1, 0.8...
[ "from buildTestData import *", "def compareScalarSamples( iProp ):\n if not ScalarTraitsData.has_key( iProp.getName() ):\n return\n \n inputData = ScalarTraitsData[iProp.getName()][1:]\n compare = TraitsComparison[iProp.getName()]\n\n assert len( inputData ) == iProp.getNumSamples()", " ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
[ [ 1, 0, 0.5588, 0.0147, 0, 0.66, 0, 982, 0, 1, 0, 0, 982, 0, 0 ], [ 2, 0, 0.6985, 0.2353, 0, 0.66, 0.5, 255, 0, 4, 0, 0, 0, 0, 11 ], [ 14, 1, 0.6324, 0.0147, 1, 0.0...
[ "from buildTestData import *", "def exportCacheImpl( iTopObject, iTraitsData, iPropertyType, iWriteMeta = True):\n assert iTopObject.valid()\n\n cp = iTopObject.getProperties()\n\n for k, v in iTraitsData.iteritems():\n name = k;\n traits = v[0]", " cp = iTopObject.getProperties()", ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.0937, 0.0025, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.0962, 0.0025, 0, 0.66, 0.0286, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.0987, 0.0025, 0, ...
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from alembic.Util import *", "C3c = Color3c", "C3f = Color3f", "C4c = Color4c", "C4f = Color4f", "ScalarTraitsData = {}", "SmallArrayTraitsData = {}", "ArrayTraitsData...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.5068, 0.0137, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.5205, 0.0137, 0, 0.66, 0.1429, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 2, 0, 0.589, 0.0685, 0, 0...
[ "from imath import *", "from alembic.Abc import *", "def setArray( iTPTraits, *iList ):\n array = iTPTraits.arrayType( len( iList ) )\n for i in range( len( iList ) ):\n array[i] = iList[i]\n return array", " array = iTPTraits.arrayType( len( iList ) )", " for i in range( len( iList ) ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
[ [ 1, 0, 0.1968, 0.0053, 0, 0.66, 0, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.2021, 0.0053, 0, 0.66, 0.0714, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.2074, 0.0053, 0, ...
[ "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.Util import *", "def equalWithAbsError (a0, a1, error):\n return abs (a0 - a1) <= error", " return abs (a0 - a1) <= error", "testList = []", "def testPODEnumWrapper():\n print(POD.kBooleanPOD)\n print(POD.kUi...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.1779, 0.0048, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.1827, 0.0048, 0, 0.66, 0.05, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.1875, 0.0048, 0, 0....
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "testList = []", "kScaleOperation = XformOperationType.kScaleOperation", "kTranslateOperation = XformOperationType.kTranslateOperation", "kRotateOperation = XformOperationType.kRotateOperation", "kMatrixOperation = Xf...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2079, 0.0056, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2135, 0.0056, 0, 0.66, 0.0909, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.2191, 0.0056, 0, ...
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from meshData import *", "testList = []", "kFaceSetExclusive = FaceSetExclusivity.kFaceSetExclusive", "def subDFaceSetOut():\n \"\"\"Tests OSubD and OFaceSet\"\"\"\n \n archive = OArchive(\"facesetSubD1.abc\")...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.3217, 0.0087, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.3304, 0.0087, 0, 0.66, 0.0909, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.3391, 0.0087, 0, ...
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "testList = []", "kConstantScope = GeometryScope.kConstantScope", "def almostEqual(a0, a1, error=0.01):\n return abs(a0 - a1) <= error", " return abs(a0 - a1) <= error", "def lightOut():\n \"\"\"write out lig...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.3333, 0.009, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.3423, 0.009, 0, 0.66, 0.05, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 2, 0, 0.3784, 0.045, 0, 0.66,...
[ "from imath import *", "from alembic.Abc import *", "def setArray( iTPTraits, *iList ):\n array = iTPTraits.arrayType( len( iList ) )\n for i in range( len( iList ) ):\n array[i] = iList[i]\n return array", " array = iTPTraits.arrayType( len( iList ) )", " for i in range( len( iList ) ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2587, 0.007, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2657, 0.007, 0, 0.66, 0.0833, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.2727, 0.007, 0, 0.6...
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "from alembic.AbcMaterial import *", "testList = []", "kFacevaryingScope = GeometryScope.kFacevaryingScope", "def materialOut():\n \"\"\"write an oarchive with a material in...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2606, 0.007, 0, 0.66, 0, 982, 0, 1, 0, 0, 982, 0, 0 ], [ 14, 0, 0.2746, 0.007, 0, 0.66, 0.1667, 857, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.3521, 0.1338, 0, 0.6...
[ "from buildTestData import *", "testList = []", "def testOGeomParamImpl( iTPTraits, iTypedGeomParamSample ):\n\n compare = TraitsComparison[iTPTraits.__name__]\n\n ovals = ArrayTraitsData[iTPTraits.__name__][1]\n samp = iTypedGeomParamSample( ovals, GeometryScope.kConstantScope )\n ivals = samp.get...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.3978, 0.0108, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.4086, 0.0108, 0, 0.66, 0.1667, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 2, 0, 0.4516, 0.0538, 0, ...
[ "from imath import *", "from alembic.Abc import *", "def setArray( iTPTraits, *iList ):\n array = iTPTraits.arrayType( len( iList ) )\n for i in range( len( iList ) ):\n array[i] = iList[i]\n return array", " array = iTPTraits.arrayType( len( iList ) )", " for i in range( len( iList ) ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2868, 0.0078, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2946, 0.0078, 0, 0.66, 0.1, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.3023, 0.0078, 0, 0.6...
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcCoreAbstract import *", "from alembic.AbcCollection import *", "testList = []", "def collectionOut():\n \"\"\"test OCollecions Python bindings\"\"\"\n\n archive = OArchive(\"Collection.abc\")\n test = OObject(archive.getTop(), \...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2569, 0.0069, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.2639, 0.0069, 0, 0.66, 0.125, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 2, 0, 0.2917, 0.0347, 0, 0...
[ "from imath import *", "from alembic.Abc import *", "def setArray( iTPTraits, *iList ):\n array = iTPTraits.arrayType( len( iList ) )\n for i in range( len( iList ) ):\n array[i] = iList[i]\n return array", " array = iTPTraits.arrayType( len( iList ) )", " for i in range( len( iList ) ...
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
[ [ 1, 0, 0.1407, 0.0038, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.1445, 0.0038, 0, 0.66, 0.04, 810, 0, 1, 0, 0, 810, 0, 0 ], [ 1, 0, 0.1483, 0.0038, 0, 0....
[ "from imath import *", "from alembic.AbcCoreAbstract import *", "from alembic.Abc import *", "from alembic.Util import *", "from cubeData import *", "tvec = TimeVector()", "tvec[:] = [ 1, 2, 3 ]", "timePerCycle = 3.0", "numSamplesPerCycle = len(tvec)", "tst = TimeSamplingType( numSamplesPerCycle, ...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.2681, 0.0072, 0, 0.66, 0, 922, 0, 1, 0, 0, 922, 0, 0 ], [ 1, 0, 0.2754, 0.0072, 0, 0.66, 0.1, 922, 0, 1, 0, 0, 922, 0, 0 ], [ 14, 0, 0.2899, 0.0072, 0, 0....
[ "from alembic import Abc", "from alembic import AbcMaterial", "testList = []", "def almostEqual(a0, a1, error=0.01):\n return abs(a0 - a1) <= error", " return abs(a0 - a1) <= error", "def setFloatParameter(schema, target, shaderType, paramName, value):\n prop = Abc.OFloatProperty(schema.getShader...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
[ [ 1, 0, 0.319, 0.0086, 0, 0.66, 0, 918, 0, 1, 0, 0, 918, 0, 0 ], [ 1, 0, 0.3276, 0.0086, 0, 0.66, 0.1, 617, 0, 1, 0, 0, 617, 0, 0 ], [ 1, 0, 0.3362, 0.0086, 0, 0.66...
[ "from imath import *", "from alembic.Abc import *", "from alembic.AbcGeom import *", "testList = []", "def equalWithAbsError (a0, a1, error):\n return abs (a0 - a1) <= error", " return abs (a0 - a1) <= error", "def pointsOut():\n \"\"\"write out points archive\"\"\"\n \n archive = OArchiv...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1689, 0.0046, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1735, 0.0046, 0, 0.66, 0.1667, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.1781, 0.0046, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "def getObjFromName(nodeName):\n selectionList = OpenMaya.MSelectionList()\n selectionList.add(nodeName)\n obj = OpenMaya.MObject()\n selectionList.getDependNode(0, obj)\n ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.2056, 0.0056, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2111, 0.0056, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2167, 0.0056, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class staticPropTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files :", " def setUp(self):\...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.5606, 0.0152, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.5909, 0.0152, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6061, 0.0152, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class emptyMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files:", " def setUp(self):\n ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1682, 0.0045, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1727, 0.0045, 0, 0.66, 0.1667, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.1773, 0.0045, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "class AnimMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher...
##-***************************************************************************** ## ## Copyright (c) 2009-2012, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.0869, 0.0023, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0892, 0.0023, 0, 0.66, 0.125, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0915, 0.0023, 0, 0...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "def checkEqualRotate(test, nodeName1, nodeName2, precision):\n test.failUnlessAlmostEqual(MayaCmds.getAttr(nodeName1 + '.rotateX'),\n MayaCmds.getAttr(nodeName2 + '.rotateX'), precision)\n test.failUnlessAlmost...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.2624, 0.0071, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2695, 0.0071, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2766, 0.0071, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class VisibilityTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files :", " def setUp(self):\...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.0992, 0.0027, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.1019, 0.0027, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1046, 0.0027, 0, 0.6...
[ "import maya.cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class AnimTransformTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher']]\n self.__files = []\n\n ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.2984, 0.0081, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3065, 0.0081, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3145, 0.0081, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "def makeRobot():\n MayaCmds.polyCube(name=\"head\")\n MayaCmds.move(0, 4, 0, r=1)\n\n MayaCmds.polyCube(name=\"chest\")\n MayaCmds.scale(2, 2.5, 1)\n MayaCmds.move(0, 2, 0, r=1)\n MayaCmds.polyCube(name=\"...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1927, 0.0052, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1979, 0.0052, 0, 0.66, 0.1667, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.2083, 0.0052, 0, ...
[ "from maya import cmds as MayaCmds", "from maya.mel import eval as MelEval", "import os", "import maya.OpenMaya as OpenMaya", "import unittest", "import util", "class StaticMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.209, 0.0056, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2147, 0.0056, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2203, 0.0056, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class LoadWorldSpaceTranslateJobTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files :", " d...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.0539, 0.0015, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0553, 0.0015, 0, 0.66, 0.2, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.0568, 0.0015, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "class MayaReloadTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in sel...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1602, 0.0043, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.1645, 0.0043, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1688, 0.0043, 0, 0....
[ "import maya.cmds as MayaCmds", "import os", "import unittest", "import util", "class EulerFilterTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n MayaCmds.file(new=True, force=True)", " def setUp...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.5441, 0.0147, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.5588, 0.0147, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5735, 0.0147, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class TransformTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files :", " def setUp(self):\n...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.2913, 0.0079, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2992, 0.0079, 0, 0.66, 0.1429, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.3071, 0.0079, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "def createCamera():\n name = MayaCmds.camera()\n MayaCmds.setAttr(name[1]+'.horizontalFilmAperture', 0.962)\n MayaCmds.setAttr(name[1]+'.verticalFilmAp...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.0855, 0.0023, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0878, 0.0023, 0, 0.66, 0.0714, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.0901, 0.0023, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import math", "def expandFileName(name):\n return os.getcwd() + os.path.sep + name", " return os.getcwd() + os.path.sep + name", "def floatDiff(val1, val2, tolerance):\n diff = math.fabs(val1 - val2)\n if ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.6727, 0.0182, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.6909, 0.0182, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.7091, 0.0182, 0, ...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "class AbcExport_dupRootsTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n\n def testStaticTransformReadWrite(self):\n MayaCmds.polyCube(n='cube')\n MayaCmds.group(n='group1')", ...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.185, 0.005, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.19, 0.005, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.195, 0.005, 0, 0.66, ...
[ "from maya import cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class AnimNurbsSurfaceTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher']]\n self.__files = []...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.6271, 0.0169, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.6441, 0.0169, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.661, 0.0169, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class renderableOnlyTest(unittest.TestCase):\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files:\n os.remove(f)...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.4022, 0.0109, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.413, 0.0109, 0, 0.66, 0.1667, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.4239, 0.0109, 0, 0...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "def getObjFromName( nodeName ):\n selectionList = OpenMaya.MSelectionList()\n selectionList.add( nodeName )\n obj = OpenMaya.MObject()\n selectionList.getDependNode(0, obj)\...
##-***************************************************************************** ## ## Copyright (c) 2009-2012, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.3814, 0.0103, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3918, 0.0103, 0, 0.66, 0.1667, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.4021, 0.0103, 0, ...
[ "from maya import cmds as MayaCmds", "from maya import mel as Mel", "import os", "import subprocess", "import unittest", "import util", "class StripNamespaceTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):...