rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
for cmd in ['drop database if exists %s', 'create database %s CHARACTER SET utf8 COLLATE utf8_general_ci']:
for cmd in ['drop database if exists %s', 'create database %s CHARACTER SET utf8 COLLATE utf8_general_ci']:
def delete_db(settings): """Delete the old database.""" engine = settings.DATABASE_ENGINE if engine == 'sqlite3': try: os.unlink(settings.DATABASE_NAME) except OSError: pass elif engine == 'mysql': import _mysql s = _mysql.connect(host=settings.DATABASE_HOST, user=settings.DATABASE_USER, passwd=settings.DATABASE_PASSWORD) for cmd in ['drop database if exists %s', 'create database %s CHARACTER SET utf8 COLLATE utf8_general_ci']: s.query(cmd % settings.DATABASE_NAME) elif engine in ('postgresql', 'postgresql_psycopg2'): if settings.DATABASE_NAME == '': raise AssertionError, "You must specified a value for DATABASE_NAME in local_settings.py." if settings.DATABASE_USER == '': raise AssertionError, "You must specified a value for DATABASE_USER in local_settings.py." params=" --username=%s --password" % settings.DATABASE_USER if settings.DATABASE_HOST: params += " --host=%s" % settings.DATABASE_HOST if settings.DATABASE_PORT: params += " --port=%s" % settings.DATABASE_PORT params += " %s" % settings.DATABASE_NAME print """You will be prompted for the password for the user '%s' twice. Once to drop an existing database and then a second time for create the database """ % settings.DATABASE_USER for cmd in ['dropdb %s', 'createdb %s']: os.system(cmd % params) else: raise AssertionError, "Unknown database engine %s" % engine
0b5b5bdddb5618fc3777a5e213b03abd527f7ab5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13656/0b5b5bdddb5618fc3777a5e213b03abd527f7ab5/load_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, 18, 22366, 67, 1985, 13, 1335, 10002, 30, 1342, 1327, 4073, 422, 296, 12527, 4278, 1930, 389, 12527, 272, 273, 389, 12527, 18, 3612, 12, 2564, 33, 4272, 18, 22366, 67, 8908, 16, 729, 33, 4272, 18, 22366, 67, 4714, 16, 19093, 33, 4272, 18, 22366, 67, 13784, 13, 364, 1797, 316, 10228, 7285, 2063, 309, 1704, 738, 87, 2187, 296, 2640, 2063, 738, 87, 27517, 7855, 7718, 28, 5597, 10512, 7718, 28, 67, 12259, 67, 8450, 3546, 30, 272, 18, 2271, 12, 4172, 738, 1947, 18, 22366, 67, 1985, 13, 225, 1327, 4073, 316, 7707, 2767, 24330, 2187, 296, 2767, 24330, 67, 1121, 93, 22295, 75, 22, 11, 4672, 225, 309, 1947, 18, 22366, 67, 1985, 422, 875, 30, 1002, 12068, 16, 315, 6225, 1297, 1269, 279, 460, 364, 17998, 67, 1985, 316, 1191, 67, 4272, 18, 2074, 1199, 309, 1947, 18, 22366, 67, 4714, 422, 875, 30, 1002, 12068, 16, 315, 6225, 1297, 1269, 279, 460, 364, 17998, 67, 4714, 316, 1191, 67, 4272, 18, 2074, 1199, 859, 1546, 1493, 5053, 5095, 87, 225, 1493, 3664, 6, 738, 1947, 18, 22366, 67, 4714, 309, 1947, 18, 22366, 67, 8908, 30, 859, 1011, 315, 1493, 2564, 5095, 87, 6, 738, 1947, 18, 22366, 67, 8908, 309, 1947, 18, 22366, 67, 6354, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, 18, 22366, 67, 1985, 13, 1335, 10002, 30, 1342, 1327, 4073, 422, 296, 12527, 4278, 1930, 389, 12527, 272, 273, 389, 12527, 18, 3612, 12, 2564, 33, 4272, 18, 22366, 67, 8908, 16, 729, 33, 4272, 18, 22366, 67, 4714, 16, 19093, 33, 4272, 18, 22366, 67, 13784, 13, 364, 1797, 316, 10228, 7285, 2063, 309, 1704, 738, 87, 2187, 296, 2640, 2063, 738, 87, 27517, 7855, 7718, 28, 5597, 10512, 7718, 28, 67, 12259, 67, 8450, 3546, 30, 272, 18, 2271, 12, 4172, 2 ]
if test[2]:
if test[2] != "none":
def verify(self, manager, uri, response, respdata, args): #@UnusedVariable # Split into header/value tuples testheader = args.get("header", [])[:] for i in range(len(testheader)): p = testheader[i] present = "single" if p[0] == "!": p = p[1:] present = "none" if p[0] == "*": p = p[1:] present = "multiple" if p.find("$") != -1: testheader[i] = (p.split("$", 1)[0], p.split("$", 1)[1], present,) else: testheader[i] = (p, None, present,) result = True resulttxt = "" for test in testheader: hdrs = response.msg.getheaders(test[0]) if (hdrs is None or (len(hdrs) == 0)): if test[2]: result = False if len(resulttxt): resulttxt += "\n" resulttxt += " Missing Response Header: %s" % (test[0],) continue else: continue
5e31b354ab5596fb3936f4962814a0e42eeda188 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/129/5e31b354ab5596fb3936f4962814a0e42eeda188/header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 16, 3301, 16, 2003, 16, 766, 16, 1718, 892, 16, 833, 4672, 468, 36, 21106, 3092, 468, 5385, 1368, 1446, 19, 1132, 10384, 1842, 3374, 273, 833, 18, 588, 2932, 3374, 3113, 5378, 13, 10531, 65, 364, 277, 316, 1048, 12, 1897, 12, 3813, 3374, 3719, 30, 293, 273, 1842, 3374, 63, 77, 65, 3430, 273, 315, 7526, 6, 309, 293, 63, 20, 65, 422, 23717, 30, 293, 273, 293, 63, 21, 26894, 3430, 273, 315, 6102, 6, 309, 293, 63, 20, 65, 422, 15902, 6877, 293, 273, 293, 63, 21, 26894, 3430, 273, 315, 9622, 6, 309, 293, 18, 4720, 2932, 8, 7923, 480, 300, 21, 30, 1842, 3374, 63, 77, 65, 273, 261, 84, 18, 4939, 2932, 8, 3113, 404, 25146, 20, 6487, 293, 18, 4939, 2932, 8, 3113, 404, 25146, 21, 6487, 3430, 16, 13, 469, 30, 1842, 3374, 63, 77, 65, 273, 261, 84, 16, 599, 16, 3430, 16, 13, 225, 563, 273, 1053, 563, 5830, 273, 1408, 364, 1842, 316, 1842, 3374, 30, 31424, 273, 766, 18, 3576, 18, 75, 546, 684, 414, 12, 3813, 63, 20, 5717, 309, 261, 16587, 87, 353, 599, 578, 261, 1897, 12, 16587, 87, 13, 422, 374, 3719, 30, 309, 1842, 63, 22, 65, 480, 315, 6102, 6877, 563, 273, 1083, 309, 562, 12, 2088, 5830, 4672, 563, 5830, 1011, 1548, 82, 6, 563, 5830, 1011, 315, 3639, 10230, 2306, 4304, 30, 738, 87, 6, 738, 261, 3813, 63, 20, 6487, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 16, 3301, 16, 2003, 16, 766, 16, 1718, 892, 16, 833, 4672, 468, 36, 21106, 3092, 468, 5385, 1368, 1446, 19, 1132, 10384, 1842, 3374, 273, 833, 18, 588, 2932, 3374, 3113, 5378, 13, 10531, 65, 364, 277, 316, 1048, 12, 1897, 12, 3813, 3374, 3719, 30, 293, 273, 1842, 3374, 63, 77, 65, 3430, 273, 315, 7526, 6, 309, 293, 63, 20, 65, 422, 23717, 30, 293, 273, 293, 63, 21, 26894, 3430, 273, 315, 6102, 6, 309, 293, 63, 20, 65, 422, 15902, 6877, 293, 273, 293, 63, 21, 26894, 3430, 273, 315, 9622, 6, 309, 293, 18, 4720, 2932, 8, 7923, 480, 300, 21, 30, 1842, 3374, 63, 77, 65, 273, 261, 2 ]
self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)
self.assertRaises(WindowsError, os.chmod, test_support.TESTFN, 0)
def test_chmod(self): self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)
b8a32fa6decbcfe3f1dcd5aa5f44fc32cff28ddc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/b8a32fa6decbcfe3f1dcd5aa5f44fc32cff28ddc/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 343, 1711, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 10399, 668, 16, 1140, 18, 322, 494, 16, 1842, 67, 13261, 18, 16961, 19793, 16, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 343, 1711, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 10399, 668, 16, 1140, 18, 322, 494, 16, 1842, 67, 13261, 18, 16961, 19793, 16, 374, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.setup = gConfig.getValue('/DIRAC/Setup','') self.vo = gConfig.getValue('/DIRAC/VirtualOrganization','') self.pilotVersion = gConfig.getValue('/Operations/%s/%s/Versions/PilotVersion' % (self.vo,self.setup),'') def selectJob(self, resourceDescription):
self.setup = gConfig.getValue( '/DIRAC/Setup', '' ) self.vo = gConfig.getValue( '/DIRAC/VirtualOrganization', '' ) self.pilotVersion = gConfig.getValue( '/Operations/%s/%s/Versions/PilotVersion' % ( self.vo, self.setup ), '' ) def selectJob( self, resourceDescription ):
def initialize(self):
059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MJTableView.initView()
self.view.initView()
def showEvent(self, dummyEvent): """only now get the data set. Not doing this in__init__ would eventually make it easier to subclass from some generic TableEditor class""" self.setQuery() MJTableView.initView() self.selectionChanged()
cb1b3526ff6b31f4756e0b3a244d241811a73c26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/cb1b3526ff6b31f4756e0b3a244d241811a73c26/games.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1133, 12, 2890, 16, 9609, 1133, 4672, 3536, 3700, 2037, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1133, 12, 2890, 16, 9609, 1133, 4672, 3536, 3700, 2037, 336, 326, 501, 444, 18, 2288, 9957, 333, 316, 972, 2738, 972, 4102, 18011, 1221, 518, 15857, 358, 10177, 628, 2690, 5210, 3555, 6946, 667, 8395, 365, 18, 542, 1138, 1435, 365, 18, 1945, 18, 2738, 1767, 1435, 365, 18, 10705, 5033, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "rudbase before"
def __before__(self, **kwargs): print 'rudbase before super' if hasattr(super(RUDBase, self), '__before__'): super(RUDBase, self).__before__(**kwargs) print "rudbase before" if 'id' not in kwargs.keys(): raise RuntimeError, "id not in kwargs for %s" % (kwargs['action'],) use_oid = False # Determines if we look up on a key or the OID
b5b841a6275042be582c50889821f7601ef38c2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/b5b841a6275042be582c50889821f7601ef38c2c/crud.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5771, 972, 12, 2890, 16, 2826, 4333, 4672, 1172, 296, 86, 1100, 1969, 1865, 2240, 11, 309, 3859, 12, 9565, 12, 54, 12587, 2171, 16, 365, 3631, 4940, 5771, 7250, 4672, 2240, 12, 54, 12587, 2171, 16, 365, 2934, 972, 5771, 972, 12, 636, 4333, 13, 309, 296, 350, 11, 486, 316, 1205, 18, 2452, 13332, 1002, 7265, 16, 315, 350, 486, 316, 1205, 364, 738, 87, 6, 738, 261, 4333, 3292, 1128, 17337, 13, 225, 999, 67, 839, 273, 1083, 468, 30778, 309, 732, 2324, 731, 603, 279, 498, 578, 326, 18026, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5771, 972, 12, 2890, 16, 2826, 4333, 4672, 1172, 296, 86, 1100, 1969, 1865, 2240, 11, 309, 3859, 12, 9565, 12, 54, 12587, 2171, 16, 365, 3631, 4940, 5771, 7250, 4672, 2240, 12, 54, 12587, 2171, 16, 365, 2934, 972, 5771, 972, 12, 636, 4333, 13, 309, 296, 350, 11, 486, 316, 1205, 18, 2452, 13332, 1002, 7265, 16, 315, 350, 486, 316, 1205, 364, 738, 87, 6, 738, 261, 4333, 3292, 1128, 17337, 13, 225, 999, 67, 839, 273, 1083, 468, 30778, 309, 732, 2324, 731, 603, 279, 498, 578, 326, 18026, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert(self.debugPrint("deleteCollisions()"))
assert self.notify.debugStateCall(self)
def deleteCollisions(self): assert(self.debugPrint("deleteCollisions()")) del self.cTrav
abc151a082286523619150b15b5dc30864de5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/abc151a082286523619150b15b5dc30864de5bde/GravityWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 13535, 12682, 12, 2890, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 1464, 365, 18, 71, 1609, 90, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 13535, 12682, 12, 2890, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 1464, 365, 18, 71, 1609, 90, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DECOMPOSITION = [""]
def maketable(): unicode = UnicodeData(UNICODE_DATA) # extract unicode properties dummy = (0, 0, 0, 0, "NULL") table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) DECOMPOSITION = [""] for char in unicode.chars: record = unicode.table[char] if record: # extract database properties category = CATEGORY_NAMES.index(record[2]) combining = int(record[3]) bidirectional = BIDIRECTIONAL_NAMES.index(record[4]) mirrored = record[9] == "Y" if record[5]: decomposition = '"%s"' % record[5] else: decomposition = "NULL" item = ( category, combining, bidirectional, mirrored, decomposition ) # add entry to index and item tables i = cache.get(item) if i is None: cache[item] = i = len(table) table.append(item) index[char] = i # FIXME: we really should compress the decomposition stuff # (see the unidb utilities for one way to do this) FILE = "unicodedata_db.h" sys.stdout = open(FILE, "w") print "/* this file was generated by %s %s */" % (SCRIPT, VERSION) print print "/* a list of unique database records */" print "const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = {" for item in table: print " {%d, %d, %d, %d, %s}," % item print "};" print print "/* string literals */" print "const char *_PyUnicode_CategoryNames[] = {" for name in CATEGORY_NAMES: print " \"%s\"," % name print " NULL" print "};" print "const char *_PyUnicode_BidirectionalNames[] = {" for name in BIDIRECTIONAL_NAMES: print " \"%s\"," % name print " NULL" print "};" # split index table index1, index2, shift = splitbins(index) print "/* index tables used to find the right database record */" print "#define SHIFT", shift Array("index1", index1).dump(sys.stdout) Array("index2", index2).dump(sys.stdout) sys.stdout = sys.__stdout__
3b2819871af6994be5f5d3966414f615a8697edd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3b2819871af6994be5f5d3966414f615a8697edd/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 278, 429, 13332, 225, 5252, 273, 9633, 751, 12, 26642, 67, 4883, 13, 225, 468, 2608, 5252, 1790, 9609, 273, 261, 20, 16, 374, 16, 374, 16, 374, 16, 315, 8560, 7923, 1014, 273, 306, 21050, 65, 1247, 273, 288, 20, 30, 9609, 97, 770, 273, 306, 20, 65, 380, 562, 12, 9124, 18, 7549, 13, 282, 364, 1149, 316, 5252, 18, 7549, 30, 1409, 273, 5252, 18, 2121, 63, 3001, 65, 309, 1409, 30, 468, 2608, 2063, 1790, 3150, 273, 31524, 19281, 67, 16257, 18, 1615, 12, 3366, 63, 22, 5717, 29189, 273, 509, 12, 3366, 63, 23, 5717, 9949, 24699, 273, 605, 30218, 18934, 1013, 67, 16257, 18, 1615, 12, 3366, 63, 24, 5717, 312, 481, 23226, 273, 1409, 63, 29, 65, 422, 315, 61, 6, 309, 1409, 63, 25, 14542, 26288, 273, 22563, 87, 5187, 738, 1409, 63, 25, 65, 469, 30, 26288, 273, 315, 8560, 6, 761, 273, 261, 3150, 16, 29189, 16, 9949, 24699, 16, 312, 481, 23226, 16, 26288, 262, 468, 527, 1241, 358, 770, 471, 761, 4606, 277, 273, 1247, 18, 588, 12, 1726, 13, 309, 277, 353, 599, 30, 1247, 63, 1726, 65, 273, 277, 273, 562, 12, 2121, 13, 1014, 18, 6923, 12, 1726, 13, 770, 63, 3001, 65, 273, 277, 225, 468, 9852, 30, 732, 8654, 1410, 8099, 326, 26288, 10769, 468, 261, 5946, 326, 640, 350, 70, 22538, 364, 1245, 4031, 358, 741, 333, 13, 225, 7527, 273, 315, 9124, 892, 67, 1966, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 278, 429, 13332, 225, 5252, 273, 9633, 751, 12, 26642, 67, 4883, 13, 225, 468, 2608, 5252, 1790, 9609, 273, 261, 20, 16, 374, 16, 374, 16, 374, 16, 315, 8560, 7923, 1014, 273, 306, 21050, 65, 1247, 273, 288, 20, 30, 9609, 97, 770, 273, 306, 20, 65, 380, 562, 12, 9124, 18, 7549, 13, 282, 364, 1149, 316, 5252, 18, 7549, 30, 1409, 273, 5252, 18, 2121, 63, 3001, 65, 309, 1409, 30, 468, 2608, 2063, 1790, 3150, 273, 31524, 19281, 67, 16257, 18, 1615, 12, 3366, 63, 22, 5717, 29189, 273, 509, 12, 3366, 63, 23, 5717, 9949, 24699, 273, 605, 30218, 18934, 1013, 67, 16257, 18, 1615, 12, 3366, 63, 24, 5717, 312, 2 ]
if name in frozenset("dd", "dt", "li", "p", "td", "th", "tr") and name != exclude:
if name in frozenset(("dd", "dt", "li", "p", "td", "th", "tr")) and name != exclude:
def generateImpliedEndTags(self, exclude=None): while True: name = self.openElements[-1].name if name in frozenset("dd", "dt", "li", "p", "td", "th", "tr") and name != exclude: self.phase.processEndTag(name) else: break # XXX AT: # name = self.openElements[-1].name # while name in frozenset("dd", "dt", "li", "p", "td", "th", "tr") and \ # name != exclude: # self.phase.processEndTag(name) # name = self.openElements[-1].name
b1506b097484802495bf8cc4bd05649a3c331d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b1506b097484802495bf8cc4bd05649a3c331d23/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 2828, 2092, 1638, 3453, 12, 2890, 16, 4433, 33, 7036, 4672, 1323, 1053, 30, 508, 273, 365, 18, 3190, 3471, 18919, 21, 8009, 529, 309, 508, 316, 23462, 12, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 84, 3113, 315, 4465, 3113, 315, 451, 3113, 315, 313, 6, 3719, 471, 508, 480, 4433, 30, 365, 18, 13961, 18, 2567, 25633, 12, 529, 13, 469, 30, 898, 468, 11329, 14464, 30, 468, 508, 273, 365, 18, 3190, 3471, 18919, 21, 8009, 529, 468, 1323, 508, 316, 23462, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 84, 3113, 315, 4465, 3113, 315, 451, 3113, 315, 313, 7923, 471, 521, 468, 282, 508, 480, 4433, 30, 468, 377, 365, 18, 13961, 18, 2567, 25633, 12, 529, 13, 468, 377, 508, 273, 365, 18, 3190, 3471, 18919, 21, 8009, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4672, 1323, 1053, 30, 508, 273, 365, 18, 3190, 3471, 18919, 21, 8009, 529, 309, 508, 316, 23462, 12, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 84, 3113, 315, 4465, 3113, 315, 451, 3113, 315, 313, 6, 3719, 471, 508, 480, 4433, 30, 365, 18, 13961, 18, 2567, 25633, 12, 529, 13, 469, 30, 898, 468, 11329, 14464, 30, 468, 508, 273, 365, 18, 3190, 3471, 18919, 21, 8009, 529, 468, 1323, 508, 316, 23462, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 84, 3113, 315, 4465, 3113, 315, 451, 3113, 315, 313, 7923, 471, 521, 468, 282, 508, 480, 4433, 30, 2 ]
self.conn.send.add(item)
self.conn.do.add(item)
def stream_parse_and_add(self, item): # We need to do different things depending on if this is # a normal stream, pls, m3u, etc.. # Note that we will only download the first 2000 bytes f = None try: request = urllib2.Request(item) opener = urllib2.build_opener() f = opener.open(request).read(2000) except: try: request = urllib2.Request("http://" + item) opener = urllib2.build_opener() f = opener.open(request).read(2000) except: try: request = urllib2.Request("file://" + item) opener = urllib2.build_opener() f = opener.open(request).read(2000) except: pass if f: self.conn.send.command_list_begin() if is_binary(f): # Binary file, just add it: self.conn.send.add(item) else: if "[playlist]" in f: # pls: self.stream_parse_pls(f) elif "#EXTM3U" in f: # extended m3u: self.stream_parse_m3u(f) elif "http://" in f: # m3u or generic list: self.stream_parse_m3u(f) else: # Something else.. self.conn.send.add(item) self.conn.do.command_list_end() else: # Hopefully just a regular stream, try to add it: self.conn.do.add(item)
0da9815c248298a9268c10f25c59ea81e5bd319d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0da9815c248298a9268c10f25c59ea81e5bd319d/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1407, 67, 2670, 67, 464, 67, 1289, 12, 2890, 16, 761, 4672, 468, 1660, 1608, 358, 741, 3775, 9198, 8353, 603, 309, 333, 353, 468, 279, 2212, 1407, 16, 886, 87, 16, 312, 23, 89, 16, 5527, 838, 468, 3609, 716, 732, 903, 1338, 4224, 326, 1122, 16291, 1731, 284, 273, 599, 775, 30, 590, 273, 11527, 22, 18, 691, 12, 1726, 13, 20532, 273, 11527, 22, 18, 3510, 67, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2293, 2934, 896, 12, 17172, 13, 1335, 30, 775, 30, 590, 273, 11527, 22, 18, 691, 2932, 2505, 14334, 397, 761, 13, 20532, 273, 11527, 22, 18, 3510, 67, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2293, 2934, 896, 12, 17172, 13, 1335, 30, 775, 30, 590, 273, 11527, 22, 18, 691, 2932, 768, 14334, 397, 761, 13, 20532, 273, 11527, 22, 18, 3510, 67, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2293, 2934, 896, 12, 17172, 13, 1335, 30, 1342, 309, 284, 30, 365, 18, 4646, 18, 4661, 18, 3076, 67, 1098, 67, 10086, 1435, 309, 353, 67, 8578, 12, 74, 4672, 468, 7896, 585, 16, 2537, 527, 518, 30, 365, 18, 4646, 18, 2896, 18, 1289, 12, 1726, 13, 469, 30, 309, 5158, 1601, 1098, 4279, 316, 284, 30, 468, 886, 87, 30, 365, 18, 3256, 67, 2670, 67, 412, 87, 12, 74, 13, 1327, 6619, 4142, 49, 23, 57, 6, 316, 284, 30, 468, 7021, 312, 23, 89, 30, 365, 18, 3256, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1407, 67, 2670, 67, 464, 67, 1289, 12, 2890, 16, 761, 4672, 468, 1660, 1608, 358, 741, 3775, 9198, 8353, 603, 309, 333, 353, 468, 279, 2212, 1407, 16, 886, 87, 16, 312, 23, 89, 16, 5527, 838, 468, 3609, 716, 732, 903, 1338, 4224, 326, 1122, 16291, 1731, 284, 273, 599, 775, 30, 590, 273, 11527, 22, 18, 691, 12, 1726, 13, 20532, 273, 11527, 22, 18, 3510, 67, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2293, 2934, 896, 12, 17172, 13, 1335, 30, 775, 30, 590, 273, 11527, 22, 18, 691, 2932, 2505, 14334, 397, 761, 13, 20532, 273, 11527, 22, 18, 3510, 67, 25098, 1435, 284, 273, 20532, 18, 3190, 12, 2293, 2934, 896, 2 ]
Returns the clustering coefficient for each node in nbunch
Returns the clustering coefficient for each vertex in nbunch
def clustering_coeff(self, nbunch=None, with_labels=False, weights=False): r""" Returns the clustering coefficient for each node in nbunch as an ordered list.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 5253, 316, 4264, 4384, 487, 392, 5901, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 5253, 316, 4264, 4384, 487, 392, 5901, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\
editPrefsText = \ "<u><b>Preferences Dialog</b></u>"\ "<p>"\ "Allows you to edit various user preferences "\
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = \ "<u><b>Automatic Checkpointing</b></u>"\ "<p>"\ "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\ "the program maintains the Undo stack automatically. When disabled, "\ "the user is required to manually create Undo checkpoints using the "\ "<b>Make Checkpoint</b> button: "\ "</p>"\ "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. "\ "By disabling Automatic Checkpointing, the program will run faster. "\ "</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints "\ "manually when Automatic Checkpointing is disabled.</i></b>"\ "</p>" win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\ "When you create a new model, it appears in a "\ "default view orientation (FRONT view). When you "\ "open an existing model, it appears in the "\ "orientation it was last saved. You can change the "\ "default orientation by selecting <b>Set Home View "\ "to Current View</b> from the <b>View</b> menu."\ "</p>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts')
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 3536, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 4881, 19, 4905, 19, 812, 19, 3678, 18, 6446, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 5657, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 468, 6164, 1387, 225, 585, 5010, 1528, 273, 3532, 89, 4438, 70, 34, 5010, 1387, 1757, 70, 4695, 89, 4438, 2848, 2984, 64, 315, 14214, 279, 585, 434, 1281, 19028, 1706, 585, 740, 3260, 635, 1548, 3532, 70, 34, 3678, 70, 873, 1757, 70, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 2 ]
remote = _(" from %s") % remote
remote = _(" from %(remote)s")
def AddMember(self, name, password, digest=0, remote=None, lang=None):
d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 4419, 12, 2890, 16, 508, 16, 2201, 16, 5403, 33, 20, 16, 2632, 33, 7036, 16, 3303, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if typ!=typ2:
if typ2 is None: log.warn('source %r does not define swig target, assuming %s swig target' \ % (source, typ)) if is_cpp: target_ext = '.cpp' elif typ!=typ2:
def swig_sources(self, sources, extension): # Assuming SWIG 1.3.14 or later. See compatibility note in # http://www.swig.org/Doc1.3/Python.html#Python_nn6
a1b13e177d30d80c34897aa55352499785206e7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/a1b13e177d30d80c34897aa55352499785206e7d/build_src.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 12, 2890, 16, 5550, 16, 2710, 4672, 468, 4725, 21249, 16392, 3047, 404, 18, 23, 18, 3461, 578, 5137, 18, 2164, 8926, 4721, 316, 468, 282, 1062, 2207, 5591, 18, 5328, 360, 18, 3341, 19, 1759, 21, 18, 23, 19, 15774, 18, 2620, 7, 15774, 67, 9074, 26, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 12, 2890, 16, 5550, 16, 2710, 4672, 468, 4725, 21249, 16392, 3047, 404, 18, 23, 18, 3461, 578, 5137, 18, 2164, 8926, 4721, 316, 468, 282, 1062, 2207, 5591, 18, 5328, 360, 18, 3341, 19, 1759, 21, 18, 23, 19, 15774, 18, 2620, 7, 15774, 67, 9074, 26, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def atlas_version_c(extension, build_dir,macig=magic):
def atlas_version_c(extension, build_dir,magic=magic):
def atlas_version_c(extension, build_dir,macig=magic): source = os.path.join(build_dir,'atlas_version_%s.c' % (magic)) if os.path.isfile(source): from distutils.dep_util import newer if newer(source,__file__): return source f = open(source,'w') f.write(atlas_version_c_text) f.close() return source
8957ad32bf04dc802ae86caa8bcf11233679e976 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8957ad32bf04dc802ae86caa8bcf11233679e976/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22339, 67, 1589, 67, 71, 12, 6447, 16, 1361, 67, 1214, 16, 11179, 33, 11179, 4672, 1084, 273, 1140, 18, 803, 18, 5701, 12, 3510, 67, 1214, 11189, 270, 9521, 67, 1589, 10185, 87, 18, 71, 11, 738, 261, 11179, 3719, 309, 1140, 18, 803, 18, 291, 768, 12, 3168, 4672, 628, 2411, 5471, 18, 15037, 67, 1367, 1930, 16069, 309, 16069, 12, 3168, 16, 972, 768, 972, 4672, 327, 1084, 284, 273, 1696, 12, 3168, 11189, 91, 6134, 284, 18, 2626, 12, 270, 9521, 67, 1589, 67, 71, 67, 955, 13, 284, 18, 4412, 1435, 327, 1084, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 4672, 1084, 273, 1140, 18, 803, 18, 5701, 12, 3510, 67, 1214, 11189, 270, 9521, 67, 1589, 10185, 87, 18, 71, 11, 738, 261, 11179, 3719, 309, 1140, 18, 803, 18, 291, 768, 12, 3168, 4672, 628, 2411, 5471, 18, 15037, 67, 1367, 1930, 16069, 309, 16069, 12, 3168, 16, 972, 768, 972, 4672, 327, 1084, 284, 273, 1696, 12, 3168, 11189, 91, 6134, 284, 18, 2626, 12, 270, 9521, 67, 1589, 67, 71, 67, 955, 13, 284, 18, 4412, 1435, 327, 1084, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif isinstance(l,tuple):
elif isinstance(l, tuple):
def antiphi(self,l): r""" Inverse of self.phi.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 436, 8395, 657, 2476, 434, 365, 18, 9973, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 436, 8395, 657, 2476, 434, 365, 18, 9973, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (not total) or writeoff_acc_id:
if (not round(total,int(config['price_accuracy']))) or writeoff_acc_id:
def pay_and_reconcile(self, cr, uid, ids, pay_amount, pay_account_id, period_id, pay_journal_id, writeoff_acc_id, writeoff_period_id, writeoff_journal_id, context=None, name=''): if context is None: context = {} #TODO check if we can use different period for payment and the writeoff line assert len(ids)==1, "Can only pay one invoice at a time" invoice = self.browse(cr, uid, ids[0]) src_account_id = invoice.account_id.id # Take the seq as name for move types = {'out_invoice': -1, 'in_invoice': 1, 'out_refund': 1, 'in_refund': -1} direction = types[invoice.type] #take the choosen date if 'date_p' in context and context['date_p']: date=context['date_p'] else: date=time.strftime('%Y-%m-%d') l1 = { 'debit': direction * pay_amount>0 and direction * pay_amount, 'credit': direction * pay_amount<0 and - direction * pay_amount, 'account_id': src_account_id, 'partner_id': invoice.partner_id.id, 'ref':invoice.number, 'date': date, } l2 = { 'debit': direction * pay_amount<0 and - direction * pay_amount, 'credit': direction * pay_amount>0 and direction * pay_amount, 'account_id': pay_account_id, 'partner_id': invoice.partner_id.id, 'ref':invoice.number, 'date': date, }
140aeda37334aef1e0c55448c3365d28b78eac67 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/140aeda37334aef1e0c55448c3365d28b78eac67/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8843, 67, 464, 67, 266, 11504, 398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 8843, 67, 8949, 16, 8843, 67, 4631, 67, 350, 16, 3879, 67, 350, 16, 8843, 67, 22644, 67, 350, 16, 1045, 3674, 67, 8981, 67, 350, 16, 1045, 3674, 67, 6908, 67, 350, 16, 1045, 3674, 67, 22644, 67, 350, 16, 819, 33, 7036, 16, 508, 2218, 11, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 468, 6241, 866, 309, 732, 848, 999, 3775, 3879, 364, 5184, 471, 326, 1045, 3674, 980, 1815, 562, 12, 2232, 13, 631, 21, 16, 315, 2568, 1338, 8843, 1245, 9179, 622, 279, 813, 6, 9179, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 63, 20, 5717, 1705, 67, 4631, 67, 350, 273, 9179, 18, 4631, 67, 350, 18, 350, 468, 17129, 326, 3833, 487, 508, 364, 3635, 1953, 273, 13666, 659, 67, 16119, 4278, 300, 21, 16, 296, 267, 67, 16119, 4278, 404, 16, 296, 659, 67, 1734, 1074, 4278, 404, 16, 296, 267, 67, 1734, 1074, 4278, 300, 21, 97, 4068, 273, 1953, 63, 16119, 18, 723, 65, 468, 22188, 326, 5011, 8918, 1509, 309, 296, 712, 67, 84, 11, 316, 819, 471, 819, 3292, 712, 67, 84, 3546, 30, 1509, 33, 2472, 3292, 712, 67, 84, 3546, 469, 30, 1509, 33, 957, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 6134, 328, 21, 273, 288, 296, 323, 3682, 4278, 4068, 380, 8843, 67, 8949, 34, 20, 471, 4068, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8843, 67, 464, 67, 266, 11504, 398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 8843, 67, 8949, 16, 8843, 67, 4631, 67, 350, 16, 3879, 67, 350, 16, 8843, 67, 22644, 67, 350, 16, 1045, 3674, 67, 8981, 67, 350, 16, 1045, 3674, 67, 6908, 67, 350, 16, 1045, 3674, 67, 22644, 67, 350, 16, 819, 33, 7036, 16, 508, 2218, 11, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 468, 6241, 866, 309, 732, 848, 999, 3775, 3879, 364, 5184, 471, 326, 1045, 3674, 980, 1815, 562, 12, 2232, 13, 631, 21, 16, 315, 2568, 1338, 8843, 1245, 9179, 622, 279, 813, 6, 9179, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 2 ]
filename = filename + extension src = os.path.join(dir, filename)
f = filename + extension src = os.path.join(dir, f)
def find_template(dir, name, view): ''' Find a template in the nominated dir ''' # find the source if view: filename = '%s.%s'%(name, view) else: filename = name # try old-style src = os.path.join(dir, filename) if os.path.exists(src): return (src, filename) # try with a .html or .xml extension (new-style) for extension in '.html', '.xml': filename = filename + extension src = os.path.join(dir, filename) if os.path.exists(src): return (src, filename) # no view == no generic template is possible if not view: raise NoTemplate, 'Template file "%s" doesn\'t exist'%name # try for a _generic template generic = '_generic.%s'%view src = os.path.join(dir, generic) if os.path.exists(src): return (src, generic) # finally, try _generic.html generic = generic + '.html' src = os.path.join(dir, generic) if os.path.exists(src): return (src, generic) raise NoTemplate, 'No template file exists for templating "%s" '\ 'with template "%s" (neither "%s" nor "%s")'%(name, view, filename, generic)
3fc755a4dd33f0ff10a42faae7d517c0c6ccdd2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3fc755a4dd33f0ff10a42faae7d517c0c6ccdd2b/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3202, 12, 1214, 16, 508, 16, 1476, 4672, 9163, 4163, 279, 1542, 316, 326, 12457, 7458, 1577, 9163, 468, 1104, 326, 1084, 309, 1476, 30, 1544, 273, 1995, 87, 7866, 87, 11, 17105, 529, 16, 1476, 13, 469, 30, 1544, 273, 508, 225, 468, 775, 1592, 17, 4060, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 1544, 13, 309, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 327, 261, 4816, 16, 1544, 13, 225, 468, 775, 598, 279, 263, 2620, 578, 263, 2902, 2710, 261, 2704, 17, 4060, 13, 364, 2710, 316, 2418, 2620, 2187, 2418, 2902, 4278, 284, 273, 1544, 397, 2710, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 284, 13, 309, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 327, 261, 4816, 16, 1544, 13, 225, 468, 1158, 1476, 422, 1158, 5210, 1542, 353, 3323, 309, 486, 1476, 30, 1002, 2631, 2283, 16, 296, 2283, 585, 2213, 87, 6, 3302, 3730, 88, 1005, 11, 9, 529, 225, 468, 775, 364, 279, 389, 13540, 1542, 5210, 273, 2070, 13540, 7866, 87, 11, 9, 1945, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 5210, 13, 309, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 327, 261, 4816, 16, 5210, 13, 225, 468, 3095, 16, 775, 389, 13540, 18, 2620, 5210, 273, 5210, 397, 2418, 2620, 11, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 5210, 13, 309, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3202, 12, 1214, 16, 508, 16, 1476, 4672, 9163, 4163, 279, 1542, 316, 326, 12457, 7458, 1577, 9163, 468, 1104, 326, 1084, 309, 1476, 30, 1544, 273, 1995, 87, 7866, 87, 11, 17105, 529, 16, 1476, 13, 469, 30, 1544, 273, 508, 225, 468, 775, 1592, 17, 4060, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 1544, 13, 309, 1140, 18, 803, 18, 1808, 12, 4816, 4672, 327, 261, 4816, 16, 1544, 13, 225, 468, 775, 598, 279, 263, 2620, 578, 263, 2902, 2710, 261, 2704, 17, 4060, 13, 364, 2710, 316, 2418, 2620, 2187, 2418, 2902, 4278, 284, 273, 1544, 397, 2710, 1705, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 284, 2 ]
if self.token == "IHEOL":
if self.token == "\n":
def next(self): # Get a token from the user self.real = 0.0 self.token = '' # Fill the token quue if nothing here while not self.inqueue: line = cgetline() if curwnd==prompt_window: clrscr() setwnd(message_window) clrscr() if line == '': return None if not line: continue else: self.inqueue = line.lstrip().split() + ["IHEOL"] # From here on in it's all looking at the queue self.token = self.inqueue.pop(0) if self.token == "IHEOL": self.type = "IHEOL" return "IHEOL" try: self.real = float(self.token) self.type = "IHREAL" return "IHREAL" except ValueError: pass # Treat as alpha self.token = self.token.lower() self.type = "IHALPHA" self.real = None return "IHALPHA"
d614502aff5603ee8807d706fbbc57b33468b698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/d614502aff5603ee8807d706fbbc57b33468b698/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 468, 968, 279, 1147, 628, 326, 729, 365, 18, 7688, 273, 374, 18, 20, 365, 18, 2316, 273, 875, 468, 14192, 326, 1147, 719, 344, 309, 5083, 2674, 1323, 486, 365, 18, 267, 4000, 30, 980, 273, 276, 588, 1369, 1435, 309, 662, 91, 4880, 631, 13325, 67, 5668, 30, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 927, 86, 24638, 1435, 309, 980, 422, 875, 30, 327, 599, 309, 486, 980, 30, 1324, 469, 30, 365, 18, 267, 4000, 273, 980, 18, 80, 6406, 7675, 4939, 1435, 397, 8247, 45, 3900, 1741, 11929, 468, 6338, 2674, 603, 316, 518, 1807, 777, 7849, 622, 326, 2389, 365, 18, 2316, 273, 365, 18, 267, 4000, 18, 5120, 12, 20, 13, 309, 365, 18, 2316, 422, 1548, 82, 6877, 365, 18, 723, 273, 315, 45, 3900, 1741, 6, 327, 315, 45, 3900, 1741, 6, 775, 30, 365, 18, 7688, 273, 1431, 12, 2890, 18, 2316, 13, 365, 18, 723, 273, 315, 45, 44, 31052, 6, 327, 315, 45, 44, 31052, 6, 1335, 2068, 30, 1342, 468, 26564, 487, 4190, 365, 18, 2316, 273, 365, 18, 2316, 18, 8167, 1435, 365, 18, 723, 273, 315, 45, 44, 26313, 6, 365, 18, 7688, 273, 599, 327, 315, 45, 44, 26313, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 468, 968, 279, 1147, 628, 326, 729, 365, 18, 7688, 273, 374, 18, 20, 365, 18, 2316, 273, 875, 468, 14192, 326, 1147, 719, 344, 309, 5083, 2674, 1323, 486, 365, 18, 267, 4000, 30, 980, 273, 276, 588, 1369, 1435, 309, 662, 91, 4880, 631, 13325, 67, 5668, 30, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 927, 86, 24638, 1435, 309, 980, 422, 875, 30, 327, 599, 309, 486, 980, 30, 1324, 469, 30, 365, 18, 267, 4000, 273, 980, 18, 80, 6406, 7675, 4939, 1435, 397, 8247, 45, 3900, 1741, 11929, 468, 6338, 2674, 603, 316, 518, 1807, 777, 7849, 622, 326, 2389, 365, 18, 2316, 273, 2 ]
tmp = point.df()
tmp = point.df().flatten()
def __solver__(self, p): h0 = self.h0
0034fc2438405fabb74c74b111b9b3cfa5ac8601 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/0034fc2438405fabb74c74b111b9b3cfa5ac8601/gsubg_oo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 27198, 972, 12, 2890, 16, 293, 4672, 225, 366, 20, 273, 365, 18, 76, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 27198, 972, 12, 2890, 16, 293, 4672, 225, 366, 20, 273, 365, 18, 76, 20, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
query = """INSERT INTO %(table)s (username, domain, doc_type, etag, doc, doc_uri) VALUES (%%(username)s, %%(domain)s, %%(doc_type)s, %%(etag)s, %%(document)s, %%(document_path)s)""" % {
query = """INSERT INTO %(table)s (username, domain, doc_type, etag, doc, doc_uri) VALUES (%%(username)s, %%(domain)s, %%(doc_type)s, %%(etag)s, %%(document)s, %%(document_path)s)""" % {
def _put_document(self, trans, uri, document, check_etag): username, domain = uri.user.username, uri.user.domain self._normalize_document_path(uri) doc_type = self.app_mapping[uri.application_id] document_path = uri.doc_selector.document_path query = """SELECT etag FROM %(table)s WHERE username = %%(username)s AND domain = %%(domain)s AND doc_type= %%(doc_type)s AND doc_uri=%%(document_path)s""" % { "table": Config.xcap_table} params = {"username": username, "domain" : domain, "doc_type": doc_type, "document_path": document_path} trans.execute(query, params) result = trans.fetchall() if not result: ## the document doesn't exist, create it etag = self.generate_etag(uri, document) query = """INSERT INTO %(table)s (username, domain, doc_type, etag, doc, doc_uri) VALUES (%%(username)s, %%(domain)s, %%(doc_type)s, %%(etag)s, %%(document)s, %%(document_path)s)""" % { "table": Config.xcap_table } params = {"username": username, "domain" : domain, "doc_type": doc_type, "etag": etag, "document": document, "document_path": document_path} trans.execute(query, params) return StatusResponse(201, etag) else: old_etag = result[0][0] ## first check the etag of the existing resource check_etag(old_etag) ## the document exists, replace it etag = self.generate_etag(uri, document) query = """UPDATE %(table)s SET doc = %%(document)s, etag = %%(etag)s WHERE username = %%(username)s AND domain = %%(domain)s AND doc_type = %%(doc_type)s AND etag = %%(old_etag)s AND doc_uri = %%(document_path)s""" % { "table": Config.xcap_table } params = {"document": document, "etag": etag, "username": username, "domain" : domain, "doc_type": doc_type, "old_etag": old_etag, "document_path": document_path} trans.execute(query, params) ## verifica daca update a modificat vreo coloana, daca nu arunca eroare return StatusResponse(200, etag, old_etag=old_etag)
6f4d9484230105ae72bda2a86a5bf85186fcc9ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/6f4d9484230105ae72bda2a86a5bf85186fcc9ac/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 67, 5457, 12, 2890, 16, 906, 16, 2003, 16, 1668, 16, 866, 67, 20788, 4672, 2718, 16, 2461, 273, 2003, 18, 1355, 18, 5053, 16, 2003, 18, 1355, 18, 4308, 365, 6315, 12237, 67, 5457, 67, 803, 12, 1650, 13, 997, 67, 723, 273, 365, 18, 2910, 67, 6770, 63, 1650, 18, 3685, 67, 350, 65, 1668, 67, 803, 273, 2003, 18, 2434, 67, 9663, 18, 5457, 67, 803, 843, 273, 3536, 4803, 13655, 4571, 8975, 2121, 13, 87, 4852, 2718, 273, 738, 17105, 5053, 13, 87, 4116, 2461, 273, 738, 17105, 4308, 13, 87, 4116, 997, 67, 723, 33, 738, 17105, 2434, 67, 723, 13, 87, 4116, 997, 67, 1650, 5095, 17105, 5457, 67, 803, 13, 87, 8395, 738, 288, 315, 2121, 6877, 565, 1903, 18, 92, 5909, 67, 2121, 97, 859, 273, 12528, 5053, 6877, 2718, 16, 315, 4308, 6, 225, 294, 2461, 16, 315, 2434, 67, 723, 6877, 997, 67, 723, 16, 315, 5457, 67, 803, 6877, 1668, 67, 803, 97, 906, 18, 8837, 12, 2271, 16, 859, 13, 563, 273, 906, 18, 5754, 454, 1435, 309, 486, 563, 30, 7541, 326, 1668, 3302, 1404, 1005, 16, 752, 518, 13655, 273, 365, 18, 7163, 67, 20788, 12, 1650, 16, 1668, 13, 843, 273, 3536, 11356, 12421, 8975, 2121, 13, 87, 261, 5053, 16, 2461, 16, 997, 67, 723, 16, 13655, 16, 997, 16, 997, 67, 1650, 13, 13477, 6142, 17105, 5053, 13, 87, 16, 738, 17105, 4308, 13, 87, 16, 738, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 67, 5457, 12, 2890, 16, 906, 16, 2003, 16, 1668, 16, 866, 67, 20788, 4672, 2718, 16, 2461, 273, 2003, 18, 1355, 18, 5053, 16, 2003, 18, 1355, 18, 4308, 365, 6315, 12237, 67, 5457, 67, 803, 12, 1650, 13, 997, 67, 723, 273, 365, 18, 2910, 67, 6770, 63, 1650, 18, 3685, 67, 350, 65, 1668, 67, 803, 273, 2003, 18, 2434, 67, 9663, 18, 5457, 67, 803, 843, 273, 3536, 4803, 13655, 4571, 8975, 2121, 13, 87, 4852, 2718, 273, 738, 17105, 5053, 13, 87, 4116, 2461, 273, 738, 17105, 4308, 13, 87, 4116, 997, 67, 723, 33, 738, 17105, 2434, 67, 723, 13, 87, 4116, 997, 67, 1650, 5095, 17105, 5457, 67, 803, 2 ]
return http.Response(stream = message("You are not authorized to move '%s'"%W.name()))
return HTMLResponse(stream = message("You are not authorized to move '%s'"%W.name()))
def render(self, ctx): X = notebook.user(self.username) if user_type(self.username) == 'guest': return http.Response(stream = message("You are not authorized to move '%s'"%W.name())) def send_worksheet_to_folder(filename): W = notebook.get_worksheet_with_filename(filename) self.action(W) if ctx.args.has_key('filename'): filenames = [ctx.args['filename'][0]] elif ctx.args.has_key('filenames'): sep = ctx.args['sep'][0] filenames = [x for x in ctx.args['filenames'][0].split(sep) if len(x.strip()) > 0] else: filenames = [] for F in filenames: send_worksheet_to_folder(F) return http.Response(stream = '')
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 1139, 273, 14718, 18, 1355, 12, 2890, 18, 5053, 13, 309, 729, 67, 723, 12, 2890, 18, 5053, 13, 422, 296, 18908, 4278, 327, 3982, 1064, 12, 3256, 273, 883, 2932, 6225, 854, 486, 10799, 358, 3635, 1995, 87, 4970, 9, 59, 18, 529, 1435, 3719, 225, 1652, 1366, 67, 1252, 8118, 67, 869, 67, 5609, 12, 3459, 4672, 678, 273, 14718, 18, 588, 67, 1252, 8118, 67, 1918, 67, 3459, 12, 3459, 13, 365, 18, 1128, 12, 59, 13, 225, 309, 1103, 18, 1968, 18, 5332, 67, 856, 2668, 3459, 11, 4672, 9066, 273, 306, 5900, 18, 1968, 3292, 3459, 3546, 63, 20, 13563, 1327, 1103, 18, 1968, 18, 5332, 67, 856, 2668, 19875, 11, 4672, 5478, 273, 1103, 18, 1968, 3292, 10814, 3546, 63, 20, 65, 9066, 273, 306, 92, 364, 619, 316,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 1139, 273, 14718, 18, 1355, 12, 2890, 18, 5053, 13, 309, 729, 67, 723, 12, 2890, 18, 5053, 13, 422, 296, 18908, 4278, 327, 3982, 1064, 12, 3256, 273, 883, 2932, 6225, 854, 486, 10799, 358, 3635, 1995, 87, 4970, 9, 59, 18, 529, 1435, 3719, 225, 1652, 1366, 67, 1252, 8118, 67, 869, 67, 5609, 12, 3459, 4672, 678, 273, 14718, 18, 588, 67, 1252, 8118, 67, 1918, 67, 3459, 12, 3459, 13, 365, 18, 1128, 12, 59, 13, 225, 309, 1103, 18, 1968, 18, 5332, 67, 856, 2668, 3459, 11, 4672, 9066, 273, 306, 5900, 18, 1968, 3292, 3459, 3546, 63, 20, 13563, 1327, 1103, 18, 1968, 18, 5332, 67, 2 ]
dataA = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\STEROLTALK\Sterolgene v.0 mouse\sterolgene v.0 mouse controlGeneRatios.tab') dataB = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\STEROLTALK\Sterolgene v.0 mouse\sterolgene v.0 mouse controlGeneRatios 2 ecoli.tab')
dataA = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\et1.tab') dataB = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\et2.tab')
def _sp(self, l, capitalize=True): """Input: list; returns tupple (str(len(l)), "s"/"") """ n = len(l) if n == 0: if capitalize: return "No", "s" else: return "no", "s" elif n == 1: return str(n), '' else: return str(n), 's'
7ecb6cd437f659f67df45c042913bf12d5cfb9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/7ecb6cd437f659f67df45c042913bf12d5cfb9fb/OWMergeData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1752, 12, 2890, 16, 328, 16, 17451, 33, 5510, 4672, 3536, 1210, 30, 666, 31, 1135, 15822, 1802, 261, 701, 12, 1897, 12, 80, 13, 3631, 315, 87, 6, 19, 3660, 13, 3536, 290, 273, 562, 12, 80, 13, 309, 290, 422, 374, 30, 309, 17451, 30, 327, 315, 2279, 3113, 315, 87, 6, 469, 30, 327, 315, 2135, 3113, 315, 87, 6, 1327, 290, 422, 404, 30, 327, 609, 12, 82, 3631, 875, 469, 30, 327, 609, 12, 82, 3631, 296, 87, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1752, 12, 2890, 16, 328, 16, 17451, 33, 5510, 4672, 3536, 1210, 30, 666, 31, 1135, 15822, 1802, 261, 701, 12, 1897, 12, 80, 13, 3631, 315, 87, 6, 19, 3660, 13, 3536, 290, 273, 562, 12, 80, 13, 309, 290, 422, 374, 30, 309, 17451, 30, 327, 315, 2279, 3113, 315, 87, 6, 469, 30, 327, 315, 2135, 3113, 315, 87, 6, 1327, 290, 422, 404, 30, 327, 609, 12, 82, 3631, 875, 469, 30, 327, 609, 12, 82, 3631, 296, 87, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def display(self, filename_stack, print_traceback=False):
def display(self, filename_stack, print_traceback=debug):
def display(self, filename_stack, print_traceback=False): # Output formatted to work under Emacs compile-mode. Optional # 'print_traceback' arg, if set to True, prints a Python stack # backtrace too (can be handy when trying to debug the parser # itself).
6ad5a29b18bb90d85aeae8fafd886e76bc78646a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7385/6ad5a29b18bb90d85aeae8fafd886e76bc78646a/isa_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 1544, 67, 3772, 16, 1172, 67, 21696, 33, 4148, 4672, 468, 3633, 4955, 358, 1440, 3613, 512, 5821, 87, 4074, 17, 3188, 18, 225, 4055, 468, 296, 1188, 67, 21696, 11, 1501, 16, 309, 444, 358, 1053, 16, 14971, 279, 6600, 2110, 468, 13902, 4885, 261, 4169, 506, 948, 93, 1347, 8374, 358, 1198, 326, 2082, 468, 6174, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 1544, 67, 3772, 16, 1172, 67, 21696, 33, 4148, 4672, 468, 3633, 4955, 358, 1440, 3613, 512, 5821, 87, 4074, 17, 3188, 18, 225, 4055, 468, 296, 1188, 67, 21696, 11, 1501, 16, 309, 444, 358, 1053, 16, 14971, 279, 6600, 2110, 468, 13902, 4885, 261, 4169, 506, 948, 93, 1347, 8374, 358, 1198, 326, 2082, 468, 6174, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
namespaces.append(arg[11:])
pass if not ns in namespaces: namespaces.append(ns)
def main(*args): # read command line parameters # what the bot should do (either resolve double redirs, or delete broken # redirs) action = None # where the bot should get his infos from (either None to load the # maintenance special page from the live wiki, or the filename of a # local XML dump file) xmlFilename = None # Which namespace should be processed when using a XML dump # default to -1 which means all namespaces will be processed namespaces = [] # at which redirect shall we start searching double redirects again # (only with dump); default to -1 which means all redirects are checked offset = -1 moved_pages = False always = False for arg in wikipedia.handleArgs(*args): if arg == 'double': action = 'double' elif arg == 'broken': action = 'broken' elif arg.startswith('-xml'): if len(arg) == 4: xmlFilename = wikipedia.input( u'Please enter the XML dump\'s filename: ') else: xmlFilename = arg[5:] elif arg.startswith('-moves'): moved_pages = True elif arg.startswith('-namespace:'): try: namespaces.append(int(arg[11:])) except ValueError: namespaces.append(arg[11:]) elif arg.startswith('-offset:'): offset = int(arg[8:]) elif arg == '-always': always = True else: wikipedia.output(u'Unknown argument: %s' % arg) if not action: wikipedia.showHelp('redirect') else: gen = RedirectGenerator(xmlFilename, namespaces, offset, moved_pages) bot = RedirectRobot(action, gen, always) bot.run()
f97bb8ea050b55944ad5a41bb800341f7674f0a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f97bb8ea050b55944ad5a41bb800341f7674f0a4/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 30857, 1968, 4672, 468, 855, 1296, 980, 1472, 468, 4121, 326, 2512, 1410, 741, 261, 73, 2927, 2245, 1645, 283, 8291, 16, 578, 1430, 12933, 468, 283, 8291, 13, 1301, 273, 599, 468, 1625, 326, 2512, 1410, 336, 18423, 10626, 628, 261, 73, 2927, 599, 358, 1262, 326, 468, 18388, 4582, 1363, 628, 326, 8429, 9050, 16, 578, 326, 1544, 434, 279, 468, 1191, 3167, 4657, 585, 13, 2025, 5359, 273, 599, 468, 21918, 1981, 1410, 506, 5204, 1347, 1450, 279, 3167, 4657, 468, 805, 358, 300, 21, 1492, 4696, 777, 7728, 903, 506, 5204, 7728, 273, 5378, 468, 622, 1492, 3136, 24315, 732, 787, 15300, 1645, 18064, 3382, 468, 261, 3700, 598, 4657, 1769, 805, 358, 300, 21, 1492, 4696, 777, 18064, 854, 5950, 1384, 273, 300, 21, 10456, 67, 7267, 273, 1083, 3712, 273, 1083, 364, 1501, 316, 21137, 18, 4110, 2615, 30857, 1968, 4672, 309, 1501, 422, 296, 9056, 4278, 1301, 273, 296, 9056, 11, 1327, 1501, 422, 296, 70, 19906, 4278, 1301, 273, 296, 70, 19906, 11, 1327, 1501, 18, 17514, 1918, 2668, 17, 2902, 11, 4672, 309, 562, 12, 3175, 13, 422, 1059, 30, 2025, 5359, 273, 21137, 18, 2630, 12, 582, 11, 8496, 6103, 326, 3167, 4657, 3730, 87, 1544, 30, 8624, 469, 30, 2025, 5359, 273, 1501, 63, 25, 26894, 1327, 1501, 18, 17514, 1918, 2668, 17, 81, 10829, 11, 4672, 10456, 67, 7267, 273, 1053, 1327, 1501, 18, 17514, 1918, 2668, 17, 4937, 2497, 4672, 775, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 30857, 1968, 4672, 468, 855, 1296, 980, 1472, 468, 4121, 326, 2512, 1410, 741, 261, 73, 2927, 2245, 1645, 283, 8291, 16, 578, 1430, 12933, 468, 283, 8291, 13, 1301, 273, 599, 468, 1625, 326, 2512, 1410, 336, 18423, 10626, 628, 261, 73, 2927, 599, 358, 1262, 326, 468, 18388, 4582, 1363, 628, 326, 8429, 9050, 16, 578, 326, 1544, 434, 279, 468, 1191, 3167, 4657, 585, 13, 2025, 5359, 273, 599, 468, 21918, 1981, 1410, 506, 5204, 1347, 1450, 279, 3167, 4657, 468, 805, 358, 300, 21, 1492, 4696, 777, 7728, 903, 506, 5204, 7728, 273, 5378, 468, 622, 1492, 3136, 24315, 732, 787, 15300, 1645, 18064, 3382, 468, 261, 3700, 598, 4657, 1769, 805, 358, 2 ]
self.command = command
self.command = command.lower() if self.command not in self.command_list: printError("Invalid command") sys.exit(1) if self.command == "upgrade" or self.command == "groupupgrade": self.always_install = [ ]
def setCommand(self, command): self.command = command
11e31557ed329a80c28dc4dd5f98950a5e67f5da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/11e31557ed329a80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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2189, 12, 2890, 16, 1296, 4672, 365, 18, 3076, 273, 1296, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self._room.readAudio(self)
ret = self._room.readAudio(self)
def read(self): try: return self._room.readAudio(self) except ConferenceClosedError: self.app._va_sourceDone(self)
de7ee8367ee00a3dd77564bf6503f2b800630d92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/de7ee8367ee00a3dd77564bf6503f2b800630d92/conferencing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 4672, 775, 30, 325, 273, 365, 6315, 13924, 18, 896, 12719, 12, 2890, 13, 1335, 735, 1134, 7395, 668, 30, 365, 18, 2910, 6315, 15304, 67, 3168, 7387, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 4672, 775, 30, 325, 273, 365, 6315, 13924, 18, 896, 12719, 12, 2890, 13, 1335, 735, 1134, 7395, 668, 30, 365, 18, 2910, 6315, 15304, 67, 3168, 7387, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/%(n)s)*)}' % {'n': NAME_RE})
_interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/[^}]*)*)}' % {'n': NAME_RE})
def __repr__(self): return '%s:%s' % (self._name, `self._s`)
530acf3e01bdc7c1247dcbf9a428d241b31dbf6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/530acf3e01bdc7c1247dcbf9a428d241b31dbf6c/Expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 5319, 87, 11, 738, 261, 2890, 6315, 529, 16, 1375, 2890, 6315, 87, 24065, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 5319, 87, 11, 738, 261, 2890, 6315, 529, 16, 1375, 2890, 6315, 87, 24065, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
makeProject(last,targets,{ last: projects[last]})
errcode = makeProject(last,targets,{ last: projects[last]}) if errcode > 0: errors += [ name ]
def make(names, targets, dbindex=None): '''invoke the make utility to build a set of projects.''' writetext('### make projects "' + ', '.join(names) \ + '" with targets "' + ', '.join(targets) + '"\n') distHost = context.value('distHost') if 'recurse' in targets: targets.remove('recurse') # Recurse through projects that need to be rebuilt first # If no targets have been specified, the default target is to build # projects. Each project in turn has thus to be installed in order # to build the next one in the topological chain. recursiveTargets = targets if len(recursiveTargets) == 0: recursiveTargets = [ 'install' ] names, projects = validateControls(names,dbindex) last = names.pop() for name in names: makeProject(name,recursiveTargets,{ name: projects[name]}) # Make current project if len(targets) > 0: makeProject(last,targets,{ last: projects[last]}) else: linkDependencies({ last: projects[last]}) else: for name in names: makeProject(name,targets)
3eb90d1f8ec09fc84ae921584bd73c951235b43d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/3eb90d1f8ec09fc84ae921584bd73c951235b43d/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 12, 1973, 16, 5774, 16, 1319, 1615, 33, 7036, 4672, 9163, 14407, 326, 1221, 12788, 358, 1361, 279, 444, 434, 10137, 1093, 6309, 2518, 27830, 2668, 13151, 1221, 10137, 2491, 397, 2265, 2418, 5701, 12, 1973, 13, 521, 397, 2119, 598, 5774, 2491, 397, 2265, 2418, 5701, 12, 11358, 13, 397, 2119, 64, 82, 6134, 2411, 2594, 273, 819, 18, 1132, 2668, 4413, 2594, 6134, 309, 296, 29362, 11, 316, 5774, 30, 5774, 18, 4479, 2668, 29362, 6134, 468, 868, 17682, 3059, 10137, 716, 1608, 358, 506, 283, 12406, 1122, 468, 971, 1158, 5774, 1240, 2118, 1269, 16, 326, 805, 1018, 353, 358, 1361, 468, 10137, 18, 8315, 1984, 316, 7005, 711, 12493, 358, 506, 5876, 316, 1353, 468, 358, 1361, 326, 1024, 1245, 316, 326, 1760, 18224, 2687, 18, 5904, 9432, 273, 5774, 309, 562, 12, 10543, 9432, 13, 422, 374, 30, 5904, 9432, 273, 306, 296, 5425, 11, 308, 1257, 16, 10137, 273, 1954, 16795, 12, 1973, 16, 1966, 1615, 13, 1142, 273, 1257, 18, 5120, 1435, 364, 508, 316, 1257, 30, 1221, 4109, 12, 529, 16, 10543, 9432, 16, 95, 508, 30, 10137, 63, 529, 65, 6792, 468, 4344, 783, 1984, 309, 562, 12, 11358, 13, 405, 374, 30, 393, 710, 273, 1221, 4109, 12, 2722, 16, 11358, 16, 95, 1142, 30, 10137, 63, 2722, 65, 6792, 309, 393, 710, 405, 374, 30, 1334, 1011, 306, 508, 308, 469, 30, 1692, 8053, 12590, 1142, 30, 10137, 63, 2722, 65, 6792, 469, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 12, 1973, 16, 5774, 16, 1319, 1615, 33, 7036, 4672, 9163, 14407, 326, 1221, 12788, 358, 1361, 279, 444, 434, 10137, 1093, 6309, 2518, 27830, 2668, 13151, 1221, 10137, 2491, 397, 2265, 2418, 5701, 12, 1973, 13, 521, 397, 2119, 598, 5774, 2491, 397, 2265, 2418, 5701, 12, 11358, 13, 397, 2119, 64, 82, 6134, 2411, 2594, 273, 819, 18, 1132, 2668, 4413, 2594, 6134, 309, 296, 29362, 11, 316, 5774, 30, 5774, 18, 4479, 2668, 29362, 6134, 468, 868, 17682, 3059, 10137, 716, 1608, 358, 506, 283, 12406, 1122, 468, 971, 1158, 5774, 1240, 2118, 1269, 16, 326, 805, 1018, 353, 358, 1361, 468, 10137, 18, 8315, 1984, 316, 7005, 711, 12493, 358, 506, 5876, 316, 2 ]
sys.path.pop()
sys.path = sav_path
def get_node_module(self): """ Return the python module object (if available) Raise an Import Error if no module is associated """
94bc567c0baed51a226c3bd8ed78c0016a9a01f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/94bc567c0baed51a226c3bd8ed78c0016a9a01f1/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2159, 67, 2978, 12, 2890, 4672, 3536, 2000, 326, 5790, 1605, 733, 261, 430, 2319, 13, 20539, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2159, 67, 2978, 12, 2890, 4672, 3536, 2000, 326, 5790, 1605, 733, 261, 430, 2319, 13, 20539, 392, 6164, 1068, 309, 1158, 1605, 353, 3627, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
res = rpc.getStorageSummary(dir,fileType,prodID,ses)
res = rpc.getStorageSummary( dir, fileType, prodID, ses )
def usage(): print 'Usage: %s [<options>] <Directory>' % (Script.scriptName) print ' Get a summary of the storage usage <for an optionally supplied directory>.' print ' The usage can be given in any of the following units: (MB,GB,TB,PB)' print ' The sites options should be a space or comma separated list e.g. --Sites="CNAF-RAW,GRIDKA-RAW" or --Sites="CNAF-RAW GRIDKA-RAW"' print ' Type "%s --help" for the available options and syntax' % Script.scriptName DIRAC.exit(2)
d2db378c63ced0c70abdfd0e1e47c60e42f24767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d2db378c63ced0c70abdfd0e1e47c60e42f24767/dirac-dms-storage-usage-summary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 306, 32, 2116, 34, 65, 411, 2853, 1870, 738, 261, 3651, 18, 4263, 461, 13, 1172, 296, 968, 279, 4916, 434, 326, 2502, 4084, 411, 1884, 392, 8771, 4580, 1867, 34, 1093, 1172, 296, 1021, 4084, 848, 506, 864, 316, 1281, 434, 326, 3751, 4971, 30, 261, 7969, 16, 5887, 16, 25730, 16, 20724, 2506, 1172, 296, 1021, 9180, 702, 1410, 506, 279, 3476, 578, 8716, 8936, 666, 425, 18, 75, 18, 1493, 17055, 1546, 12821, 6799, 17, 10821, 16, 6997, 734, 47, 37, 17, 10821, 6, 578, 1493, 17055, 1546, 12821, 6799, 17, 10821, 15228, 734, 47, 37, 17, 10821, 5187, 1172, 296, 1412, 2213, 87, 1493, 5201, 6, 364, 326, 2319, 702, 471, 6279, 11, 738, 7739, 18, 4263, 461, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 306, 32, 2116, 34, 65, 411, 2853, 1870, 738, 261, 3651, 18, 4263, 461, 13, 1172, 296, 968, 279, 4916, 434, 326, 2502, 4084, 411, 1884, 392, 8771, 4580, 1867, 34, 1093, 1172, 296, 1021, 4084, 848, 506, 864, 316, 1281, 434, 326, 3751, 4971, 30, 261, 7969, 16, 5887, 16, 25730, 16, 20724, 2506, 1172, 296, 1021, 9180, 702, 1410, 506, 279, 3476, 578, 8716, 8936, 666, 425, 18, 75, 18, 1493, 17055, 1546, 12821, 6799, 17, 10821, 16, 6997, 734, 47, 37, 17, 10821, 6, 578, 1493, 17055, 1546, 12821, 6799, 17, 10821, 15228, 734, 47, 37, 17, 10821, 5187, 1172, 296, 1412, 2213, 87, 1493, 5201, 6, 2 ]
'''
"""
def NStarGraph(self,n): r''' Returns the n-star graph. The vertices of the n-star graph are the set of permutations on n symbols. There is an edge between two vertices if their labels differ only in the first and one other position. INPUT:: - ``n`` EXAMPLES:: sage: g = graphs.NStarGraph(4) sage: g.plot() # long time REFERENCES: - S.B. Akers, D. Horel and B. Krishnamurthy, The star graph: An attractive alternative to the previous n-cube. In: Proc. Internat. Conf. on Parallel Processing (1987), pp. 393--400. AUTHORS: - Michael Yurko (2009-09-01)
e57a7b736852231f13d906c838b0d978d747387f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e57a7b736852231f13d906c838b0d978d747387f/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 18379, 4137, 12, 2890, 16, 82, 4672, 436, 26418, 2860, 326, 290, 17, 10983, 2667, 18, 225, 1021, 6928, 434, 326, 290, 17, 10983, 2667, 854, 326, 444, 434, 26468, 603, 290, 7963, 18, 6149, 353, 392, 3591, 3086, 2795, 6928, 309, 3675, 3249, 15221, 1338, 316, 326, 1122, 471, 1245, 1308, 1754, 18, 225, 12943, 2866, 225, 300, 225, 12176, 82, 10335, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 314, 273, 19422, 18, 50, 18379, 4137, 12, 24, 13, 272, 410, 30, 314, 18, 4032, 1435, 468, 1525, 813, 225, 22898, 55, 30, 225, 300, 348, 18, 38, 18, 432, 79, 414, 16, 463, 18, 670, 479, 80, 471, 605, 18, 1475, 86, 1468, 17808, 295, 451, 93, 16, 1021, 10443, 2667, 30, 1922, 622, 1575, 688, 10355,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 18379, 4137, 12, 2890, 16, 82, 4672, 436, 26418, 2860, 326, 290, 17, 10983, 2667, 18, 225, 1021, 6928, 434, 326, 290, 17, 10983, 2667, 854, 326, 444, 434, 26468, 603, 290, 7963, 18, 6149, 353, 392, 3591, 3086, 2795, 6928, 309, 3675, 3249, 15221, 1338, 316, 326, 1122, 471, 1245, 1308, 1754, 18, 225, 12943, 2866, 225, 300, 225, 12176, 82, 10335, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 314, 273, 19422, 18, 50, 18379, 4137, 12, 24, 13, 272, 410, 30, 314, 18, 4032, 1435, 468, 1525, 813, 225, 22898, 55, 30, 225, 300, 348, 18, 38, 18, 432, 79, 414, 16, 463, 18, 670, 479, 80, 471, 605, 18, 1475, 86, 1468, 2 ]
"BoostStorage", path)
"BoostStorage", path, {"skyTileId": dataId['skyTile']})
def map_invalidSource(self, dataId): dataId = self._transformId(dataId) path = os.path.join(self.root, self.invalidSourceHistTemplate % dataId) return ButlerLocation( "lsst.afw.detection.PersistableSourceVector", "PersistableSourceVector", "BoostStorage", path)
008430bfea98ae553c958389dc752857d4d3fa84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6517/008430bfea98ae553c958389dc752857d4d3fa84/lsstSimMapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 5387, 1830, 12, 2890, 16, 501, 548, 4672, 501, 548, 273, 365, 6315, 6547, 548, 12, 892, 548, 13, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3085, 16, 365, 18, 5387, 1830, 8648, 2283, 738, 501, 548, 13, 327, 12484, 749, 2735, 12, 315, 3251, 334, 18, 1727, 91, 18, 27515, 18, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 5387, 1830, 12, 2890, 16, 501, 548, 4672, 501, 548, 273, 365, 6315, 6547, 548, 12, 892, 548, 13, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3085, 16, 365, 18, 5387, 1830, 8648, 2283, 738, 501, 548, 13, 327, 12484, 749, 2735, 12, 315, 3251, 334, 18, 1727, 91, 18, 27515, 18, 12771, 429, 1830, 5018, 3113, 315, 12771, 429, 1830, 5018, 3113, 315, 26653, 3245, 3113, 589, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ignore_modules.append(val)
for mod in val.split(","): ignore_modules.append(mod.strip())
def main(argv=None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:lT", ["help", "version", "trace", "count", "report", "no-report", "summary", "file=", "missing", "ignore-module=", "ignore-dir=", "coverdir=", "listfuncs", "trackcalls"]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.argv[0], msg)) sys.stderr.write("Try `%s --help' for more information\n" % sys.argv[0]) sys.exit(1) trace = 0 count = 0 report = 0 no_report = 0 counts_file = None missing = 0 ignore_modules = [] ignore_dirs = [] coverdir = None summary = 0 listfuncs = False countcallers = False for opt, val in opts: if opt == "--help": usage(sys.stdout) sys.exit(0) if opt == "--version": sys.stdout.write("trace 2.0\n") sys.exit(0) if opt == "-T" or opt == "--trackcalls": countcallers = True continue if opt == "-l" or opt == "--listfuncs": listfuncs = True continue if opt == "-t" or opt == "--trace": trace = 1 continue if opt == "-c" or opt == "--count": count = 1 continue if opt == "-r" or opt == "--report": report = 1 continue if opt == "-R" or opt == "--no-report": no_report = 1 continue if opt == "-f" or opt == "--file": counts_file = val continue if opt == "-m" or opt == "--missing": missing = 1 continue if opt == "-C" or opt == "--coverdir": coverdir = val continue if opt == "-s" or opt == "--summary": summary = 1 continue if opt == "--ignore-module": ignore_modules.append(val) continue if opt == "--ignore-dir": for s in val.split(os.pathsep): s = os.path.expandvars(s) # should I also call expanduser? (after all, could use $HOME) s = s.replace("$prefix", os.path.join(sys.prefix, "lib", "python" + sys.version[:3])) s = s.replace("$exec_prefix", os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3])) s = os.path.normpath(s) ignore_dirs.append(s) continue assert 0, "Should never get here" if listfuncs and (count or trace): _err_exit("cannot specify both --listfuncs and (--trace or --count)") if not (count or trace or report or listfuncs or countcallers): _err_exit("must specify one of --trace, --count, --report, " "--listfuncs, or --trackcalls") if report and no_report: _err_exit("cannot specify both --report and --no-report") if report and not counts_file: _err_exit("--report requires a --file") if no_report and len(prog_argv) == 0: _err_exit("missing name of file to run") # everything is ready if report: results = CoverageResults(infile=counts_file, outfile=counts_file) results.write_results(missing, summary=summary, coverdir=coverdir) else: sys.argv = prog_argv progname = prog_argv[0] sys.path[0] = os.path.split(progname)[0] t = Trace(count, trace, countfuncs=listfuncs, countcallers=countcallers, ignoremods=ignore_modules, ignoredirs=ignore_dirs, infile=counts_file, outfile=counts_file) try: t.run('execfile(%r)' % (progname,)) except IOError, err: _err_exit("Cannot run file %r because: %s" % (sys.argv[0], err)) except SystemExit: pass results = t.results() if not no_report: results.write_results(missing, summary=summary, coverdir=coverdir)
11566982ac3f36b47ea645c252efcb0f7cdac76c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/11566982ac3f36b47ea645c252efcb0f7cdac76c/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315, 88, 3353, 54, 74, 30, 72, 30, 959, 39, 30, 80, 56, 3113, 8247, 5201, 3113, 315, 1589, 3113, 315, 5129, 3113, 315, 1883, 3113, 315, 6006, 3113, 315, 2135, 17, 6006, 3113, 315, 7687, 3113, 315, 768, 1546, 16, 315, 7337, 3113, 315, 6185, 17, 2978, 1546, 16, 315, 6185, 17, 1214, 1546, 16, 315, 3165, 1214, 1546, 16, 315, 1098, 17728, 3113, 315, 4101, 12550, 6, 5717, 225, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 2589, 18, 11241, 18, 2626, 27188, 87, 30, 738, 87, 64, 82, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 1234, 3719, 2589, 18, 11241, 18, 2626, 2932, 7833, 12430, 87, 1493, 5201, 11, 364, 1898, 1779, 64, 82, 6, 738, 2589, 18, 19485, 63, 20, 5717, 2589, 18, 8593, 12, 21, 13, 225, 2606, 273, 374, 1056, 273, 374, 2605, 273, 374, 1158, 67, 6006, 273, 374, 6880, 67, 768, 273, 599, 3315, 273, 374, 2305, 67, 6400, 273, 5378, 2305, 67, 8291, 273, 5378, 5590, 1214, 273, 599, 4916, 273, 374, 666, 17728, 273, 1083, 1056, 1991, 414, 273, 1083, 225, 364, 2153, 16, 1244, 316, 1500, 30, 309, 2153, 422, 5238, 5201, 6877, 4084, 12, 9499, 18, 10283, 13, 2589, 18, 8593, 12, 20, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315, 88, 3353, 54, 74, 30, 72, 30, 959, 39, 30, 80, 56, 3113, 8247, 5201, 3113, 315, 1589, 3113, 315, 5129, 3113, 315, 1883, 3113, 315, 6006, 3113, 315, 2135, 17, 6006, 3113, 315, 7687, 3113, 315, 768, 1546, 16, 315, 7337, 3113, 315, 6185, 17, 2978, 1546, 16, 315, 6185, 17, 1214, 1546, 16, 315, 3165, 1214, 1546, 16, 315, 1098, 17728, 3113, 315, 4101, 12550, 6, 5717, 225, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 2 ]
def __init__(self,cp,ifo):
def __init__(self,cp,ifo,timeref):
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
8e536e7414dc65d55709c494beca16e846a79e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/8e536e7414dc65d55709c494beca16e846a79e32/wscan_background.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4057, 16, 20299, 16, 8584, 822, 74, 4672, 5993, 45, 617, 22129, 809, 273, 21479, 6797, 1425, 11, 365, 18, 15037, 45, 617, 1621, 273, 21479, 6797, 67, 85, 1017, 634, 67, 1425, 11, 5993, 53, 9871, 682, 273, 10228, 12370, 17, 86, 2377, 17, 85, 9871, 2187, 296, 12370, 17, 307, 6228, 335, 17, 85, 9871, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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890, 16, 4057, 16, 20299, 16, 8584, 822, 74, 4672, 5993, 45, 617, 22129, 809, 273, 21479, 6797, 1425, 11, 365, 18, 15037, 45, 617, 1621, 273, 21479, 6797, 67, 85, 1017, 634, 67, 1425, 11, 5993, 53, 9871, 682, 273, 10228, 12370, 17, 86, 2377, 17, 85, 9871, 2187, 296, 12370, 17, 307, 6228, 335, 17, 85, 9871, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except: print
except OSError, err:
def run(self, run_dir=None, rsave=None, verbose=True): "Control the runing of the xds process and parse the output." self.__cancelled = 0 self.running = 1 self.step = 0 self.step_name = "" self.outp = [] self.init_dir = os.getcwd() if run_dir: self.run_dir = run_dir if not self.run_dir: self.run_dir = "."# result = 0 # if self.run_dir: if not os.path.exists(self.run_dir): try: os.mkdir(self.run_dir) except: print raise XIO.XIOError, \ "STOP! Can't creat xds working directory:",self.run_dir # if os.path.isdir(self.run_dir): os.chdir(self.run_dir) if self.link_to_images: if not os.path.exists(self.link_name_to_image): os.system("ln -sf %s %s" % (self.collect_dir, \ self.link_name_to_image)) #os.system("ln -sf .. %s" % (self.link_name_to_image)) #else: # raise XIO.XIOError, \ # "STOP! Can't creat link %s in working directory: %s" \ # % (self.link_name_to_image, self.run_dir) # # opWriteCl("XDS.INP", "%s" % self.inpParam) # xdsProcess = self._creat_process(self.__execfile) _init_parse = True overloaded_spots = 0 while self.running: self.status = xdsProcess.poll() if self.status != self.wait_value: self.running = 0 break if self.__cancelled: os.kill(xdsProcess.pid, 9) break if self.wait_value == -1: lines = xdsProcess.fromchild.readline() else: lines = xdsProcess.stdout.readline() #lines = xdsProcess.communicate() # ilines parsing of stdout if self.step_name == "INTEGRATE": if _init_parse: print " Processing Mean #Strong ", print "Estimated Overloaded" print " Image Range refl./image ", print "Mosaicity reflections\n" table_int = [] _init_parse = False if INTEGRATE_STEP_RE.search(lines): print lines[44:50]+" - "+lines[56:-1], nimages = int(lines[56:-1]) - int(lines[44:50]) + 1 elif INTEGRATE_STRONG_RE.search(lines): print "%11.0f" % (float(lines.split()[0])/nimages), elif INTEGRATE_MOSAICITY_RE.search(lines): print " %11.3f" % float(lines.split()[3]), print " %11d" % overloaded_spots overloaded_spots = 0 hit = SCALE_RE.search(lines) if hit: table_int = hit.groups() overloaded_spots += int(hit.groups()[3]) sm = STEPMARK.match(lines) if sm: self.step += 1 self.step_name = sm.group(2) #if VERBOSE: if verbose: print "\n ---> Running job: %20s\n" % self.step_name if lines: self.outp.append(lines) self.step += 1 self.step_name = "FINISHED" if self.__cancelled: result = -1 if rsave: saveLastVersion(LP_names) #if VERBOSE: # print "End of XDS run" os.chdir(self.init_dir) return 1
982e3cdcf693d4d291ff282a248fd53576bba027 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4374/982e3cdcf693d4d291ff282a248fd53576bba027/XDS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1086, 67, 1214, 33, 7036, 16, 3597, 836, 33, 7036, 16, 3988, 33, 5510, 4672, 315, 3367, 326, 1086, 310, 434, 326, 619, 2377, 1207, 471, 1109, 326, 876, 1199, 365, 16186, 10996, 1259, 273, 374, 365, 18, 8704, 273, 404, 365, 18, 4119, 273, 374, 365, 18, 4119, 67, 529, 273, 1408, 365, 18, 659, 84, 273, 5378, 365, 18, 2738, 67, 1214, 273, 1140, 18, 588, 11089, 1435, 309, 1086, 67, 1214, 30, 365, 18, 2681, 67, 1214, 273, 1086, 67, 1214, 309, 486, 365, 18, 2681, 67, 1214, 30, 365, 18, 2681, 67, 1214, 273, 4585, 7, 563, 273, 374, 468, 309, 365, 18, 2681, 67, 1214, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 2681, 67, 1214, 4672, 775, 30, 1140, 18, 26686, 12, 2890, 18, 2681, 67, 1214, 13, 1335, 10002, 16, 393, 30, 1002, 1139, 4294, 18, 60, 4294, 668, 16, 521, 315, 17513, 5, 4480, 1404, 1519, 270, 619, 2377, 5960, 1867, 2773, 16, 2890, 18, 2681, 67, 1214, 468, 309, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 2681, 67, 1214, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 2681, 67, 1214, 13, 309, 365, 18, 1232, 67, 869, 67, 7369, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 1232, 67, 529, 67, 869, 67, 2730, 4672, 1140, 18, 4299, 2932, 2370, 300, 21668, 738, 87, 738, 87, 6, 738, 261, 2890, 18, 14676, 67, 1214, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1086, 67, 1214, 33, 7036, 16, 3597, 836, 33, 7036, 16, 3988, 33, 5510, 4672, 315, 3367, 326, 1086, 310, 434, 326, 619, 2377, 1207, 471, 1109, 326, 876, 1199, 365, 16186, 10996, 1259, 273, 374, 365, 18, 8704, 273, 404, 365, 18, 4119, 273, 374, 365, 18, 4119, 67, 529, 273, 1408, 365, 18, 659, 84, 273, 5378, 365, 18, 2738, 67, 1214, 273, 1140, 18, 588, 11089, 1435, 309, 1086, 67, 1214, 30, 365, 18, 2681, 67, 1214, 273, 1086, 67, 1214, 309, 486, 365, 18, 2681, 67, 1214, 30, 365, 18, 2681, 67, 1214, 273, 4585, 7, 563, 273, 374, 468, 309, 365, 18, 2681, 67, 1214, 30, 309, 486, 1140, 2 ]
if core_state["history_position"] < 0: return if 0 > core_state["history"][core_state["history_position"]]["cx"]: core_state["history"][core_state["history_position"]]["cx"] = 0 elif core_state["history"][core_state["history_position"]]["cx"] > core_state["mx"] - 1: core_state["history"][core_state["history_position"]]["cx"] = core_state["mx"] - 1 if 0 > core_state["history"][core_state["history_position"]]["cy"]: core_state["history"][core_state["history_position"]]["cy"] = 0 elif core_state["history"][core_state["history_position"]]["cy"] > core_state["my"] - 1: core_state["history"][core_state["history_position"]]["cy"] = core_state["my"] - 1
if core_state["history_position"] >= 0: curr_location = core_state["history"][core_state["history_position"]] if 0 > curr_location["cx"]: curr_location["cx"] = 0 elif curr_location["cx"] > core_state["mx"] - 1: curr_location["cx"] = core_state["mx"] - 1 if 0 > curr_location["cy"]: curr_location["cy"] = 0 elif curr_location["cy"] > core_state["my"] - 1: curr_location["cy"] = core_state["my"] - 1
def fixCursorCoords (core_state): """Various functions may put the screen cursor out of the possible range. Instead of duplicating the errorchecking everywhere, a single fixCursorCoords before an attempted screen display can fix them up. """ if core_state["history_position"] < 0: return if 0 > core_state["history"][core_state["history_position"]]["cx"]: core_state["history"][core_state["history_position"]]["cx"] = 0 elif core_state["history"][core_state["history_position"]]["cx"] > core_state["mx"] - 1: core_state["history"][core_state["history_position"]]["cx"] = core_state["mx"] - 1 if 0 > core_state["history"][core_state["history_position"]]["cy"]: core_state["history"][core_state["history_position"]]["cy"] = 0 elif core_state["history"][core_state["history_position"]]["cy"] > core_state["my"] - 1: core_state["history"][core_state["history_position"]]["cy"] = core_state["my"] - 1
cc8d13a824e40b9a940fd836dc827cd36307e513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/cc8d13a824e40b9a940fd836dc827cd36307e513/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 6688, 13089, 261, 3644, 67, 2019, 4672, 3536, 4205, 1481, 4186, 2026, 1378, 326, 5518, 3347, 596, 434, 326, 3323, 1048, 18, 225, 17561, 434, 4977, 1776, 326, 555, 24609, 3614, 6051, 16, 279, 2202, 2917, 6688, 13089, 1865, 392, 18121, 5518, 2562, 848, 2917, 2182, 731, 18, 3536, 225, 309, 2922, 67, 2019, 9614, 8189, 67, 3276, 11929, 1545, 374, 30, 4306, 67, 3562, 273, 2922, 67, 2019, 9614, 8189, 6, 6362, 3644, 67, 2019, 9614, 8189, 67, 3276, 11929, 65, 309, 374, 405, 4306, 67, 3562, 9614, 71, 92, 11929, 30, 4306, 67, 3562, 9614, 71, 92, 11929, 273, 374, 1327, 4306, 67, 3562, 9614, 71, 92, 11929, 405, 2922, 67, 2019, 9614, 11023, 11929, 300, 404, 30, 4306, 67, 3562, 9614, 71, 92, 11929, 273, 2922, 67, 2019, 9614, 11023, 11929, 300, 404, 309, 374, 405, 4306, 67, 3562, 9614, 2431, 11929, 30, 4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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 6688, 13089, 261, 3644, 67, 2019, 4672, 3536, 4205, 1481, 4186, 2026, 1378, 326, 5518, 3347, 596, 434, 326, 3323, 1048, 18, 225, 17561, 434, 4977, 1776, 326, 555, 24609, 3614, 6051, 16, 279, 2202, 2917, 6688, 13089, 1865, 392, 18121, 5518, 2562, 848, 2917, 2182, 731, 18, 3536, 225, 309, 2922, 67, 2019, 9614, 8189, 67, 3276, 11929, 1545, 374, 30, 4306, 67, 3562, 273, 2922, 67, 2019, 9614, 8189, 6, 6362, 3644, 67, 2019, 9614, 8189, 67, 3276, 11929, 65, 309, 374, 405, 4306, 67, 3562, 9614, 71, 92, 11929, 30, 4306, 67, 3562, 9614, 71, 92, 11929, 273, 374, 1327, 4306, 67, 3562, 9614, 71, 92, 11929, 405, 2922, 67, 2019, 9614, 11023, 11929, 2 ]
if connection_db_type(self.connection) == "mysql" and "rowid" not in map(str.lower, self.dbcolumnnames): statement += ", ROWID INTEGER UNIQUE AUTO_INCREMENT"
def _end_of_columns(self): table.Table._end_of_columns(self) # dbcolumnnames and types have the "not loaded" columns # removed if self.loadcolumns is not None: self.dbcolumnnames = [name for name in self.columnnames if name in self.loadcolumns] self.dbcolumntypes = [name for i, name in enumerate(self.columntypes) if self.columnnames[i] in self.loadcolumns] else: self.dbcolumnnames = self.columnnames self.dbcolumntypes = self.columntypes
72416e2542452aaa56c87e26168d61d6f473ffe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/72416e2542452aaa56c87e26168d61d6f473ffe3/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 792, 67, 5112, 12, 2890, 4672, 1014, 18, 1388, 6315, 409, 67, 792, 67, 5112, 12, 2890, 13, 468, 1319, 2827, 1973, 471, 1953, 1240, 326, 315, 902, 4203, 6, 2168, 468, 3723, 309, 365, 18, 945, 5112, 353, 486, 599, 30, 365, 18, 1966, 2827, 1973, 273, 306, 529, 364, 508, 316, 365, 18, 2827, 1973, 309, 508, 316, 365, 18, 945, 5112, 65, 365, 18, 1966, 1293, 379, 496, 989, 273, 306, 529, 364, 277, 16, 508, 316, 4241, 12, 2890, 18, 1293, 379, 496, 989, 13, 309, 365, 18, 2827, 1973, 63, 77, 65, 316, 365, 18, 945, 5112, 65, 469, 30, 365, 18, 1966, 2827, 1973, 273, 365, 18, 2827, 1973, 365, 18, 1966, 1293, 379, 496, 989, 273, 365, 18, 1293, 379, 496, 989, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 792, 67, 5112, 12, 2890, 4672, 1014, 18, 1388, 6315, 409, 67, 792, 67, 5112, 12, 2890, 13, 468, 1319, 2827, 1973, 471, 1953, 1240, 326, 315, 902, 4203, 6, 2168, 468, 3723, 309, 365, 18, 945, 5112, 353, 486, 599, 30, 365, 18, 1966, 2827, 1973, 273, 306, 529, 364, 508, 316, 365, 18, 2827, 1973, 309, 508, 316, 365, 18, 945, 5112, 65, 365, 18, 1966, 1293, 379, 496, 989, 273, 306, 529, 364, 277, 16, 508, 316, 4241, 12, 2890, 18, 1293, 379, 496, 989, 13, 309, 365, 18, 2827, 1973, 63, 77, 65, 316, 365, 18, 945, 5112, 65, 469, 30, 365, 18, 1966, 2827, 1973, 273, 365, 18, 2827, 1973, 2 ]
return (joins, and_(*queries))
if queries: return (joins, and_(*queries)) else: return ([],None)
def filter(self): queries = [] joins = [] for child in self: if callable(getattr(child, 'filter', None)): (join, query) = child.filter() queries.append(query) joins.extend(join) return (joins, and_(*queries))
f9433ac45240043f401b594f8cce9247fed2c608 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/f9433ac45240043f401b594f8cce9247fed2c608/needpropertyxml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 2890, 4672, 6218, 273, 5378, 13471, 273, 5378, 364, 1151, 316, 365, 30, 309, 4140, 12, 588, 1747, 12, 3624, 16, 296, 2188, 2187, 599, 3719, 30, 261, 5701, 16, 843, 13, 273, 1151, 18, 2188, 1435, 6218, 18, 6923, 12, 2271, 13, 13471, 18, 14313, 12, 5701, 13, 327, 261, 30624, 16, 471, 67, 30857, 13748, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 2890, 4672, 6218, 273, 5378, 13471, 273, 5378, 364, 1151, 316, 365, 30, 309, 4140, 12, 588, 1747, 12, 3624, 16, 296, 2188, 2187, 599, 3719, 30, 261, 5701, 16, 843, 13, 273, 1151, 18, 2188, 1435, 6218, 18, 6923, 12, 2271, 13, 13471, 18, 14313, 12, 5701, 13, 327, 261, 30624, 16, 471, 67, 30857, 13748, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
chunk_x = -13 chunk_y = 44
def base36encode(number): sign = '' if not isinstance(number, (int, long)): raise TypeError('number must be an integer') if number < 0: #raise ValueError('number must be positive') sign = '-' number = number * -1
c1e4e7fe8e36b1779bf2033fa548348666cc2322 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13883/c1e4e7fe8e36b1779bf2033fa548348666cc2322/read_chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1026, 5718, 3015, 12, 2696, 4672, 1573, 273, 875, 309, 486, 1549, 12, 2696, 16, 261, 474, 16, 1525, 3719, 30, 1002, 3580, 2668, 2696, 1297, 506, 392, 3571, 6134, 309, 1300, 411, 374, 30, 468, 11628, 2068, 2668, 2696, 1297, 506, 6895, 6134, 1573, 273, 4014, 1300, 273, 1300, 380, 300, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1026, 5718, 3015, 12, 2696, 4672, 1573, 273, 875, 309, 486, 1549, 12, 2696, 16, 261, 474, 16, 1525, 3719, 30, 1002, 3580, 2668, 2696, 1297, 506, 392, 3571, 6134, 309, 1300, 411, 374, 30, 468, 11628, 2068, 2668, 2696, 1297, 506, 6895, 6134, 1573, 273, 4014, 1300, 273, 1300, 380, 300, 21, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
h.sock = httplib.FakeSocket(sock, sslSock)
h.sock = sslSock
def proxy_ssl(self): host = '%s:%d' % (self.host, self.port) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: sock.connect((self.proxy, int(self.proxy_port))) except: raise sock.sendall("CONNECT %s HTTP/1.0\r\n" % host) sock.sendall("User-Agent: %s\r\n" % UserAgent) if self.proxy_user and self.proxy_pass: for k, v in self.get_proxy_auth_header().items(): sock.sendall("%s: %s\r\n" % (k, v)) sock.sendall("\r\n") resp = httplib.HTTPResponse(sock, strict=True) resp.begin()
958f3b74d732d2a84ab1b15ef73b893dd3d3d5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/958f3b74d732d2a84ab1b15ef73b893dd3d3d5f2/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 8157, 12, 2890, 4672, 1479, 273, 1995, 87, 5319, 72, 11, 738, 261, 2890, 18, 2564, 16, 365, 18, 655, 13, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 775, 30, 7313, 18, 3612, 12443, 2890, 18, 5656, 16, 509, 12, 2890, 18, 5656, 67, 655, 20349, 1335, 30, 1002, 7313, 18, 4661, 454, 2932, 11032, 738, 87, 2239, 19, 21, 18, 20, 64, 86, 64, 82, 6, 738, 1479, 13, 7313, 18, 4661, 454, 2932, 1299, 17, 3630, 30, 738, 87, 64, 86, 64, 82, 6, 738, 21917, 13, 309, 365, 18, 5656, 67, 1355, 471, 365, 18, 5656, 67, 5466, 30, 364, 417, 16, 331, 316, 365, 18, 588, 67, 5656, 67, 1944, 67, 3374, 7675, 3319, 13332, 7313, 18, 4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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 8157, 12, 2890, 4672, 1479, 273, 1995, 87, 5319, 72, 11, 738, 261, 2890, 18, 2564, 16, 365, 18, 655, 13, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 775, 30, 7313, 18, 3612, 12443, 2890, 18, 5656, 16, 509, 12, 2890, 18, 5656, 67, 655, 20349, 1335, 30, 1002, 7313, 18, 4661, 454, 2932, 11032, 738, 87, 2239, 19, 21, 18, 20, 64, 86, 64, 82, 6, 738, 1479, 13, 7313, 18, 4661, 454, 2932, 1299, 17, 3630, 30, 738, 87, 64, 86, 64, 82, 6, 738, 21917, 13, 309, 365, 18, 5656, 67, 1355, 471, 365, 18, 5656, 67, 5466, 30, 364, 417, 2 ]
signal.signal(signal.SIGINT, shutDown) signal.signal(signal.SIGTERM, shutDown) if hasattr(signal, "SIGBREAK"): signal.signal(signal.SIGBREAK, shutDown) if platform.getType() == 'posix': signal.signal(signal.SIGCHLD, process.reapProcess)
handleSignals()
def run(installSignalHandlers=1): """Run input/output and dispatched/delayed code. This call never returns. It is the main loop which runs delayed timers (see twisted.python.delay and addDelayed), and the I/O monitor (doSelect). """ global running running = 1 threadable.registerAsIOThread() if installSignalHandlers: signal.signal(signal.SIGINT, shutDown) signal.signal(signal.SIGTERM, shutDown) # Catch Ctrl-Break in windows (only available in 2.2b1 onwards) if hasattr(signal, "SIGBREAK"): signal.signal(signal.SIGBREAK, shutDown) if platform.getType() == 'posix': signal.signal(signal.SIGCHLD, process.reapProcess) for function in _whenRunning: function() _whenRunning[:] = [] try: try: while running: # Advance simulation time in delayed event # processors. timeout = None for delayed in delayeds: delayed.runUntilCurrent() for delayed in delayeds: newTimeout = delayed.timeout() if ((newTimeout is not None) and ((timeout is None) or (newTimeout < timeout))): timeout = newTimeout doSelect(running and timeout) except: log.msg("Unexpected error in main loop.") log.deferr() shutDown() raise else: log.msg('Main loop terminated.') finally: for callback in duringShutdown + afterShutdown: try: callback() except: log.deferr()
4fc965d5bb5dd435d676c1c94c455c4cd13cf420 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4fc965d5bb5dd435d676c1c94c455c4cd13cf420/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 5425, 11208, 6919, 33, 21, 4672, 3536, 1997, 810, 19, 2844, 471, 25513, 19, 10790, 329, 981, 18, 225, 1220, 745, 5903, 1135, 18, 225, 2597, 353, 326, 2774, 2798, 1492, 7597, 15278, 16989, 261, 5946, 2339, 25444, 18, 8103, 18, 10790, 471, 527, 29527, 3631, 471, 326, 467, 19, 51, 6438, 261, 2896, 3391, 2934, 3536, 2552, 3549, 3549, 273, 404, 2650, 429, 18, 4861, 1463, 4294, 3830, 1435, 309, 3799, 11208, 6919, 30, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 9171, 4164, 13, 4277, 18, 10420, 12, 10420, 18, 18513, 15176, 16, 9171, 4164, 13, 225, 468, 21984, 30715, 17, 7634, 316, 9965, 261, 3700, 2319, 316, 576, 18, 22, 70, 21, 603, 6397, 13, 309, 3859, 12, 10420, 16, 315, 2320, 5887, 22176, 6, 4672, 4277, 18, 10420, 12, 10420, 18, 2320, 5887, 22176, 16, 9171, 4164, 13, 225, 309, 4072, 18, 588, 559, 1435, 422, 296, 24463, 4278, 4277, 18, 10420, 12, 10420, 18, 18513, 1792, 12069, 16, 1207, 18, 266, 438, 2227, 13, 364, 445, 316, 389, 13723, 7051, 30, 445, 1435, 389, 13723, 7051, 10531, 65, 273, 5378, 775, 30, 775, 30, 1323, 3549, 30, 468, 4052, 5882, 14754, 813, 316, 15278, 871, 468, 13399, 18, 2021, 273, 599, 364, 15278, 316, 4624, 9765, 30, 15278, 18, 2681, 9716, 3935, 1435, 364, 15278, 316, 4624, 9765, 30, 394, 2694, 273, 15278, 18, 4538, 1435, 309, 14015, 2704, 2694, 353, 486, 599, 13, 471, 14015, 4538, 353, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 5425, 11208, 6919, 33, 21, 4672, 3536, 1997, 810, 19, 2844, 471, 25513, 19, 10790, 329, 981, 18, 225, 1220, 745, 5903, 1135, 18, 225, 2597, 353, 326, 2774, 2798, 1492, 7597, 15278, 16989, 261, 5946, 2339, 25444, 18, 8103, 18, 10790, 471, 527, 29527, 3631, 471, 326, 467, 19, 51, 6438, 261, 2896, 3391, 2934, 3536, 2552, 3549, 3549, 273, 404, 2650, 429, 18, 4861, 1463, 4294, 3830, 1435, 309, 3799, 11208, 6919, 30, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 9171, 4164, 13, 4277, 18, 10420, 12, 10420, 18, 18513, 15176, 16, 9171, 4164, 13, 225, 468, 21984, 30715, 17, 7634, 316, 9965, 261, 3700, 2319, 316, 576, 18, 22, 70, 21, 2 ]
'amount': fields.float('Amount', digits=(16, int(config['price_accuracy']))), 'bysal': fields.float('By Salary', digits=(16, int(config['price_accuracy']))),
'amount': fields.float('Amount', digits=(16, 4)), 'bysal': fields.float('By Salary', digits=(16, 4)),
def cancel_sheet(self, cr, uid, ids, context={}): self.write(cr, uid, ids, {'state':'cancel'}) return True
21786ff375c69b960b487a69bd1343b8b77f3dec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/21786ff375c69b960b487a69bd1343b8b77f3dec/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 10996, 11, 6792, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 10996, 11, 6792, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
estr = '%5s: Warning: %s' % ('L'+`startline+1`, warning) estr = epytext.wordwrap(estr, 6, 75-6).strip() print >>stream, estr
estr =' Warning: %s' % warning estr = epytext.wordwrap(estr, 7, 75-7).strip() print >>stream, '%5s: %s' % ('L'+`startline+1`, estr)
def _print_errors(self, stream=sys.stderr): """ Print any errors that were encountered while constructing this C{ObjDoc} to C{stream}. This method should be called at the end of the constructor of every class that is derived from C{ObjDoc}. @rtype: C{None} """ parse_warnings = self._parse_warnings parse_errors = self._parse_errors field_warnings = self._field_warnings # Supress warnings/errors, if requested if self.__verbosity <= -1: parse_warnings = [] if self.__verbosity <= -2: field_warnings = [] if self.__verbosity <= -3: parse_errors = [] # Print the errors and warnings. if (parse_warnings or parse_errors or field_warnings): # Figure out our file and line number, if possible. try: (filename, startline) = _find_docstring(self._uid) if startline is None: startline = 0 except: (filename, startline) = (None, 0) if stream.softspace: print >>stream print >>stream, '='*75 if filename is not None: print >>stream, filename print >>stream, ('In %s docstring (line %s):' % (self._uid, startline+1)) else: print >>stream, 'In %s docstring:' % self._uid print >>stream, '-'*75 for error in parse_errors: error.linenum += startline print >>stream, error.as_error() for warning in parse_warnings: warning.linenum += startline print >>stream, warning.as_warning() for warning in field_warnings: if startline is None: print >>stream, ' '+warning else: estr = '%5s: Warning: %s' % ('L'+`startline+1`, warning) estr = epytext.wordwrap(estr, 6, 75-6).strip() print >>stream, estr print >>stream
5ec4fab27b610d7f6ef969d5d4bdc54db4ab6693 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/5ec4fab27b610d7f6ef969d5d4bdc54db4ab6693/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 4324, 12, 2890, 16, 1407, 33, 9499, 18, 11241, 4672, 3536, 3038, 1281, 1334, 716, 4591, 9919, 1323, 27389, 333, 385, 95, 2675, 1759, 97, 358, 385, 95, 3256, 5496, 225, 1220, 707, 1410, 506, 2566, 622, 326, 679, 434, 326, 3885, 434, 3614, 667, 716, 353, 10379, 628, 385, 95, 2675, 1759, 5496, 225, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 1109, 67, 12103, 273, 365, 6315, 2670, 67, 12103, 1109, 67, 4324, 273, 365, 6315, 2670, 67, 4324, 652, 67, 12103, 273, 365, 6315, 1518, 67, 12103, 225, 468, 3425, 663, 5599, 19, 4324, 16, 309, 3764, 309, 365, 16186, 16629, 8807, 1648, 300, 21, 30, 1109, 67, 12103, 273, 5378, 309, 365, 16186, 16629, 8807, 1648, 300, 22, 30, 652, 67, 12103, 273, 5378, 309, 365, 16186, 16629, 8807, 1648, 300, 23, 30, 1109, 67, 4324, 273, 5378, 225, 468, 3038, 326, 1334, 471, 5599, 18, 309, 261, 2670, 67, 12103, 578, 1109, 67, 4324, 578, 652, 67, 12103, 4672, 468, 18818, 596, 3134, 585, 471, 980, 1300, 16, 309, 3323, 18, 775, 30, 261, 3459, 16, 787, 1369, 13, 273, 389, 4720, 67, 24675, 12, 2890, 6315, 1911, 13, 309, 787, 1369, 353, 599, 30, 787, 1369, 273, 374, 1335, 30, 261, 3459, 16, 787, 1369, 13, 273, 261, 7036, 16, 374, 13, 225, 309, 1407, 18, 9269, 2981, 30, 1172, 1671, 3256, 1172, 1671, 3256, 16, 5214, 14, 5877, 309, 1544, 353, 486, 599, 30, 1172, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 4324, 12, 2890, 16, 1407, 33, 9499, 18, 11241, 4672, 3536, 3038, 1281, 1334, 716, 4591, 9919, 1323, 27389, 333, 385, 95, 2675, 1759, 97, 358, 385, 95, 3256, 5496, 225, 1220, 707, 1410, 506, 2566, 622, 326, 679, 434, 326, 3885, 434, 3614, 667, 716, 353, 10379, 628, 385, 95, 2675, 1759, 5496, 225, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 1109, 67, 12103, 273, 365, 6315, 2670, 67, 12103, 1109, 67, 4324, 273, 365, 6315, 2670, 67, 4324, 652, 67, 12103, 273, 365, 6315, 1518, 67, 12103, 225, 468, 3425, 663, 5599, 19, 4324, 16, 309, 3764, 309, 365, 16186, 16629, 8807, 1648, 300, 21, 30, 1109, 67, 12103, 273, 5378, 2 ]
'missing_account_revenue': 'It miss ' \
'missing_account_revenue': 'It misses ' \
def __init__(self): super(SaleLine, self).__init__() self._order.insert(0, ('sequence', 'ASC')) self._error_messages.update({ 'missing_account_revenue': 'It miss ' \ 'an "account_revenue" default property!', 'customer_location_required': 'The customer location is required!', })
75faa40d113abdfc9857709fc7e711916ee82b13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9306/75faa40d113abdfc9857709fc7e711916ee82b13/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 30746, 1670, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 1019, 18, 6387, 12, 20, 16, 7707, 6178, 2187, 296, 8633, 26112, 365, 6315, 1636, 67, 6833, 18, 2725, 12590, 296, 7337, 67, 4631, 67, 266, 24612, 4278, 296, 7193, 12543, 281, 296, 521, 296, 304, 315, 4631, 67, 266, 24612, 6, 805, 1272, 5, 2187, 296, 10061, 67, 3562, 67, 4718, 4278, 296, 1986, 6666, 2117, 353, 1931, 5, 2187, 289, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 30746, 1670, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 1019, 18, 6387, 12, 20, 16, 7707, 6178, 2187, 296, 8633, 26112, 365, 6315, 1636, 67, 6833, 18, 2725, 12590, 296, 7337, 67, 4631, 67, 266, 24612, 4278, 296, 7193, 12543, 281, 296, 521, 296, 304, 315, 4631, 67, 266, 24612, 6, 805, 1272, 5, 2187, 296, 10061, 67, 3562, 67, 4718, 4278, 296, 1986, 6666, 2117, 353, 1931, 5, 2187, 289, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
If xk is None, then x=arange(len(yk)) will be assumed
def csprep(yk,xk=None,kind='not-a-knot',conds=None): """Return a (Spp,xk,yk) representation of a cubic spline given data-points yk can be a 2-d array to represent more than one curve, through the same xk points. The first dimension is assumed to be the interpolating dimenion. If xk is None, then x=arange(len(yk)) will be assumed kind can be 'natural', 'second', 'clamped', 'endslope', 'periodic', 'symmetric', 'parabolic', 'not-a-knot', 'runout' for 'second', and 'clamped' conditions can be given which should be the desired second and first derivatives at the end-points, respectively. """ yk = np.asanyarray(yk) N = yk.shape[0]-1 if xk is None: xk = arange(N+1,dtype=float) factor = 1.0 else: deltax = (xk[-1]-xk[0])/float(N) factor = deltax**2 B,b,first,last = _get_cspline_Bb(yk, xk, kind, conds) mk = np.dual.solve(B,b) if first is not None: mk = np.concatenate((first, mk), axis=0) if last is not None: mk = np.concatenate((mk, last), axis=0) return mk/factor, xk, yk
deff35fdd9225ffb4dc8424f8e00bbfc804dab49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/deff35fdd9225ffb4dc8424f8e00bbfc804dab49/interpolate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2873, 19109, 12, 93, 79, 16, 92, 79, 33, 7036, 16, 9224, 2218, 902, 17, 69, 17, 79, 902, 2187, 20874, 33, 7036, 4672, 3536, 990, 279, 261, 3389, 84, 16, 92, 79, 16, 93, 79, 13, 4335, 434, 279, 31247, 22826, 864, 501, 17, 4139, 225, 677, 79, 848, 506, 279, 576, 17, 72, 526, 358, 2406, 1898, 2353, 1245, 8882, 16, 3059, 326, 1967, 619, 79, 3143, 18, 1021, 1122, 4968, 353, 12034, 358, 506, 326, 7326, 1776, 2464, 275, 285, 18, 225, 3846, 848, 506, 296, 18757, 3766, 2187, 296, 8538, 2187, 296, 830, 931, 329, 2187, 296, 5839, 12232, 2187, 296, 6908, 335, 2187, 296, 8117, 6899, 2187, 296, 1065, 378, 1415, 2187, 296, 902, 17, 69, 17, 79, 902, 2187, 296, 2681, 659, 11, 225, 364, 296, 8538, 2187, 471, 296, 830, 931, 329, 11, 4636, 848, 506, 864, 1492, 1410, 506, 326, 6049, 2205, 471, 1122, 9630, 8785, 622, 326, 679, 17, 4139, 16, 19629, 18, 3536, 677, 79, 273, 1130, 18, 345, 2273, 1126, 12, 93, 79, 13, 423, 273, 677, 79, 18, 4867, 63, 20, 65, 17, 21, 309, 619, 79, 353, 599, 30, 619, 79, 273, 9660, 12, 50, 15, 21, 16, 8972, 33, 5659, 13, 5578, 273, 404, 18, 20, 469, 30, 1464, 8066, 273, 261, 92, 79, 18919, 21, 65, 17, 92, 79, 63, 20, 5717, 19, 5659, 12, 50, 13, 5578, 273, 1464, 8066, 636, 22, 605, 16, 70, 16, 3645, 16, 2722, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2873, 19109, 12, 93, 79, 16, 92, 79, 33, 7036, 16, 9224, 2218, 902, 17, 69, 17, 79, 902, 2187, 20874, 33, 7036, 4672, 3536, 990, 279, 261, 3389, 84, 16, 92, 79, 16, 93, 79, 13, 4335, 434, 279, 31247, 22826, 864, 501, 17, 4139, 225, 677, 79, 848, 506, 279, 576, 17, 72, 526, 358, 2406, 1898, 2353, 1245, 8882, 16, 3059, 326, 1967, 619, 79, 3143, 18, 1021, 1122, 4968, 353, 12034, 358, 506, 326, 7326, 1776, 2464, 275, 285, 18, 225, 3846, 848, 506, 296, 18757, 3766, 2187, 296, 8538, 2187, 296, 830, 931, 329, 2187, 296, 5839, 12232, 2187, 296, 6908, 335, 2187, 296, 8117, 6899, 2187, 296, 1065, 378, 1415, 2187, 296, 2 ]
def initializeCollisions(self, collisionTraverser, avatarNodePath,
def initializeCollisions(self, collisionTraverser, avatarNodePath,
def initializeCollisions(self, collisionTraverser, avatarNodePath, wallCollideMask, floorCollideMask, avatarRadius = 1.4, floorOffset = 1.0, reach = 1.0): """ Set up the avatar for collisions """ assert not avatarNodePath.isEmpty()
c876c52dbd1c9c15ce852828fd0f32a967447917 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c876c52dbd1c9c15ce852828fd0f32a967447917/NonPhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 13535, 12682, 12, 2890, 16, 17740, 15844, 264, 16, 16910, 907, 743, 16, 17662, 914, 8130, 5796, 16, 6346, 914, 8130, 5796, 16, 16910, 10196, 273, 404, 18, 24, 16, 6346, 2335, 273, 404, 18, 20, 16, 9287, 273, 404, 18, 20, 4672, 3536, 1000, 731, 326, 16910, 364, 27953, 3536, 1815, 486, 16910, 907, 743, 18, 291, 1921, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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264, 16, 16910, 907, 743, 16, 17662, 914, 8130, 5796, 16, 6346, 914, 8130, 5796, 16, 16910, 10196, 273, 404, 18, 24, 16, 6346, 2335, 273, 404, 18, 20, 16, 9287, 273, 404, 18, 20, 4672, 3536, 1000, 731, 326, 16910, 364, 27953, 3536, 1815, 486, 16910, 907, 743, 18, 291, 1921, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority'))
queries = { 'Easy bugs': 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority', 'Documentation bugs': 'http://twistedmatrix.com/trac/query?status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~documentation' } return self.generate_bug_ids_from_queries(queries)
def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority'))
2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb/trac_instances.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1098, 67, 792, 67, 925, 67, 2232, 67, 869, 67, 7330, 67, 270, 12, 2890, 4672, 468, 12526, 770, 2831, 281, 1235, 22398, 327, 312, 1900, 1137, 18, 3662, 87, 18, 925, 4101, 414, 18, 313, 1077, 18, 6715, 67, 718, 22, 1098, 67, 792, 67, 925, 67, 2232, 12, 312, 1900, 1137, 18, 3662, 87, 18, 925, 4101, 414, 18, 313, 1077, 18, 6715, 67, 792, 67, 19381, 12, 296, 2505, 2207, 11246, 25444, 5667, 18, 832, 19, 313, 1077, 19, 2271, 35, 2327, 33, 2704, 10, 2327, 33, 15938, 10, 2327, 33, 266, 25304, 10, 2139, 33, 6715, 10, 11771, 5095, 27, 41, 73, 15762, 10, 1019, 33, 8457, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1098, 67, 792, 67, 925, 67, 2232, 67, 869, 67, 7330, 67, 270, 12, 2890, 4672, 468, 12526, 770, 2831, 281, 1235, 22398, 327, 312, 1900, 1137, 18, 3662, 87, 18, 925, 4101, 414, 18, 313, 1077, 18, 6715, 67, 718, 22, 1098, 67, 792, 67, 925, 67, 2232, 12, 312, 1900, 1137, 18, 3662, 87, 18, 925, 4101, 414, 18, 313, 1077, 18, 6715, 67, 792, 67, 19381, 12, 296, 2505, 2207, 11246, 25444, 5667, 18, 832, 19, 313, 1077, 19, 2271, 35, 2327, 33, 2704, 10, 2327, 33, 15938, 10, 2327, 33, 266, 25304, 10, 2139, 33, 6715, 10, 11771, 5095, 27, 41, 73, 15762, 10, 1019, 33, 8457, 26112, 2, -100, -100, -100, -100 ]
def UpdateView(self):
def GetTile(self, x, y): return self.mapRows[y][x] def TranslateTileForDisplay(self, tile): dtile = displayTiles.get(tile, None) if dtile is not None: return dtile return tile def GetDisplayTile(self, x, y): tile = self.mapRows[y][x] return self.TranslateTileForDisplay(tile) def UpdateView(self, sio=None):
def UpdateView(self): # REUSE? Useful for centering of the world or view or something. # # playerX = self.playerX = self.user.connection.consoleColumns / 2 # playerY = self.playerY = self.windowOffset + windowLength/2
2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9337, 12, 2890, 16, 619, 16, 677, 4672, 327, 365, 18, 1458, 4300, 63, 93, 6362, 92, 65, 225, 1652, 16820, 9337, 1290, 4236, 12, 2890, 16, 4769, 4672, 3681, 398, 273, 2562, 27669, 18, 588, 12, 15368, 16, 599, 13, 309, 3681, 398, 353, 486, 599, 30, 327, 3681, 398, 327, 4769, 225, 1652, 968, 4236, 9337, 12, 2890, 16, 619, 16, 677, 4672, 4769, 273, 365, 18, 1458, 4300, 63, 93, 6362, 92, 65, 327, 365, 18, 12818, 9337, 1290, 4236, 12, 15368, 13, 225, 1652, 2315, 1767, 12, 2890, 16, 272, 1594, 33, 7036, 4672, 468, 2438, 8001, 35, 225, 19256, 364, 4617, 310, 434, 326, 9117, 578, 1476, 578, 5943, 18, 468, 468, 7291, 60, 273, 365, 18, 14872, 60, 273, 365, 18, 1355, 18, 4071, 18, 8698, 3380, 342, 576, 468, 7291, 61, 273, 365, 18, 14872, 61, 273, 365, 18, 5668, 2335, 397, 2742, 1782, 19, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9337, 12, 2890, 16, 619, 16, 677, 4672, 327, 365, 18, 1458, 4300, 63, 93, 6362, 92, 65, 225, 1652, 16820, 9337, 1290, 4236, 12, 2890, 16, 4769, 4672, 3681, 398, 273, 2562, 27669, 18, 588, 12, 15368, 16, 599, 13, 309, 3681, 398, 353, 486, 599, 30, 327, 3681, 398, 327, 4769, 225, 1652, 968, 4236, 9337, 12, 2890, 16, 619, 16, 677, 4672, 4769, 273, 365, 18, 1458, 4300, 63, 93, 6362, 92, 65, 327, 365, 18, 12818, 9337, 1290, 4236, 12, 15368, 13, 225, 1652, 2315, 1767, 12, 2890, 16, 272, 1594, 33, 7036, 4672, 468, 2438, 8001, 35, 225, 19256, 364, 4617, 310, 434, 326, 9117, 578, 1476, 578, 5943, 18, 468, 468, 2 ]
Actor.notify.warning("couldn't find part: %s" % (partName))
Actor.notify.warning("couldn't find part: %s" % (pName))
def getAnimControls(self, animName=None, partName=None, lodName=None): """getAnimControls(self, string, string=None, string=None)
f27cf426e1d544aac938e5bbdfe9d7f560354a86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f27cf426e1d544aac938e5bbdfe9d7f560354a86/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 20892, 16795, 12, 2890, 16, 10536, 461, 33, 7036, 16, 1087, 461, 33, 7036, 16, 328, 369, 461, 33, 7036, 4672, 3536, 588, 20892, 16795, 12, 2890, 16, 533, 16, 533, 33, 7036, 16, 533, 33, 7036, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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672, 3536, 588, 20892, 16795, 12, 2890, 16, 533, 16, 533, 33, 7036, 16, 533, 33, 7036, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
local_path = dist_path
local_path = dist_path + 'LANG/'
def run(self):
3c1bd2ce586436dc69f103b13f97661ca5cbb84d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/61/3c1bd2ce586436dc69f103b13f97661ca5cbb84d/proximity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(v, FloatType):
if isinstance(v, float):
def simple_marshal(v): if isinstance(v, StringType): return '' if isinstance(v, BooleanType): return ':boolean' if isinstance(v, IntType): return ':int' if isinstance(v, FloatType): return ':float' if isinstance(v, DateTime): return ':date' return ''
e04ad27486fef71c955bba35808f255f7768fbde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e04ad27486fef71c955bba35808f255f7768fbde/Zope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 67, 3108, 12, 90, 4672, 309, 1549, 12, 90, 16, 31570, 4672, 327, 875, 309, 1549, 12, 90, 16, 3411, 559, 4672, 327, 4290, 6494, 11, 309, 1549, 12, 90, 16, 3094, 559, 4672, 327, 4290, 474, 11, 309, 1549, 12, 90, 16, 1431, 4672, 327, 4290, 5659, 11, 309, 1549, 12, 90, 16, 3716, 4672, 327, 4290, 712, 11, 327, 875, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 67, 3108, 12, 90, 4672, 309, 1549, 12, 90, 16, 31570, 4672, 327, 875, 309, 1549, 12, 90, 16, 3411, 559, 4672, 327, 4290, 6494, 11, 309, 1549, 12, 90, 16, 3094, 559, 4672, 327, 4290, 474, 11, 309, 1549, 12, 90, 16, 1431, 4672, 327, 4290, 5659, 11, 309, 1549, 12, 90, 16, 3716, 4672, 327, 4290, 712, 11, 327, 875, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bs_ids = map(lambda bs:bs[1], q1)
bs_ids = map(lambda bs: bs[1], q1)
def getPossibleImagesOrMaster(self, target_uuid, target_type, is_master, start, end, filt): session = create_session() menu = self.getTargetsMenuTUUID(target_uuid) q1 = self.__PossibleImages(session, target_uuid, is_master, filt) q1 = q1.group_by(self.image.c.id) if end != -1: q1 = q1.offset(int(start)).limit(int(end)-int(start)) else: q1 = q1.all() bs_ids = map(lambda bs:bs[1], q1) q2 = self.__PossibleImageAndMenuItem(session, bs_ids, menu.id)
33638c4343bc0f46138a62717e8111ce7599be42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/33638c4343bc0f46138a62717e8111ce7599be42/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 13576, 8946, 1162, 7786, 12, 2890, 16, 1018, 67, 7080, 16, 1018, 67, 723, 16, 353, 67, 7525, 16, 787, 16, 679, 16, 18553, 4672, 1339, 273, 752, 67, 3184, 1435, 3824, 273, 365, 18, 588, 9432, 4599, 56, 5562, 12, 3299, 67, 7080, 13, 1043, 21, 273, 365, 16186, 13576, 8946, 12, 3184, 16, 1018, 67, 7080, 16, 353, 67, 7525, 16, 18553, 13, 1043, 21, 273, 1043, 21, 18, 1655, 67, 1637, 12, 2890, 18, 2730, 18, 71, 18, 350, 13, 309, 679, 480, 300, 21, 30, 1043, 21, 273, 1043, 21, 18, 3348, 12, 474, 12, 1937, 13, 2934, 3595, 12, 474, 12, 409, 24950, 474, 12, 1937, 3719, 469, 30, 1043, 21, 273, 1043, 21, 18, 454, 1435, 7081, 67, 2232, 273, 852, 12, 14661, 7081, 30, 7081, 63, 21, 6487, 1043, 21, 13, 1043, 22, 273, 365, 16186, 13576, 2040, 1876, 12958, 12, 3184, 16, 7081, 67, 2232, 16, 3824, 18, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 13576, 8946, 1162, 7786, 12, 2890, 16, 1018, 67, 7080, 16, 1018, 67, 723, 16, 353, 67, 7525, 16, 787, 16, 679, 16, 18553, 4672, 1339, 273, 752, 67, 3184, 1435, 3824, 273, 365, 18, 588, 9432, 4599, 56, 5562, 12, 3299, 67, 7080, 13, 1043, 21, 273, 365, 16186, 13576, 8946, 12, 3184, 16, 1018, 67, 7080, 16, 353, 67, 7525, 16, 18553, 13, 1043, 21, 273, 1043, 21, 18, 1655, 67, 1637, 12, 2890, 18, 2730, 18, 71, 18, 350, 13, 309, 679, 480, 300, 21, 30, 1043, 21, 273, 1043, 21, 18, 3348, 12, 474, 12, 1937, 13, 2934, 3595, 12, 474, 12, 409, 24950, 474, 12, 1937, 3719, 469, 30, 1043, 21, 273, 2 ]
size = size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file)
size = FileUtilities.size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file)
def run(self): """Execute the cleaning operation and iterate (bytes deleted, size of file)""" for file in self.list_files(self): size = size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file)
ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 5289, 326, 24225, 1674, 471, 7401, 261, 3890, 4282, 16, 963, 434, 585, 15574, 364, 585, 316, 365, 18, 1098, 67, 2354, 12, 2890, 4672, 963, 273, 963, 67, 792, 67, 768, 18, 768, 12, 768, 13, 1387, 11864, 18, 3733, 67, 768, 12, 768, 13, 2824, 261, 1467, 16, 585, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 5289, 326, 24225, 1674, 471, 7401, 261, 3890, 4282, 16, 963, 434, 585, 15574, 364, 585, 316, 365, 18, 1098, 67, 2354, 12, 2890, 4672, 963, 273, 963, 67, 792, 67, 768, 18, 768, 12, 768, 13, 1387, 11864, 18, 3733, 67, 768, 12, 768, 13, 2824, 261, 1467, 16, 585, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if file[-4:]=='.dat': sedlist.append(file)
if tmp[-4:]=='.dat': sedlist.append(tmp)
def readAsteroids(self, rootdir='', verbose=True): """ Initialize all asteroid seds""" sedlist = [] tmplist = os.listdir(rootdir) for tmp in tmplist: if file[-4:]=='.dat': sedlist.append(file) self.sedlist, self.seds = self.readSeds(sedlist, rootdir=rootdir, verbose=verbose) self.type='asteroid' return
7b587ba2c75dee4821476e4d9147038671073bba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/7b587ba2c75dee4821476e4d9147038671073bba/SedSet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 37, 8190, 21061, 12, 2890, 16, 1365, 1214, 2218, 2187, 3988, 33, 5510, 4672, 3536, 9190, 777, 30977, 839, 272, 9765, 8395, 24336, 1098, 273, 5378, 10720, 376, 273, 1140, 18, 1098, 1214, 12, 3085, 1214, 13, 364, 1853, 316, 10720, 376, 30, 309, 1853, 18919, 24, 26894, 631, 10332, 3404, 4278, 24336, 1098, 18, 6923, 12, 5645, 13, 365, 18, 730, 1098, 16, 365, 18, 730, 87, 273, 365, 18, 896, 55, 9765, 12, 730, 1098, 16, 1365, 1214, 33, 3085, 1214, 16, 3988, 33, 11369, 13, 365, 18, 723, 2218, 2440, 839, 11, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 3085, 1214, 13, 364, 1853, 316, 10720, 376, 30, 309, 1853, 18919, 24, 26894, 631, 10332, 3404, 4278, 24336, 1098, 18, 6923, 12, 5645, 13, 365, 18, 730, 1098, 16, 365, 18, 730, 87, 273, 365, 18, 896, 55, 9765, 12, 730, 1098, 16, 1365, 1214, 33, 3085, 1214, 16, 3988, 33, 11369, 13, 365, 18, 723, 2218, 2440, 839, 11, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
label=_(u'Telefon (ve tvaru +420 111 222 333)'))
label=_(u'Telefon (ve tvaru +420111222333)'))
def _(msg): return msg
7644a0e36651bcf2d8ba453eb3c9a48462d29c5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7994/7644a0e36651bcf2d8ba453eb3c9a48462d29c5d/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 3576, 4672, 327, 1234, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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234, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ntext = []
tokens = []
def main(fn, lexer=None): if lexer is not None: lx = get_lexer_by_name(lexer) else: try: lx = get_lexer_for_filename(os.path.basename(fn)) except ValueError: try: name, rest = fn.split('_', 1) lx = get_lexer_by_name(name) except ValueError: raise AssertionError('no lexer found for file %r' % fn) debug_lexer = False # does not work for e.g. ExtendedRegexLexers if lx.__class__.__bases__ == (RegexLexer,): lx.__class__.__bases__ = (DebuggingRegexLexer,) debug_lexer = True lno = 1 text = file(fn, 'U').read() text = text.strip('\n') + '\n' text = text.decode('latin1') ntext = [] states = [] def show_token(tok): reprs = map(repr, tok) print ' ' + reprs[1] + ' ' + ' ' * (29-len(reprs[1])) + reprs[0], if debug_lexer: print ' ' + ' ' * (29-len(reprs[0])) + repr(states[i]), print for type, val in lx.get_tokens(text): lno += val.count('\n') if type == Error: print 'Error parsing', fn, 'on line', lno print 'Previous tokens' + (debug_lexer and ' and states' or '') + ':' for i in range(len(ntext) - num, len(ntext)): show_token(ntext[i]) print 'Error token:' l = len(repr(val)) print ' ' + repr(val), if debug_lexer: print ' ' * (60-l) + repr(lx.statestack), print print return 1 ntext.append((type,val)) if debug_lexer: states.append(lx.statestack[:]) if showall: for tok in ntext: show_token(tok) return 0
aa82d10c79a247547303d83826359f2a0ab11a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/aa82d10c79a247547303d83826359f2a0ab11a92/find_error.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4293, 16, 8512, 33, 7036, 4672, 309, 8512, 353, 486, 599, 30, 15855, 273, 336, 67, 31731, 67, 1637, 67, 529, 12, 31731, 13, 469, 30, 775, 30, 15855, 273, 336, 67, 31731, 67, 1884, 67, 3459, 12, 538, 18, 803, 18, 13909, 12, 4293, 3719, 1335, 2068, 30, 775, 30, 508, 16, 3127, 273, 2295, 18, 4939, 2668, 67, 2187, 404, 13, 15855, 273, 336, 67, 31731, 67, 1637, 67, 529, 12, 529, 13, 1335, 2068, 30, 1002, 12068, 2668, 2135, 8512, 1392, 364, 585, 738, 86, 11, 738, 2295, 13, 1198, 67, 31731, 273, 1083, 468, 1552, 486, 1440, 364, 425, 18, 75, 18, 14094, 6628, 14756, 414, 309, 15855, 16186, 1106, 972, 16186, 18602, 972, 422, 261, 6628, 13356, 16, 4672, 15855, 16186, 1106, 972, 16186, 18602, 972, 273, 261, 2829, 1998, 6628, 13356, 16, 13, 1198, 67, 31731, 273, 1053, 328, 2135, 273, 404, 977, 273, 585, 12, 4293, 16, 296, 57, 16063, 896, 1435, 977, 273, 977, 18, 6406, 2668, 64, 82, 6134, 397, 2337, 82, 11, 977, 273, 977, 18, 3922, 2668, 26578, 21, 6134, 2430, 273, 5378, 5493, 273, 5378, 225, 1652, 2405, 67, 2316, 12, 17692, 4672, 8480, 87, 273, 852, 12, 12715, 16, 946, 13, 1172, 296, 282, 296, 397, 8480, 87, 63, 21, 65, 397, 296, 296, 397, 296, 296, 380, 261, 5540, 17, 1897, 12, 12715, 87, 63, 21, 22643, 397, 8480, 87, 63, 20, 6487, 309, 1198, 67, 31731, 30, 1172, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4293, 16, 8512, 33, 7036, 4672, 309, 8512, 353, 486, 599, 30, 15855, 273, 336, 67, 31731, 67, 1637, 67, 529, 12, 31731, 13, 469, 30, 775, 30, 15855, 273, 336, 67, 31731, 67, 1884, 67, 3459, 12, 538, 18, 803, 18, 13909, 12, 4293, 3719, 1335, 2068, 30, 775, 30, 508, 16, 3127, 273, 2295, 18, 4939, 2668, 67, 2187, 404, 13, 15855, 273, 336, 67, 31731, 67, 1637, 67, 529, 12, 529, 13, 1335, 2068, 30, 1002, 12068, 2668, 2135, 8512, 1392, 364, 585, 738, 86, 11, 738, 2295, 13, 1198, 67, 31731, 273, 1083, 468, 1552, 486, 1440, 364, 425, 18, 75, 18, 14094, 6628, 14756, 414, 309, 15855, 16186, 1106, 972, 16186, 2 ]
result = super(view, self).write(cr, uid, vids, vals, context)
result = super(view, self).write(cr, uid, ids, vals, context)
def write(self, cr, uid, ids, vals, context={}):
bb31f33da6b344413c38842a6a07998be8536555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/bb31f33da6b344413c38842a6a07998be8536555/ir_ui_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 12938, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 12938, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return gof.Apply(self, [x, shp], [tensor(x.type.dtype, [False]*self.ndim)])
bcasts = [False] * self.ndim for index in xrange(self.ndim): y = shp_orig[index] try: bcasts[index] = (hasattr(y, 'get_constant_value') and y.get_constant_value() == 1) except TypeError: pass return gof.Apply(self, [x, shp], [tensor(x.type.dtype, bcasts)])
def make_node(self, x, shp): x = as_tensor_variable(x) shp = as_tensor_variable(shp, ndim=1) if not shp.dtype.startswith('int'): raise TypeError("Shape must be integers") assert shp.ndim == 1 if isinstance(shp, TensorConstant): bcast = [s==1 for s in shp.data] return gof.Apply(self, [x, shp], [tensor(x.type.dtype, bcast)]) else: return gof.Apply(self, [x, shp], [tensor(x.type.dtype, [False]*self.ndim)])
fe246e7b736a9c5b076b9d0fdb4dd8c6b6c96686 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/fe246e7b736a9c5b076b9d0fdb4dd8c6b6c96686/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2159, 12, 2890, 16, 619, 16, 25771, 4672, 619, 273, 487, 67, 13720, 67, 6105, 12, 92, 13, 25771, 273, 487, 67, 13720, 67, 6105, 12, 674, 84, 16, 9209, 33, 21, 13, 309, 486, 25771, 18, 8972, 18, 17514, 1918, 2668, 474, 11, 4672, 1002, 3580, 2932, 8500, 1297, 506, 12321, 7923, 1815, 25771, 18, 82, 3509, 422, 404, 309, 1549, 12, 674, 84, 16, 13422, 6902, 4672, 324, 4155, 273, 306, 87, 631, 21, 364, 272, 316, 25771, 18, 892, 65, 327, 314, 792, 18, 7001, 12, 2890, 16, 306, 92, 16, 25771, 6487, 306, 13720, 12, 92, 18, 723, 18, 8972, 16, 324, 4155, 13, 5717, 469,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2159, 12, 2890, 16, 619, 16, 25771, 4672, 619, 273, 487, 67, 13720, 67, 6105, 12, 92, 13, 25771, 273, 487, 67, 13720, 67, 6105, 12, 674, 84, 16, 9209, 33, 21, 13, 309, 486, 25771, 18, 8972, 18, 17514, 1918, 2668, 474, 11, 4672, 1002, 3580, 2932, 8500, 1297, 506, 12321, 7923, 1815, 25771, 18, 82, 3509, 422, 404, 309, 1549, 12, 674, 84, 16, 13422, 6902, 4672, 324, 4155, 273, 306, 87, 631, 21, 364, 272, 316, 25771, 18, 892, 65, 327, 314, 792, 18, 7001, 12, 2890, 16, 306, 92, 16, 25771, 6487, 306, 13720, 12, 92, 18, 723, 18, 8972, 16, 324, 4155, 13, 5717, 469, 30, 327, 314, 792, 18, 7001, 2 ]
return instance_url(None, path='') + "/img/icons/vote_" + str(size) + ".png"
return instance_url(None, path='') + u"/img/icons/vote_" + str(size) + u".png"
def proposal_icon(proposal, size=16): if proposal.adopted: return instance_url(None, path='') + "/img/icons/proposal_adopted_" + str(size) + ".png" if proposal.is_adopt_polling(): return instance_url(None, path='') + "/img/icons/vote_" + str(size) + ".png" else: return instance_url(None, path='') + "/img/icons/proposal_" + str(size) + ".png"
d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a/helpers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14708, 67, 3950, 12, 685, 8016, 16, 963, 33, 2313, 4672, 309, 14708, 18, 361, 3838, 329, 30, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 2206, 6081, 19, 14516, 19, 685, 8016, 67, 361, 3838, 329, 9548, 397, 609, 12, 1467, 13, 397, 3552, 6446, 6, 309, 14708, 18, 291, 67, 361, 3838, 67, 3915, 2456, 13332, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 582, 6, 19, 6081, 19, 14516, 19, 25911, 9548, 397, 609, 12, 1467, 13, 397, 582, 9654, 6446, 6, 469, 30, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 2206, 6081, 19, 14516, 19, 685, 8016, 9548, 397, 609, 12, 1467, 13, 397, 3552, 6446, 6, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14708, 67, 3950, 12, 685, 8016, 16, 963, 33, 2313, 4672, 309, 14708, 18, 361, 3838, 329, 30, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 2206, 6081, 19, 14516, 19, 685, 8016, 67, 361, 3838, 329, 9548, 397, 609, 12, 1467, 13, 397, 3552, 6446, 6, 309, 14708, 18, 291, 67, 361, 3838, 67, 3915, 2456, 13332, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 582, 6, 19, 6081, 19, 14516, 19, 25911, 9548, 397, 609, 12, 1467, 13, 397, 582, 9654, 6446, 6, 469, 30, 327, 791, 67, 718, 12, 7036, 16, 589, 2218, 6134, 397, 2206, 6081, 19, 14516, 19, 685, 8016, 9548, 397, 609, 12, 1467, 13, 397, 2 ]
self._vte.set_cursor_blinks = (self.conf.cursor_blink)
self._vte.set_cursor_blinks (self.conf.cursor_blink)
def reconfigure_vte (self): # Set our emulation self._vte.set_emulation (self.conf.emulation)
c6dc9cb214ba887b68858b529b215f2670ca492b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6502/c6dc9cb214ba887b68858b529b215f2670ca492b/terminatorterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 67, 90, 736, 261, 2890, 4672, 468, 1000, 3134, 801, 6234, 365, 6315, 90, 736, 18, 542, 67, 351, 6234, 261, 2890, 18, 3923, 18, 351, 6234, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 67, 90, 736, 261, 2890, 4672, 468, 1000, 3134, 801, 6234, 365, 6315, 90, 736, 18, 542, 67, 351, 6234, 261, 2890, 18, 3923, 18, 351, 6234, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
curs = conn.cursor()
logging.info(" ... dropping old data")
def store_entries(entries_list, dbmodel, conn): """ Given a list of entries to be stored, try to store as much data as possible in the given database model.""" curs = conn.cursor() # Drop the old data from this document from the previous tables. tables = [x.table for x in entries_list] sources = [x.source for x in entries_list] for table in tables: if table not in dbmodel: continue for source in sources: curs.execute("DELETE FROM %s WHERE %s = %%s" % (table, col_source), (source,)) dbmodel = dict((k, dict(v)) for (k,v) in dbmodel.iteritems()) for e in entries_list: try: dbcols = dbmodel[e.table] except KeyError: pass # Table for available. outcols = [col_source] outvalues = [e.source] colseen = set() for cname, cvalue in e.values: cname = cname # If the columns cannot be stored in the current model, don't. if cname not in dbcols: continue if cname in colseen: logging.warning("Duplicate field name at %s" % e.locator) continue else: colseen.add(cname) dbtype = dbcols[cname].lower() if dbtype in ('text', 'varchar', 'char'): value = unicode(cvalue) elif dbtype in ('integer',): value = int(cvalue) elif dbtype in ('numeric', 'float'): value = float(cvalue) else: raise NotImplementedError("Unsupported type: '%s'" % dbtype) outcols.append(cname) outvalues.append(value) if outvalues: curs.execute(""" INSERT INTO %s (%s) VALUES (%s) """ % (e.table, ','.join(outcols), ','.join(['%s'] * len(outvalues))), outvalues) conn.commit()
2e36541c90224154027f2b76859da3220e27cb68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/2e36541c90224154027f2b76859da3220e27cb68/rstlime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 8219, 12, 8219, 67, 1098, 16, 1319, 2284, 16, 1487, 4672, 3536, 16803, 279, 666, 434, 3222, 358, 506, 4041, 16, 775, 358, 1707, 487, 9816, 501, 487, 3323, 316, 326, 864, 2063, 938, 12123, 225, 2907, 18, 1376, 2932, 225, 1372, 3640, 1382, 1592, 501, 7923, 225, 468, 10895, 326, 1592, 501, 628, 333, 1668, 628, 326, 2416, 4606, 18, 4606, 273, 306, 92, 18, 2121, 364, 619, 316, 3222, 67, 1098, 65, 5550, 273, 306, 92, 18, 3168, 364, 619, 316, 3222, 67, 1098, 65, 364, 1014, 316, 4606, 30, 309, 1014, 486, 316, 1319, 2284, 30, 1324, 364, 1084, 316, 5550, 30, 25326, 18, 8837, 2932, 6460, 4571, 738, 87, 4852, 738, 87, 273, 26510, 87, 6, 738, 261, 2121, 16, 645, 67, 3168, 3631, 261, 3168, 16, 3719, 225, 1319, 2284, 273, 2065, 12443, 79, 16, 2065, 12, 90, 3719, 364, 261, 79, 16, 90, 13, 316, 1319, 2284, 18, 2165, 3319, 10756, 364, 425, 316, 3222, 67, 1098, 30, 775, 30, 1319, 6842, 273, 1319, 2284, 63, 73, 18, 2121, 65, 1335, 4999, 30, 1342, 468, 3555, 364, 2319, 18, 225, 596, 6842, 273, 306, 1293, 67, 3168, 65, 596, 2372, 273, 306, 73, 18, 3168, 65, 645, 15156, 273, 444, 1435, 364, 18290, 16, 276, 1132, 316, 425, 18, 2372, 30, 18290, 273, 18290, 225, 468, 971, 326, 2168, 2780, 506, 4041, 316, 326, 783, 938, 16, 2727, 1404, 18, 309, 18290, 486, 316, 1319, 6842, 30, 1324, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 8219, 12, 8219, 67, 1098, 16, 1319, 2284, 16, 1487, 4672, 3536, 16803, 279, 666, 434, 3222, 358, 506, 4041, 16, 775, 358, 1707, 487, 9816, 501, 487, 3323, 316, 326, 864, 2063, 938, 12123, 225, 2907, 18, 1376, 2932, 225, 1372, 3640, 1382, 1592, 501, 7923, 225, 468, 10895, 326, 1592, 501, 628, 333, 1668, 628, 326, 2416, 4606, 18, 4606, 273, 306, 92, 18, 2121, 364, 619, 316, 3222, 67, 1098, 65, 5550, 273, 306, 92, 18, 3168, 364, 619, 316, 3222, 67, 1098, 65, 364, 1014, 316, 4606, 30, 309, 1014, 486, 316, 1319, 2284, 30, 1324, 364, 1084, 316, 5550, 30, 25326, 18, 8837, 2932, 6460, 4571, 738, 87, 4852, 738, 87, 2 ]
errors.ECODE_INVAL) if (self.op.disk_template == constants.DT_FILE and not constants.ENABLE_FILE_STORAGE): raise errors.OpPrereqError("File storage disabled at configure time",
def CheckArguments(self): """Check arguments.
f276c4b5558338ba7832b5a92b822f0695a5ac6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/f276c4b5558338ba7832b5a92b822f0695a5ac6c/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4628, 12, 2890, 4672, 3536, 1564, 1775, 18, 2, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4628, 12, 2890, 4672, 3536, 1564, 1775, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
args += self._get_override("-m", "umask")
args += self._get_override("-m", "umask", oct(self.options.umask))
def do_start(self, arg): self.get_status() if not self.zd_up: args = [ self.options.python, self.options.zdrun, ] args += self._get_override("-S", "schemafile") args += self._get_override("-C", "configfile") args += self._get_override("-b", "backofflimit") args += self._get_override("-d", "daemon", flag=1) args += self._get_override("-f", "forever", flag=1) args += self._get_override("-s", "sockname") args += self._get_override("-u", "user") args += self._get_override("-m", "umask") args += self._get_override( "-x", "exitcodes", ",".join(map(str, self.options.exitcodes))) args += self._get_override("-z", "directory") args.extend(self.options.program) if self.options.daemon: flag = os.P_NOWAIT else: flag = os.P_WAIT os.spawnvp(flag, args[0], args) elif not self.zd_pid: self.send_action("start") else: print "daemon process already running; pid=%d" % self.zd_pid return self.awhile(lambda: self.zd_pid, "daemon process started, pid=%(zd_pid)d")
52e69f62a5d47c310d30f1e170a193e0aa2ed30c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/52e69f62a5d47c310d30f1e170a193e0aa2ed30c/zdctl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1937, 12, 2890, 16, 1501, 4672, 365, 18, 588, 67, 2327, 1435, 309, 486, 365, 18, 94, 72, 67, 416, 30, 833, 273, 306, 365, 18, 2116, 18, 8103, 16, 365, 18, 2116, 18, 94, 72, 2681, 16, 308, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 55, 3113, 315, 4821, 768, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 39, 3113, 315, 1425, 768, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 70, 3113, 315, 823, 792, 2242, 1038, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 72, 3113, 315, 21511, 3113, 2982, 33, 21, 13, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 74, 3113, 315, 1405, 502, 3113, 2982, 33, 21, 13, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 87, 3113, 315, 15031, 529, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 89, 3113, 315, 1355, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 81, 3113, 315, 379, 835, 3113, 10844, 12, 2890, 18, 2116, 18, 379, 835, 3719, 833, 1011, 365, 6315, 588, 67, 10601, 12, 3701, 92, 3113, 315, 8593, 7000, 3113, 5753, 18, 5701, 12, 1458, 12, 701, 16, 365, 18, 2116, 18, 8593, 7000, 20349, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 94, 3113, 315, 5149, 7923, 833, 18, 14313, 12, 2890, 18, 2116, 18, 12890, 13, 309, 365, 18, 2116, 18, 21511, 30, 2982, 273, 1140, 18, 52, 67, 3417, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1937, 12, 2890, 16, 1501, 4672, 365, 18, 588, 67, 2327, 1435, 309, 486, 365, 18, 94, 72, 67, 416, 30, 833, 273, 306, 365, 18, 2116, 18, 8103, 16, 365, 18, 2116, 18, 94, 72, 2681, 16, 308, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 55, 3113, 315, 4821, 768, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 39, 3113, 315, 1425, 768, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 70, 3113, 315, 823, 792, 2242, 1038, 7923, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 72, 3113, 315, 21511, 3113, 2982, 33, 21, 13, 833, 1011, 365, 6315, 588, 67, 10601, 2932, 17, 74, 3113, 315, 2 ]
this = apply(_quickfix.new_CreditRating, args)
this = _quickfix.new_CreditRating(*args)
def __init__(self, *args): this = apply(_quickfix.new_CreditRating, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 16520, 20388, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 16520, 20388, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
array([[ 0.], [ 1.]])
array([[ 0., 0., 0.], [ 1., 1., 1.]])
def meshgrid(x=None, y=None, z=None, sparse=False, indexing='xy', memoryorder=None): """ Extension of numpy.meshgrid to 1D, 2D and 3D problems. This extended version makes 1D/2D/3D coordinate arrays for vectorized evaluations of 1D/2D/3D scalar/vector fields over 1D/2D/3D grids, given one-dimensional coordinate arrays x, y, and/or, z. >>> x=linspace(0,1,3) # coordinates along x axis >>> y=linspace(0,1,2) # coordinates along y axis >>> xv, yv = meshgrid(x,y) # extend x and y for a 2D xy grid >>> xv array([[ 0. , 0.5, 1. ]]) >>> yv array([[ 0.], [ 1.]]) >>> xv, yv = meshgrid(x,y, sparse=True) # make sparse output arrays >>> xv array([[ 0. , 0.5, 1. ]]) >>> yv array([[ 0.], [ 1.]]) >>> # 2D slice of a 3D grid, with z=const: >>> z=5 >>> xv, yv, zc = meshgrid(x,y,z) >>> xv array([[ 0. , 0.5, 1. ]]) >>> yv array([[ 0.], [ 1.]]) >>> zc 5 >>> # 2D slice of a 3D grid, with x=const: >>> meshgrid(2,y,x) (2, array([[ 0., 1.]]), array([[ 0. ], [ 0.5], [ 1. ]])) >>> meshgrid(0,1,5, sparse=True) # just a 3D point (0, 1, 5) >>> meshgrid(y) # 1D grid; y is just returned array([ 0., 1.]) >>> meshgrid(x,y, indexing='ij') # change to matrix indexing (array([[ 0. ], [ 0.5], [ 1. ]]), array([[ 0., 1.]])) Why does SciTools has its own meshgrid function when NumPy has three similar functions, `mgrid`, `ogrid`, and `meshgrid`? The `meshgrid` function in NumPy is limited to two dimensions only, while the SciTools version can also work with 3D and 1D grids. In addition, the NumPy version of `meshgrid` has no option for generating sparse grids to conserve memory, like we have in SciTools by specifying the `sparse` argument: The NumPy functions `mgrid` and `ogrid` does provide support for, respectively, full and sparse n-dimensional meshgrids, however, these functions uses slices to generate the meshgrids rather than one-dimensional coordinate arrays such as in Matlab. With slices, the user does not have the option to generate meshgrid with, e.g., irregular spacings, like >>> x = array([-1,-0.5,1,4,5], float) >>> y = array([0,-2,-5], float) >>> xv, yv = meshgrid(x, y, sparse=False) >>> xv array([[-1. , -0.5, 1. , 4. , 5. ], [-1. , -0.5, 1. , 4. , 5. ], [-1. , -0.5, 1. , 4. , 5. ]]) >>> yv array([[ 0., 0., 0., 0., 0.], [-2., -2., -2., -2., -2.], [-5., -5., -5., -5., -5.]]) >>> In addition to the reasons mentioned above, the meshgrid function in NumPy supports only Cartesian indexing, i.e., x and y, not matrix indexing, i.e., rows and columns (`mgrid` and `ogrid` supports only matrix indexing). The `meshgrid` function in SciTools supports both indexing conventions through the `indexing` keyword argument. Giving the string `'ij'` returns a meshgrid with matrix indexing, while `'xy'` returns a meshgrid with Cartesian indexing. The difference is illustrated by the following code snippet:: nx = 10 ny = 15 x = linspace(-2,2,nx) y = linspace(-2,2,ny) xv, yv = meshgrid(x, y, sparse=False, indexing='ij') for i in range(nx): for j in range(ny): # treat xv[i,j], yv[i,j] xv, yv = meshgrid(x, y, sparse=False, indexing='xy') for i in range(nx): for j in range(ny): # treat xv[j,i], yv[j,i] It is not entirely true that matrix indexing is not supported by the `meshgrid` function in NumPy because we can just switch the order of the first two input and output arguments: >>> yv, xv = numpy.meshgrid(y, x) >>> # same as: >>> xv, yv = meshgrid(x, y, sparse=False, indexing='ij') However, we think it is clearer to have the logical "x, y" sequence on the left-hand side and instead adjust a keyword argument. """ import types def fixed(coor): return isinstance(coor, (float, complex, int, types.NoneType)) if not fixed(x): x = asarray(x) if not fixed(y): y = asarray(y) if not fixed(z): z = asarray(z) def arr1D(coor): try: if len(coor.shape) == 1: return True else: return False except AttributeError: return False # if two of the arguments are fixed, we have a 1D grid, and # the third argument can be reused as is: if arr1D(x) and fixed(y) and fixed(z): return x if fixed(x) and arr1D(y) and fixed(z): return y if fixed(x) and fixed(y) and arr1D(z): return z # if x,y,z are identical, make copies: try: if y is x: y = x.copy() if z is x: z = x.copy() if z is y: z = y.copy() except AttributeError: # x, y, or z not NumPy array pass if memoryorder is not None: import warnings msg = "Keyword argument 'memoryorder' is deprecated and will be " \ "removed in the future. Please use the 'indexing' keyword " \ "argument instead." warnings.warn(msg, DeprecationWarning) if memoryorder == 'xyz': indexing = 'ij' else: indexing = 'xy' # If the keyword argument sparse is set to False, the full N-D matrix # (not only the 1-D vector) should be returned. The mult_fact variable # should then be updated as necessary. mult_fact = 1 # if only one argument is fixed, we have a 2D grid: if arr1D(x) and arr1D(y) and fixed(z): if indexing == 'ij': if not sparse: mult_fact = ones((len(x),len(y))) if z is None: return x[:,newaxis]*mult_fact, y[newaxis,:]*mult_fact else: return x[:,newaxis]*mult_fact, y[newaxis,:]*mult_fact, z else: if not sparse: mult_fact = ones((len(y),len(x))) if z is None: return x[newaxis,:]*mult_fact, y[:,newaxis]*mult_fact else: return x[newaxis,:]*mult_fact, y[:,newaxis]*mult_fact, z if arr1D(x) and fixed(y) and arr1D(z): if indexing == 'ij': if not sparse: mult_fact = ones((len(x),len(z))) if y is None: return x[:,newaxis]*mult_fact, z[newaxis,:]*mult_fact else: return x[:,newaxis]*mult_fact, y, z[newaxis,:]*mult_fact else: if not sparse: mult_fact = ones((len(z),len(x))) if y is None: return x[newaxis,:]*mult_fact, z[:,newaxis]*mult_fact else: return x[newaxis,:]*mult_fact, y, z[:,newaxis]*mult_fact if fixed(x) and arr1D(y) and arr1D(z): if indexing == 'ij': if not sparse: mult_fact = ones((len(y),len(z))) if x is None: return y[:,newaxis]*mult_fact, z[newaxis,:]*mult_fact else: return x, y[:,newaxis]*mult_fact, z[newaxis,:]*mult_fact else: if not sparse: mult_fact = ones((len(z),len(y))) if x is None: return y[newaxis,:]*mult_fact, z[:,newaxis]*mult_fact else: return x, y[newaxis,:]*mult_fact, z[:,newaxis]*mult_fact # or maybe we have a full 3D grid: if arr1D(x) and arr1D(y) and arr1D(z): if indexing == 'ij': if not sparse: mult_fact = ones((len(x),len(y),len(z))) return x[:,newaxis,newaxis]*mult_fact, \ y[newaxis,:,newaxis]*mult_fact, \ z[newaxis,newaxis,:]*mult_fact else: if not sparse: mult_fact = ones((len(y),len(x),len(z))) return x[newaxis,:,newaxis]*mult_fact, \ y[:,newaxis,newaxis]*mult_fact, \ z[newaxis,newaxis,:]*mult_fact # at this stage we assume that we just have scalars: l = [] if x is not None: l.append(x) if y is not None: l.append(y) if z is not None: l.append(z) if len(l) == 1: return l[0] else: return tuple(l)
f31a5becba7083fdfe0984037ade3202bc54bbd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4727/f31a5becba7083fdfe0984037ade3202bc54bbd3/numpyutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6986, 5222, 12, 92, 33, 7036, 16, 677, 33, 7036, 16, 998, 33, 7036, 16, 9387, 33, 8381, 16, 14403, 2218, 1698, 2187, 3778, 1019, 33, 7036, 4672, 3536, 10021, 434, 3972, 18, 15557, 5222, 358, 404, 40, 16, 576, 40, 471, 890, 40, 9688, 18, 225, 1220, 7021, 1177, 7297, 404, 40, 19, 22, 40, 19, 23, 40, 7799, 5352, 364, 3806, 1235, 3765, 1012, 434, 404, 40, 19, 22, 40, 19, 23, 40, 4981, 19, 7737, 1466, 1879, 404, 40, 19, 22, 40, 19, 23, 40, 3068, 87, 16, 864, 1245, 17, 31236, 7799, 5352, 619, 16, 677, 16, 471, 19, 280, 16, 998, 18, 225, 4080, 619, 33, 80, 15738, 12, 20, 16, 21, 16, 23, 13, 3639, 468, 5513, 7563, 619, 2654, 4080, 677, 33, 80, 15738, 12, 20, 16, 21, 16, 22, 13, 3639, 468, 5513, 7563, 677, 2654, 4080, 619, 90, 16, 677, 90, 273, 6986, 5222, 12, 92, 16, 93, 13, 282, 468, 2133, 619, 471, 677, 364, 279, 576, 40, 7668, 3068, 4080, 619, 90, 526, 3816, 63, 374, 18, 269, 225, 374, 18, 25, 16, 225, 404, 18, 308, 5717, 4080, 677, 90, 526, 3816, 63, 374, 12990, 225, 374, 12990, 225, 374, 18, 6487, 306, 404, 12990, 225, 404, 12990, 225, 404, 18, 65, 5717, 4080, 619, 90, 16, 677, 90, 273, 6986, 5222, 12, 92, 16, 93, 16, 9387, 33, 5510, 13, 225, 468, 1221, 9387, 876, 5352, 4080, 619, 90, 526, 3816, 63, 374, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6986, 5222, 12, 92, 33, 7036, 16, 677, 33, 7036, 16, 998, 33, 7036, 16, 9387, 33, 8381, 16, 14403, 2218, 1698, 2187, 3778, 1019, 33, 7036, 4672, 3536, 10021, 434, 3972, 18, 15557, 5222, 358, 404, 40, 16, 576, 40, 471, 890, 40, 9688, 18, 225, 1220, 7021, 1177, 7297, 404, 40, 19, 22, 40, 19, 23, 40, 7799, 5352, 364, 3806, 1235, 3765, 1012, 434, 404, 40, 19, 22, 40, 19, 23, 40, 4981, 19, 7737, 1466, 1879, 404, 40, 19, 22, 40, 19, 23, 40, 3068, 87, 16, 864, 1245, 17, 31236, 7799, 5352, 619, 16, 677, 16, 471, 19, 280, 16, 998, 18, 225, 4080, 619, 33, 80, 15738, 12, 20, 16, 21, 16, 2 ]
r %= q while self._gcf(r, q-1) != 1: r = (r+1) % q
def _getRelPrime(self, q): # We /dev/random instead of /dev/urandom. This was not a mistake; # we want the most random data available rand=open('/dev/random','r') b = self._bitLen(q)/8 + 1 r = 0L for i in range(b): r = r*256 + ord(rand.read(1)) rand.close() r %= q while self._gcf(r, q-1) != 1: r = (r+1) % q return r
9ced5edc8eec08d01186a8abf63c148ebda474ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9ced5edc8eec08d01186a8abf63c148ebda474ec/openpgpkey.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1971, 23327, 12, 2890, 16, 1043, 4672, 468, 1660, 342, 5206, 19, 9188, 3560, 434, 342, 5206, 19, 295, 2111, 18, 1220, 1703, 486, 279, 27228, 911, 31, 468, 732, 2545, 326, 4486, 2744, 501, 2319, 5605, 33, 3190, 2668, 19, 5206, 19, 9188, 17023, 86, 6134, 324, 273, 365, 6315, 3682, 2891, 12, 85, 13176, 28, 397, 404, 436, 273, 374, 48, 364, 277, 316, 1048, 12, 70, 4672, 436, 273, 436, 14, 5034, 397, 4642, 12, 7884, 18, 896, 12, 21, 3719, 5605, 18, 4412, 1435, 327, 436, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1971, 23327, 12, 2890, 16, 1043, 4672, 468, 1660, 342, 5206, 19, 9188, 3560, 434, 342, 5206, 19, 295, 2111, 18, 1220, 1703, 486, 279, 27228, 911, 31, 468, 732, 2545, 326, 4486, 2744, 501, 2319, 5605, 33, 3190, 2668, 19, 5206, 19, 9188, 17023, 86, 6134, 324, 273, 365, 6315, 3682, 2891, 12, 85, 13176, 28, 397, 404, 436, 273, 374, 48, 364, 277, 316, 1048, 12, 70, 4672, 436, 273, 436, 14, 5034, 397, 4642, 12, 7884, 18, 896, 12, 21, 3719, 5605, 18, 4412, 1435, 327, 436, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rdata = self.tryToResolveConflict(oid, oserial, serial, data) if rdata is None: raise POSException.ConflictError( oid=oid, serials=(oserial, serial), data=data) else: data = rdata
data=self.tryToResolveConflict(oid, oserial, serial, data) if not data: raise POSException.ConflictError(oid=oid, serials=(oserial, serial))
def store(self, oid, serial, data, version, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) if version: # we allow a version to be in use although we don't # support versions in the storage. LOG('TemporaryStorage', BLATHER, ('versions in use with TemporaryStorage although Temporary' 'Storage doesnt support versions'), ) self._lock_acquire() try: if self._index.has_key(oid): oserial=self._index[oid] if serial != oserial: rdata = self.tryToResolveConflict(oid, oserial, serial, data) if rdata is None: raise POSException.ConflictError( oid=oid, serials=(oserial, serial), data=data) else: data = rdata else: oserial = serial newserial=self._tid self._tmp.append((oid, data)) now = time.time() self._conflict_cache[(oid, newserial)] = data, now return serial == oserial and newserial or ResolvedSerial finally: self._lock_release()
33ced447062612703186f787c8e834a28792b067 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9663/33ced447062612703186f787c8e834a28792b067/TemporaryStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 12, 2890, 16, 7764, 16, 2734, 16, 501, 16, 1177, 16, 2492, 4672, 309, 2492, 353, 486, 365, 6315, 7958, 30, 1002, 12511, 503, 18, 3245, 3342, 668, 12, 2890, 16, 2492, 13, 309, 1177, 30, 468, 732, 1699, 279, 1177, 358, 506, 316, 999, 26347, 732, 2727, 1404, 468, 2865, 5244, 316, 326, 2502, 18, 2018, 2668, 11685, 3245, 2187, 19238, 3275, 654, 16, 7707, 10169, 316, 999, 598, 22791, 3245, 26347, 22791, 11, 296, 3245, 31272, 2865, 5244, 19899, 262, 365, 6315, 739, 67, 1077, 1039, 1435, 775, 30, 309, 365, 6315, 1615, 18, 5332, 67, 856, 12, 839, 4672, 320, 8818, 33, 2890, 6315, 1615, 63, 839, 65, 309, 2734, 480, 320, 8818, 30, 501, 33, 2890, 18, 698, 774, 8460, 10732, 12, 839, 16, 320, 8818, 16, 2734, 16, 501, 13, 309, 486, 501, 30, 1002, 12511, 503, 18, 10732, 668, 12, 839, 33, 839, 16, 2734, 87, 28657, 13164, 649, 16, 2734, 3719, 469, 30, 320, 8818, 273, 2734, 394, 8818, 33, 2890, 6315, 18081, 365, 6315, 5645, 18, 6923, 12443, 839, 16, 501, 3719, 2037, 273, 813, 18, 957, 1435, 365, 6315, 20340, 67, 2493, 63, 12, 839, 16, 394, 8818, 25887, 273, 501, 16, 2037, 327, 2734, 422, 320, 8818, 471, 394, 8818, 578, 22776, 6342, 3095, 30, 365, 6315, 739, 67, 9340, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 12, 2890, 16, 7764, 16, 2734, 16, 501, 16, 1177, 16, 2492, 4672, 309, 2492, 353, 486, 365, 6315, 7958, 30, 1002, 12511, 503, 18, 3245, 3342, 668, 12, 2890, 16, 2492, 13, 309, 1177, 30, 468, 732, 1699, 279, 1177, 358, 506, 316, 999, 26347, 732, 2727, 1404, 468, 2865, 5244, 316, 326, 2502, 18, 2018, 2668, 11685, 3245, 2187, 19238, 3275, 654, 16, 7707, 10169, 316, 999, 598, 22791, 3245, 26347, 22791, 11, 296, 3245, 31272, 2865, 5244, 19899, 262, 365, 6315, 739, 67, 1077, 1039, 1435, 775, 30, 309, 365, 6315, 1615, 18, 5332, 67, 856, 12, 839, 4672, 320, 8818, 33, 2890, 6315, 1615, 63, 839, 65, 309, 2734, 480, 320, 8818, 30, 2 ]
for i in range (len (start)):
for i in range(len(start)):
def linear_interp (start, end, pos, len): result = [] for i in range (len (start)): compstart = start[i] compend = end[i] pos = compstart + ((compend - compstart) * (float(pos) / float(len))) result.append (pos) return result
07d9044de24812334fbc0e0919fbef89c45b6f19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/07d9044de24812334fbc0e0919fbef89c45b6f19/shuffle-interpolate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9103, 67, 24940, 261, 1937, 16, 679, 16, 949, 16, 562, 4672, 563, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 1937, 3719, 30, 1161, 1937, 273, 787, 63, 77, 65, 1161, 409, 282, 273, 679, 63, 77, 65, 225, 949, 273, 1161, 1937, 397, 14015, 832, 1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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9103, 67, 24940, 261, 1937, 16, 679, 16, 949, 16, 562, 4672, 563, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 1937, 3719, 30, 1161, 1937, 273, 787, 63, 77, 65, 1161, 409, 282, 273, 679, 63, 77, 65, 225, 949, 273, 1161, 1937, 397, 14015, 832, 1302, 300, 1161, 1937, 13, 380, 261, 5659, 12, 917, 13, 342, 1431, 12, 1897, 20349, 563, 18, 6923, 261, 917, 13, 327, 563, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
extern int _QdRGB_Convert(PyObject *, RGBColorPtr *);
extern int _QdRGB_Convert(PyObject *, RGBColorPtr);
#ifdef USE_TOOLBOX_OBJECT_GLUE
256f5e7f97578368518da0e67325746bc170e172 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/256f5e7f97578368518da0e67325746bc170e172/qdsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 14988, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 14988, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._command_channel.send_exception(GreenletExit)
self._command_channel.send_exception(api.GreenletExit)
def stop(self): notification_center = NotificationCenter() notification_center.remove_observer(self, name='SystemIPAddressDidChange') notification_center.remove_observer(self, name='SystemDidWakeUpFromSleep') self._select_proc.kill() self._command_channel.send_exception(GreenletExit)
8f9c03b088a42fa0d31f53b4684bf8a1bc715366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/8f9c03b088a42fa0d31f53b4684bf8a1bc715366/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 508, 2218, 3163, 22507, 18250, 3043, 6134, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 508, 2218, 3163, 18250, 59, 911, 1211, 1265, 20768, 6134, 365, 6315, 4025, 67, 9381, 18, 16418, 1435, 365, 6315, 3076, 67, 4327, 18, 4661, 67, 4064, 12, 21453, 1810, 6767, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 508, 2218, 3163, 22507, 18250, 3043, 6134, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 508, 2218, 3163, 18250, 59, 911, 1211, 1265, 20768, 6134, 365, 6315, 4025, 67, 9381, 18, 16418, 1435, 365, 6315, 3076, 67, 4327, 18, 4661, 67, 4064, 12, 21453, 1810, 6767, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logger.warning('!!! Number of subjobs %s is larger than maximum allowed of %s - reducing to %s !!!', nrjobs, config['MaxJobsDQ2JobSplitter'], config['MaxJobsDQ2JobSplitter'] )
logger.warning('!!! Number of subjobs %s is larger than maximum allowed of %s - reducing to %s !!!', nrjob, config['MaxJobsDQ2JobSplitter'], config['MaxJobsDQ2JobSplitter'] )
def split(self,job):
d28657c9128d2b8e4a8d8a21e42486f4ee0fd956 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/d28657c9128d2b8e4a8d8a21e42486f4ee0fd956/DQ2JobSplitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
c.post(task['url'], data=body, content_type=task['headers']['Content-Type'])
c.post(task['url'], data=body, content_type=content_type)
def _Dynamic_Add(self, request, response): # TODO(slamm): Handle task errors taskqueue_stub.TaskQueueServiceStub._Dynamic_Add(self, request, response) for queue in self.GetQueues(): queue_name = queue['name'] for task in self.GetTasks(queue_name): headers = task['headers'] c = client.Client() if task['method'] == 'GET': try: # Only Django 1.1 or greater can handle a query string. url_parts = list(urlparse.urlsplit(task['url'])) query = url_parts[3] query_data = {} if query: query_data = dict( kv.split('=') for kv in url_parts[3].split('&')) url_parts[3] = '' url = urlparse.urlunsplit(url_parts) logging.info("Execute task immediately: GET %s, query=%s", url, query_data) c.get(url, query_data, content_type=headers['Content-Type']) except: import traceback error = traceback.format_exc() _log_error(error) raise elif task['method'] == 'POST': body = base64.b64decode(task['body']) logging.info("Execute task immediately: POST %s, body=%s", task['url'], body) c.post(task['url'], data=body, content_type=task['headers']['Content-Type']) else: raise NotImplementedError self.FlushQueue(queue_name)
2ede1b0ebbf0e3fbbe2671f34eadbb19116a4b5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5745/2ede1b0ebbf0e3fbbe2671f34eadbb19116a4b5e/gaeunit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9791, 67, 986, 12, 2890, 16, 590, 16, 766, 4672, 468, 2660, 12, 2069, 301, 81, 4672, 5004, 1562, 1334, 1562, 4000, 67, 12847, 18, 2174, 3183, 1179, 11974, 6315, 9791, 67, 986, 12, 2890, 16, 590, 16, 766, 13, 364, 2389, 316, 365, 18, 967, 17428, 13332, 2389, 67, 529, 273, 2389, 3292, 529, 3546, 364, 1562, 316, 365, 18, 967, 6685, 12, 4000, 67, 529, 4672, 1607, 273, 1562, 3292, 2485, 3546, 276, 273, 1004, 18, 1227, 1435, 309, 1562, 3292, 2039, 3546, 422, 296, 3264, 4278, 775, 30, 468, 5098, 18480, 404, 18, 21, 578, 6802, 848, 1640, 279, 843, 533, 18, 880, 67, 6019, 273, 666, 12, 718, 2670, 18, 718, 4939, 12, 4146, 3292, 718, 3546, 3719, 843, 273, 880, 67, 6019, 63, 23, 65, 843, 67, 892, 273, 2618, 309, 843, 30, 843, 67, 892, 273, 2065, 12, 6047, 18, 4939, 2668, 2218, 13, 364, 6047, 316, 880, 67, 6019, 63, 23, 8009, 4939, 2668, 26045, 3719, 880, 67, 6019, 63, 23, 65, 273, 875, 880, 273, 15185, 18, 718, 318, 4939, 12, 718, 67, 6019, 13, 2907, 18, 1376, 2932, 5289, 1562, 7636, 30, 4978, 738, 87, 16, 843, 5095, 87, 3113, 880, 16, 843, 67, 892, 13, 276, 18, 588, 12, 718, 16, 843, 67, 892, 16, 913, 67, 723, 33, 2485, 3292, 1350, 17, 559, 19486, 1335, 30, 1930, 10820, 555, 273, 10820, 18, 2139, 67, 10075, 1435, 389, 1330, 67, 1636, 12, 1636, 13, 1002, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9791, 67, 986, 12, 2890, 16, 590, 16, 766, 4672, 468, 2660, 12, 2069, 301, 81, 4672, 5004, 1562, 1334, 1562, 4000, 67, 12847, 18, 2174, 3183, 1179, 11974, 6315, 9791, 67, 986, 12, 2890, 16, 590, 16, 766, 13, 364, 2389, 316, 365, 18, 967, 17428, 13332, 2389, 67, 529, 273, 2389, 3292, 529, 3546, 364, 1562, 316, 365, 18, 967, 6685, 12, 4000, 67, 529, 4672, 1607, 273, 1562, 3292, 2485, 3546, 276, 273, 1004, 18, 1227, 1435, 309, 1562, 3292, 2039, 3546, 422, 296, 3264, 4278, 775, 30, 468, 5098, 18480, 404, 18, 21, 578, 6802, 848, 1640, 279, 843, 533, 18, 880, 67, 6019, 273, 666, 12, 718, 2670, 18, 718, 4939, 12, 2 ]
if cont_handler.__class__ != handler.ContentHandler:
if isinstance(cont_handler, Dispatch.Dispatcher): _do_dispatch_callback(s, 0, pos, taglist, cont_handler._start_table.get, cont_handler, cont_handler._save_stack, cont_handler._end_table.get, attrlookup) elif cont_handler.__class__ != handler.ContentHandler:
def _parse_elements(s, tagtable, cont_handler, debug_level, attrlookup): """parse the string with the tagtable and send the ContentHandler events Specifically, it sends the startElement, endElement and characters events but not startDocument and endDocument. """ if debug_level: import Generate Generate._position = 0 result, taglist, pos = TextTools.tag(s, tagtable, 0, len(s)) # Special case text for the base ContentHandler since I know that # object does nothing and I want to test the method call overhead. if cont_handler.__class__ != handler.ContentHandler: # Send any tags to the client (there can be some even if there _do_callback(s, 0, pos, taglist, cont_handler, attrlookup) if not result: if debug_level: return ParserPositionException(Generate._position) else: return ParserPositionException(pos) elif pos != len(s): return pos else: return None
56b20d647994dd441c270b4348b094087b4671ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/56b20d647994dd441c270b4348b094087b4671ea/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 6274, 12, 87, 16, 1047, 2121, 16, 466, 67, 4176, 16, 1198, 67, 2815, 16, 1604, 8664, 4672, 3536, 2670, 326, 533, 598, 326, 1047, 2121, 471, 1366, 326, 3697, 1503, 2641, 225, 23043, 1230, 16, 518, 9573, 326, 13591, 16, 14840, 471, 3949, 2641, 1496, 486, 787, 2519, 471, 679, 2519, 18, 3536, 309, 1198, 67, 2815, 30, 1930, 6654, 6654, 6315, 3276, 273, 374, 225, 563, 16, 1047, 1098, 16, 949, 273, 3867, 10348, 18, 2692, 12, 87, 16, 1047, 2121, 16, 374, 16, 562, 12, 87, 3719, 225, 468, 13409, 648, 977, 364, 326, 1026, 3697, 1503, 3241, 467, 5055, 716, 468, 733, 1552, 5083, 471, 467, 2545, 358, 1842, 326, 707, 745, 23188, 18, 309, 1549, 12, 1213, 67, 4176, 16, 11552, 18, 6681, 4672, 389, 2896, 67, 10739, 67, 3394, 12, 87, 16, 374, 16, 949, 16, 1047, 1098, 16, 466, 67, 4176, 6315, 1937, 67, 2121, 18, 588, 16, 466, 67, 4176, 16, 466, 67, 4176, 6315, 5688, 67, 3772, 16, 466, 67, 4176, 6315, 409, 67, 2121, 18, 588, 16, 1604, 8664, 13, 1327, 466, 67, 4176, 16186, 1106, 972, 480, 1838, 18, 1350, 1503, 30, 468, 2479, 1281, 2342, 358, 326, 1004, 261, 18664, 848, 506, 2690, 5456, 309, 1915, 389, 2896, 67, 3394, 12, 87, 16, 374, 16, 949, 16, 1047, 1098, 16, 466, 67, 4176, 16, 1604, 8664, 13, 225, 309, 486, 563, 30, 309, 1198, 67, 2815, 30, 327, 6783, 2555, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 6274, 12, 87, 16, 1047, 2121, 16, 466, 67, 4176, 16, 1198, 67, 2815, 16, 1604, 8664, 4672, 3536, 2670, 326, 533, 598, 326, 1047, 2121, 471, 1366, 326, 3697, 1503, 2641, 225, 23043, 1230, 16, 518, 9573, 326, 13591, 16, 14840, 471, 3949, 2641, 1496, 486, 787, 2519, 471, 679, 2519, 18, 3536, 309, 1198, 67, 2815, 30, 1930, 6654, 6654, 6315, 3276, 273, 374, 225, 563, 16, 1047, 1098, 16, 949, 273, 3867, 10348, 18, 2692, 12, 87, 16, 1047, 2121, 16, 374, 16, 562, 12, 87, 3719, 225, 468, 13409, 648, 977, 364, 326, 1026, 3697, 1503, 3241, 467, 5055, 716, 468, 733, 1552, 5083, 471, 467, 2545, 358, 1842, 326, 707, 2 ]
if (numlocales == 0 or (os.getenv('CHPL_COMM')=='none')):
if (os.getenv('CHPL_COMM', 'none')=='none'):
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
469a09fcb4fe6f256fa57e8e16e691db1d278b44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/469a09fcb4fe6f256fa57e8e16e691db1d278b44/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679, 67, 957, 273, 2037, 397, 2021, 468, 8492, 518, 279, 12720, 813, 1323, 679, 67, 957, 405, 2037, 30, 309, 293, 18, 13835, 13332, 327, 2037, 273, 813, 18, 957, 1435, 468, 999, 326, 5446, 366,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679, 67, 957, 273, 2037, 397, 2021, 468, 8492, 518, 279, 12720, 813, 1323, 679, 67, 957, 405, 2037, 30, 309, 293, 18, 13835, 13332, 327, 2037, 273, 813, 18, 957, 1435, 468, 999, 326, 5446, 366, 301, 6592, 261, 464, 2727, 1404, 23440, 7336, 13, 6652, 18, 52, 3190, 12, 3292, 16418, 17023, 17, 29, 2187, 609, 12, 84, 18, 6610, 13, 5717, 327, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(memio.readlines(15), [buf] * 2)
self.assertEqual(memio.readlines(15L), [buf] * 2)
def test_readlines(self): buf = self.buftype("1234567890\n") memio = self.ioclass(buf * 10)
7daf686e5bf7bf4619c65c9621961cb29f316de0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/7daf686e5bf7bf4619c65c9621961cb29f316de0/test_memoryio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 3548, 12, 2890, 4672, 1681, 273, 365, 18, 4385, 723, 2932, 28462, 20277, 20, 64, 82, 7923, 1663, 1594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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 3548, 12, 2890, 4672, 1681, 273, 365, 18, 4385, 723, 2932, 28462, 20277, 20, 64, 82, 7923, 1663, 1594, 273, 365, 18, 77, 504, 459, 12, 4385, 380, 1728, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"EPIPE", "ETIMEDOUT", "ECONNREFUSED", "ECONNRESET",
"EPIPE", "ETIMEDOUT", "WSAETIMEDOUT", "ECONNREFUSED", "WSAECONNREFUSED", "ECONNRESET", "WSAECONNRESET", "ECONNABORTED", "WSAECONNABORTED", "ENETRESET", "WSAENETRESET",
def plat_specific_errors(*errnames): """Return error numbers for all errors in errnames on this platform. The 'errno' module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. """ errno_names = dir(errno) nums = [getattr(errno, k) for k in errnames if k in errno_names] # de-dupe the list return dict.fromkeys(nums).keys()
e1abad5c9bb062a456870c5332102c618e85b7c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/e1abad5c9bb062a456870c5332102c618e85b7c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29838, 67, 12524, 67, 4324, 30857, 370, 1973, 4672, 3536, 990, 555, 5600, 364, 777, 1334, 316, 393, 1973, 603, 333, 4072, 18, 225, 1021, 296, 19088, 11, 1605, 1914, 3775, 2552, 6810, 8353, 603, 326, 2923, 4072, 261, 4618, 2934, 1220, 445, 903, 327, 326, 666, 434, 6389, 924, 364, 279, 864, 666, 434, 8555, 1257, 18, 3536, 8402, 67, 1973, 273, 1577, 12, 19088, 13, 21060, 273, 306, 588, 1747, 12, 19088, 16, 417, 13, 364, 417, 316, 393, 1973, 309, 417, 316, 8402, 67, 1973, 65, 468, 443, 17, 2544, 347, 326, 666, 327, 2065, 18, 2080, 2452, 12, 21180, 2934, 2452, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29838, 67, 12524, 67, 4324, 30857, 370, 1973, 4672, 3536, 990, 555, 5600, 364, 777, 1334, 316, 393, 1973, 603, 333, 4072, 18, 225, 1021, 296, 19088, 11, 1605, 1914, 3775, 2552, 6810, 8353, 603, 326, 2923, 4072, 261, 4618, 2934, 1220, 445, 903, 327, 326, 666, 434, 6389, 924, 364, 279, 864, 666, 434, 8555, 1257, 18, 3536, 8402, 67, 1973, 273, 1577, 12, 19088, 13, 21060, 273, 306, 588, 1747, 12, 19088, 16, 417, 13, 364, 417, 316, 393, 1973, 309, 417, 316, 8402, 67, 1973, 65, 468, 443, 17, 2544, 347, 326, 666, 327, 2065, 18, 2080, 2452, 12, 21180, 2934, 2452, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
drawsphere(black, self.c1, TubeRadius, level) if v2: drawcylinder(color2, self.a2pos, self.c2, TubeRadius) else: drawsphere(black, self.c2, TubeRadius, level)
drawsphere(black, c2, TubeRadius, level)
via dispdef from the calling molecule -- this might cause bugs if some
8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3970, 16232, 536, 628, 326, 4440, 13661, 1493, 333, 4825, 4620, 22398, 309, 2690, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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2690, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
])
])
def IfFrameWork(name, packages, extensions, headername=None): """ Return the packages and extensions if the framework exists, or two empty lists if not. """
c7327c87d5a2f44301555206c46d8ef6ed97cf84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/c7327c87d5a2f44301555206c46d8ef6ed97cf84/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 971, 3219, 2421, 12, 529, 16, 5907, 16, 4418, 16, 1446, 529, 33, 7036, 4672, 3536, 2000, 326, 5907, 471, 4418, 309, 326, 8257, 1704, 16, 578, 2795, 1008, 6035, 309, 486, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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8585, 326, 22398, 316, 326, 981, 30, 1652, 971, 3219, 2421, 12, 529, 16, 5907, 16, 4418, 16, 1446, 529, 33, 7036, 4672, 3536, 2000, 326, 5907, 471, 4418, 309, 326, 8257, 1704, 16, 578, 2795, 1008, 6035, 309, 486, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.+?)(>\s*(?P<nick2>\S+))?$"
r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.*?)(>\s*(?P<nick2>\S+).*)?$"
def showfactoid(self, irc, msg, match): r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.+?)(>\s*(?P<nick2>\S+))?$" withnick = bool(match.group(1)) and msg.args[1].startswith('ubotu') db = self._precheck(irc, msg, withnick=True, timeout=(msg.args[0], match.group('nick'), match.group('factoid'), match.group('nick2'))) if not db: return to = channel = msg.args[0] if channel[0] != '#': to = msg.nick cur = db.cursor() retmsg = '' noalias = match.group('noalias') factoid = match.group('factoid').lower().strip() if ' is ' in match.group(0) or \ '=~' in match.group(0) or \ '<sed>' in match.group(0) or \ factoid.startswith('forget ') or \ factoid.startswith('info ') or \ factoid.startswith('find ') or \ factoid.startswith('search ') or \ factoid.startswith('seen'): return
01f443b02020754b77ae2d59e7040a244cbd5b7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3105/01f443b02020754b77ae2d59e7040a244cbd5b7c/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3493, 839, 12, 2890, 16, 277, 1310, 16, 1234, 16, 845, 4672, 436, 6, 29020, 5, 96, 5, 35, 373, 352, 89, 64, 55, 10936, 87, 9945, 3680, 52, 32, 2135, 4930, 34, 17, 9945, 64, 87, 21556, 88, 1165, 64, 87, 15, 3680, 52, 32, 17091, 5333, 55, 14456, 87, 15, 21071, 64, 87, 31423, 3680, 52, 32, 3493, 839, 5333, 55, 4509, 8535, 12, 5333, 87, 14, 3680, 52, 32, 17091, 22, 5333, 55, 15, 31376, 9945, 12911, 598, 17091, 273, 1426, 12, 1916, 18, 1655, 12, 21, 3719, 471, 1234, 18, 1968, 63, 21, 8009, 17514, 1918, 2668, 373, 352, 89, 6134, 1319, 273, 365, 6315, 1484, 1893, 12, 481, 71, 16, 1234, 16, 598, 17091, 33, 5510, 16, 2021, 28657, 3576, 18, 1968, 63, 20, 6487, 845, 18, 1655, 2668, 17091, 19899, 845, 18, 1655, 2668, 3493, 839, 19899, 845, 18, 1655, 2668, 17091, 22, 11, 20349, 309, 486, 1319, 30, 327, 358, 273, 1904, 273, 1234, 18, 1968, 63, 20, 65, 309, 1904, 63, 20, 65, 480, 2946, 4278, 358, 273, 1234, 18, 17091, 662, 273, 1319, 18, 9216, 1435, 325, 3576, 273, 875, 225, 1158, 4930, 273, 845, 18, 1655, 2668, 2135, 4930, 6134, 5410, 839, 273, 845, 18, 1655, 2668, 3493, 839, 16063, 8167, 7675, 6406, 1435, 309, 296, 353, 296, 316, 845, 18, 1655, 12, 20, 13, 578, 521, 15196, 20206, 316, 845, 18, 1655, 12, 20, 13, 578, 521, 2368, 730, 1870, 316, 845, 18, 1655, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3493, 839, 12, 2890, 16, 277, 1310, 16, 1234, 16, 845, 4672, 436, 6, 29020, 5, 96, 5, 35, 373, 352, 89, 64, 55, 10936, 87, 9945, 3680, 52, 32, 2135, 4930, 34, 17, 9945, 64, 87, 21556, 88, 1165, 64, 87, 15, 3680, 52, 32, 17091, 5333, 55, 14456, 87, 15, 21071, 64, 87, 31423, 3680, 52, 32, 3493, 839, 5333, 55, 4509, 8535, 12, 5333, 87, 14, 3680, 52, 32, 17091, 22, 5333, 55, 15, 31376, 9945, 12911, 598, 17091, 273, 1426, 12, 1916, 18, 1655, 12, 21, 3719, 471, 1234, 18, 1968, 63, 21, 8009, 17514, 1918, 2668, 373, 352, 89, 6134, 1319, 273, 365, 6315, 1484, 1893, 12, 481, 71, 16, 1234, 16, 2 ]
ns3.CsmaHelper.EnablePcap("mixed-wireless", appSink.GetId(), 0, False)
csma = ns3.CsmaHelper() csma.EnablePcapAll("mixed-wireless", False)
def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplication::PacketSize", ns3.StringValue("210")) ns3.Config.SetDefault("ns3::OnOffApplication::DataRate", ns3.StringValue("448kb/s")) # # For convenience, we add the local variables to the command line argument # system so that they can be overridden with flags such as # "--backboneNodes=20" # cmd = ns3.CommandLine() #cmd.AddValue("backboneNodes", "number of backbone nodes", backboneNodes) #cmd.AddValue("infraNodes", "number of leaf nodes", infraNodes) #cmd.AddValue("lanNodes", "number of LAN nodes", lanNodes) #cmd.AddValue("stopTime", "simulation stop time(seconds)", stopTime) # # The system global variables and the local values added to the argument # system can be overridden by command line arguments by using this call. # cmd.Parse(argv) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the backbone # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # Create a container to manage the nodes of the adhoc(backbone) network. # Later we'll create the rest of the nodes we'll need. # backbone = ns3.NodeContainer() backbone.Create(backboneNodes) # # Create the backbone wifi net devices and install them into the nodes in # our container # wifi = ns3.WifiHelper() mac = ns3.NqosWifiMacHelper.Default() mac.SetType("ns3::AdhocWifiMac") wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode", ns3.StringValue("wifia-54mbs")) wifiPhy = ns3.YansWifiPhyHelper.Default() wifiChannel = ns3.YansWifiChannelHelper.Default() wifiPhy.SetChannel(wifiChannel.Create()) backboneDevices = wifi.Install(wifiPhy, mac, backbone) # # Add the IPv4 protocol stack to the nodes in our container # print "Enabling OLSR routing on all backbone nodes" internet = ns3.InternetStackHelper() olsr = ns3.OlsrHelper() internet.SetRoutingHelper(olsr); internet.Install(backbone); # re-initialize for non-olsr routing. internet.Reset() # # Assign IPv4 addresses to the device drivers(actually to the associated # IPv4 interfaces) we just created. # ipAddrs = ns3.Ipv4AddressHelper() ipAddrs.SetBase(ns3.Ipv4Address("192.168.0.0"), ns3.Ipv4Mask("255.255.255.0")) ipAddrs.Assign(backboneDevices) # # The ad-hoc network nodes need a mobility model so we aggregate one to # each of the nodes we just finished building. # mobility = ns3.MobilityHelper() positionAlloc = ns3.ListPositionAllocator() x = 0.0 for i in range(backboneNodes): positionAlloc.Add(ns3.Vector(x, 0.0, 0.0)) x += 5.0 mobility.SetPositionAllocator(positionAlloc) mobility.SetMobilityModel("ns3::RandomDirection2dMobilityModel", "Bounds", ns3.RectangleValue(ns3.Rectangle(0, 1000, 0, 1000)), "Speed", ns3.RandomVariableValue(ns3.ConstantVariable(2000)), "Pause", ns3.RandomVariableValue(ns3.ConstantVariable(0.2))) mobility.Install(backbone) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the LANs # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Reset the address base-- all of the CSMA networks will be in # the "172.16 address space ipAddrs.SetBase(ns3.Ipv4Address("172.16.0.0"), ns3.Ipv4Mask("255.255.255.0")) for i in range(backboneNodes): print "Configuring local area network for backbone node ", i # # Create a container to manage the nodes of the LAN. We need # two containers here; one with all of the new nodes, and one # with all of the nodes including new and existing nodes # newLanNodes = ns3.NodeContainer() newLanNodes.Create(lanNodes - 1) # Now, create the container with all nodes on this link lan = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newLanNodes) # # Create the CSMA net devices and install them into the nodes in our # collection. # csma = ns3.CsmaHelper() csma.SetChannelAttribute("DataRate", ns3.DataRateValue(ns3.DataRate(5000000))) csma.SetChannelAttribute("Delay", ns3.TimeValue(ns3.MilliSeconds(2))) lanDevices = csma.Install(lan) # # Add the IPv4 protocol stack to the new LAN nodes # internet.Install(newLanNodes) # # Assign IPv4 addresses to the device drivers(actually to the # associated IPv4 interfaces) we just created. # ipAddrs.Assign(lanDevices) # # Assign a new network prefix for the next LAN, according to the # network mask initialized above # ipAddrs.NewNetwork() # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the mobile networks # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Reset the address base-- all of the 802.11 networks will be in # the "10.0" address space ipAddrs.SetBase(ns3.Ipv4Address("10.0.0.0"), ns3.Ipv4Mask("255.255.255.0")) for i in range(backboneNodes): print "Configuring wireless network for backbone node ", i # # Create a container to manage the nodes of the LAN. We need # two containers here; one with all of the new nodes, and one # with all of the nodes including new and existing nodes # stas = ns3.NodeContainer() stas.Create(infraNodes - 1) # Now, create the container with all nodes on this link infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), stas) # # Create another ad hoc network and devices # ssid = ns3.Ssid('wifi-infra' + str(i)) wifiInfra = ns3.WifiHelper.Default() wifiPhy.SetChannel(wifiChannel.Create()) wifiInfra.SetRemoteStationManager('ns3::ArfWifiManager') macInfra = ns3.NqosWifiMacHelper.Default(); macInfra.SetType("ns3::NqstaWifiMac", "Ssid", ns3.SsidValue(ssid), "ActiveProbing", ns3.BooleanValue(False)) # setup stas staDevices = wifiInfra.Install(wifiPhy, macInfra, stas) # setup ap. macInfra.SetType("ns3::NqapWifiMac", "Ssid", ns3.SsidValue(ssid), "BeaconGeneration", ns3.BooleanValue(True), "BeaconInterval", ns3.TimeValue(ns3.Seconds(2.5))) apDevices = wifiInfra.Install(wifiPhy, macInfra, backbone.Get(i)) # Collect all of these new devices infraDevices = ns3.NetDeviceContainer(apDevices, staDevices) # Add the IPv4 protocol stack to the nodes in our container # internet.Install(stas) # # Assign IPv4 addresses to the device drivers(actually to the associated # IPv4 interfaces) we just created. # ipAddrs.Assign(infraDevices) # # Assign a new network prefix for each mobile network, according to # the network mask initialized above # ipAddrs.NewNetwork() # # The new wireless nodes need a mobility model so we aggregate one # to each of the nodes we just finished building. # subnetAlloc = ns3.ListPositionAllocator() for j in range(infra.GetN()): subnetAlloc.Add(ns3.Vector(0.0, j, 0.0)) mobility.PushReferenceMobilityModel(backbone.Get(i)) mobility.SetPositionAllocator(subnetAlloc) mobility.SetMobilityModel("ns3::RandomDirection2dMobilityModel", "Bounds", ns3.RectangleValue(ns3.Rectangle(-25, 25, -25, 25)), "Speed", ns3.RandomVariableValue(ns3.ConstantVariable(30)), "Pause", ns3.RandomVariableValue(ns3.ConstantVariable(0.4))) mobility.Install(infra) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Application configuration # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Create the OnOff application to send UDP datagrams of size # 210 bytes at a rate of 448 Kb/s, between two nodes print "Create Applications." port = 9 # Discard port(RFC 863) # Let's make sure that the user does not define too few LAN nodes # to make this example work. We need lanNodes >= 5 assert(lanNodes >= 5) appSource = ns3.NodeList.GetNode(11) appSink = ns3.NodeList.GetNode(13) remoteAddr = ns3.Ipv4Address("172.16.0.5") onoff = ns3.OnOffHelper("ns3::UdpSocketFactory", ns3.Address(ns3.InetSocketAddress(remoteAddr, port))) onoff.SetAttribute("OnTime", ns3.RandomVariableValue(ns3.ConstantVariable(1))) onoff.SetAttribute("OffTime", ns3.RandomVariableValue(ns3.ConstantVariable(0))) apps = onoff.Install(ns3.NodeContainer(appSource)) apps.Start(ns3.Seconds(3.0)) apps.Stop(ns3.Seconds(20.0)) # Create a packet sink to receive these packets sink = ns3.PacketSinkHelper("ns3::UdpSocketFactory", ns3.InetSocketAddress(ns3.Ipv4Address.GetAny(), port)) apps = sink.Install(ns3.NodeContainer(appSink)) apps.Start(ns3.Seconds(3.0)) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Tracing configuration # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / print "Configure Tracing." # # Let's set up some ns-2-like ascii traces, using another helper class # #std.ofstream ascii #ascii.open("mixed-wireless.tr") #WifiHelper.EnableAsciiAll(ascii) #CsmaHelper.EnableAsciiAll(ascii) print "(tracing not done for Python)" # Look at nodes 11, 13 only # WifiHelper.EnableAscii(ascii, 11, 0); # WifiHelper.EnableAscii(ascii, 13, 0); # Let's do a pcap trace on the backbone devices wifiPhy.EnablePcap("mixed-wireless", backboneDevices) # Let's additionally trace the application Sink, ifIndex 0 ns3.CsmaHelper.EnablePcap("mixed-wireless", appSink.GetId(), 0, False)
32b15e4e92b899f86e44dab3caaf207302c4b0cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11087/32b15e4e92b899f86e44dab3caaf207302c4b0cc/mixed-wireless.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 3205, 273, 1381, 328, 304, 3205, 273, 1381, 2132, 950, 273, 1728, 225, 468, 468, 225, 9587, 6234, 3467, 854, 14755, 444, 1024, 16, 1865, 1296, 980, 468, 225, 1775, 854, 2707, 18, 468, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 6667, 1225, 3113, 3153, 23, 18, 19733, 2932, 22, 2163, 6, 3719, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 751, 4727, 3113, 3153, 23, 18, 19733, 2932, 6334, 28, 8899, 19, 87, 6, 3719, 225, 468, 468, 225, 2457, 13553, 16, 732, 527, 326, 1191, 3152, 358, 326, 1296, 980, 1237, 468, 225, 2619, 1427, 716, 2898, 848, 506, 11000, 598, 2943, 4123, 487, 468, 225, 5238, 823, 19930, 3205, 33, 3462, 6, 468, 1797, 273, 3153, 23, 18, 21391, 1435, 468, 4172, 18, 986, 620, 2932, 823, 19930, 3205, 3113, 315, 2696, 434, 1473, 19930, 2199, 3113, 1473, 19930, 3205, 13, 468, 4172, 18, 986, 620, 2932, 10625, 354, 3205, 3113, 315, 2696, 434, 7839, 2199, 3113, 8286, 354, 3205, 13, 468, 4172, 18, 986, 620, 2932, 6115, 3205, 3113, 315, 2696, 434, 511, 1258, 2199, 3113, 328, 304, 3205, 13, 468, 4172, 18, 986, 620, 2932, 5681, 950, 3113, 315, 9812, 6234, 2132, 813, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 3205, 273, 1381, 328, 304, 3205, 273, 1381, 2132, 950, 273, 1728, 225, 468, 468, 225, 9587, 6234, 3467, 854, 14755, 444, 1024, 16, 1865, 1296, 980, 468, 225, 1775, 854, 2707, 18, 468, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 6667, 1225, 3113, 3153, 23, 18, 19733, 2932, 22, 2163, 6, 3719, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 751, 4727, 3113, 3153, 23, 18, 19733, 2932, 6334, 2 ]
methods=self.fields['paymentmethod'].choices,
methods=payment_choices,
def __init__(self, *args, **kwargs): try: cart = kwargs['cart'] del kwargs['cart'] except KeyError: cart = None try: order = kwargs['order'] del kwargs['order'] except KeyError: order = None super(forms.Form, self).__init__(*args, **kwargs) # Send a signal to perform additional filtering of available payment methods. # Receivers have cart/order passed in variables to check the contents and modify methods # list if neccessary. signals.payment_methods_query.send( PaymentMethodForm, methods=self.fields['paymentmethod'].choices, cart=cart, order=order ) if len(self.fields['paymentmethod'].choices) == 1: self.fields['paymentmethod'].widget = forms.HiddenInput(attrs={'value' : self.fields['paymentmethod'].choices[0][0]})
df0f3de832a94b27730d514b614678808aa9626f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/df0f3de832a94b27730d514b614678808aa9626f/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 7035, 273, 1205, 3292, 11848, 3546, 1464, 1205, 3292, 11848, 3546, 1335, 4999, 30, 7035, 273, 599, 775, 30, 1353, 273, 1205, 3292, 1019, 3546, 1464, 1205, 3292, 1019, 3546, 1335, 4999, 30, 1353, 273, 599, 2240, 12, 9741, 18, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 468, 2479, 279, 4277, 358, 3073, 3312, 11346, 434, 2319, 5184, 2590, 18, 468, 9797, 6760, 1240, 7035, 19, 1019, 2275, 316, 3152, 358, 866, 326, 2939, 471, 5612, 2590, 468, 666, 309, 290, 557, 614, 814, 18, 11505, 18, 9261, 67, 5163, 67, 2271, 18, 4661, 12, 12022, 1305, 1204, 16, 2590, 33, 9261, 67, 11937, 16, 7035, 33, 11848, 16, 1353, 33, 1019, 262, 309, 562, 12, 2890, 18, 2821, 3292, 9261, 2039, 29489, 11937, 13, 422, 404, 30, 365, 18, 2821, 3292, 9261, 2039, 29489, 6587, 273, 10138, 18, 9345, 1210, 12, 7039, 5899, 11, 1132, 11, 294, 365, 18, 2821, 3292, 9261, 2039, 29489, 11937, 63, 20, 6362, 20, 65, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 7035, 273, 1205, 3292, 11848, 3546, 1464, 1205, 3292, 11848, 3546, 1335, 4999, 30, 7035, 273, 599, 775, 30, 1353, 273, 1205, 3292, 1019, 3546, 1464, 1205, 3292, 1019, 3546, 1335, 4999, 30, 1353, 273, 599, 2240, 12, 9741, 18, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 468, 2479, 279, 4277, 358, 3073, 3312, 11346, 434, 2319, 5184, 2590, 18, 468, 9797, 6760, 1240, 7035, 19, 1019, 2275, 316, 3152, 358, 866, 326, 2939, 471, 5612, 2590, 468, 666, 309, 290, 557, 614, 814, 18, 11505, 18, 9261, 67, 5163, 67, 2271, 18, 4661, 12, 12022, 1305, 1204, 2 ]
MSRPSession.index += 1 self.index = MSRPSession.index
def __init__(self, session_manager, credentials, write_traffic, play_wav_func=None, sip=None, msrp=None): self.myman = session_manager self.credentials = credentials self.write_traffic = write_traffic self.play_wav_func = play_wav_func self.sip = sip if sip is not None: self.sip.call_on_disconnect(self._on_disconnect) self.msrp = msrp self.read_msrp_job = None if self.msrp is not None: self.start_read_msrp() MSRPSession.index += 1 self.index = MSRPSession.index
51579bc611dc683c1ea8cc0e9af01fccd4bf1852 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/51579bc611dc683c1ea8cc0e9af01fccd4bf1852/sip_im_session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 67, 4181, 16, 4448, 16, 1045, 67, 19231, 16, 6599, 67, 24801, 67, 644, 33, 7036, 16, 10341, 33, 7036, 16, 4086, 13832, 33, 7036, 4672, 365, 18, 81, 2942, 304, 273, 1339, 67, 4181, 365, 18, 11687, 273, 4448, 365, 18, 2626, 67, 19231, 273, 1045, 67, 19231, 365, 18, 1601, 67, 24801, 67, 644, 273, 6599, 67, 24801, 67, 644, 365, 18, 28477, 273, 10341, 309, 10341, 353, 486, 599, 30, 365, 18, 28477, 18, 1991, 67, 265, 67, 20177, 12, 2890, 6315, 265, 67, 20177, 13, 365, 18, 959, 13832, 273, 4086, 13832, 365, 18, 896, 67, 959, 13832, 67, 4688, 273, 599, 309, 365, 18, 959, 13832, 353, 486, 599, 30, 365, 18, 1937, 67, 896, 67, 959, 13832, 1435, 9238, 54, 52, 2157, 18, 1615, 1011, 404, 365, 18, 1615, 273, 9238, 54, 52, 2157, 18, 1615, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 365, 18, 81, 2942, 304, 273, 1339, 67, 4181, 365, 18, 11687, 273, 4448, 365, 18, 2626, 67, 19231, 273, 1045, 67, 19231, 365, 18, 1601, 67, 24801, 67, 644, 273, 6599, 67, 24801, 67, 644, 365, 18, 28477, 273, 10341, 309, 10341, 353, 486, 599, 30, 365, 18, 28477, 18, 1991, 67, 265, 67, 20177, 12, 2890, 6315, 265, 67, 20177, 13, 365, 18, 959, 13832, 273, 4086, 13832, 365, 18, 896, 67, 959, 13832, 67, 4688, 273, 599, 309, 365, 18, 959, 13832, 2 ]
login = account = password = None
login = '' account = password = None
# Look for a machine, default, or macdef top-level keyword
b34ef94d460ec0dcf8bdd12da8834bf097f826f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b34ef94d460ec0dcf8bdd12da8834bf097f826f6/netrc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 10176, 364, 279, 5228, 16, 805, 16, 578, 5318, 536, 1760, 17, 2815, 4932, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1760, 17, 2815, 4932, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
... form={'field.foo': u'&lt;h1&gt;&amp;copy;&lt;/h1&gt;'})
... form={'field.foo': u'<h1>&copy;</h1>'})
>>> def normalize(s):
2005e00d7910b62d32c087ca76cf1b24a20f990c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9530/2005e00d7910b62d32c087ca76cf1b24a20f990c/textwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 3883, 12, 87, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 3883, 12, 87, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: p = Tableau([[1, 4, 7], [2, 5], [3], [6]]) sage: q = Tableau([[1, 2, 5], [3, 6], [4], [7]])
sage: p = [[1, 4, 7], [2, 5], [3], [6]] sage: q = [[1, 2, 5], [3, 6], [4], [7]] sage: P = Tableau(p) sage: Q = Tableau(q)
def Permutation(l): """ Converts l to a permutation. INPUT: - an instance of Permutation_class, - list of integers, viewed as one-line permutation notation, - string, expressing the permutation in cycle notation, - list of tuples of integers, the permutation in cycle notation. - a PermutationGroupElement - a pair of two tableaux of the same shape, where the second one is standard. OUTPUT: - :class:`Permutation_class` object. EXAMPLES:: sage: Permutation([2,1]) [2, 1] sage: Permutation([2, 1, 4, 5, 3]) [2, 1, 4, 5, 3] sage: Permutation('(1,2)') [2, 1] sage: Permutation('(1,2)(3,4,5)') [2, 1, 4, 5, 3] sage: Permutation( ((1,2),(3,4,5)) ) [2, 1, 4, 5, 3] sage: Permutation( [(1,2),(3,4,5)] ) [2, 1, 4, 5, 3] sage: Permutation( ((1,2)) ) [2, 1] sage: Permutation( (1,2) ) [2, 1] sage: Permutation( ((1,2),) ) [2, 1] sage: p = Permutation((1, 2, 5)); p [2, 5, 3, 4, 1] sage: type(p) <class 'sage.combinat.permutation.Permutation_class'> Construction from a string in cycle notation :: sage: p = Permutation( '(4,5)' ); p [1, 2, 3, 5, 4] The length of the permutation is the maximum integer appearing; add a 1-cycle to increase this:: sage: p2 = Permutation( '(4,5)(10)' ); p2 [1, 2, 3, 5, 4, 6, 7, 8, 9, 10] sage: len(p); len(p2) 5 10 We construct a Permutation from a PermutationGroupElement:: sage: g = PermutationGroupElement([2,1,3]) sage: Permutation(g) [2, 1, 3] From a pair of tableaux of the same shape. This uses the inverse of Robinson Schensted algorithm:: sage: p = Tableau([[1, 4, 7], [2, 5], [3], [6]]) sage: q = Tableau([[1, 2, 5], [3, 6], [4], [7]]) sage: Permutation( (p, q) ) [3, 6, 5, 2, 7, 4, 1] TESTS:: sage: Permutation([()]) [1] sage: Permutation('()') [1] sage: Permutation(()) [1] """ if isinstance(l, Permutation_class): return l elif isinstance(l, PermutationGroupElement): l = l.list() #if l is a string, then assume it is in cycle notation elif isinstance(l, str): if l == "()": return from_cycles(1,[]) cycles = l.split(")(") cycles[0] = cycles[0][1:] cycles[-1] = cycles[-1][:-1] cycle_list = [] for c in cycles: cycle_list.append(map(int, c.split(","))) return from_cycles(max([max(c) for c in cycle_list]), cycle_list) #if l is a pair of tableaux elif isinstance(l, (tuple, list)) and len(l) == 2 and \ all(map(lambda x: isinstance(x, tableau.Tableau_class), l)): return robinson_schensted_inverse(*l) # if it's a tuple or nonempty list of tuples, also assume cycle # notation elif isinstance(l, tuple) or \ (isinstance(l, list) and len(l) > 0 and all(map(lambda x: isinstance(x, tuple), l))): if len(l) >= 1 and (isinstance(l[0],(int,Integer)) or len(l[0]) > 0): if isinstance(l[0], tuple): n = max( map(max, l) ) return from_cycles(n, map(list, l)) else: n = max(l) l = [list(l)] return from_cycles(n, l) elif len(l) <= 1: return Permutation([1]) else: raise ValueError, "cannot convert l (= %s) to a Permutation"%l # otherwise, it gets processed by CombinatorialObject's __init__. return Permutation_class(l)
bb47ab2a2c4bd9a71263ccdcacccf181a1408806 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/bb47ab2a2c4bd9a71263ccdcacccf181a1408806/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 12, 80, 4672, 3536, 20377, 328, 358, 279, 17440, 18, 225, 12943, 30, 282, 300, 225, 392, 791, 434, 13813, 9245, 67, 1106, 16, 225, 300, 225, 666, 434, 12321, 16, 1476, 329, 487, 1245, 17, 1369, 17440, 12155, 16, 225, 300, 225, 533, 16, 16947, 310, 326, 17440, 316, 8589, 12155, 16, 225, 300, 225, 666, 434, 10384, 434, 12321, 16, 326, 17440, 316, 8589, 12155, 18, 225, 300, 225, 279, 13813, 9245, 1114, 1046, 225, 300, 225, 279, 3082, 434, 2795, 1014, 18196, 434, 326, 1967, 2179, 16, 1625, 326, 2205, 1245, 353, 4529, 18, 282, 11550, 30, 225, 300, 294, 1106, 28288, 9123, 9245, 67, 1106, 68, 733, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 13813, 9245, 3816, 22, 16, 21, 5717, 306, 22, 16, 404, 65, 272, 410, 30, 13813, 9245, 3816, 22, 16, 404, 16, 1059, 16, 1381, 16, 890, 5717, 306, 22, 16, 404, 16, 1059, 16, 1381, 16, 890, 65, 272, 410, 30, 13813, 9245, 2668, 12, 21, 16, 22, 2506, 13, 306, 22, 16, 404, 65, 272, 410, 30, 13813, 9245, 2668, 12, 21, 16, 22, 21433, 23, 16, 24, 16, 25, 2506, 13, 306, 22, 16, 404, 16, 1059, 16, 1381, 16, 890, 65, 272, 410, 30, 13813, 9245, 12, 14015, 21, 16, 22, 3631, 12, 23, 16, 24, 16, 25, 3719, 262, 306, 22, 16, 404, 16, 1059, 16, 1381, 16, 890, 65, 272, 410, 30, 13813, 9245, 12, 306, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 12, 80, 4672, 3536, 20377, 328, 358, 279, 17440, 18, 225, 12943, 30, 282, 300, 225, 392, 791, 434, 13813, 9245, 67, 1106, 16, 225, 300, 225, 666, 434, 12321, 16, 1476, 329, 487, 1245, 17, 1369, 17440, 12155, 16, 225, 300, 225, 533, 16, 16947, 310, 326, 17440, 316, 8589, 12155, 16, 225, 300, 225, 666, 434, 10384, 434, 12321, 16, 326, 17440, 316, 8589, 12155, 18, 225, 300, 225, 279, 13813, 9245, 1114, 1046, 225, 300, 225, 279, 3082, 434, 2795, 1014, 18196, 434, 326, 1967, 2179, 16, 1625, 326, 2205, 1245, 353, 4529, 18, 282, 11550, 30, 225, 300, 294, 1106, 28288, 9123, 9245, 67, 1106, 68, 733, 18, 225, 5675, 8900, 11386, 2 ]
zip.writestr(os.path.join(parent_path, filename), f)
full_path = os.path.join(parent_path, filename) try: full_path = full_path.encode('ascii') except: try: full_path = full_path.decode('utf-8').encode('ascii') except: pass zip.writestr(full_path, f)
def get(self, obj, field, context=None, zip=None, parent_path=''): """ """ f = obj.Schema().getField(field).get(obj) if not f : return '' else: filename = f.filename if zip is not None: #logger.error(obj.Schema().getField(field).getType()) if obj.Schema().getField(field).getType() in \ ("plone.app.blob.subtypes.file.ExtensionBlobField", "Products.Archetypes.Field.FileField", 'Products.AttachmentField.AttachmentField.AttachmentField', "Products.Archetypes.Field.ImageField"):
7405b193fcff1eee7ce5c52a04579d29315bcb33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11226/7405b193fcff1eee7ce5c52a04579d29315bcb33/file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1081, 16, 652, 16, 819, 33, 7036, 16, 3144, 33, 7036, 16, 982, 67, 803, 2218, 11, 4672, 3536, 3536, 284, 273, 1081, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 12, 2603, 13, 309, 486, 284, 294, 327, 875, 469, 30, 1544, 273, 284, 18, 3459, 309, 3144, 353, 486, 599, 30, 468, 4901, 18, 1636, 12, 2603, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 559, 10756, 309, 1081, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 559, 1435, 316, 521, 7566, 412, 476, 18, 2910, 18, 10721, 18, 1717, 2352, 18, 768, 18, 3625, 9405, 974, 3113, 315, 13344, 18, 12269, 15180, 18, 974, 18, 812, 974, 3113, 296, 13344, 18, 6803, 974, 18, 6803, 974, 18, 6803, 974, 2187, 315, 13344, 18, 12269, 15180, 18, 974, 18, 2040, 974, 6, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1081, 16, 652, 16, 819, 33, 7036, 16, 3144, 33, 7036, 16, 982, 67, 803, 2218, 11, 4672, 3536, 3536, 284, 273, 1081, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 12, 2603, 13, 309, 486, 284, 294, 327, 875, 469, 30, 1544, 273, 284, 18, 3459, 309, 3144, 353, 486, 599, 30, 468, 4901, 18, 1636, 12, 2603, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 559, 10756, 309, 1081, 18, 3078, 7675, 588, 974, 12, 1518, 2934, 588, 559, 1435, 316, 521, 7566, 412, 476, 18, 2910, 18, 10721, 18, 1717, 2352, 18, 768, 18, 3625, 9405, 974, 3113, 315, 13344, 18, 12269, 15180, 18, 974, 18, 812, 974, 3113, 2 ]
upper = string.upper
def __init__(self, environ): UserDict.UserDict.__init__(self) data = self.data upper = string.upper for k, v in environ.items(): data[upper(k)] = v
1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5473, 4672, 2177, 5014, 18, 1299, 5014, 16186, 2738, 972, 12, 2890, 13, 501, 273, 365, 18, 892, 364, 417, 16, 331, 316, 5473, 18, 3319, 13332, 501, 63, 5797, 12, 79, 25887, 273, 331, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5473, 4672, 2177, 5014, 18, 1299, 5014, 16186, 2738, 972, 12, 2890, 13, 501, 273, 365, 18, 892, 364, 417, 16, 331, 316, 5473, 18, 3319, 13332, 501, 63, 5797, 12, 79, 25887, 273, 331, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
match_literal = re_literal.match (term) match_field = re_field.match (term) if match_literal: push (literal_generator (match_literal)) elif match_field: push (field_generator (match_field)) else: proc = compile_procedure (term) if proc: func = proc['func'] nargs = proc['nargs'] if (len (vals) < nargs): spec_die ("procedure '%s' expects %d arguments but only %d remain" % (term, nargs, len (vals))) args = pop (nargs) push (call_generator (func, args)) else: spec_die ("unknown procedure '%s'" % term) vals = [] push (null_generator)
re_choose ([(re_literal, handle_literal), (re_field, handle_field), (None, handle_procedure)], term)
def pop (n=1): vv = vals[0:n] del vals[0:n] return vv
3e14bb7d7160914c0dda910d1cfa09a05915f488 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/3e14bb7d7160914c0dda910d1cfa09a05915f488/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 261, 82, 33, 21, 4672, 13405, 273, 5773, 63, 20, 30,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 261, 82, 33, 21, 4672, 13405, 273, 5773, 63, 20, 30, 82, 65, 1464, 5773, 63, 20, 30, 82, 65, 327, 13405, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
missing_refs = [(key, value) for key, value in item.iteritems() if isinstance(value,basestring) and value.startswith('*')] self.log_error(sys.exc_info()[2], data, klass, item) if missing_refs: log.error('*'*80) log.error('It is very possible you are missing a reference, or require a "flush:" between blocks to store the references') log.error('here is a list of references that were not accessible (key, value): %s'%missing_refs) log.error('*'*80)
if hasattr(item, 'iteritems'): missing_refs = [(key, value) for key, value in item.iteritems() if isinstance(value,basestring) and value.startswith('*')] self.log_error(e, data, klass, item) if missing_refs: log.error('*'*80) log.error('It is very possible you are missing a reference, or require a "flush:" between blocks to store the references') log.error('here is a list of references that were not accessible (key, value): %s'%missing_refs) log.error('*'*80) else: self.log_error(e, data, klass, item)
def from_list(self, session, data): """ extract data from a list of groups in the form: [ { #start of the first grouping ObjectName:[ #start of objects of type ObjectName {'attribute':'value', 'attribute':'value' ... more attributes}, {'attribute':'value', 'attribute':'value' ... more attributes}, ... } ] ObjectName: [ ... more attr dicts here ... ] [commit:None] #optionally commit at the end of this grouping [flush:None] #optionally flush at the end of this grouping }, #end of first grouping { #start of the next grouping ... } #end of the next grouping ]
b8c5d226004179f266b64de11d011dcf37f7c357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5449/b8c5d226004179f266b64de11d011dcf37f7c357/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 1098, 12, 2890, 16, 1339, 16, 501, 4672, 3536, 2608, 501, 628, 279, 666, 434, 3252, 316, 326, 646, 30, 225, 306, 288, 468, 1937, 434, 326, 1122, 12116, 21013, 30, 63, 468, 1937, 434, 2184, 434, 618, 21013, 13666, 4589, 11, 2497, 1132, 2187, 296, 4589, 11, 2497, 1132, 11, 1372, 1898, 1677, 5779, 13666, 4589, 11, 2497, 1132, 2187, 296, 4589, 11, 2497, 1132, 11, 1372, 1898, 1677, 5779, 1372, 289, 308, 21013, 30, 306, 1372, 1898, 1604, 15838, 2674, 1372, 308, 306, 7371, 30, 7036, 65, 468, 3482, 1230, 3294, 622, 326, 679, 434, 333, 12116, 306, 11330, 30, 7036, 65, 225, 468, 3482, 1230, 3663, 622, 326, 679, 434, 333, 12116, 19879, 468, 409, 434, 1122, 12116, 288, 468, 1937, 434, 326, 1024, 12116, 1372, 289, 468, 409, 434, 326, 1024, 12116, 308, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 1098, 12, 2890, 16, 1339, 16, 501, 4672, 3536, 2608, 501, 628, 279, 666, 434, 3252, 316, 326, 646, 30, 225, 306, 288, 468, 1937, 434, 326, 1122, 12116, 21013, 30, 63, 468, 1937, 434, 2184, 434, 618, 21013, 13666, 4589, 11, 2497, 1132, 2187, 296, 4589, 11, 2497, 1132, 11, 1372, 1898, 1677, 5779, 13666, 4589, 11, 2497, 1132, 2187, 296, 4589, 11, 2497, 1132, 11, 1372, 1898, 1677, 5779, 1372, 289, 308, 21013, 30, 306, 1372, 1898, 1604, 15838, 2674, 1372, 308, 306, 7371, 30, 7036, 65, 468, 3482, 1230, 3294, 622, 326, 679, 434, 333, 12116, 306, 11330, 30, 7036, 65, 225, 468, 3482, 1230, 3663, 622, 326, 679, 434, 333, 12116, 19879, 2 ]
if not isinstance(prec, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(prec, (int, long)): prec = Integer(prec) if not isinstance(halt, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(halt, (int, long)): halt = Integer(halt)
def Qp(p, prec = 20, type = 'capped-rel', print_mode = None, halt = 40, names = None, check = True): """ A creation function for p-adic fields. INPUT: p -- integer: the p in Q_p prec -- integer (default: 20) the precision cap of the field. Individual elements keep track of their own precision. type -- string (default: 'capped-rel') see Notes print_mode -- string (default: None) the print mode OUTPUT: the corresponding p-adic field EXAMPLES: sage: K = Qp(5); a = K(4); a 4 + O(5^20) #sage: L = Qp(5, 10, type = 'lazy'); b = L(2); b #2 + O(5^10) #sage: a + b #1 + 5 + O(5^20) NOTES: values of type: 'capped-rel' -> pAdicFieldCappedRelative. This is the default, considers precision as the precision of the unit part. Tracks precision of individual elements, but bounds the precision of any element with a precision cap. 'lazy' -> pAdicFieldLazy. Uses lazy elements so that additional precision can be requested during a computation. There is some amount of performance penalty because of this ability. values of print_mode: Leaving print_mode as None uses the global default print mode. Other allowable values are: 'val-unit' -- elements are displayed as p^k*u 'terse' -- elements are displayed as an integer in base 10 or the quotient of an integer by a power of p (still in base 10) 'series' -- elements are displayed as series in p 'digits' -- elements are displayed as a string of base p digits 'bars' -- elements are displayed as a string of base p digits with separators For more details and more control, see sage.rings.padics.padic_printing or look at padic_printing.<tab> from the command line. """ if check: p = Integer(p) if not p.is_prime(): raise ValueError, "p must be prime" if not isinstance(prec, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(prec, (int, long)): prec = Integer(prec) if not isinstance(halt, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(halt, (int, long)): halt = Integer(halt) if names is None: name = str(p) elif isinstance(names, tuple): name = names[0] else: name = str(names) if type != 'lazy': key = (p, prec, type, name, print_mode) else: key = (p, prec, halt, name, print_mode) if padic_field_cache.has_key(key): K = padic_field_cache[key]() if K != None: return K if (type == 'capped-rel'): K = pAdicFieldCappedRelative(p, prec, print_mode, name) elif (type == 'lazy'): raise NotImplementedError, "lazy p-adics need more work. Sorry." K = pAdicFieldLazy(p, prec, print_mode, halt, name) else: raise ValueError, "type must be either 'capped-rel' or 'lazy'" padic_field_cache[key] = weakref.ref(K) return K
3d6a2f6640c9f91d771a4d25cd85172364acd9a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3d6a2f6640c9f91d771a4d25cd85172364acd9a1/factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2238, 84, 12, 84, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 2878, 2187, 1172, 67, 3188, 273, 599, 16, 18389, 273, 8063, 16, 1257, 273, 599, 16, 866, 273, 1053, 4672, 3536, 432, 6710, 445, 364, 293, 17, 20333, 1466, 18, 225, 12943, 30, 293, 1493, 3571, 30, 326, 293, 316, 2238, 67, 84, 13382, 1493, 3571, 261, 1886, 30, 4200, 13, 326, 6039, 3523, 434, 326, 652, 18, 225, 24147, 2186, 3455, 3298, 434, 3675, 4953, 6039, 18, 618, 1493, 533, 261, 1886, 30, 296, 5909, 1845, 17, 2878, 6134, 2621, 29584, 1172, 67, 3188, 1493, 533, 261, 1886, 30, 599, 13, 326, 1172, 1965, 11550, 30, 326, 4656, 293, 17, 20333, 652, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1475, 273, 2238, 84, 12, 25, 1769, 279, 273, 1475, 12, 24, 1769, 279, 1059, 397, 531, 12, 25, 66, 3462, 13, 225, 468, 87, 410, 30, 511, 273, 2238, 84, 12, 25, 16, 1728, 16, 618, 273, 296, 15998, 8284, 324, 273, 511, 12, 22, 1769, 324, 468, 22, 397, 531, 12, 25, 66, 2163, 13, 468, 87, 410, 30, 279, 397, 324, 468, 21, 397, 1381, 397, 531, 12, 25, 66, 3462, 13, 225, 5219, 55, 30, 924, 434, 618, 30, 296, 5909, 1845, 17, 2878, 11, 317, 293, 1871, 335, 974, 4664, 1845, 8574, 18, 225, 1220, 353, 326, 805, 16, 1959, 24290, 6039, 487, 326, 6039, 434, 326, 2836, 1087, 18, 225, 11065, 87, 6039, 434, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2238, 84, 12, 84, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 2878, 2187, 1172, 67, 3188, 273, 599, 16, 18389, 273, 8063, 16, 1257, 273, 599, 16, 866, 273, 1053, 4672, 3536, 432, 6710, 445, 364, 293, 17, 20333, 1466, 18, 225, 12943, 30, 293, 1493, 3571, 30, 326, 293, 316, 2238, 67, 84, 13382, 1493, 3571, 261, 1886, 30, 4200, 13, 326, 6039, 3523, 434, 326, 652, 18, 225, 24147, 2186, 3455, 3298, 434, 3675, 4953, 6039, 18, 618, 1493, 533, 261, 1886, 30, 296, 5909, 1845, 17, 2878, 6134, 2621, 29584, 1172, 67, 3188, 1493, 533, 261, 1886, 30, 599, 13, 326, 1172, 1965, 11550, 30, 326, 4656, 293, 17, 20333, 652, 2 ]
AddPoint = context.application.plugins.get_action("AddPoint") self.assert_(AddPoint.analyze_selection()) AddPoint() context.application.model.universe.children[-1].transformation.t = numpy.random.uniform(-5, 5, 3)
Point = context.application.plugins.get_node("Point") point = Point(transformation=Translation(numpy.random.uniform(-5, 5, 3))) context.application.model.universe.add(point)
def fn(): FileNew = context.application.plugins.get_action("FileNew") FileNew()
7a04879924e3f3d84878d3f180ce82b923f67939 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/7a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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2295, 13332, 1387, 1908, 273, 819, 18, 3685, 18, 8057, 18, 588, 67, 1128, 2932, 812, 1908, 7923, 1387, 1908, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
old_node = repos.get_node(base_path or path, base_rev) new_node = repos.get_node(path, chgset.rev)
if change is Changeset.ADD: old_node = None else: old_node = repos.get_node(base_path or path, base_rev) if change is Changeset.DELETE: new_node = None else: new_node = repos.get_node(path, chgset.rev)
def render_diff(self, req, repos, chgset, diff_options): """Raw Unified Diff version""" req.send_response(200) req.send_header('Content-Type', 'text/plain;charset=utf-8') req.send_header('Content-Disposition', 'filename=Changeset%s.diff' % req.args.get('rev')) req.end_headers()
398635c4cfc9e6edb00c3397a70ab8f227d434aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/398635c4cfc9e6edb00c3397a70ab8f227d434aa/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 5413, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4809, 1351, 939, 13008, 1177, 8395, 1111, 18, 4661, 67, 2740, 12, 6976, 13, 1111, 18, 4661, 67, 3374, 2668, 1350, 17, 559, 2187, 296, 955, 19, 7446, 31, 9999, 33, 3158, 17, 28, 6134, 1111, 18, 4661, 67, 3374, 2668, 1350, 17, 15087, 2187, 296, 3459, 33, 29743, 9, 87, 18, 5413, 11, 738, 1111, 18, 1968, 18, 588, 2668, 9083, 26112, 1111, 18, 409, 67, 2485, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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374, 2668, 1350, 17, 559, 2187, 296, 955, 19, 7446, 31, 9999, 33, 3158, 17, 28, 6134, 1111, 18, 4661, 67, 3374, 2668, 1350, 17, 15087, 2187, 296, 3459, 33, 29743, 9, 87, 18, 5413, 11, 738, 1111, 18, 1968, 18, 588, 2668, 9083, 26112, 1111, 18, 409, 67, 2485, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__result.append(CallException(callinfo, e))
self.result.append(CallException(callinfo, e))
def __call__(self, *args, **kwargs): callinfo = CallInfo(self.__name, self.__func, args, kwargs) self.__result.append(CallBegin(callinfo))
d468f6dcc073ac80504ccc266b13ca3f918d86e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d468f6dcc073ac80504ccc266b13ca3f918d86e4/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 745, 1376, 273, 3049, 966, 12, 2890, 16186, 529, 16, 365, 16186, 644, 16, 833, 16, 1205, 13, 365, 16186, 2088, 18, 6923, 12, 1477, 8149, 12, 1991, 1376, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 745, 1376, 273, 3049, 966, 12, 2890, 16186, 529, 16, 365, 16186, 644, 16, 833, 16, 1205, 13, 365, 16186, 2088, 18, 6923, 12, 1477, 8149, 12, 1991, 1376, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
l = [nodeid, date, user, action, export_data]
params = export_data l = [nodeid, date, user, action, params]
def export_journals(self): '''Export a class's journal - generate a list of lists of CSV-able data:
d8b2e95ca9878f1f8e0fa0917b6102d24246fea6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d8b2e95ca9878f1f8e0fa0917b6102d24246fea6/back_anydbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 78, 6561, 1031, 12, 2890, 4672, 9163, 6144, 279, 667, 1807, 13001, 300, 2103, 279, 666, 434, 6035, 434, 10381, 17, 429, 501, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 78, 6561, 1031, 12, 2890, 4672, 9163, 6144, 279, 667, 1807, 13001, 300, 2103, 279, 666, 434, 6035, 434, 10381, 17, 429, 501, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def A(x, m, n): return op * x def AT(x, m, n): return op.T * x
def A(x, m, n): return op * x
de1a58547a1b6b099a77ae558d50869fb6198306 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12843/de1a58547a1b6b099a77ae558d50869fb6198306/iterative.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 432, 12, 92, 16, 312, 16, 290, 4672, 327, 1061, 380, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 432, 12, 92, 16, 312, 16, 290, 4672, 327, 1061, 380, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return tuple(x/dim_prod % dims)
return tuple(x//dim_prod % dims)
def unravel_index(x,dims): """ Convert a flat index to an index tuple for an array of given shape. Parameters ---------- x : int Flattened index. dims : tuple of ints Input shape, the shape of an array into which indexing is required. Returns ------- idx : tuple of ints Tuple of the same shape as `dims`, containing the unraveled index. Notes ----- In the Examples section, since ``arr.flat[x] == arr.max()`` it may be easier to use flattened indexing than to re-map the index to a tuple. Examples -------- >>> arr = np.arange(20).reshape(5, 4) >>> arr array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], [12, 13, 14, 15], [16, 17, 18, 19]]) >>> x = arr.argmax() >>> x 19 >>> dims = arr.shape >>> idx = np.unravel_index(x, dims) >>> idx (4, 3) >>> arr[idx] == arr.max() True """ if x > _nx.prod(dims)-1 or x < 0: raise ValueError("Invalid index, must be 0 <= x <= number of elements.") idx = _nx.empty_like(dims) # Take dimensions # [a,b,c,d] # Reverse and drop first element # [d,c,b] # Prepend [1] # [1,d,c,b] # Calculate cumulative product # [1,d,dc,dcb] # Reverse # [dcb,dc,d,1] dim_prod = _nx.cumprod([1] + list(dims)[:0:-1])[::-1] # Indices become [x/dcb % a, x/dc % b, x/d % c, x/1 % d] return tuple(x/dim_prod % dims)
e8a7df65457531e986a65483ffe79c98c7e811a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/e8a7df65457531e986a65483ffe79c98c7e811a8/index_tricks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 354, 941, 67, 1615, 12, 92, 16, 8550, 4672, 3536, 4037, 279, 3569, 770, 358, 392, 770, 3193, 364, 392, 526, 434, 864, 2179, 18, 225, 7012, 12181, 619, 294, 509, 24226, 329, 770, 18, 9914, 294, 3193, 434, 15542, 2741, 2179, 16, 326, 2179, 434, 392, 526, 1368, 1492, 14403, 353, 1931, 18, 225, 2860, 18365, 2067, 294, 3193, 434, 15542, 7257, 434, 326, 1967, 2179, 487, 1375, 8550, 9191, 4191, 326, 640, 354, 941, 329, 770, 18, 225, 29584, 9135, 657, 326, 19830, 2442, 16, 3241, 12176, 5399, 18, 15401, 63, 92, 65, 422, 2454, 18, 1896, 1435, 10335, 518, 2026, 506, 15857, 358, 999, 14171, 14403, 2353, 358, 283, 17, 1458, 326, 770, 358, 279, 3193, 18, 225, 19830, 27093, 4080, 2454, 273, 1130, 18, 297, 726, 12, 3462, 2934, 1955, 1273, 12, 25, 16, 1059, 13, 4080, 2454, 526, 3816, 63, 374, 16, 225, 404, 16, 225, 576, 16, 225, 890, 6487, 306, 1059, 16, 225, 1381, 16, 225, 1666, 16, 225, 2371, 6487, 306, 1725, 16, 225, 2468, 16, 1728, 16, 4648, 6487, 306, 2138, 16, 5958, 16, 5045, 16, 4711, 6487, 306, 2313, 16, 8043, 16, 6549, 16, 5342, 65, 5717, 4080, 619, 273, 2454, 18, 3175, 1896, 1435, 4080, 619, 5342, 4080, 9914, 273, 2454, 18, 4867, 4080, 2067, 273, 1130, 18, 318, 354, 941, 67, 1615, 12, 92, 16, 9914, 13, 4080, 2067, 261, 24, 16, 890, 13, 4080, 2454, 63, 3465, 65, 422, 2454, 18, 1896, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 354, 941, 67, 1615, 12, 92, 16, 8550, 4672, 3536, 4037, 279, 3569, 770, 358, 392, 770, 3193, 364, 392, 526, 434, 864, 2179, 18, 225, 7012, 12181, 619, 294, 509, 24226, 329, 770, 18, 9914, 294, 3193, 434, 15542, 2741, 2179, 16, 326, 2179, 434, 392, 526, 1368, 1492, 14403, 353, 1931, 18, 225, 2860, 18365, 2067, 294, 3193, 434, 15542, 7257, 434, 326, 1967, 2179, 487, 1375, 8550, 9191, 4191, 326, 640, 354, 941, 329, 770, 18, 225, 29584, 9135, 657, 326, 19830, 2442, 16, 3241, 12176, 5399, 18, 15401, 63, 92, 65, 422, 2454, 18, 1896, 1435, 10335, 518, 2026, 506, 15857, 358, 999, 14171, 14403, 2353, 358, 283, 17, 1458, 326, 770, 358, 2 ]
s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L
if "latex" in self._input[n]: s+= "\\begin{verbatim}%s\\end{verbatim}" %L else: s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L
def _get_output(self, n): s = '' self._after_output = True if self._in_verbatim: s += '\\end{verbatim}\n' self._in_verbatim = False L = latex.latex(self._output[n]) s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L return s
88c21ab18e6327f137093dec53417bbc774b09b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/88c21ab18e6327f137093dec53417bbc774b09b9/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2844, 12, 2890, 16, 290, 4672, 272, 273, 875, 365, 6315, 5205, 67, 2844, 273, 1053, 309, 365, 6315, 267, 67, 16629, 22204, 30, 272, 1011, 3718, 409, 95, 16629, 22204, 6280, 82, 11, 365, 6315, 267, 67, 16629, 22204, 273, 1083, 511, 273, 25079, 18, 26264, 12, 2890, 6315, 2844, 63, 82, 5717, 282, 309, 315, 26264, 6, 316, 365, 6315, 2630, 63, 82, 14542, 272, 15, 33, 8422, 10086, 95, 16629, 22204, 97, 9, 87, 1695, 409, 95, 16629, 22204, 1532, 738, 48, 469, 30, 272, 1011, 2337, 82, 1695, 10086, 95, 5693, 22496, 1695, 5417, 4060, 738, 87, 271, 1695, 409, 95, 5693, 6280, 82, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2844, 12, 2890, 16, 290, 4672, 272, 273, 875, 365, 6315, 5205, 67, 2844, 273, 1053, 309, 365, 6315, 267, 67, 16629, 22204, 30, 272, 1011, 3718, 409, 95, 16629, 22204, 6280, 82, 11, 365, 6315, 267, 67, 16629, 22204, 273, 1083, 511, 273, 25079, 18, 26264, 12, 2890, 6315, 2844, 63, 82, 5717, 282, 309, 315, 26264, 6, 316, 365, 6315, 2630, 63, 82, 14542, 272, 15, 33, 8422, 10086, 95, 16629, 22204, 97, 9, 87, 1695, 409, 95, 16629, 22204, 1532, 738, 48, 469, 30, 272, 1011, 2337, 82, 1695, 10086, 95, 5693, 22496, 1695, 5417, 4060, 738, 87, 271, 1695, 409, 95, 5693, 6280, 82, 11, 9, 48, 327, 272, 2, -100, -100 ]
body = self.merge_message(cr, uid, str(action.message), action, context)
body = self.merge_message(cr, uid, action.message, action, context)
def run(self, cr, uid, ids, context={}): logger = netsvc.Logger() act_ids = [] for action in self.browse(cr, uid, ids, context): obj_pool = self.pool.get(action.model_id.model) obj = obj_pool.browse(cr, uid, context['active_id'], context=context) cxt = { 'context':context, 'object': obj, 'time':time, 'cr': cr, 'pool' : self.pool, 'uid' : uid } expr = eval(str(action.condition), cxt) if not expr: continue
b1196cdc4269dae3e902a0f7216ee3514c7c4264 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b1196cdc4269dae3e902a0f7216ee3514c7c4264/serveraction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 225, 1328, 67, 2232, 273, 5378, 225, 364, 1301, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 1081, 67, 6011, 273, 365, 18, 6011, 18, 588, 12, 1128, 18, 2284, 67, 350, 18, 2284, 13, 1081, 273, 1081, 67, 6011, 18, 25731, 12, 3353, 16, 4555, 16, 819, 3292, 3535, 67, 350, 17337, 819, 33, 2472, 13, 9494, 88, 273, 288, 296, 2472, 4278, 2472, 16, 296, 1612, 4278, 1081, 16, 296, 957, 4278, 957, 16, 296, 3353, 4278, 4422, 16, 296, 6011, 11, 294, 365, 18, 6011, 16, 296, 1911, 11, 294, 4555, 289, 3065, 273, 5302, 12, 701, 12, 1128, 18, 4175, 3631, 9494, 88, 13, 309, 486, 3065, 30, 1324, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 225, 1328, 67, 2232, 273, 5378, 225, 364, 1301, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 1081, 67, 6011, 273, 365, 18, 6011, 18, 588, 12, 1128, 18, 2284, 67, 350, 18, 2284, 13, 1081, 273, 1081, 67, 6011, 18, 25731, 12, 3353, 16, 4555, 16, 819, 3292, 3535, 67, 350, 17337, 819, 33, 2472, 13, 9494, 88, 273, 288, 296, 2472, 4278, 2472, 16, 296, 1612, 4278, 1081, 16, 296, 957, 4278, 957, 16, 296, 3353, 4278, 4422, 16, 296, 6011, 11, 294, 365, 18, 6011, 16, 296, 1911, 11, 294, 2 ]
format = '\n<span style="font-family: monospace"> %s</span>'
format = '\n<span style="font-family: monospace"> %s</span>'
def lines(m): format = '\n%s' if m.group(1).startswith('|'): format = '\n<span style="font-family: monospace"> %s</span>' elif m.group(1).startswith('>'): format = '\n<span style="font-family: monospace">%s</span>' return format % m.group(1)
e5e3b49d100c236fd7843346d5c64dfd2cd3fbf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12705/e5e3b49d100c236fd7843346d5c64dfd2cd3fbf8/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2362, 12, 81, 4672, 740, 273, 2337, 82, 9, 87, 11, 309, 312, 18, 1655, 12, 21, 2934, 17514, 1918, 2668, 16637, 4672, 740, 273, 2337, 82, 32, 3969, 2154, 1546, 5776, 17, 9309, 30, 6921, 538, 909, 6441, 565, 738, 87, 1757, 3969, 1870, 1327, 312, 18, 1655, 12, 21, 2934, 17514, 1918, 2668, 1870, 4672, 740, 273, 2337, 82, 32, 3969, 2154, 1546, 5776, 17, 9309, 30, 6921, 538, 909, 24038, 87, 1757, 3969, 1870, 327, 740, 738, 312, 18, 1655, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2362, 12, 81, 4672, 740, 273, 2337, 82, 9, 87, 11, 309, 312, 18, 1655, 12, 21, 2934, 17514, 1918, 2668, 16637, 4672, 740, 273, 2337, 82, 32, 3969, 2154, 1546, 5776, 17, 9309, 30, 6921, 538, 909, 6441, 565, 738, 87, 1757, 3969, 1870, 1327, 312, 18, 1655, 12, 21, 2934, 17514, 1918, 2668, 1870, 4672, 740, 273, 2337, 82, 32, 3969, 2154, 1546, 5776, 17, 9309, 30, 6921, 538, 909, 24038, 87, 1757, 3969, 1870, 327, 740, 738, 312, 18, 1655, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]