rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
def makeDirectory(self,path,uid=0,gid=0,status=0):
def makeDirectory(self,path,credDict,status=0):
def makeDirectory(self,path,uid=0,gid=0,status=0): """Create a new directory. The return value is the dictionary containing all the parameters of the newly created directory """
7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8/FileCatalogDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2853, 12, 2890, 16, 803, 16, 20610, 5014, 16, 2327, 33, 20, 4672, 3536, 1684, 279, 394, 1867, 18, 1021, 327, 460, 353, 326, 3880, 4191, 777, 326, 1472, 434, 326, 10894, 2522, 1867, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
return {'confirmed': self.getQForUser(Q(userbit__qsc = qsc) & Q(userbit__verb = verb)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached()) &\
retVal = {'confirmed': self.getQForUser(Q(userbit__qsc = qsc, userbit__verb = verb)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached()) &\
def students(self, QObject = False): verb = GetNode('V/Flags/Public') verb2 = GetNode('V/Flags/Registration/Attended') STUDREP_VERB = GetNode('V/Flags/UserRole/StudentRep') STUDREP_QSC = GetNode('Q') qsc = GetNode("/".join(self.program_anchor_cached().tree_encode()) + "/Confirmation") qsc_waitlist = GetNode("/".join(self.program_anchor_cached().tree_encode()) + "/Waitlist")
7c4601767a8a13f15936b0af4c967b6ceeb3c5a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/7c4601767a8a13f15936b0af4c967b6ceeb3c5a3/studentregcore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10068, 4877, 12, 2890, 16, 2238, 921, 273, 1083, 4672, 6405, 273, 968, 907, 2668, 58, 19, 5094, 19, 4782, 6134, 6405, 22, 273, 968, 907, 2668, 58, 19, 5094, 19, 7843, 19, 3075, 3934, 6134, 2347, 12587, 28879, 67, 2204, 38, 273, 968, 907, 2668, 58, 19, 5094, 19, 1299, 2996, 19, 19943, 319, 18933, 6134, 2347, 12587, 28879, 67, 53, 2312, 225, 273, 968, 907, 2668, 53, 6134, 225, 1043, 1017, 225, 273, 968, 907, 2932, 4898, 18, 5701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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10068, 4877, 12, 2890, 16, 2238, 921, 273, 1083, 4672, 6405, 273, 968, 907, 2668, 58, 19, 5094, 19, 4782, 6134, 6405, 22, 273, 968, 907, 2668, 58, 19, 5094, 19, 7843, 19, 3075, 3934, 6134, 2347, 12587, 28879, 67, 2204, 38, 273, 968, 907, 2668, 58, 19, 5094, 19, 1299, 2996, 19, 19943, 319, 18933, 6134, 2347, 12587, 28879, 67, 53, 2312, 225, 273, 968, 907, 2668, 53, 6134, 225, 1043, 1017, 225, 273, 968, 907, 2932, 4898, 18, 5701, 12, 2890, 18, 12890, 67, 16215, 67, 7097, 7675, 3413, 67, 3015, 10756, 397, 2206, 17597, 7923, 1043, 1017, 67, 7048, 1098, 273, 968, 907, 2932, 4898, 18, 5701, 12, 2890, 18, 12890, 67, 16215, 67, 7097, 2 ]
a : array_like of string_ or unicode_
a : array_like of str or unicode
def rjust(a, width): """ Return an array with the elements of `a` right-justified in a string of length `width`.
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 3732, 12, 69, 16, 1835, 4672, 3536, 2000, 392, 526, 598, 326, 2186, 434, 1375, 69, 68, 2145, 17, 3732, 939, 316, 279, 533, 434, 769, 1375, 2819, 8338, 2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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 3732, 12, 69, 16, 1835, 4672, 3536, 2000, 392, 526, 598, 326, 2186, 434, 1375, 69, 68, 2145, 17, 3732, 939, 316, 279, 533, 434, 769, 1375, 2819, 8338, 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 ]
except error.ConnectionDone, err:
except Exception, err:
def checkAccess(host, port=80, useSSL=False, username=None, password=None, path=None, repositoryView=None): """ Check the permissions for a webdav account by reading and writing to that server. Returns a tuple (result code, reason), where result code indicates the level of permissions: CANT_CONNECT, NO_ACCESS, READ_ONLY, READ_WRITE. CANT_CONNECT will be accompanied by a "reason" string that was provided from the socket layer. NO_ACCESS and READ_ONLY will be accompanied by an HTTP status code. READ_WRITE will have a "reason" of None. """ handle = ChandlerServerHandle(host=host, port=port, username=username, password=password, useSSL=useSSL, repositoryView=repositoryView) # Make sure path begins/ends with / path = path.strip("/") if path == "": path = "/" else: path = "/" + path + "/" # Get the C{Resource} object associated with the specified # path topLevelResource = handle.getResource(path) # Now, try to list all the child resources of the top level. # This may lead to auth errors (mistyped username/password) # or other failures (e.g., nonexistent path, mistyped # host). try: resourceList = handle.blockUntil(topLevelResource.propfind, depth=1) except zanshin.webdav.ConnectionError, err: return (CANT_CONNECT, err.message) except zanshin.webdav.WebDAVError, err: return (NO_ACCESS, err.status) except error.SSLError, err: return (CANT_CONNECT, err) # Unhandled SSL error except M2Crypto.SSL.Checker.WrongHost: return (IGNORE, None) # The user cancelled SSL error dialog except Utility.CertificateVerificationError: return (IGNORE, None) # The user cancelled trust cert/SSL error dialog except error.ConnectionDone, err: return (CANT_CONNECT, err) # Unique the child names returned by the server. (Note that # collection subresources will have a name that ends in '/'). # We're doing this so that we can try a PUT below to a (hopefully # nonexistent) path. childNames = set([]) for child in resourceList: if child is not topLevelResource: childPath = child.path if childPath and childPath[-1] == '/': childPath = childPath[:-1] childComponents = childPath.split('/') if len(childComponents): childNames.add(childComponents[-1]) # Try to figure out a unique path (although the odds of # even more than one try being needs are probably negligible).. triesLeft = 10 testFilename = unicode(chandlerdb.util.c.UUID()) # Random string to use for trying a put while testFilename in childNames: triesLeft -= 1 if triesLeft == 0: # @@@ [grant] This can't be right, but it's what was in the # original (pre-zanshin) code. return -1 testFilename = chandlerdb.util.c.UUID() # Now, we try to PUT a small test file on the server. If that # fails, we're going to say the user only has read-only access. try: tmpResource = handle.getResource(topLevelResource.path + testFilename) body = "Write access test" handle.blockUntil(tmpResource.put, body, checkETag=False, contentType="text/plain") except zanshin.webdav.WebDAVError, e: return (READ_ONLY, e.status) # Remove the temporary resource, and ignore failures (since there's # not much we can do here, anyway). try: handle.blockUntil(tmpResource.delete) except: pass # Success! return (READ_WRITE, None)
cfdda1277d99134eaad3d82e1f968acd7c9c4387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cfdda1277d99134eaad3d82e1f968acd7c9c4387/WebDAV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28484, 12, 2564, 16, 1756, 33, 3672, 16, 999, 6745, 33, 8381, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 589, 33, 7036, 16, 3352, 1767, 33, 7036, 4672, 3536, 2073, 326, 4371, 364, 279, 3311, 20752, 2236, 635, 6453, 471, 7410, 358, 716, 1438, 18, 225, 2860, 279, 3193, 261, 2088, 981, 16, 3971, 3631, 1625, 563, 981, 8527, 326, 1801, 434, 4371, 30, 385, 6856, 67, 11032, 16, 3741, 67, 13204, 16, 10746, 67, 10857, 16, 10746, 67, 11677, 18, 225, 385, 6856, 67, 11032, 903, 506, 1721, 2919, 304, 2092, 635, 279, 315, 10579, 6, 533, 716, 1703, 2112, 628, 326, 2987, 3018, 18, 225, 3741, 67, 13204, 471, 10746, 67, 10857, 903, 506, 1721, 2919, 304, 2092, 635, 392, 2239, 1267, 981, 18, 225, 10746, 67, 11677, 903, 1240, 279, 315, 10579, 6, 434, 599, 18, 3536, 225, 1640, 273, 1680, 464, 749, 2081, 3259, 12, 2564, 33, 2564, 16, 1756, 33, 655, 16, 2718, 33, 5053, 16, 2201, 33, 3664, 16, 999, 6745, 33, 1202, 6745, 16, 3352, 1767, 33, 9071, 1767, 13, 225, 468, 4344, 3071, 589, 17874, 19, 5839, 598, 342, 589, 273, 589, 18, 6406, 2932, 4898, 13, 309, 589, 422, 1408, 30, 589, 273, 4016, 469, 30, 589, 273, 4016, 397, 589, 397, 4016, 225, 468, 968, 326, 385, 95, 1420, 97, 733, 3627, 598, 326, 1269, 468, 589, 21289, 1420, 273, 1640, 18, 588, 1420, 12, 803, 13, 225, 468, 4494, 16, 775, 358, 666, 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, 28484, 12, 2564, 16, 1756, 33, 3672, 16, 999, 6745, 33, 8381, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 589, 33, 7036, 16, 3352, 1767, 33, 7036, 4672, 3536, 2073, 326, 4371, 364, 279, 3311, 20752, 2236, 635, 6453, 471, 7410, 358, 716, 1438, 18, 225, 2860, 279, 3193, 261, 2088, 981, 16, 3971, 3631, 1625, 563, 981, 8527, 326, 1801, 434, 4371, 30, 385, 6856, 67, 11032, 16, 3741, 67, 13204, 16, 10746, 67, 10857, 16, 10746, 67, 11677, 18, 225, 385, 6856, 67, 11032, 903, 506, 1721, 2919, 304, 2092, 635, 279, 315, 10579, 6, 533, 716, 1703, 2112, 628, 326, 2987, 3018, 18, 225, 3741, 67, 13204, 471, 10746, 67, 10857, 903, 506, 2 ]
s += write('"')
r += cls.write('"')
def opening(self, node): s = u'' if node.get("constantType") == "string": if node.get("detail") == "singlequotes": s += write("'") else: s += write('"') s += write(node.get("value")) if node.get("detail") == "singlequotes": s += write("'") else: s += write('"') else: s += write(node.get("value")) return s
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 309, 756, 18, 588, 2932, 14384, 559, 7923, 422, 315, 1080, 6877, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, 272, 1011, 1045, 2932, 4970, 13, 469, 30, 436, 1011, 2028, 18, 2626, 2668, 5187, 13, 272, 1011, 1045, 12, 2159, 18, 588, 2932, 1132, 6, 3719, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, 272, 1011, 1045, 2932, 4970, 13, 469, 30, 436, 1011, 2028, 18, 2626, 2668, 5187, 13, 469, 30, 272, 1011, 1045, 12, 2159, 18, 588, 2932, 1132, 6, 3719, 327, 272, 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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 14384, 559, 7923, 422, 315, 1080, 6877, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, 272, 1011, 1045, 2932, 4970, 13, 469, 30, 436, 1011, 2028, 18, 2626, 2668, 5187, 13, 272, 1011, 1045, 12, 2159, 18, 588, 2932, 1132, 6, 3719, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, 272, 1011, 1045, 2932, 4970, 13, 469, 30, 436, 1011, 2028, 18, 2626, 2668, 5187, 13, 469, 30, 272, 1011, 1045, 12, 2159, 18, 588, 2932, 1132, 6, 3719, 327, 272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()])
self.setSessionInfoTrans(MESSAGE_SAVEDCHANGES, date=self.utGetTodayDate())
def admin_deleteratelist(self, ids=[], REQUEST=None): """ """ self.manage_delObjects(self.utConvertToList(ids)) if REQUEST: self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()]) REQUEST.RESPONSE.redirect('%s/admin_ratelists_html' % self.absolute_url())
9ebbed155972a1637136ab18d27c45686fe46b10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/9ebbed155972a1637136ab18d27c45686fe46b10/NyConsultation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 67, 19003, 264, 270, 5449, 12, 2890, 16, 3258, 22850, 6487, 12492, 33, 7036, 4672, 3536, 3536, 365, 18, 12633, 67, 3771, 4710, 12, 2890, 18, 322, 2723, 25772, 12, 2232, 3719, 309, 12492, 30, 365, 18, 542, 2157, 966, 1429, 12, 8723, 67, 5233, 12135, 1792, 3388, 3991, 16, 1509, 33, 2890, 18, 322, 967, 56, 20136, 1626, 10756, 12492, 18, 14508, 18, 7590, 29909, 87, 19, 3666, 67, 17048, 292, 1486, 67, 2620, 11, 738, 365, 18, 12547, 67, 718, 10756, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 67, 19003, 264, 270, 5449, 12, 2890, 16, 3258, 22850, 6487, 12492, 33, 7036, 4672, 3536, 3536, 365, 18, 12633, 67, 3771, 4710, 12, 2890, 18, 322, 2723, 25772, 12, 2232, 3719, 309, 12492, 30, 365, 18, 542, 2157, 966, 1429, 12, 8723, 67, 5233, 12135, 1792, 3388, 3991, 16, 1509, 33, 2890, 18, 322, 967, 56, 20136, 1626, 10756, 12492, 18, 14508, 18, 7590, 29909, 87, 19, 3666, 67, 17048, 292, 1486, 67, 2620, 11, 738, 365, 18, 12547, 67, 718, 10756, 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 ]
sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()]
sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()]
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Willenbring, Stable branching rules for classical symmetric pairs, Trans. Amer. Math. Soc. 357 (2005), no. 4, 1601-1626, McKay and Patera, Tables of Dimensions, Indices and Branching Rules for Representations of Simple Lie Algebras (Marcel Dekker, 1981), and Fauser, Jarvis, King and Wybourne, New branching rules induced by plethysm. J. Phys. A 39 (2006), no. 11, 2611--2655. INPUT: - ``chi`` - a character of G - ``R`` - the Weyl Character Ring of G - ``S`` - the Weyl Character Ring of H - ``rule`` - a set of r dominant weights in H where r is the rank of G. You may use a predefined rule by specifying rule = one of"levi", "automorphic", "symmetric", "extended", "triality" or "miscellaneous". The use of these rules will be explained next. After the examples we will explain how to write your own branching rules for cases that we have omitted. To explain the predefined rules we survey the most important branching rules. These may be classified into several cases, and once this is understood, the detailed classification can be read off from the Dynkin diagrams. Dynkin classified the maximal subgroups of Lie groups in Mat. Sbornik N.S. 30(72):349-462 (1952). We will list give predefined rules that cover most cases where the branching rule is to a maximal subgroup. For convenience, we also give some branching rules to subgroups that are not maximal. For example, a Levi subgroup may or may not be maximal. LEVI TYPE. These can be read off from the Dynkin diagram. If removing a node from the Dynkin diagram produces another Dynkin diagram, there is a branching rule. Currently we require that the smaller diagram be connected. For these rules use the option rule="levi":: ['A',r] => ['A',r-1] ['B',r] => ['A',r-1] ['B',r] => ['B',r-1] ['C',r] => ['A',r-1] ['C',r] => ['C',r-1] ['D',r] => ['A',r-1] ['D',r] => ['D',r-1] ['E',r] => ['A',r-1] r = 7,8 ['E',r] => ['D',r-1] r = 6,7,8 ['E',r] => ['E',r-1] F4 => B3 F4 => C3 G2 => A1 (short root) Not all Levi subgroups are maximal subgroups. If the Levi is not maximal there may or may not be a preprogrammed rule="levi" for it. If there is not, the branching rule may still be obtained by going through an intermediate subgroup that is maximal using rule="extended". Thus the other Levi branching rule from G2 => A1 corresponding to the long root is available by first branching G2 => A_2 then A2 => A1. Similarly the branching rules to the Levi subgroup:: ['E',r] => ['A',r-1] r = 6,7,8 may be obtained by first branching E6=>A5xA1, E7=>A7 or E8=>A8. AUTOMORPHIC TYPE. If the Dynkin diagram has a symmetry, then there is an automorphism that is a special case of a branching rule. There is also an exotic "triality" automorphism of D4 having order 3. Use rule="automorphic" or (for D4) rule="triality":: ['A',r] => ['A',r] ['D',r] => ['D',r] E6 => E6 SYMMETRIC TYPE. Related to the automorphic type, when either the Dynkin diagram or the extended diagram has a symmetry there is a branching rule to the subalgebra (or subgroup) of invariants under the automorphism. Use rule="symmetric". The last branching rule, D4=>G2 is not to a maximal subgroup since D4=>B3=>G2, but it is included for convenience. :: ['A',2r+1] => ['B',r] ['A',2r] => ['C',r] ['A',2r] => ['D',r] ['D',r] => ['B',r-1] E6 => F4 D4 => G2 EXTENDED TYPE. If removing a node from the extended Dynkin diagram results in a Dynkin diagram, then there is a branching rule. Use rule="extended" for these. We will also use this classification for some rules that are not of this type, mainly involving type B, such as D6 => B3xB3. Here is the extended Dynkin diagram for D6:: 0 6 O O | | | | O---O---O---O---O 1 2 3 4 6 Removing the node 3 results in an embedding D3xD3 -> D6. This corresponds to the embedding SO(6)xSO(6) -> SO(12), and is of extended type. On the other hand the embedding SO(5)xSO(7)-->SO(12) (e.g. B2xB3 -> D6) cannot be explained this way but for uniformity is implemented under rule="extended". Using rule="extended" you can get any branching rule SO(n) => SO(a) x SO(b) x SO(c) x ... where n = a+b+c+ ... Sp(2n) => Sp(2a) x Sp(2b) x Sp(2c) x ... where n = a+b+c+ ... where O(a) = ['D',r] (a=2r) or ['B',r] (a=2r+1) and Sp(2r)=['C',r]. The following rules are implemented as special cases of rule="extended". :: E6 => A5xA1, A2xA2xA2 E7 => A7, D6xA1, A3xA3xA1 E8 => A8, D8, E7xA1, A4xA4, D5xA3, E6xA2 F4 => B4, C3xA1, A2xA2, A3xA1 G2 => A1xA1 Note that E8 has only a limited number of representations of reasonably low degree. TENSOR: There are branching rules: :: ['A', rs-1] => ['A',r-1] x ['A',s-1] ['B',2rs+r+s] => ['B',r] x ['B',s] ['D',2rs+s] => ['B',r] x ['D',s] ['D',2rs] => ['D',r] x ['D',s] ['D',2rs] => ['C',r] x ['C',s] ['C',2rs+s] => ['B',r] x ['C',s] ['C',2rs] => ['C',r] x ['D',s]. corresponding to the tensor product homomorphism. For type A, the homomorphism is GL(r) x GL(s) -> GL(rs). For the classical types, the relevant fact is that if V,W are orthogonal or symplectic spaces, that is, spaces endowed with symmetric or skew-symmetric bilinear forms, then V tensor W is also an orthogonal space (if V and W are both orthogonal or both symplectic) or symplectic (if one of V and W is orthogonal and the other symplectic). The corresponding branching rules are obtained using rule="tensor". SYMMETRIC POWER: The k-th symmetric and exterior power homomorphisms map GL(n) --> GL(binomial(n+k-1,k)) and GL(binomial(n,k)). The corresponding branching rules are not implemented but a special case is. The k-th symmetric power homomorphism SL(2) --> GL(k+1) has its image inside of SO(2r+1) if k=2r and inside of Sp(2r) if k=2r-1. Hence there are branching rules:: ['B',r] => A1 ['C',r] => A1 and these may be obtained using the rule "symmetric_power". MISCELLANEOUS: Use rule="miscellaneous" for the following rules:: B3 => G2 F4 => G2xA1 (not implemented yet) BRANCHING RULES FROM PLETHYSMS Nearly all branching rules G => H where G is of type A,B,C or D are covered by the preceding rules. The function branching_rules_from_plethysm covers the remaining cases. ISOMORPHIC TYPE: Although not usually referred to as a branching rule, the effects of the accidental isomorphisms may be handled using rule="isomorphic":: B2 => C2 C2 => B2 A3 => D3 D3 => A3 D2 => A1xA1 B1 => A1 C1 => A1 EXAMPLES: (Levi type) :: sage: A1 = WeylCharacterRing("A1") sage: A2 = WeylCharacterRing("A2") sage: A3 = WeylCharacterRing("A3") sage: A4 = WeylCharacterRing("A4") sage: A5 = WeylCharacterRing("A5") sage: B2 = WeylCharacterRing("B2") sage: B3 = WeylCharacterRing("B3") sage: B4 = WeylCharacterRing("B4") sage: C2 = WeylCharacterRing("C2") sage: C3 = WeylCharacterRing("C3") sage: D3 = WeylCharacterRing("D3") sage: D4 = WeylCharacterRing("D4") sage: D5 = WeylCharacterRing("D5") sage: G2 = WeylCharacterRing("G2") sage: F4 = WeylCharacterRing("F4",style="coroots") # long time sage: E6=WeylCharacterRing("E6",style="coroots") sage: D5=WeylCharacterRing("D5",style="coroots") sage: [B3(w).branch(A2,rule="levi") for w in B3.fundamental_weights()] [A2(0,0,-1) + A2(0,0,0) + A2(1,0,0), A2(0,-1,-1) + A2(0,0,-1) + A2(0,0,0) + A2(1,0,-1) + A2(1,0,0) + A2(1,1,0), A2(-1/2,-1/2,-1/2) + A2(1/2,-1/2,-1/2) + A2(1/2,1/2,-1/2) + A2(1/2,1/2,1/2)] The last example must be understood as follows. The representation of B3 being branched is spin, which is not a representation of SO(7) but of its double cover spin(7). The group A2 is really GL(3) and the double cover of SO(7) induces a cover of GL(3) that is trivial over SL(3) but not over the center of GL(3). The weight lattice for this GL(3) consists of triples (a,b,c) of half integers such that a-b and b-c are in `\ZZ`, and this is reflected in the last decomposition. :: sage: [C3(w).branch(A2,rule="levi") for w in C3.fundamental_weights()] [A2(0,0,-1) + A2(1,0,0), A2(0,-1,-1) + A2(1,0,-1) + A2(1,1,0), A2(-1,-1,-1) + A2(1,-1,-1) + A2(1,1,-1) + A2(1,1,1)] sage: [D4(w).branch(A3,rule="levi") for w in D4.fundamental_weights()] [A3(0,0,0,-1) + A3(1,0,0,0), A3(0,0,-1,-1) + A3(0,0,0,0) + A3(1,0,0,-1) + A3(1,1,0,0), A3(1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,-1/2), A3(-1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,1/2)] sage: [B3(w).branch(B2,rule="levi") for w in B3.fundamental_weights()] [2*B2(0,0) + B2(1,0), B2(0,0) + 2*B2(1,0) + B2(1,1), 2*B2(1/2,1/2)] sage: C3 = WeylCharacterRing(['C',3]) sage: [C3(w).branch(C2,rule="levi") for w in C3.fundamental_weights()] [2*C2(0,0) + C2(1,0), C2(0,0) + 2*C2(1,0) + C2(1,1), C2(1,0) + 2*C2(1,1)] sage: [D5(w).branch(D4,rule="levi") for w in D5.fundamental_weights()] [2*D4(0,0,0,0) + D4(1,0,0,0), D4(0,0,0,0) + 2*D4(1,0,0,0) + D4(1,1,0,0), D4(1,0,0,0) + 2*D4(1,1,0,0) + D4(1,1,1,0), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2)] sage: G2(1,0,-1).branch(A1,rule="levi") A1(0,-1) + A1(1,-1) + A1(1,0) sage: E6=WeylCharacterRing("E6",style="coroots") # long time sage: D5=WeylCharacterRing("D5",style="coroots") # long time sage: fw = E6.fundamental_weights() # long time sage: [E6(fw[i]).branch(D5,rule="levi") for i in [1,2,6]] # long time [D5(0,0,0,0,0) + D5(0,0,0,0,1) + D5(1,0,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(0,0,0,0,1) + D5(0,1,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(1,0,0,0,0)] sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: D6=WeylCharacterRing("D6",style="coroots") # long time sage: fw = E7.fundamental_weights() # long time sage: [E7(fw[i]).branch(D6,rule="levi") for i in [1,2,7]] # long time [3*D6(0,0,0,0,0,0) + 2*D6(0,0,0,0,1,0) + D6(0,1,0,0,0,0), 3*D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0) + 2*D6(0,0,1,0,0,0) + D6(1,0,0,0,1,0), D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0)] sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8=WeylCharacterRing("E8",style="coroots",cache=True) # long time sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8(1,0,0,0,0,0,0,0).branch(D7,rule="levi") # long time 3*D7(0,0,0,0,0,0,0) + 2*D7(0,0,0,0,0,1,0) + 2*D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) + 2*D7(0,0,1,0,0,0,0) + D7(0,0,0,1,0,0,0) + D7(1,0,0,0,0,1,0) + D7(1,0,0,0,0,0,1) + D7(2,0,0,0,0,0,0) sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi") # long time D7(0,0,0,0,0,0,0) + D7(0,0,0,0,0,1,0) + D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] # long time [B3(0,0,0) + 2*B3(1/2,1/2,1/2) + 2*B3(1,0,0) + B3(1,1,0), B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 5*B3(1,0,0) + 7*B3(1,1,0) + 3*B3(1,1,1) + 6*B3(3/2,1/2,1/2) + 2*B3(3/2,3/2,1/2) + B3(2,0,0) + 2*B3(2,1,0) + B3(2,1,1), 3*B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 4*B3(1,0,0) + 3*B3(1,1,0) + B3(1,1,1) + 2*B3(3/2,1/2,1/2), 3*B3(0,0,0) + 2*B3(1/2,1/2,1/2) + B3(1,0,0)] sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()] # long time [3*C3(0,0,0) + 2*C3(1,1,1) + C3(2,0,0), 3*C3(0,0,0) + 6*C3(1,1,1) + 4*C3(2,0,0) + 2*C3(2,1,0) + 3*C3(2,2,0) + C3(2,2,2) + C3(3,1,0) + 2*C3(3,1,1), 2*C3(1,0,0) + 3*C3(1,1,0) + C3(2,0,0) + 2*C3(2,1,0) + C3(2,1,1), 2*C3(1,0,0) + C3(1,1,0)] sage: A1xA1 = WeylCharacterRing("A1xA1") sage: [A3(hwv).branch(A1xA1,rule="levi") for hwv in A3.fundamental_weights()] [A1xA1(0,0,1,0) + A1xA1(1,0,0,0), A1xA1(0,0,1,1) + A1xA1(1,0,1,0) + A1xA1(1,1,0,0), A1xA1(1,0,1,1) + A1xA1(1,1,1,0)] sage: A1xB1=WeylCharacterRing("A1xB1",style="coroots") sage: [B3(x).branch(A1xB1,rule="levi") for x in B3.fundamental_weights()] [A1xB1(0,2) + 2*A1xB1(1,0), 3*A1xB1(0,0) + A1xB1(0,2) + 2*A1xB1(1,2) + A1xB1(2,0), 2*A1xB1(0,1) + A1xB1(1,1)] EXAMPLES: (Automorphic type, including D4 triality) :: sage: [A3(chi).branch(A3,rule="automorphic") for chi in A3.fundamental_weights()] [A3(0,0,0,-1), A3(0,0,-1,-1), A3(0,-1,-1,-1)] sage: [D4(chi).branch(D4,rule="automorphic") for chi in D4.fundamental_weights()] [D4(1,0,0,0), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2)] sage: [D4(chi).branch(D4,rule="triality") for chi in D4.fundamental_weights()] [D4(1/2,1/2,1/2,-1/2), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1,0,0,0)] EXAMPLES: (Symmetric type) :: sage: [w.branch(B2,rule="symmetric") for w in [A4(1,0,0,0,0),A4(1,1,0,0,0),A4(1,1,1,0,0),A4(2,0,0,0,0)]] [B2(1,0), B2(1,1), B2(1,1), B2(0,0) + B2(2,0)] sage: [A5(w).branch(C3,rule="symmetric") for w in A5.fundamental_weights()] [C3(1,0,0), C3(0,0,0) + C3(1,1,0), C3(1,0,0) + C3(1,1,1), C3(0,0,0) + C3(1,1,0), C3(1,0,0)] sage: [A5(w).branch(D3,rule="symmetric") for w in A5.fundamental_weights()] [D3(1,0,0), D3(1,1,0), D3(1,1,-1) + D3(1,1,1), D3(1,1,0), D3(1,0,0)] sage: [D4(x).branch(B3,rule="symmetric") for x in D4.fundamental_weights()] [B3(0,0,0) + B3(1,0,0), B3(1,0,0) + B3(1,1,0), B3(1/2,1/2,1/2), B3(1/2,1/2,1/2)] sage: [D4(x).branch(G2,rule="symmetric") for x in D4.fundamental_weights()] [G2(0,0,0) + G2(1,0,-1), 2*G2(1,0,-1) + G2(2,-1,-1), G2(0,0,0) + G2(1,0,-1), G2(0,0,0) + G2(1,0,-1)] sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] # long time [F4(0,0,0,0) + F4(0,0,0,1), F4(0,0,0,1) + F4(1,0,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(1,0,0,0) + 2*F4(0,0,1,0) + F4(1,0,0,1) + F4(0,1,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(0,0,0,0) + F4(0,0,0,1)] EXAMPLES: (Extended type) :: sage: [B3(x).branch(D3,rule="extended") for x in B3.fundamental_weights()] [D3(0,0,0) + D3(1,0,0), D3(1,0,0) + D3(1,1,0), D3(1/2,1/2,-1/2) + D3(1/2,1/2,1/2)] sage: [G2(w).branch(A2, rule="extended") for w in G2.fundamental_weights()] [A2(0,0,0) + A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3), A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3) + A2(1,0,-1)] sage: [F4(fw).branch(B4,rule="extended") for fw in F4.fundamental_weights()] # long time [B4(1/2,1/2,1/2,1/2) + B4(1,1,0,0), B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2) + B4(3/2,3/2,1/2,1/2) + B4(2,1,1,0), B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0) + B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2), B4(0,0,0,0) + B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0)] sage: E6 = WeylCharacterRing("E6", style="coroots") # long time sage: A2xA2xA2=WeylCharacterRing("A2xA2xA2",style="coroots") sage: A5xA1=WeylCharacterRing("A5xA1",style="coroots") sage: G2 = WeylCharacterRing("G2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: F4 = WeylCharacterRing("F4",style="coroots") sage: A3xA1 = WeylCharacterRing("A3xA1", style="coroots") sage: A2xA2 = WeylCharacterRing("A2xA2", style="coroots") sage: A1xC3 = WeylCharacterRing("A1xC3",style="coroots") sage: E6(1,0,0,0,0,0).branch(A5xA1,rule="extended") # long time A5xA1(0,0,0,1,0,0) + A5xA1(1,0,0,0,0,1) sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended") # long time A2xA2xA2(0,0,0,1,1,0) + A2xA2xA2(0,1,1,0,0,0) + A2xA2xA2(1,0,0,0,0,1) sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: A7=WeylCharacterRing("A7",style="coroots") # long time sage: E7(1,0,0,0,0,0,0).branch(A7,rule="extended") # long time A7(0,0,0,1,0,0,0) + A7(1,0,0,0,0,0,1) sage: E8=WeylCharacterRing("E8",cache=true,style="coroots") # long time sage: D8=WeylCharacterRing("D8",cache=true,style="coroots") # long time sage: E8(0,0,0,0,0,0,0,1).branch(D8,rule="extended") # long time D8(0,0,0,0,0,0,1,0) + D8(0,1,0,0,0,0,0,0) sage: F4(1,0,0,0).branch(A1xC3,rule="extended") # long time A1xC3(0,2,0,0) + A1xC3(1,0,0,1) + A1xC3(2,0,0,0) sage: G2(0,1).branch(A1xA1, rule="extended") A1xA1(0,2) + A1xA1(2,0) + A1xA1(3,1) sage: F4(0,0,0,1).branch(A2xA2, rule="extended") # long time A2xA2(0,0,1,1) + A2xA2(0,1,0,1) + A2xA2(1,0,1,0) sage: F4(0,0,0,1).branch(A3xA1,rule="extended") # long time A3xA1(0,0,0,0) + A3xA1(0,0,0,2) + A3xA1(0,0,1,1) + A3xA1(0,1,0,0) + A3xA1(1,0,0,1) sage: D4=WeylCharacterRing("D4",style="coroots") sage: D2xD2=WeylCharacterRing("D2xD2",style="coroots") # We get D4 => A1xA1xA1xA1 by remembering that A1xA1 = D2. sage: [D4(fw).branch(D2xD2, rule="extended") for fw in D4.fundamental_weights()] [D2xD2(0,0,1,1) + D2xD2(1,1,0,0), D2xD2(0,0,2,0) + D2xD2(0,0,0,2) + D2xD2(2,0,0,0) + D2xD2(1,1,1,1) + D2xD2(0,2,0,0), D2xD2(1,0,0,1) + D2xD2(0,1,1,0), D2xD2(1,0,1,0) + D2xD2(0,1,0,1)] EXAMPLES: (Tensor type) :: sage: A5=WeylCharacterRing("A5", style="coroots") sage: A2xA1=WeylCharacterRing("A2xA1", style="coroots") sage: [A5(hwv).branch(A2xA1, rule="tensor") for hwv in A5.fundamental_weights()] [A2xA1(1,0,1), A2xA1(0,1,2) + A2xA1(2,0,0), A2xA1(0,0,3) + A2xA1(1,1,1), A2xA1(1,0,2) + A2xA1(0,2,0), A2xA1(0,1,1)] sage: B4=WeylCharacterRing("B4",style="coroots") sage: B1xB1=WeylCharacterRing("B1xB1",style="coroots") sage: [B4(f).branch(B1xB1,rule="tensor") for f in B4.fundamental_weights()] [B1xB1(2,2), B1xB1(0,2) + B1xB1(2,0) + B1xB1(2,4) + B1xB1(4,2), B1xB1(0,2) + B1xB1(0,6) + B1xB1(2,0) + B1xB1(2,2) + B1xB1(2,4) + B1xB1(4,2) + B1xB1(4,4) + B1xB1(6,0), B1xB1(1,3) + B1xB1(3,1)] sage: D4=WeylCharacterRing("D4",style="coroots") sage: C2xC1=WeylCharacterRing("C2xC1",style="coroots") sage: [D4(f).branch(C2xC1,rule="tensor") for f in D4.fundamental_weights()] [C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,2) + C2xC1(2,0,0), C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,0)] sage: C3=WeylCharacterRing("C3",style="coroots") sage: B1xC1=WeylCharacterRing("B1xC1",style="coroots") sage: [C3(f).branch(B1xC1,rule="tensor") for f in C3.fundamental_weights()] [B1xC1(2,1), B1xC1(2,2) + B1xC1(4,0), B1xC1(0,3) + B1xC1(4,1)] EXAMPLES: (Symmetric Power) :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: B3=WeylCharacterRing("B3",style="coroots") sage: C3=WeylCharacterRing("C3",style="coroots") sage: [B3(fw).branch(A1,rule="symmetric_power") for fw in B3.fundamental_weights()] [A1(6), A1(2) + A1(6) + A1(10), A1(0) + A1(6)] sage: [C3(fw).branch(A1,rule="symmetric_power") for fw in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] EXAMPLES: (Miscellaneous type) :: sage: G2 = WeylCharacterRing("G2") sage: [fw1, fw2, fw3] = B3.fundamental_weights() sage: B3(fw1+fw3).branch(G2, rule="miscellaneous") G2(1,0,-1) + G2(2,-1,-1) + G2(2,0,-2) EXAMPLES: (Isomorphic type) :: sage: [B2(x).branch(C2, rule="isomorphic") for x in B2.fundamental_weights()] [C2(1,1), C2(1,0)] sage: [C2(x).branch(B2, rule="isomorphic") for x in C2.fundamental_weights()] [B2(1/2,1/2), B2(1,0)] sage: [A3(x).branch(D3,rule="isomorphic") for x in A3.fundamental_weights()] [D3(1/2,1/2,1/2), D3(1,0,0), D3(1/2,1/2,-1/2)] sage: [D3(x).branch(A3,rule="isomorphic") for x in D3.fundamental_weights()] [A3(1/2,1/2,-1/2,-1/2), A3(1/4,1/4,1/4,-3/4), A3(3/4,-1/4,-1/4,-1/4)] Here A3(x,y,z,w) can be understood as a representation of SL(4). The weights x,y,z,w and x+t,y+t,z+t,w+t represent the same representation of SL(4) - though not of GL(4) - since A3(x+t,y+t,z+t,w+t) is the same as A3(x,y,z,w) tensored with `det^t`. So as a representation of SL(4), A3(1/4,1/4,1/4,-3/4) is the same as A3(1,1,1,0). The exterior square representation SL(4) -> GL(6) admits an invariant symmetric bilinear form, so is a representation SL(4) -> SO(6) that lifts to an isomorphism SL(4) -> Spin(6). Conversely, there are two isomorphisms SO(6) -> SL(4), of which we've selected one. In cases like this you might prefer style="coroots". :: sage: A3 = WeylCharacterRing("A3",style="coroots") sage: D3 = WeylCharacterRing("D3",style="coroots") sage: [D3(fw) for fw in D3.fundamental_weights()] [D3(1,0,0), D3(0,1,0), D3(0,0,1)] sage: [D3(fw).branch(A3,rule="isomorphic") for fw in D3.fundamental_weights()] [A3(0,1,0), A3(0,0,1), A3(1,0,0)] sage: D2 = WeylCharacterRing("D2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: [D2(fw).branch(A1xA1,rule="isomorphic") for fw in D2.fundamental_weights()] [A1xA1(1,0), A1xA1(0,1)] EXAMPLES: (Branching rules from plethysms) This is a general rule that includes any branching rule from types A,B,C or D as a special case. Thus it could be used in place of the above rules and would give the same results. However it is most useful when branching from G to a maximal subgroup H such that rank(H) < rank(G)-1. We consider a homomorphism H --> G where G is one of SL(r+1), SO(2r+1), Sp(2r) or SO(2r). The function branching_rule_from_plethysm produces the corresponding branching rule. The main ingredient is the character chi of the representation of H that is the homomorphism to GL(r+1), GL(2r+1) or GL(2r). This rule is so powerful that it contains the other rules implemented above as special cases. First let us consider the symmetric fifth power representation of SL(2). :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: chi=A1([5]) sage: chi.degree() 6 sage: chi.frobenius_schur_indicator() -1 This confirms that the character has degree 6 and is symplectic, so it corresponds to a homomorphism SL(2) --> Sp(6), and there is a corresponding branching rule C3 => A1. :: sage: C3 = WeylCharacterRing("C3",style="coroots") sage: sym5rule = branching_rule_from_plethysm(chi,"C3") sage: [C3(hwv).branch(A1,rule=sym5rule) for hwv in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] This is identical to the results we would obtain using rule="symmetric_power". The next example gives a branching not available by other standard rules. :: sage: G2 = WeylCharacterRing("G2",style="coroots") sage: D7 = WeylCharacterRing("D7",style="coroots") sage: ad=G2(0,1); ad.degree(); ad.frobenius_schur_indicator() 14 1 sage: spin = D7(0,0,0,0,0,1,0); spin.degree() 64 sage: spin.branch(G2, rule=branching_rule_from_plethysm(ad, "D7")) G2(1,1) We have confirmed that the adjoint representation of G2 gives a homomorphism into SO(14), and that the pullback of the one of the two 64 dimensional spin representations to SO(14) is an irreducible representation of G2. BRANCHING FROM A REDUCIBLE ROOT SYSTEM If you are branching from a reducible root system, the rule is a list of rules, one for each component type in the root system. The rules in the list are given in pairs [type, rule], where type is the root system to be branched to, and rule is the branching rule. :: sage: D4 = WeylCharacterRing("D4",style="coroots") sage: D2xD2 = WeylCharacterRing("D2xD2",style="coroots") sage: A1xA1xA1xA1 = WeylCharacterRing("A1xA1xA1xA1",style="coroots") sage: rr = [["A1xA1","isomorphic"],["A1xA1","isomorphic"]] sage: [D4(fw) for fw in D4.fundamental_weights()] [D4(1,0,0,0), D4(0,1,0,0), D4(0,0,1,0), D4(0,0,0,1)] sage: [D4(fw).branch(D2xD2,rule="extended").branch(A1xA1xA1xA1,rule=rr) for fw in D4.fundamental_weights()] [A1xA1xA1xA1(0,0,1,1) + A1xA1xA1xA1(1,1,0,0), A1xA1xA1xA1(0,0,0,2) + A1xA1xA1xA1(0,0,2,0) + A1xA1xA1xA1(0,2,0,0) + A1xA1xA1xA1(1,1,1,1) + A1xA1xA1xA1(2,0,0,0), A1xA1xA1xA1(0,1,1,0) + A1xA1xA1xA1(1,0,0,1), A1xA1xA1xA1(0,1,0,1) + A1xA1xA1xA1(1,0,1,0)] WRITING YOUR OWN RULES Suppose you want to branch from a group G to a subgroup H. Arrange the embedding so that a Cartan subalgebra U of H is contained in a Cartan subalgebra T of G. There is thus a mapping from the weight spaces Lie(T)* --> Lie(U)*. Two embeddings will produce identical branching rules if they differ by an element of the Weyl group of H. The RULE is this map Lie(T)* = G.space() to Lie(U)* = H.space(), which you may implement as a function. As an example, let us consider how to implement the branching rule A3 => C2. Here H = C2 = Sp(4) embedded as a subgroup in A3 = GL(4). The Cartan subalgebra U consists of diagonal matrices with eigenvalues u1, u2, -u2, -u1. The C2.space() is the two dimensional vector spaces consisting of the linear functionals u1 and u2 on U. On the other hand Lie(T) is RR^4. A convenient way to see the restriction is to think of it as the adjoint of the map [u1,u2] -> [u1,u2,-u2,-u1], that is, [x0,x1,x2,x3] -> [x0-x3,x1-x2]. Hence we may encode the rule: :: def rule(x): return [x[0]-x[3],x[1]-x[2]] or simply: :: rule = lambda x : [x[0]-x[3],x[1]-x[2]] EXAMPLES:: sage: A3 = WeylCharacterRing(['A',3]) sage: C2 = WeylCharacterRing(['C',2]) sage: rule = lambda x : [x[0]-x[3],x[1]-x[2]] sage: branch_weyl_character(A3([1,1,0,0]),A3,C2,rule) C2(0,0) + C2(1,1) sage: A3(1,1,0,0).branch(C2, rule) == C2(0,0) + C2(1,1) True """ if type(rule) == str: rule = get_branching_rule(R._cartan_type, S._cartan_type, rule) elif R._cartan_type.is_compound(): Rtypes = R._cartan_type.component_types() Stypes = [CartanType(l[0]) for l in rule] rules = [l[1] for l in rule] ntypes = len(Rtypes) rule_list = [get_branching_rule(Rtypes[i], Stypes[i], rules[i]) for i in range(ntypes)] shifts = R._cartan_type._shifts def rule(x): yl = [] for i in range(ntypes): yl.append(rule_list[i](x[shifts[i]:shifts[i+1]])) return flatten(yl) mdict = {} for k in chi._mdict: if S._style == "coroots": if S._cartan_type.is_atomic() and S._cartan_type[0] == 'E': if S._cartan_type[1] == 6: h = S._space(rule(list(k.to_vector()))) h = S.coerce_to_e6(h) elif S._cartan_type[1] == 7: h = S.coerce_to_e7(S._space(rule(list(k.to_vector())))) else: h = S.coerce_to_sl(S._space(rule(list(k.to_vector())))) else: h = S._space(rule(list(k.to_vector()))) if h in mdict: mdict[h] += chi._mdict[k] else: mdict[h] = chi._mdict[k] hdict = S.char_from_weights(mdict) return WeylCharacter(S, hdict, mdict)
18e17f56d0c583cdb129ede5947113fbc43df9f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/18e17f56d0c583cdb129ede5947113fbc43df9f1/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041, 578, 524, 29087, 611, 358, 279, 10648, 1245, 18, 2164, 364, 3454, 16, 534, 18, 385, 18, 1475, 310, 16, 15449, 310, 2931, 364, 667, 1706, 511, 1385, 3252, 1450, 8171, 471, 12490, 280, 2590, 18, 804, 18, 4360, 1900, 18, 432, 1725, 261, 3657, 5877, 3631, 27542, 17, 6334, 29, 16, 9017, 73, 16, 399, 304, 471, 9980, 275, 2848, 310, 16, 934, 429, 3803, 310, 2931, 364, 667, 1706, 15108, 5574, 16, 2604, 18, 3986, 264, 18, 2361, 18, 348, 504, 18, 890, 10321, 261, 6976, 25, 3631, 1158, 18, 1059, 16, 2872, 1611, 17, 2313, 5558, 16, 25891, 47, 528, 471, 453, 2045, 69, 16, 30536, 434, 463, 23124, 16, 23046, 471, 15449, 310, 15718, 364, 868, 6706, 1012, 434, 4477, 511, 1385, 2262, 908, 2848, 345, 261, 49, 297, 2183, 1505, 79, 25293, 16, 5342, 11861, 3631, 471, 478, 69, 1355, 16, 15644, 3516, 16, 1475, 310, 471, 29271, 1075, 321, 73, 16, 1166, 3803, 310, 2931, 1547, 26372, 635, 886, 546, 1900, 81, 18, 804, 18, 4360, 1900, 18, 432, 16977, 261, 6976, 26, 3631, 1158, 18, 4648, 16, 10659, 2499, 413, 5558, 2539, 18, 225, 12943, 30, 225, 300, 12176, 24010, 10335, 300, 279, 3351, 434, 611, 225, 300, 12176, 54, 10335, 300, 326, 678, 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, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041, 578, 524, 29087, 611, 358, 279, 10648, 1245, 18, 2164, 364, 3454, 16, 534, 18, 385, 18, 1475, 310, 16, 15449, 310, 2931, 364, 667, 1706, 511, 1385, 3252, 1450, 8171, 471, 12490, 280, 2590, 18, 804, 18, 4360, 1900, 18, 432, 1725, 261, 3657, 5877, 3631, 27542, 17, 6334, 29, 16, 9017, 73, 16, 399, 304, 471, 9980, 275, 2848, 310, 16, 934, 429, 3803, 310, 2931, 364, 667, 1706, 15108, 5574, 16, 2604, 18, 3986, 264, 18, 2361, 18, 348, 504, 2 ]
timestamp = float(timestamp)
timestamp = float(pprz_tstamp)
def ProcessLine(self, line): fields = line.strip().split(' ') [timestamp, pprz_tstamp, ac_id, msg_id] = fields[0:4] data_fields = map(lambda x: chr(int(x, 16)), fields[5:]) ac_id = int(ac_id) timestamp = float(timestamp) msg_id = int(msg_id)
dd090c00ef24858430fd717a044d57929c58a505 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14091/dd090c00ef24858430fd717a044d57929c58a505/onboard_log_transform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 1670, 12, 2890, 16, 980, 4672, 1466, 273, 980, 18, 6406, 7675, 4939, 2668, 8624, 306, 5508, 16, 293, 683, 94, 67, 88, 14317, 16, 1721, 67, 350, 16, 1234, 67, 350, 65, 273, 1466, 63, 20, 30, 24, 65, 501, 67, 2821, 273, 852, 12, 14661, 619, 30, 4513, 12, 474, 12, 92, 16, 2872, 13, 3631, 1466, 63, 25, 30, 5717, 1721, 67, 350, 273, 509, 12, 1077, 67, 350, 13, 2858, 273, 1431, 12, 84, 683, 94, 67, 88, 14317, 13, 1234, 67, 350, 273, 509, 12, 3576, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4389, 1670, 12, 2890, 16, 980, 4672, 1466, 273, 980, 18, 6406, 7675, 4939, 2668, 8624, 306, 5508, 16, 293, 683, 94, 67, 88, 14317, 16, 1721, 67, 350, 16, 1234, 67, 350, 65, 273, 1466, 63, 20, 30, 24, 65, 501, 67, 2821, 273, 852, 12, 14661, 619, 30, 4513, 12, 474, 12, 92, 16, 2872, 13, 3631, 1466, 63, 25, 30, 5717, 1721, 67, 350, 273, 509, 12, 1077, 67, 350, 13, 2858, 273, 1431, 12, 84, 683, 94, 67, 88, 14317, 13, 1234, 67, 350, 273, 509, 12, 3576, 67, 350, 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 ]
x = int_event_id // 1000000000
a = int_event_id // 1000000000
def get_id_parts(self): """ Return the three pieces of the int_8s-style event_id. """ int_event_id = int(self.event_id) x = int_event_id // 1000000000 slidenum = (int_event_id % 1000000000) // 100000 y = int_event_id % 100000 return x, slidenum, y
6a3cf9780bb8ded93d5999863ebf0eb1fe222357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/6a3cf9780bb8ded93d5999863ebf0eb1fe222357/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 67, 6019, 12, 2890, 4672, 3536, 2000, 326, 8925, 10167, 434, 326, 509, 67, 28, 87, 17, 4060, 871, 67, 350, 18, 3536, 509, 67, 2575, 67, 350, 273, 509, 12, 2890, 18, 2575, 67, 350, 13, 279, 273, 509, 67, 2575, 67, 350, 368, 15088, 3784, 2020, 350, 7924, 273, 261, 474, 67, 2575, 67, 350, 738, 15088, 3784, 13, 368, 25259, 677, 273, 509, 67, 2575, 67, 350, 738, 25259, 327, 619, 16, 2020, 350, 7924, 16, 677, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 67, 6019, 12, 2890, 4672, 3536, 2000, 326, 8925, 10167, 434, 326, 509, 67, 28, 87, 17, 4060, 871, 67, 350, 18, 3536, 509, 67, 2575, 67, 350, 273, 509, 12, 2890, 18, 2575, 67, 350, 13, 279, 273, 509, 67, 2575, 67, 350, 368, 15088, 3784, 2020, 350, 7924, 273, 261, 474, 67, 2575, 67, 350, 738, 15088, 3784, 13, 368, 25259, 677, 273, 509, 67, 2575, 67, 350, 738, 25259, 327, 619, 16, 2020, 350, 7924, 16, 677, 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 ]
(function_content, last_step, action_score) = print_function_calls( req=req,
(function_content, last_step, action_score, rn) = \ print_function_calls(req=req,
def endaction(req, c=CFG_SITE_NAME, ln=CFG_SITE_LANG, doctype="", act="", startPg=1, access="", mainmenu="", fromdir="", nextPg="", nbPg="", curpage=1, step=1, mode="U"): """Having filled-in the WebSubmit form created for metadata by the interface function, the user clicks a button to either "finish the submission" or to "proceed" to the next stage of the submission. At this point, a variable called "step" will be given a value of 1 or above, which means that this function is called by websubmit_webinterface. So, during all non-zero steps of the submission, this function is called. In other words, this function is called during the BACK-END phase of a submission, in which WebSubmit *functions* are being called. The function first ensures that all of the WebSubmit form field values have been saved in the current working submission directory, in text- files with the same name as the field elements have. It then determines the functions to be called for the given step of the submission, and executes them. Following this, if this is the last step of the submission, it logs the submission as "finished" in the journal of submissions. @param req: (apache request object) *** NOTE: Added into this object, is a variable called "form" (req.form). This is added into the object in the index function of websubmit_webinterface. It contains a "mod_python.util.FieldStorage" instance, that contains the form-fields found on the previous submission page. @param c: (string), defaulted to CFG_SITE_NAME. The name of the CDS Invenio installation. @param ln: (string), defaulted to CFG_SITE_LANG. The language in which to display the pages. @param doctype: (string) - the doctype ID of the doctype for which the submission is being made. @param act: (string) - The ID of the action being performed (e.g. submission of bibliographic information; modification of bibliographic information, etc). @param startPg: (integer) - Starting page for the submission? Defaults to 1. @param indir: (string) - the directory used to store all submissions of the given "type" of this submission. For example, if the submission is of the type "modify bibliographic information", this variable would contain "modify". @param access: (string) - the "access" number for the submission (e.g. 1174062451_7010). This number is also used as the name for the current working submission directory. @param mainmenu: (string) - contains the URL (minus the CDS Invenio home stem) for the submission's home-page. (E.g. If this submission is "PICT", the "mainmenu" file would contain "/submit?doctype=PICT". @param fromdir: @param nextPg: @param nbPg: @param curpage: (integer) - the current submission page number. Defaults to 1. @param step: (integer) - the current step of the submission. Defaults to 1. @param mode: """ # load the right message language _ = gettext_set_language(ln) try: rn except NameError: rn = "" dismode = mode ln = wash_language(ln) sys.stdout = req t = "" # get user ID: uid = getUid(req) uid_email = get_email(uid) # Preliminary tasks # check that the user is logged in if uid_email == "" or uid_email == "guest": return warningMsg(websubmit_templates.tmpl_warning_message( ln = ln, msg = _("Sorry, you must log in to perform this action.") ), req, ln) ## check we have minimum fields if not doctype or not act or not access: ## We don't have all the necessary information to go ahead ## with this submission: return warningMsg(_("Not enough information to go ahead with the submission."), req, c, ln) if doctype and act: ## Let's clean the input details = get_details_of_submission(doctype, act) if not details: return warningMsg(_("Invalid doctype and act parameters"), req, c, ln) doctype = details[0] act = details[1] try: assert(not access or re.match('\d+_\d+', access)) except AssertionError: register_exception(req=req, prefix='doctype="%s", access="%s"' % (doctype, access)) return warningMsg(_("Invalid parameters"), req, c, ln) ## Before continuing to process the submitted data, verify that ## this submission has not already been completed: if submission_is_finished(doctype, act, access, uid_email): ## This submission has already been completed. ## This situation can arise when, having completed a submission, ## the user uses the browser's back-button to go back to the form ## stage of the submission and then tries to submit once more. ## This is unsafe and should not be allowed. Instead of re-processing ## the submitted data, display an error message to the user: wrnmsg = """<b>This submission has been completed. Please go to the""" \ """ <a href="/submit?doctype=%(doctype)s&amp;ln=%(ln)s">""" \ """main menu</a> to start a new submission.</b>""" \ % { 'doctype' : quote_plus(doctype), 'ln' : ln } return warningMsg(wrnmsg, req) ## Get the number of pages for this submission: subname = "%s%s" % (act, doctype) ## retrieve the action and doctype data ## Get the submission storage directory from the DB: submission_dir = get_storage_directory_of_action(act) if submission_dir: indir = submission_dir else: ## Unable to determine the submission-directory: return warningMsg(_("Unable to find the submission directory for the action: %s") % escape(str(act)), req, c, ln) # The following words are reserved and should not be used as field names reserved_words = ["stop", "file", "nextPg", "startPg", "access", "curpage", "nbPg", "act", \ "indir", "doctype", "mode", "step", "deleted", "file_path", "userfile_name"] # This defines the path to the directory containing the action data curdir = os.path.join(CFG_WEBSUBMIT_STORAGEDIR, indir, doctype, access) try: assert(curdir == os.path.abspath(curdir)) except AssertionError: register_exception(req=req, prefix='indir="%s", doctype=%s, access=%s' % (indir, doctype, access)) return warningMsg(_("Invalid parameters"), req, c, ln) ## If the submission directory still does not exist, we create it if not os.path.exists(curdir): try: os.makedirs(curdir) except Exception, e: register_exception(req=req, alert_admin=True) return warningMsg(_("Unable to create a directory for this submission. The administrator has been alerted."), req, c, ln) # retrieve the original main menu url ans save it in the "mainmenu" file if mainmenu != "": fp = open(os.path.join(curdir, "mainmenu"), "w") fp.write(mainmenu) fp.close() # and if the file containing the URL to the main menu exists # we retrieve it and store it in the $mainmenu variable if os.path.exists(os.path.join(curdir, "mainmenu")): fp = open(os.path.join(curdir, "mainmenu"), "r"); mainmenu = fp.read() fp.close() else: mainmenu = "%s/submit" % (CFG_SITE_URL,) ## retrieve the name of the file in which the reference of ## the submitted document will be stored rn_filename = get_parameter_value_for_doctype(doctype, "edsrn") if rn_filename is not None: edsrn = rn_filename else: ## Unknown value for edsrn - set it to an empty string: edsrn = "" ## Determine whether the action is finished ## (ie there are no other steps after the current one): finished = function_step_is_last(doctype, act, step) ## Let's write in curdir file under curdir the curdir value ## in case e.g. it is needed in FFT. fp = open(os.path.join(curdir, "curdir"), "w") fp.write(curdir) fp.close() # Save the form fields entered in the previous submission page # If the form was sent with the GET method form = req.form value = "" # we parse all the form variables for key in form.keys(): formfields = form[key] filename = key.replace("[]", "") file_to_open = os.path.join(curdir, filename) try: assert(file_to_open == os.path.abspath(file_to_open)) assert(file_to_open.startswith(CFG_WEBSUBMIT_STORAGEDIR)) except AssertionError: register_exception(req=req, prefix='curdir="%s", filename="%s"' % (curdir, filename)) return warningMsg(_("Invalid parameters"), req, c, ln) # Do not write reserved filenames to disk if filename in CFG_RESERVED_SUBMISSION_FILENAMES: # Unless there is really an element with that name in the # interface, which means that admin authorized it if not filename in [submission_field[3] for submission_field in get_form_fields_on_submission_page(subname, curpage)]: # Still this will filter out reserved field names that # might have been called by functions such as # Create_Modify_Interface function in MBI step, or # dynamic fields in response elements, but that is # unlikely to be a problem. continue # Skip variables containing characters that are not allowed in # WebSubmit elements if not string_is_alphanumeric_including_underscore(filename): continue # the field is an array if isinstance(formfields,types.ListType): fp = open(file_to_open, "w") for formfield in formfields: #stripslashes(value) value = specialchars(formfield) fp.write(value+"\n") fp.close() # the field is a normal string elif isinstance(formfields, types.StringTypes) and formfields != "": value = formfields fp = open(file_to_open, "w") fp.write(specialchars(value)) fp.close() # the field is a file elif hasattr(formfields, "filename") and formfields.filename: dir_to_open = os.path.join(curdir, 'files', key) try: assert(dir_to_open == os.path.abspath(dir_to_open)) assert(dir_to_open.startswith(CFG_WEBSUBMIT_STORAGEDIR)) except AssertionError: register_exception(req=req, prefix='curdir="%s", key="%s"' % (curdir, key)) return warningMsg(_("Invalid parameters"), req, c, ln) if not os.path.exists(dir_to_open): try: os.makedirs(dir_to_open) except: register_exception(req=req, alert_admin=True) return warningMsg(_("Cannot create submission directory. The administrator has been alerted."), req, c, ln) filename = formfields.filename ## Before saving the file to disc, wash the filename (in particular ## washing away UNIX and Windows (e.g. DFS) paths): filename = os.path.basename(filename.split('\\')[-1]) filename = filename.strip() if filename != "": # This may be dangerous if the file size is bigger than the available memory data = formfields.file.read() fp = open(os.path.join(dir_to_open, filename), "w") fp.write(data) fp.close() fp = open(os.path.join(curdir, "lastuploadedfile"), "w") fp.write(filename) fp.close() fp = open(file_to_open, "w") fp.write(filename) fp.close() else: return warningMsg(_("No file uploaded?"), req, c, ln) ## if the found field is the reference of the document ## we save this value in the "journal of submissions" if uid_email != "" and uid_email != "guest": if key == edsrn: update_submission_reference_in_log(doctype, access, uid_email, value) ## get the document type's long-name: doctype_lname = get_longname_of_doctype(doctype) if doctype_lname is not None: ## Got the doctype long-name: replace spaces with HTML chars: docname = doctype_lname.replace(" ", "&nbsp;") else: ## Unknown document type: return warningMsg(_("Unknown document type"), req, c, ln) ## get the action's long-name: actname = get_longname_of_action(act) if actname is None: ## Unknown action: return warningMsg(_("Unknown action"), req, c, ln) num_submission_pages = get_num_pages_of_submission(subname) if num_submission_pages is not None: nbpages = num_submission_pages else: ## Unable to determine the number of pages for this submission: return warningMsg(_("Unable to determine the number of submission pages."), \ req, CFG_SITE_NAME, ln) ## Determine whether the action is finished ## (ie there are no other steps after the current one): last_step = function_step_is_last(doctype, act, step) next_action = '' ## The next action to be proposed to the user # Prints the action details, returning the mandatory score action_score = action_details(doctype, act) current_level = get_level(doctype, act) # Calls all the function's actions function_content = '' try: ## Handle the execution of the functions for this ## submission/step: start_time = time.time() (function_content, last_step, action_score) = print_function_calls( req=req, doctype=doctype, action=act, step=step, form=form, start_time=start_time, access=access, curdir=curdir, dismode=mode, rn=rn, last_step=last_step, action_score=action_score, ln=ln) except InvenioWebSubmitFunctionError, e: register_exception(req=req, alert_admin=True, prefix='doctype="%s", action="%s", step="%s", form="%s", start_time="%s"' % (doctype, act, step, form, start_time)) ## There was a serious function-error. Execution ends. return warningMsg(_("A serious function-error has been encountered. Adminstrators have been alerted. <br /><em>Please not that this might be due to wrong characters inserted into the form</em> (e.g. by copy and pasting some text from a PDF file)."), req, c, ln) except InvenioWebSubmitFunctionStop, e: ## For one reason or another, one of the functions has determined that ## the data-processing phase (i.e. the functions execution) should be ## halted and the user should be returned to the form interface once ## more. (NOTE: Redirecting the user to the Web-form interface is ## currently done using JavaScript. The "InvenioWebSubmitFunctionStop" ## exception contains a "value" string, which is effectively JavaScript ## - probably an alert box and a form that is submitted). **THIS WILL ## CHANGE IN THE FUTURE WHEN JavaScript IS REMOVED!** if e.value is not None: function_content = e.value else: function_content = e else: ## No function exceptions (InvenioWebSubmitFunctionStop, ## InvenioWebSubmitFunctionError) were raised by the functions. Propose ## the next action (if applicable), and log the submission as finished: ## If the action was mandatory we propose the next ## mandatory action (if any) if action_score != -1 and last_step == 1: next_action = Propose_Next_Action(doctype, \ action_score, \ access, \ current_level, \ indir) ## If we are in the last step of an action, we can update ## the "journal of submissions" if last_step == 1: if uid_email != "" and uid_email != "guest" and rn != "": ## update the "journal of submission": ## Does the submission already exist in the log? submission_exists = \ submission_exists_in_log(doctype, act, access, uid_email) if submission_exists == 1: ## update the rn and status to finished for this submission ## in the log: update_submission_reference_and_status_in_log(doctype, \ act, \ access, \ uid_email, \ rn, \ "finished") else: ## Submission doesn't exist in log - create it: log_new_completed_submission(doctype, \ act, \ access, \ uid_email, \ rn) ## Having executed the functions, create the page that will be displayed ## to the user: t = websubmit_templates.tmpl_page_endaction( ln = ln, # these fields are necessary for the navigation nextPg = nextPg, startPg = startPg, access = access, curpage = curpage, nbPg = nbPg, nbpages = nbpages, doctype = doctype, act = act, docname = docname, actname = actname, mainmenu = mainmenu, finished = finished, function_content = function_content, next_action = next_action, ) if not finished: t += websubmit_templates.tmpl_page_do_not_leave_submission_js(ln) # start display: req.content_type = "text/html" req.send_http_header() p_navtrail = '<a href="/submit?ln='+ln+'" class="navtrail">' + _("Submit") +\ """</a>&nbsp;>&nbsp;<a href="/submit?doctype=%(doctype)s&amp;ln=%(ln)s" class="navtrail">%(docname)s</a>""" % { 'doctype' : quote_plus(doctype), 'docname' : docname, 'ln' : ln, } return page(title= actname, body = t, navtrail = p_navtrail, description="submit documents", keywords="submit", uid = uid, language = ln, req = req, navmenuid='submit')
217fdbc8173904f3e1bec09360d062f213665801 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/217fdbc8173904f3e1bec09360d062f213665801/websubmit_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 1128, 12, 3658, 16, 276, 33, 19727, 67, 20609, 67, 1985, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 2006, 1546, 3113, 2774, 5414, 1546, 3113, 628, 1214, 1546, 3113, 1024, 27265, 1546, 3113, 4264, 27265, 1546, 3113, 662, 2433, 33, 21, 16, 2235, 33, 21, 16, 1965, 1546, 57, 6, 4672, 3536, 29954, 6300, 17, 267, 326, 2999, 11620, 646, 2522, 364, 1982, 635, 326, 1560, 445, 16, 326, 729, 27659, 279, 3568, 358, 3344, 315, 13749, 326, 8515, 6, 578, 358, 315, 685, 5288, 6, 358, 326, 1024, 6009, 434, 326, 8515, 18, 2380, 333, 1634, 16, 279, 2190, 2566, 315, 4119, 6, 903, 506, 864, 279, 460, 434, 404, 578, 5721, 16, 1492, 4696, 716, 333, 445, 353, 2566, 635, 3311, 9297, 67, 1814, 4757, 897, 18, 6155, 16, 4982, 777, 1661, 17, 7124, 6075, 434, 326, 8515, 16, 333, 445, 353, 2566, 18, 225, 657, 1308, 4511, 16, 333, 445, 353, 2566, 4982, 326, 15842, 17, 4415, 6855, 434, 279, 8515, 16, 316, 1492, 2999, 11620, 380, 10722, 14, 854, 3832, 2566, 18, 225, 1021, 445, 1122, 11932, 716, 777, 434, 326, 2999, 11620, 646, 652, 924, 1240, 2118, 5198, 316, 326, 783, 5960, 8515, 1867, 16, 316, 977, 17, 1390, 598, 326, 1967, 508, 487, 326, 652, 2186, 1240, 18, 2597, 1508, 12949, 326, 4186, 358, 506, 2566, 364, 326, 864, 2235, 434, 326, 8515, 16, 471, 11997, 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, 679, 1128, 12, 3658, 16, 276, 33, 19727, 67, 20609, 67, 1985, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 2006, 1546, 3113, 2774, 5414, 1546, 3113, 628, 1214, 1546, 3113, 1024, 27265, 1546, 3113, 4264, 27265, 1546, 3113, 662, 2433, 33, 21, 16, 2235, 33, 21, 16, 1965, 1546, 57, 6, 4672, 3536, 29954, 6300, 17, 267, 326, 2999, 11620, 646, 2522, 364, 1982, 635, 326, 1560, 445, 16, 326, 729, 27659, 279, 3568, 358, 3344, 315, 13749, 326, 8515, 6, 578, 358, 315, 685, 5288, 6, 358, 326, 1024, 6009, 434, 326, 8515, 18, 2380, 333, 1634, 16, 279, 2190, 2566, 315, 4119, 6, 2 ]
"""Equal if all attributes and index are equal"""
"""Equal if all attributes are equal"""
def __eq__(self, ea): """Equal if all attributes and index are equal""" assert isinstance(ea, ExtendedAttributes) return ea.index == self.index and ea.attr_dict == self.attr_dict
3d64cb44126cdead28a88af81e6fdfb5a035c6f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/3d64cb44126cdead28a88af81e6fdfb5a035c6f2/eas_acls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 24164, 4672, 3536, 5812,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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, 1001, 11253, 972, 12, 2890, 16, 24164, 4672, 3536, 5812, 309, 777, 1677, 854, 3959, 8395, 1815, 1549, 12, 24852, 16, 14094, 2498, 13, 327, 24164, 18, 1615, 422, 365, 18, 1615, 471, 24164, 18, 1747, 67, 1576, 422, 365, 18, 1747, 67, 1576, 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 ]
print "source", nodelist[-1]
def factor(self, nodelist): elt = nodelist[0] t = elt[0] print "source", nodelist[-1] node = self.com_node(nodelist[-1]) # need to handle (unary op)constant here... if t == token.PLUS: node = UnaryAdd(node) node.lineno = elt[2] elif t == token.MINUS: print node node = UnarySub(node) node.lineno = elt[2] elif t == token.TILDE: node = Invert(node) node.lineno = elt[2] return node
20d48748eb8fe08a35d56bb93a2f3178f7eab3e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20d48748eb8fe08a35d56bb93a2f3178f7eab3e8/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 30068, 4672, 11572, 273, 30068, 63, 20, 65, 268, 273, 11572, 63, 20, 65, 756, 273, 365, 18, 832, 67, 2159, 12, 82, 24221, 18919, 21, 5717, 468, 1608, 358, 1640, 261, 318, 814, 1061, 13, 14384, 2674, 2777, 309, 268, 422, 1147, 18, 6253, 3378, 30, 756, 273, 20324, 986, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 1327, 268, 422, 1147, 18, 6236, 3378, 30, 1172, 756, 756, 273, 20324, 1676, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 1327, 268, 422, 1147, 18, 56, 2627, 1639, 30, 756, 273, 657, 1097, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 327, 756, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 30068, 4672, 11572, 273, 30068, 63, 20, 65, 268, 273, 11572, 63, 20, 65, 756, 273, 365, 18, 832, 67, 2159, 12, 82, 24221, 18919, 21, 5717, 468, 1608, 358, 1640, 261, 318, 814, 1061, 13, 14384, 2674, 2777, 309, 268, 422, 1147, 18, 6253, 3378, 30, 756, 273, 20324, 986, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 1327, 268, 422, 1147, 18, 6236, 3378, 30, 1172, 756, 756, 273, 20324, 1676, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 1327, 268, 422, 1147, 18, 56, 2627, 1639, 30, 756, 273, 657, 1097, 12, 2159, 13, 756, 18, 17782, 273, 11572, 63, 22, 65, 327, 756, 2, -100 ]
if len(self.msgcache) == 0: parent.thread_timer.start() return msg = self.msgcache.pop(0) irc.queueMsg(msg)
if len(self.msgcache): msg = self.msgcache.pop(0) if irc: irc.queueMsg(msg)
def dequeue(self, parent, irc): parent.thread_timer.cancel() parent.thread_timer = threading.Timer(30.0, dequeue, args=(parent, irc)) if len(self.msgcache) == 0: parent.thread_timer.start() return msg = self.msgcache.pop(0) irc.queueMsg(msg) parent.thread_timer.start()
353e8a3cb6570f78f25b8d8c4070231630fbefe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/353e8a3cb6570f78f25b8d8c4070231630fbefe3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29964, 12, 2890, 16, 982, 16, 277, 1310, 4672, 982, 18, 5930, 67, 12542, 18, 10996, 1435, 982, 18, 5930, 67, 12542, 273, 17254, 18, 6777, 12, 5082, 18, 20, 16, 29964, 16, 833, 28657, 2938, 16, 277, 1310, 3719, 309, 562, 12, 2890, 18, 3576, 2493, 4672, 1234, 273, 365, 18, 3576, 2493, 18, 5120, 12, 20, 13, 309, 277, 1310, 30, 277, 1310, 18, 4000, 3332, 12, 3576, 13, 982, 18, 5930, 67, 12542, 18, 1937, 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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326, 22398, 316, 326, 981, 30, 1652, 29964, 12, 2890, 16, 982, 16, 277, 1310, 4672, 982, 18, 5930, 67, 12542, 18, 10996, 1435, 982, 18, 5930, 67, 12542, 273, 17254, 18, 6777, 12, 5082, 18, 20, 16, 29964, 16, 833, 28657, 2938, 16, 277, 1310, 3719, 309, 562, 12, 2890, 18, 3576, 2493, 4672, 1234, 273, 365, 18, 3576, 2493, 18, 5120, 12, 20, 13, 309, 277, 1310, 30, 277, 1310, 18, 4000, 3332, 12, 3576, 13, 982, 18, 5930, 67, 12542, 18, 1937, 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 ]
ndx = self.getview(1).append(rowdict)
ndx = self.getview(READWRITE).append(rowdict)
def create_inner(self, **propvalues): rowdict = {} rowdict['id'] = newid = self.maxid self.maxid += 1 ndx = self.getview(1).append(rowdict) propvalues['#ISNEW'] = 1 try: self.set(str(newid), **propvalues) except Exception: self.maxid -= 1 raise return str(newid)
8a26f1933d2876e464fe11a666ad363c83f287dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8a26f1933d2876e464fe11a666ad363c83f287dd/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7872, 12, 2890, 16, 2826, 5986, 2372, 4672, 1027, 1576, 273, 2618, 1027, 1576, 3292, 350, 3546, 273, 394, 350, 273, 365, 18, 1896, 350, 365, 18, 1896, 350, 1011, 404, 5346, 92, 273, 365, 18, 588, 1945, 12, 6949, 11677, 2934, 6923, 12, 492, 1576, 13, 2270, 2372, 3292, 7, 5127, 12917, 3546, 273, 404, 775, 30, 365, 18, 542, 12, 701, 12, 2704, 350, 3631, 2826, 5986, 2372, 13, 1335, 1185, 30, 365, 18, 1896, 350, 3947, 404, 1002, 327, 609, 12, 2704, 350, 13, 225, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7872, 12, 2890, 16, 2826, 5986, 2372, 4672, 1027, 1576, 273, 2618, 1027, 1576, 3292, 350, 3546, 273, 394, 350, 273, 365, 18, 1896, 350, 365, 18, 1896, 350, 1011, 404, 5346, 92, 273, 365, 18, 588, 1945, 12, 6949, 11677, 2934, 6923, 12, 492, 1576, 13, 2270, 2372, 3292, 7, 5127, 12917, 3546, 273, 404, 775, 30, 365, 18, 542, 12, 701, 12, 2704, 350, 3631, 2826, 5986, 2372, 13, 1335, 1185, 30, 365, 18, 1896, 350, 3947, 404, 1002, 327, 609, 12, 2704, 350, 13, 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 ]
return self.start_on_file(path, is_root=is_root, link_level=link_level)
return self.preprocess(raw)
def start_on_file(self, path, is_root=True, link_level=0): self.css = HTMLConverter.CSS.copy() self.pseudo_css = self.override_pcss.copy() self.css.update(self.override_css) path = os.path.abspath(path) os.chdir(os.path.dirname(path)) self.file_name = os.path.basename(path) self.logger.info('Processing %s\n\tParsing HTML...', self.file_name) sys.stdout.flush() nmassage = copy.copy(BeautifulSoup.MARKUP_MASSAGE) nmassage.extend(HTMLConverter.MARKUP_MASSAGE) if self.baen: nmassage.extend(HTMLConverter.BAEN) raw = open(self.file_name, 'rb').read() if self.pdftohtml: nmassage.extend(HTMLConverter.PDFTOHTML) if self.book_designer: nmassage.extend(HTMLConverter.BOOK_DESIGNER) try: soup = BeautifulSoup(raw, convertEntities=BeautifulSoup.HTML_ENTITIES, markupMassage=nmassage) except ConversionError, err: if 'Failed to coerce to unicode' in str(err): raw = unicode(raw, 'utf8', 'replace') soup = BeautifulSoup(raw, convertEntities=BeautifulSoup.HTML_ENTITIES, markupMassage=nmassage) if not self.baen and self.is_baen(soup): self.baen = True self.logger.info('Baen file detected. Re-parsing...') return self.start_on_file(path, is_root=is_root, link_level=link_level) if self.book_designer: t = soup.find(id='BookTitle') if t: self.book.set_title(self.get_text(t)) a = soup.find(id='BookAuthor') if a: self.book.set_author(self.get_text(a)) if self.verbose: tdir = tempfile.gettempdir() dump = open(os.path.join(tdir, 'html2lrf-verbose.html'), 'wb') dump.write(unicode(soup).encode('utf-8')) self.logger.info('Written preprocessed HTML to '+dump.name) dump.close() self.logger.info('\tConverting to BBeB...') sys.stdout.flush() self.current_page = None self.current_para = None self.current_style = {} self.page_break_found = False match = self.PAGE_BREAK_PAT.search(unicode(soup)) if match and not re.match('avoid', match.group(1), re.IGNORECASE): self.page_break_found = True self.target_prefix = path self.links[path] = [] self.previous_text = '\n' self.tops[path] = self.parse_file(soup, is_root) self.processed_files.append(path) self.process_links(is_root, path, link_level=link_level)
6cfd3561e602c55c68be84253152a73d2c9a11bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/6cfd3561e602c55c68be84253152a73d2c9a11bb/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, 67, 5212, 273, 365, 18, 10601, 67, 2436, 1049, 18, 3530, 1435, 365, 18, 5212, 18, 2725, 12, 2890, 18, 10601, 67, 5212, 13, 225, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 13, 1140, 18, 343, 1214, 12, 538, 18, 803, 18, 12287, 12, 803, 3719, 365, 18, 768, 67, 529, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 365, 18, 4901, 18, 1376, 2668, 7798, 738, 87, 64, 82, 64, 88, 13963, 3982, 7821, 16, 365, 18, 768, 67, 529, 13, 2589, 18, 10283, 18, 11330, 1435, 8442, 428, 410, 273, 1610, 18, 3530, 12, 1919, 25432, 27069, 18, 12693, 3079, 67, 5535, 6086, 13, 8442, 428, 410, 18, 14313, 12, 4870, 5072, 18, 12693, 3079, 67, 5535, 6086, 13, 309, 365, 18, 12124, 275, 30, 8442, 428, 410, 18, 14313, 12, 4870, 5072, 18, 12536, 1157, 13, 225, 1831, 273, 1696, 12, 2890, 18, 768, 67, 529, 16, 296, 6731, 16063, 896, 1435, 309, 365, 18, 7699, 869, 2620, 30, 8442, 428, 410, 18, 14313, 12, 4870, 5072, 18, 17508, 4296, 4870, 13, 309, 365, 18, 3618, 67, 16934, 264, 30, 8442, 428, 410, 18, 14313, 12, 4870, 5072, 18, 28163, 67, 1639, 11260, 654, 13, 775, 30, 15418, 273, 28132, 12, 1899, 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, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, 67, 5212, 273, 365, 18, 10601, 67, 2436, 1049, 18, 3530, 1435, 365, 18, 5212, 18, 2725, 12, 2890, 18, 10601, 67, 5212, 13, 225, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 13, 1140, 18, 343, 1214, 12, 538, 18, 803, 18, 12287, 12, 803, 3719, 365, 18, 768, 67, 529, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 365, 18, 4901, 18, 1376, 2668, 7798, 738, 87, 64, 82, 64, 88, 13963, 3982, 7821, 16, 365, 18, 2 ]
tablesToDelete.insert( 0, "`type%s`" % typeName ) tablesToDelete.insert( 0, "`bucket%s`" % typeName )
tablesToDelete.insert( 0, "`%s`" % self.__getTableName( "type", typeName ) ) tablesToDelete.insert( 0, "`%s`" % self.__getTableName( "bucket", typeName ) )
def deleteType( self, typeName ): """ Deletes a type """ if typeName not in self.dbCatalog: return S_ERROR( "Type %s does not exist" % typeName ) gLogger.info( "Deleting type", typeName ) tablesToDelete = [] for keyField in self.dbCatalog[ typeName ][ 'keys' ]: self.dbKeys[ keyField ] -= 1 if self.dbKeys[ keyField ] == 0: tablesToDelete.append( "key%s" % keyField ) gLogger.info( "Deleting key table", keyField ) del( self.dbKeys[ keyField ] ) tablesToDelete.insert( 0, "`type%s`" % typeName ) tablesToDelete.insert( 0, "`bucket%s`" % typeName ) retVal = self._query( "DROP TABLE %s" % ", ".join( tablesToDelete ) ) if not retVal[ 'OK' ]: return retVal retVal = self._update( "DELETE FROM catalogTypes WHERE name='%s'" % typeName ) del( self.dbCatalog[ typeName ] ) return S_OK()
7663d95782c4987a99eb5394bb9f465c2ab982d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/7663d95782c4987a99eb5394bb9f465c2ab982d5/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 559, 12, 365, 16, 8173, 262, 30, 3536, 17973, 279, 618, 3536, 309, 8173, 486, 316, 365, 18, 1966, 9769, 30, 327, 348, 67, 3589, 12, 315, 559, 738, 87, 1552, 486, 1005, 6, 738, 8173, 262, 314, 3328, 18, 1376, 12, 315, 20433, 618, 3113, 8173, 262, 4606, 14976, 273, 5378, 364, 498, 974, 316, 365, 18, 1966, 9769, 63, 8173, 308, 63, 296, 2452, 11, 308, 30, 365, 18, 1966, 2396, 63, 498, 974, 308, 3947, 404, 309, 365, 18, 1966, 2396, 63, 498, 974, 308, 422, 374, 30, 4606, 14976, 18, 6923, 12, 315, 856, 9, 87, 6, 738, 498, 974, 262, 314, 3328, 18, 1376, 12, 315, 20433, 498, 1014, 3113, 498, 974, 262, 1464, 12, 365, 18, 1966, 2396, 63, 498, 974, 308, 262, 4606, 14976, 18, 6387, 12, 374, 16, 11972, 9, 87, 17039, 738, 365, 16186, 588, 7147, 12, 315, 723, 3113, 8173, 262, 262, 4606, 14976, 18, 6387, 12, 374, 16, 11972, 9, 87, 17039, 738, 365, 16186, 588, 7147, 12, 315, 7242, 3113, 8173, 262, 262, 12197, 273, 365, 6315, 2271, 12, 315, 18768, 7567, 738, 87, 6, 738, 3104, 3552, 5701, 12, 4606, 14976, 262, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 12197, 273, 365, 6315, 2725, 12, 315, 6460, 4571, 6222, 2016, 4852, 508, 28713, 87, 4970, 738, 8173, 262, 1464, 12, 365, 18, 1966, 9769, 63, 8173, 308, 262, 327, 348, 67, 3141, 1435, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 559, 12, 365, 16, 8173, 262, 30, 3536, 17973, 279, 618, 3536, 309, 8173, 486, 316, 365, 18, 1966, 9769, 30, 327, 348, 67, 3589, 12, 315, 559, 738, 87, 1552, 486, 1005, 6, 738, 8173, 262, 314, 3328, 18, 1376, 12, 315, 20433, 618, 3113, 8173, 262, 4606, 14976, 273, 5378, 364, 498, 974, 316, 365, 18, 1966, 9769, 63, 8173, 308, 63, 296, 2452, 11, 308, 30, 365, 18, 1966, 2396, 63, 498, 974, 308, 3947, 404, 309, 365, 18, 1966, 2396, 63, 498, 974, 308, 422, 374, 30, 4606, 14976, 18, 6923, 12, 315, 856, 9, 87, 6, 738, 498, 974, 262, 314, 3328, 18, 1376, 12, 315, 20433, 498, 1014, 3113, 498, 974, 2 ]
os.system("logger %s could not find one or more of fits key words IMGID, BINNING and OBJECT in hdulist of %s" % (sys.argv[0], self.fits_tmp_path))
os.system("logger %s could not find one or more of fits key words IMGID, BINNING and OBJECT in hdulist of %s" % (sys.argv[0], sys.argv[1]))
def main(self): if len(sys.argv) == 1: print 'Usage: %s <fits filename>' % (sys.argv[0]) os.system("logger %s Usage: %s fits_filename" % (sys.argv[0], sys.argv[0])) sys.exit(1)
4a56b4e6b277db0262673993b0ca1a89e734dbf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6334/4a56b4e6b277db0262673993b0ca1a89e734dbf3/img_astrometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 562, 12, 9499, 18, 19485, 13, 422, 404, 30, 1172, 296, 5357, 30, 738, 87, 225, 411, 18352, 1544, 1870, 738, 261, 9499, 18, 19485, 63, 20, 5717, 1140, 18, 4299, 2932, 4901, 738, 87, 10858, 30, 738, 87, 13351, 67, 3459, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 2589, 18, 19485, 63, 20, 22643, 2589, 18, 8593, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 562, 12, 9499, 18, 19485, 13, 422, 404, 30, 1172, 296, 5357, 30, 738, 87, 225, 411, 18352, 1544, 1870, 738, 261, 9499, 18, 19485, 63, 20, 5717, 1140, 18, 4299, 2932, 4901, 738, 87, 10858, 30, 738, 87, 13351, 67, 3459, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 2589, 18, 19485, 63, 20, 22643, 2589, 18, 8593, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
WHERE ur.id_accROLE = '%s' AND u.email RLIKE '%s' ORDER BY u.email """ % (id_role, email_user_pattern))
WHERE ur.id_accROLE = %s AND u.email RLIKE %s ORDER BY u.email """, (id_role, email_user_pattern))
def perform_adduserrole(req, id_role='0', email_user_pattern='', id_user='0', confirm=0): """create connection between user and role. id_role - id of the role to add user to email_user_pattern - search for users using this pattern id_user - id of user to add to the role. """ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) email_out = acca.acc_get_user_email(id_user=id_user) name_role = acca.acc_get_role_name(id_role=id_role) title = 'Connect user to role ' subtitle = 'step 1 - select a role' output = createroleselect(id_role=id_role, action="adduserrole", step=1, roles=acca.acc_get_all_roles()) # role is selected if id_role != "0": title += name_role subtitle = 'step 2 - search for users' # remove letters not allowed in an email email_user_pattern = cleanstring_email(email_user_pattern) text = ' <span class="adminlabel">2. search for user </span>\n' text += ' <input class="admin_wvar" type="text" name="email_user_pattern" value="%s" />\n' % (email_user_pattern, ) output += createhiddenform(action="adduserrole", text=text, button="search for users", id_role=id_role) # pattern is entered if email_user_pattern: # users with matching email-address users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE '%s' ORDER BY email """ % (email_user_pattern, )) # users that are connected users2 = run_sql("""SELECT DISTINCT u.id, u.email FROM user u LEFT JOIN user_accROLE ur ON u.id = ur.id_user WHERE ur.id_accROLE = '%s' AND u.email RLIKE '%s' ORDER BY u.email """ % (id_role, email_user_pattern)) # no users that match the pattern if not (users1 or users2): output += '<p>no qualified users, try new search.</p>' elif len(users1) > MAXSELECTUSERS: output += '<p><strong>%s hits</strong>, too many qualified users, specify more narrow search. (limit %s)</p>' % (len(users1), MAXSELECTUSERS) # show matching users else: subtitle = 'step 3 - select a user' users = [] extrausers = [] for (user_id, email) in users1: if (user_id, email) not in users2: users.append([user_id,email,'']) for (user_id, email) in users2: extrausers.append([-user_id, email,'']) output += createuserselect(id_user=id_user, action="adduserrole", step=3, users=users, extrausers=extrausers, button="add this user", id_role=id_role, email_user_pattern=email_user_pattern) try: id_user = int(id_user) except ValueError: pass # user selected already connected to role if id_user < 0: output += '<p>users in brackets are already attached to the role, try another one...</p>' # a user is selected elif email_out: subtitle = "step 4 - confirm to add user" output += createhiddenform(action="adduserrole", text='add user <strong>%s</strong> to role <strong>%s</strong>?' % (email_out, name_role), id_role=id_role, email_user_pattern=email_user_pattern, id_user=id_user, confirm=1) # it is confirmed that this user should be added if confirm: # add user result = acca.acc_add_user_role(id_user=id_user, id_role=id_role) if result and result[2]: subtitle = 'step 5 - confirm user added' output += '<p>confirm: user <strong>%s</strong> added to role <strong>%s</strong>.</p>' % (email_out, name_role) else: subtitle = 'step 5 - user could not be added' output += '<p>sorry, but user could not be added.</p>' extra = """ <dl> <dt><a href="addrole">Create new role</a></dt> <dd>go here to add a new role.</dd> </dl> """ if str(id_role) != "0": extra += """ <dl> <dt><a href="deleteuserrole?id_role=%s">Remove users</a></dt> <dd>remove users from role %s.</dd> <dt><a href="showroleusers?id_role=%s">Connected users</a></dt> <dd>show all users connected to role %s.</dd> </dl> <dl> <dt><a href="addauthorization?id_role=%s">Add authorization</a></dt> <dd>start adding new authorizations to role %s.</dd> </dl> """ % (id_role, name_role, id_role, name_role, id_role, name_role) return index(req=req, title=title, subtitle=subtitle, body=[output, extra], adminarea=3)
6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 1289, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 2640, 1459, 3086, 729, 471, 2478, 18, 225, 612, 67, 4615, 300, 612, 434, 326, 2478, 358, 527, 729, 358, 225, 2699, 67, 1355, 67, 4951, 300, 1623, 364, 3677, 1450, 333, 1936, 225, 612, 67, 1355, 300, 612, 434, 729, 358, 527, 358, 326, 2478, 18, 3536, 225, 261, 1944, 67, 710, 16, 1357, 67, 2150, 13, 273, 353, 67, 3666, 1355, 12, 3658, 13, 309, 1357, 67, 710, 480, 374, 30, 327, 1297, 5819, 2433, 12, 3658, 16, 1357, 67, 2150, 13, 225, 2699, 67, 659, 273, 4078, 69, 18, 8981, 67, 588, 67, 1355, 67, 3652, 12, 350, 67, 1355, 33, 350, 67, 1355, 13, 508, 67, 4615, 273, 4078, 69, 18, 8981, 67, 588, 67, 4615, 67, 529, 12, 350, 67, 4615, 33, 350, 67, 4615, 13, 225, 2077, 273, 296, 5215, 729, 358, 2478, 296, 20281, 273, 296, 4119, 404, 300, 2027, 279, 2478, 11, 225, 876, 273, 1519, 2045, 9112, 13759, 12, 350, 67, 4615, 33, 350, 67, 4615, 16, 1301, 1546, 1289, 1355, 4615, 3113, 2235, 33, 21, 16, 4900, 33, 8981, 69, 18, 8981, 67, 588, 67, 454, 67, 7774, 10756, 225, 468, 2478, 353, 3170, 309, 612, 67, 4615, 480, 315, 20, 6877, 2077, 1011, 508, 67, 4615, 225, 20281, 273, 296, 4119, 576, 300, 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, 3073, 67, 1289, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 2640, 1459, 3086, 729, 471, 2478, 18, 225, 612, 67, 4615, 300, 612, 434, 326, 2478, 358, 527, 729, 358, 225, 2699, 67, 1355, 67, 4951, 300, 1623, 364, 3677, 1450, 333, 1936, 225, 612, 67, 1355, 300, 612, 434, 729, 358, 527, 358, 326, 2478, 18, 3536, 225, 261, 1944, 67, 710, 16, 1357, 67, 2150, 13, 273, 353, 67, 3666, 1355, 12, 3658, 13, 309, 1357, 67, 710, 480, 374, 30, 327, 1297, 5819, 2433, 12, 3658, 16, 1357, 67, 2150, 13, 225, 2699, 2 ]
'author':'Pingback',
'author':'Pingback from %s' % source_page.title,
def pingback(request, source, target): source_file = urllib.urlopen(source.split('#')[0]) source_page = parser() source_page.feed(source_file.read()) source_file.close() if source_page.title == "": source_page.title = source if target in source_page.hrefs: target_file = fileFor(request, target) body = '' try: from rssfinder import getFeeds from rssparser import parse baseurl=source.split("#")[0] for feed in getFeeds(baseurl): for item in parse(feed)['items']: if item['link']==source: if 'title' in item: title = item['title'] if 'content_encoded' in item: body = item['content_encoded'].strip() if 'description' in item: body = item['description'].strip() or body body=re.compile('<.*?>',re.S).sub('',body) body=re.sub('\s+',' ',body) body=body[:body.rfind(' ',0,250)][:250] + " ...<br /><br />" except: pass cmt = {'title':source_page.title, \ 'author':'Pingback', 'pubDate' : str(time.time()), \ 'link': source, 'source' : '', 'description' : body} from libs.plugins.commentdecorator import writeComment config = request.getConfiguration() data = request.getData() from libs.entries.fileentry import FileEntry datadir = config['datadir'] entry = FileEntry(config, datadir+'/'+target_file+'.txt', datadir) data['entry_list'] = [ entry ] writeComment(config, data, cmt) return "success pinging %s from %s\n" % (source, target) else: return "produce xmlrpc fault here"
a54b0d86cfdfcd0c8a8f28e5aeb41ca3b0bd4b41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/a54b0d86cfdfcd0c8a8f28e5aeb41ca3b0bd4b41/pingback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10087, 823, 12, 2293, 16, 1084, 16, 1018, 4672, 1084, 67, 768, 273, 11527, 18, 295, 18589, 12, 3168, 18, 4939, 2668, 7, 6134, 63, 20, 5717, 1084, 67, 2433, 273, 2082, 1435, 1084, 67, 2433, 18, 7848, 12, 3168, 67, 768, 18, 896, 10756, 1084, 67, 768, 18, 4412, 1435, 225, 309, 1084, 67, 2433, 18, 2649, 422, 1408, 30, 1084, 67, 2433, 18, 2649, 273, 1084, 225, 309, 1018, 316, 1084, 67, 2433, 18, 7547, 87, 30, 1018, 67, 768, 273, 585, 1290, 12, 2293, 16, 1018, 13, 225, 1417, 273, 875, 775, 30, 628, 18817, 15356, 1930, 13683, 9765, 628, 18817, 4288, 1930, 1109, 225, 25427, 33, 3168, 18, 4939, 2932, 7, 7923, 63, 20, 65, 364, 4746, 316, 13683, 9765, 12, 1969, 718, 4672, 364, 761, 316, 1109, 12, 7848, 13, 3292, 3319, 3546, 30, 309, 761, 3292, 1232, 3546, 631, 3168, 30, 309, 296, 2649, 11, 316, 761, 30, 2077, 273, 761, 3292, 2649, 3546, 309, 296, 1745, 67, 10787, 11, 316, 761, 30, 1417, 273, 761, 3292, 1745, 67, 10787, 29489, 6406, 1435, 309, 296, 3384, 11, 316, 761, 30, 1417, 273, 761, 3292, 3384, 29489, 6406, 1435, 578, 1417, 1417, 33, 266, 18, 11100, 2668, 32, 23498, 1870, 16, 266, 18, 55, 2934, 1717, 2668, 2187, 3432, 13, 1417, 33, 266, 18, 1717, 2668, 64, 87, 15, 17023, 2265, 3432, 13, 1417, 33, 3432, 10531, 3432, 18, 86, 4720, 2668, 2265, 20, 16, 26520, 13, 6362, 30, 26520, 65, 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, 10087, 823, 12, 2293, 16, 1084, 16, 1018, 4672, 1084, 67, 768, 273, 11527, 18, 295, 18589, 12, 3168, 18, 4939, 2668, 7, 6134, 63, 20, 5717, 1084, 67, 2433, 273, 2082, 1435, 1084, 67, 2433, 18, 7848, 12, 3168, 67, 768, 18, 896, 10756, 1084, 67, 768, 18, 4412, 1435, 225, 309, 1084, 67, 2433, 18, 2649, 422, 1408, 30, 1084, 67, 2433, 18, 2649, 273, 1084, 225, 309, 1018, 316, 1084, 67, 2433, 18, 7547, 87, 30, 1018, 67, 768, 273, 585, 1290, 12, 2293, 16, 1018, 13, 225, 1417, 273, 875, 775, 30, 628, 18817, 15356, 1930, 13683, 9765, 628, 18817, 4288, 1930, 1109, 225, 25427, 33, 3168, 18, 4939, 2932, 7, 7923, 63, 20, 2 ]
timetable[count-1][3])
timetable[count-1][3])
def createTimetable(): f = open("timetable.csv", "w") print >> f, '''"2004-fall","default"
a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab/datagen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10178, 278, 429, 13332, 284, 273, 1696, 2932, 8584, 278, 429, 18, 6715, 3113, 315, 91, 7923, 1172, 1671, 284, 16, 875, 4970, 6976, 24, 17, 25602, 15937, 1886, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
def allpages(self, start='!', namespace=0, includeredirects=True,
def allpages(self, start='!', namespace=None, includeredirects=True,
def allpages(self, start='!', namespace=0, includeredirects=True, throttle=True): """ Yield all Pages in alphabetical order.
40eeff9565c351e34a7eb7b5e34c39fd7711bbb6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/40eeff9565c351e34a7eb7b5e34c39fd7711bbb6/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 7267, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 7036, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 316, 10877, 1706, 1353, 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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 30, 1652, 777, 7267, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 7036, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 316, 10877, 1706, 1353, 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 ]
ix += 1
def AddResult(self, msg, user, country): if user in self.users: return if user not in self.Searches.users.keys(): if user in self.frame.np.users.keys(): self.Searches.users[user] = self.frame.np.users[user].status else: self.Searches.users[user] = 0 self.frame.np.queue.put(slskmessages.AddUser(user)) if user == self.frame.np.config.sections["server"]["login"]: self.Searches.users[user] = 1 self.users.append(user) results = []
65e3478c4cbff73585cc7f81b31f81ad37fb8754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/65e3478c4cbff73585cc7f81b31f81ad37fb8754/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1253, 12, 2890, 16, 1234, 16, 729, 16, 5251, 4672, 309, 729, 316, 365, 18, 5577, 30, 327, 309, 729, 486, 316, 365, 18, 16294, 18, 5577, 18, 2452, 13332, 309, 729, 316, 365, 18, 3789, 18, 6782, 18, 5577, 18, 2452, 13332, 365, 18, 16294, 18, 5577, 63, 1355, 65, 273, 365, 18, 3789, 18, 6782, 18, 5577, 63, 1355, 8009, 2327, 469, 30, 365, 18, 16294, 18, 5577, 63, 1355, 65, 273, 374, 365, 18, 3789, 18, 6782, 18, 4000, 18, 458, 12, 2069, 7771, 6833, 18, 986, 1299, 12, 1355, 3719, 309, 729, 422, 365, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1253, 12, 2890, 16, 1234, 16, 729, 16, 5251, 4672, 309, 729, 316, 365, 18, 5577, 30, 327, 309, 729, 486, 316, 365, 18, 16294, 18, 5577, 18, 2452, 13332, 309, 729, 316, 365, 18, 3789, 18, 6782, 18, 5577, 18, 2452, 13332, 365, 18, 16294, 18, 5577, 63, 1355, 65, 273, 365, 18, 3789, 18, 6782, 18, 5577, 63, 1355, 8009, 2327, 469, 30, 365, 18, 16294, 18, 5577, 63, 1355, 65, 273, 374, 365, 18, 3789, 18, 6782, 18, 4000, 18, 458, 12, 2069, 7771, 6833, 18, 986, 1299, 12, 1355, 3719, 309, 729, 422, 365, 18, 3789, 18, 6782, 18, 1425, 18, 11657, 9614, 3567, 6, 6362, 6, 5819, 11929, 30, 365, 18, 16294, 2 ]
if self.axes.get_autoscale_on():
if self.autoscale:
def updateFigure(self, elementData=None): if elementData is None: elementData = self._elementData else: self._elementData = elementData
2bbbc0d7dd29e7ba535c1ed3f7bdf845d9f4df0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/2bbbc0d7dd29e7ba535c1ed3f7bdf845d9f4df0d/elementsview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 42, 15906, 12, 2890, 16, 930, 751, 33, 7036, 4672, 309, 930, 751, 353, 599, 30, 930, 751, 273, 365, 6315, 2956, 751, 469, 30, 365, 6315, 2956, 751, 273, 930, 751, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 42, 15906, 12, 2890, 16, 930, 751, 33, 7036, 4672, 309, 930, 751, 353, 599, 30, 930, 751, 273, 365, 6315, 2956, 751, 469, 30, 365, 6315, 2956, 751, 273, 930, 751, 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 ]
assert self.innerHtml
assert self.innerHTML
def endTagBody(self, name): if self.parser.openElements[1].name != "body": assert self.innerHtml self.parser.parseError() else: if self.parser.openElements[-1].name != "body": assert self.innerHtml self.parser.switchInsertionMode("afterBody")
0d56d139ee72de308eb1a8db6faff65bc6e87aec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/0d56d139ee72de308eb1a8db6faff65bc6e87aec/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 2250, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29765, 2250, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 63, 21, 8009, 529, 480, 315, 3432, 6877, 1815, 365, 18, 7872, 4870, 365, 18, 4288, 18, 2670, 668, 1435, 469, 30, 309, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 8009, 529, 480, 315, 3432, 6877, 1815, 365, 18, 7872, 4870, 365, 18, 4288, 18, 9610, 29739, 2309, 2932, 5205, 2250, 7923, 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 ]
def SaveToFileInteractive(self, use_dialog = SAVE_MODE):
def SaveToFileInteractive(self, use_dialog=SAVE_MODE):
def SaveToFileInteractive(self, use_dialog = SAVE_MODE): self.docmanager.SaveDocument(self.document, use_dialog) self.tabspanel.updateTabNames()
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 15450, 26442, 12, 2890, 16, 999, 67, 12730, 33, 25242, 67, 7038, 4672, 365, 18, 2434, 4181, 18, 4755, 2519, 12, 2890, 18, 5457, 16, 999, 67, 12730, 13, 365, 18, 7032, 3969, 292, 18, 2725, 5661, 1557, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7074, 15450, 26442, 12, 2890, 16, 999, 67, 12730, 33, 25242, 67, 7038, 4672, 365, 18, 2434, 4181, 18, 4755, 2519, 12, 2890, 18, 5457, 16, 999, 67, 12730, 13, 365, 18, 7032, 3969, 292, 18, 2725, 5661, 1557, 1435, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lang=self.gl_get_selected_language(), **schema_raw_data)
lang=self.gl_get_selected_language(), **schema_raw_data)
def uploadPhotoOrZip(self, upload_file=None, REQUEST=None, **kwargs): """ Upload one image or a zipped folder of images """ if REQUEST is not None: schema_raw_data = dict(REQUEST.form) else: schema_raw_data = kwargs
6d1b7cc38621645f10a08a51cbf07cfee89be800 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/6d1b7cc38621645f10a08a51cbf07cfee89be800/NyPhotoFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 19934, 1162, 9141, 12, 2890, 16, 3617, 67, 768, 33, 7036, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 9414, 1245, 1316, 578, 279, 3144, 1845, 3009, 434, 4602, 3536, 309, 12492, 353, 486, 599, 30, 1963, 67, 1899, 67, 892, 273, 2065, 12, 5519, 18, 687, 13, 469, 30, 1963, 67, 1899, 67, 892, 273, 1205, 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, 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, 67, 1899, 67, 892, 273, 2065, 12, 5519, 18, 687, 13, 469, 30, 1963, 67, 1899, 67, 892, 273, 1205, 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 ]
multiple = getattr(datatype, 'multiple', False)
multiple = getattr(datatype, 'multiple', False)
def view(self, context): namespace = {}
ea76d631b134cd26755e19b7103b4b83b4587377 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/ea76d631b134cd26755e19b7103b4b83b4587377/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 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,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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 ]
self.parser.Parse(XMLContext)
self.parser.Parse(XMLContext.encode('utf-8'))
def parse(self,XMLContext): try: self.parser.Parse(XMLContext) except: globalVars.log.warn("XML: %s"%XMLContext,exc_info=True) return self._fieldStack
4e3a901285351e59ba12c62ad68a71ee57f12da7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/4e3a901285351e59ba12c62ad68a71ee57f12da7/speech.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 4201, 1042, 4672, 775, 30, 365, 18, 4288, 18, 3201, 12, 4201, 1042, 18, 3015, 2668, 3158, 17, 28, 26112, 1335, 30, 2552, 5555, 18, 1330, 18, 8935, 2932, 4201, 30, 738, 87, 28385, 4201, 1042, 16, 10075, 67, 1376, 33, 5510, 13, 327, 365, 6315, 1518, 2624, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 4201, 1042, 4672, 775, 30, 365, 18, 4288, 18, 3201, 12, 4201, 1042, 18, 3015, 2668, 3158, 17, 28, 26112, 1335, 30, 2552, 5555, 18, 1330, 18, 8935, 2932, 4201, 30, 738, 87, 28385, 4201, 1042, 16, 10075, 67, 1376, 33, 5510, 13, 327, 365, 6315, 1518, 2624, 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 ]
self._connected = False
def __init__(self, port, proto, interface='', maxPacketSize=8192, reactor=None): """Initialize with a numeric port to listen on. """ assert isinstance(proto, protocol.DatagramProtocol) base.BasePort.__init__(self, reactor) self.port = port self.protocol = proto self.maxPacketSize = maxPacketSize self.interface = interface self.setLogStr() self._connected = False self._connectedAddr = None
23edc5b661490b32d25a539522b8339b4f2c8195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23edc5b661490b32d25a539522b8339b4f2c8195/udp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 3760, 16, 1560, 2218, 2187, 943, 6667, 1225, 33, 28, 15561, 16, 19178, 33, 7036, 4672, 3536, 7520, 598, 279, 6389, 1756, 358, 6514, 603, 18, 3536, 1815, 1549, 12, 9393, 16, 1771, 18, 5139, 17049, 5752, 13, 1026, 18, 2171, 2617, 16186, 2738, 972, 12, 2890, 16, 19178, 13, 365, 18, 655, 273, 1756, 365, 18, 8373, 273, 3760, 365, 18, 1896, 6667, 1225, 273, 943, 6667, 1225, 365, 18, 5831, 273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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 3760, 16, 1560, 2218, 2187, 943, 6667, 1225, 33, 28, 15561, 16, 19178, 33, 7036, 4672, 3536, 7520, 598, 279, 6389, 1756, 358, 6514, 603, 18, 3536, 1815, 1549, 12, 9393, 16, 1771, 18, 5139, 17049, 5752, 13, 1026, 18, 2171, 2617, 16186, 2738, 972, 12, 2890, 16, 19178, 13, 365, 18, 655, 273, 1756, 365, 18, 8373, 273, 3760, 365, 18, 1896, 6667, 1225, 273, 943, 6667, 1225, 365, 18, 5831, 273, 1560, 365, 18, 542, 1343, 1585, 1435, 365, 6315, 8537, 3178, 273, 599, 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 ]
print childLink.__dict__
def __init__ (self, rcFile=arosRC, linkBoxItem='', **kw):
543dc6f064cdbd54d6a48579b3edc2d696c63002 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4747/543dc6f064cdbd54d6a48579b3edc2d696c63002/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4519, 812, 33, 297, 538, 11529, 16, 1692, 3514, 1180, 2218, 2187, 2826, 9987, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4519, 812, 33, 297, 538, 11529, 16, 1692, 3514, 1180, 2218, 2187, 2826, 9987, 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 ]
'ps2pdf -sPAPERSIZE=letter -dMaxSubsetPct=100 ' '-dSubsetFonts=true -dCompatibilityLevel=1.2 ' '-dEmbedAllFonts=true api.ps api.pdf')
'ps2pdf -sPAPERSIZE '-dSubsetFonts '-dEmbedAllFonts
def write_latex(docindex, options, format): from epydoc.docwriter.latex import LatexWriter latex_writer = LatexWriter(docindex, **options.__dict__) log.start_progress('Writing LaTeX docs') latex_writer.write(options.target) log.end_progress() # If we're just generating the latex, and not any output format, # then we're done. if format == 'latex': return if format == 'dvi': steps = 4 elif format == 'ps': steps = 5 elif format == 'pdf': steps = 6 log.start_progress('Processing LaTeX docs') oldpath = os.path.abspath(os.curdir) running = None # keep track of what we're doing. try: try: os.chdir(options.target) # Clear any old files out of the way. for ext in 'tex aux log out idx ilg toc ind'.split(): if os.path.exists('apidoc.%s' % ext): os.remove('apidoc.%s' % ext) # The first pass generates index files. running = 'latex' log.progress(0./steps, 'LaTeX: First pass') run_subprocess('latex api.tex') # Build the index. running = 'makeindex' log.progress(1./steps, 'LaTeX: Build index') run_subprocess('makeindex api.idx') # The second pass generates our output. running = 'latex' log.progress(2./steps, 'LaTeX: Second pass') out, err = run_subprocess('latex api.tex') # The third pass is only necessary if the second pass # changed what page some things are on. running = 'latex' if _RERUN_LATEX_RE.match(out): log.progress(3./steps, 'LaTeX: Third pass') out, err = run_subprocess('latex api.tex') # A fourth path should (almost?) never be necessary. running = 'latex' if _RERUN_LATEX_RE.match(out): log.progress(3./steps, 'LaTeX: Fourth pass') run_subprocess('latex api.tex') # If requested, convert to postscript. if format in ('ps', 'pdf'): running = 'dvips' log.progress(4./steps, 'dvips') run_subprocess('dvips api.dvi -o api.ps -G0 -Ppdf') # If requested, convert to pdf. if format in ('pdf'): running = 'ps2pdf' log.progress(5./steps, 'ps2pdf') run_subprocess( 'ps2pdf -sPAPERSIZE=letter -dMaxSubsetPct=100 ' '-dSubsetFonts=true -dCompatibilityLevel=1.2 ' '-dEmbedAllFonts=true api.ps api.pdf') except RunSubprocessError, e: if running == 'latex': e.out = re.sub(r'(?sm)\A.*?!( LaTeX Error:)?', r'', e.out) e.out = re.sub(r'(?sm)\s*Type X to quit.*', '', e.out) e.out = re.sub(r'(?sm)^! Emergency stop.*', '', e.out) log.error("%s failed: %s" % (running, (e.out+e.err).lstrip())) except OSError, e: log.error("%s failed: %s" % (running, e)) finally: os.chdir(oldpath) log.end_progress()
44446364f38d9ee9272029ffe09fe137d3279ffc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/44446364f38d9ee9272029ffe09fe137d3279ffc/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 26264, 12, 2434, 1615, 16, 702, 16, 740, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 26264, 1930, 11134, 338, 2289, 25079, 67, 6299, 273, 11134, 338, 2289, 12, 2434, 1615, 16, 2826, 2116, 16186, 1576, 972, 13, 613, 18, 1937, 67, 8298, 2668, 18835, 21072, 21575, 60, 3270, 6134, 25079, 67, 6299, 18, 2626, 12, 2116, 18, 3299, 13, 613, 18, 409, 67, 8298, 1435, 468, 971, 732, 4565, 2537, 12516, 326, 25079, 16, 471, 486, 1281, 876, 740, 16, 468, 1508, 732, 4565, 2731, 18, 309, 740, 422, 296, 26264, 4278, 327, 225, 309, 740, 422, 296, 72, 522, 4278, 6075, 273, 1059, 1327, 740, 422, 296, 1121, 4278, 6075, 273, 1381, 1327, 740, 422, 296, 7699, 4278, 6075, 273, 1666, 225, 613, 18, 1937, 67, 8298, 2668, 7798, 21072, 21575, 60, 3270, 6134, 1592, 803, 273, 1140, 18, 803, 18, 5113, 803, 12, 538, 18, 1397, 1214, 13, 3549, 273, 599, 468, 3455, 3298, 434, 4121, 732, 4565, 9957, 18, 775, 30, 775, 30, 1140, 18, 343, 1214, 12, 2116, 18, 3299, 13, 225, 468, 10121, 1281, 1592, 1390, 596, 434, 326, 4031, 18, 364, 1110, 316, 296, 21763, 9397, 613, 596, 2067, 14254, 75, 17919, 1547, 10332, 4939, 13332, 309, 1140, 18, 803, 18, 1808, 2668, 438, 350, 504, 7866, 87, 11, 738, 1110, 4672, 1140, 18, 4479, 2668, 438, 350, 504, 7866, 87, 11, 738, 1110, 13, 225, 468, 1021, 1122, 1342, 6026, 770, 1390, 18, 3549, 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, 1045, 67, 26264, 12, 2434, 1615, 16, 702, 16, 740, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 26264, 1930, 11134, 338, 2289, 25079, 67, 6299, 273, 11134, 338, 2289, 12, 2434, 1615, 16, 2826, 2116, 16186, 1576, 972, 13, 613, 18, 1937, 67, 8298, 2668, 18835, 21072, 21575, 60, 3270, 6134, 25079, 67, 6299, 18, 2626, 12, 2116, 18, 3299, 13, 613, 18, 409, 67, 8298, 1435, 468, 971, 732, 4565, 2537, 12516, 326, 25079, 16, 471, 486, 1281, 876, 740, 16, 468, 1508, 732, 4565, 2731, 18, 309, 740, 422, 296, 26264, 4278, 327, 225, 309, 740, 422, 296, 72, 522, 4278, 6075, 273, 1059, 1327, 740, 422, 296, 1121, 4278, 6075, 273, 1381, 1327, 2 ]
recipient_list = recipient_table.keys()
context['user'] = user
def send_review_mail(user, review_request, subject, in_reply_to, extra_recipients, template_name, context={}): """ Formats and sends an e-mail out with the current domain and review request being added to the template context. Returns the resulting message ID. """ current_site = Site.objects.get(pk=settings.SITE_ID) from_email = get_email_address_for_user(user) recipient_table = { from_email: 1, } if review_request.submitter.is_active: recipient_table[get_email_address_for_user(review_request.submitter)] = 1 for u in review_request.target_people.filter(is_active=True): recipient_table[get_email_address_for_user(u)] = 1 for group in review_request.target_groups.all(): for address in get_email_addresses_for_group(group): recipient_table[address] = 1 for profile in review_request.starred_by.all(): if profile.user.is_active: recipient_table[get_email_address_for_user(profile.user)] = 1 if extra_recipients: for recipient in extra_recipients: if recipient.is_active: recipient_table[get_email_address_for_user(recipient)] = 1 recipient_list = recipient_table.keys() context['domain'] = current_site.domain context['domain_method'] = settings.DOMAIN_METHOD context['review_request'] = review_request body = render_to_string(template_name, context) message = SpiffyEmailMessage(subject.strip(), body, from_email, recipient_list, in_reply_to) message.send() return message.message_id
abc32ae4339bcfd19962ad7ab9f4a882ffc53635 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/abc32ae4339bcfd19962ad7ab9f4a882ffc53635/email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, 9573, 392, 425, 17, 4408, 596, 598, 326, 783, 2461, 471, 10725, 590, 3832, 3096, 358, 326, 1542, 819, 18, 2860, 326, 8156, 883, 1599, 18, 3536, 783, 67, 4256, 273, 9063, 18, 6911, 18, 588, 12, 5465, 33, 4272, 18, 20609, 67, 734, 13, 225, 628, 67, 3652, 273, 336, 67, 3652, 67, 2867, 67, 1884, 67, 1355, 12, 1355, 13, 225, 8027, 67, 2121, 273, 288, 628, 67, 3652, 30, 404, 16, 289, 225, 309, 10725, 67, 2293, 18, 9297, 387, 18, 291, 67, 3535, 30, 8027, 67, 2121, 63, 588, 67, 3652, 67, 2867, 67, 1884, 67, 1355, 12, 16041, 67, 2293, 18, 9297, 387, 25887, 273, 404, 225, 364, 582, 316, 10725, 67, 2293, 18, 3299, 67, 28035, 18, 2188, 12, 291, 67, 3535, 33, 5510, 4672, 8027, 67, 2121, 63, 588, 67, 3652, 67, 2867, 67, 1884, 67, 1355, 12, 89, 25887, 273, 404, 225, 364, 1041, 316, 10725, 67, 2293, 18, 3299, 67, 4650, 18, 454, 13332, 364, 1758, 316, 336, 67, 3652, 67, 13277, 67, 1884, 67, 1655, 12, 1655, 4672, 8027, 67, 2121, 63, 2867, 65, 273, 404, 225, 364, 3042, 316, 10725, 67, 2293, 18, 10983, 1118, 67, 1637, 18, 454, 13332, 309, 3042, 18, 1355, 18, 291, 67, 3535, 30, 8027, 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, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, 9573, 392, 425, 17, 4408, 596, 598, 326, 783, 2461, 471, 10725, 590, 3832, 3096, 358, 326, 1542, 819, 18, 2860, 326, 8156, 883, 1599, 18, 3536, 783, 67, 4256, 273, 9063, 18, 6911, 18, 588, 12, 5465, 33, 4272, 18, 20609, 67, 734, 13, 225, 628, 67, 3652, 273, 336, 67, 3652, 67, 2867, 67, 1884, 67, 1355, 12, 1355, 13, 225, 8027, 67, 2121, 273, 288, 628, 67, 3652, 30, 404, 16, 289, 225, 309, 10725, 67, 2293, 18, 9297, 387, 2 ]
raise IOError, "end of file reached"
raise IOError("end of file reached")
def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src.read(BUFSIZE) if len(buf) < BUFSIZE: raise IOError, "end of file reached" dst.write(buf) if remainder != 0: buf = src.read(remainder) if len(buf) < remainder: raise IOError, "end of file reached" dst.write(buf) return
b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 769, 422, 374, 30, 327, 309, 769, 353, 599, 30, 11060, 18, 3530, 768, 2603, 12, 4816, 16, 3046, 13, 327, 225, 10937, 42, 4574, 273, 2872, 380, 6250, 4398, 16, 10022, 273, 26105, 12, 2469, 16, 10937, 42, 4574, 13, 364, 324, 316, 12314, 12, 7996, 4672, 1681, 273, 1705, 18, 896, 12, 3000, 42, 4574, 13, 309, 562, 12, 4385, 13, 411, 10937, 42, 4574, 30, 1002, 8340, 2932, 409, 434, 585, 8675, 7923, 3046, 18, 2626, 12, 4385, 13, 225, 309, 10022, 480, 374, 30, 1681, 273, 1705, 18, 896, 12, 2764, 25407, 13, 309, 562, 12, 4385, 13, 411, 10022, 30, 1002, 8340, 2932, 409, 434, 585, 8675, 7923, 3046, 18, 2626, 12, 4385, 13, 327, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 769, 422, 374, 30, 327, 309, 769, 353, 599, 30, 11060, 18, 3530, 768, 2603, 12, 4816, 16, 3046, 13, 327, 225, 10937, 42, 4574, 273, 2872, 380, 6250, 4398, 16, 10022, 273, 26105, 12, 2469, 16, 10937, 42, 4574, 13, 364, 324, 316, 12314, 12, 7996, 4672, 1681, 273, 1705, 18, 896, 12, 3000, 42, 4574, 13, 309, 562, 12, 4385, 13, 411, 10937, 42, 4574, 30, 1002, 8340, 2932, 409, 434, 585, 8675, 7923, 3046, 18, 2626, 12, 4385, 13, 225, 309, 2 ]
0.40235947810852507 + 1.0172219678978514*I
0.402359478108525 + 1.01722196789785*I
def atanh(self): """ EXAMPLES: sage: (1+I).atanh() 0.40235947810852507 + 1.0172219678978514*I """ return self.parent()(self._pari_().atanh())
293427b47ee2bb564117092226099ed44acd171f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/293427b47ee2bb564117092226099ed44acd171f/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19646, 76, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 270, 304, 76, 1435, 374, 18, 24, 3103, 4763, 11290, 8285, 2163, 7140, 2947, 397, 404, 18, 1611, 27, 3787, 3657, 9599, 6675, 27, 7140, 14, 45, 3536, 327, 365, 18, 2938, 1435, 12, 2890, 6315, 1065, 77, 67, 7675, 270, 304, 76, 10756, 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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6675, 27, 7140, 14, 45, 3536, 327, 365, 18, 2938, 1435, 12, 2890, 6315, 1065, 77, 67, 7675, 270, 304, 76, 10756, 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 ]
return self.bzip2.decompress(data)
try: return self.bzip2.decompress(data) except EOFError: return ''
def __call__(self, size, data=''): return self.bzip2.decompress(data)
c61453a3211362c9881479e82525b684441d7887 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c61453a3211362c9881479e82525b684441d7887/bzip2_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 963, 16, 501, 2218, 11, 4672, 327, 365, 18, 70, 4450, 22, 18, 323, 14706, 12, 892, 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,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4450, 22, 18, 323, 14706, 12, 892, 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, -100, -100, -100, -100, -100, -100 ]
signal.alarm(MAX_DURATION) vereq(signal.getsignal(signal.SIGHUP), handlerA) vereq(signal.getsignal(signal.SIGUSR1), handlerB) vereq(signal.getsignal(signal.SIGUSR2), signal.SIG_IGN) vereq(signal.getsignal(signal.SIGALRM), signal.default_int_handler)
def test_main(self): self.assertEquals(signal.getsignal(signal.SIGHUP), self.handlerA) self.assertEquals(signal.getsignal(signal.SIGUSR1), self.handlerB) self.assertEquals(signal.getsignal(signal.SIGUSR2), signal.SIG_IGN) self.assertEquals(signal.getsignal(signal.SIGALRM), signal.default_int_handler)
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-gap to try to prevent the test from hanging. time.sleep(MAX_DURATION + 5) print >> sys.__stdout__, ' child should not have to kill parent' for signame in "SIGHUP", "SIGUSR1", "SIGUSR2", "SIGALRM": os.kill(pid, getattr(signal, signame)) print >> sys.__stdout__, " child sent", signame, "to", pid time.sleep(1) finally: os._exit(0)
99d3744d692f422a8786422bd8080f3980cb2b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/99d3744d692f422a8786422bd8080f3980cb2b40/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468, 657, 982, 18, 327, 12515, 67, 6610, 225, 468, 657, 1151, 18, 1930, 1140, 16, 813, 775, 30, 468, 5838, 1381, 3974, 7144, 2353, 326, 2665, 13721, 358, 8492, 7304, 468, 813, 364, 326, 2212, 3102, 434, 2641, 358, 3334, 18, 225, 1220, 353, 468, 2537, 279, 2132, 17, 14048, 358, 775, 358, 5309, 326, 1842, 628, 366, 18183, 18, 813, 18, 19607, 12, 6694, 67, 24951, 397, 1381, 13, 1172, 1671, 2589, 16186, 10283, 972, 16, 296, 225, 1151, 1410, 486, 1240, 358, 8673, 982, 11, 364, 3553, 529, 316, 315, 2320, 16715, 3079, 3113, 315, 18513, 27984, 21, 3113, 315, 18513, 27984, 22, 3113, 315, 18513, 1013, 8717, 6877, 1140, 18, 16418, 12, 6610, 16, 3869, 12, 10420, 16, 3553, 529, 3719, 1172, 1671, 2589, 16186, 10283, 972, 16, 315, 565, 1151, 3271, 3113, 3553, 529, 16, 315, 869, 3113, 4231, 813, 18, 19607, 12, 21, 13, 3095, 30, 1140, 6315, 8593, 12, 20, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468, 657, 982, 18, 327, 12515, 67, 6610, 225, 468, 657, 1151, 18, 1930, 1140, 16, 813, 775, 30, 468, 5838, 1381, 3974, 7144, 2353, 326, 2665, 13721, 358, 8492, 7304, 468, 813, 364, 326, 2212, 3102, 434, 2641, 358, 3334, 18, 225, 1220, 353, 468, 2537, 279, 2132, 17, 14048, 358, 775, 358, 5309, 326, 1842, 628, 366, 18183, 18, 813, 18, 19607, 12, 6694, 67, 24951, 397, 1381, 13, 1172, 1671, 2589, 16186, 10283, 972, 16, 296, 225, 1151, 1410, 486, 1240, 358, 2 ]
try:
if hasattr(main, object.__name__):
def getmodule(object): """Try to guess which module an object was defined in.""" if isclass(object): return sys.modules.get(object.__module__) try: file = getabsfile(object) except TypeError: return None if modulesbyfile.has_key(file): return sys.modules[modulesbyfile[file]] for module in sys.modules.values(): if hasattr(module, '__file__'): modulesbyfile[getabsfile(module)] = module.__name__ if modulesbyfile.has_key(file): return sys.modules[modulesbyfile[file]] main = sys.modules['__main__'] try: mainobject = getattr(main, object.__name__) if mainobject is object: return main except AttributeError: pass builtin = sys.modules['__builtin__'] try: builtinobject = getattr(builtin, object.__name__) if builtinobject is object: return builtin except AttributeError: pass
a50bc378702521085821dd7005c1856e98d7bb5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a50bc378702521085821dd7005c1856e98d7bb5e/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2978, 12, 1612, 4672, 3536, 7833, 358, 7274, 1492, 1605, 392, 733, 1703, 2553, 316, 12123, 309, 28209, 12, 1612, 4672, 327, 2589, 18, 6400, 18, 588, 12, 1612, 16186, 2978, 972, 13, 309, 3859, 12, 5254, 16, 733, 16186, 529, 972, 4672, 585, 273, 336, 5113, 768, 12, 1612, 13, 1335, 3580, 30, 327, 599, 309, 4381, 1637, 768, 18, 5332, 67, 856, 12, 768, 4672, 327, 2589, 18, 6400, 63, 6400, 1637, 768, 63, 768, 13563, 364, 1605, 316, 2589, 18, 6400, 18, 2372, 13332, 309, 3859, 12, 2978, 16, 4940, 768, 7250, 4672, 4381, 1637, 768, 63, 588, 5113, 768, 12, 2978, 25887, 273, 1605, 16186, 529, 972, 309, 4381, 1637, 768, 18, 5332, 67, 856, 12, 768, 4672, 327, 2589, 18, 6400, 63, 6400, 1637, 768, 63, 768, 13563, 2774, 273, 2589, 18, 6400, 3292, 972, 5254, 972, 3546, 309, 3859, 12, 5254, 16, 733, 16186, 529, 972, 4672, 2774, 1612, 273, 3869, 12, 5254, 16, 733, 16186, 529, 972, 13, 309, 2774, 1612, 353, 733, 30, 327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[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2978, 12, 1612, 4672, 3536, 7833, 358, 7274, 1492, 1605, 392, 733, 1703, 2553, 316, 12123, 309, 28209, 12, 1612, 4672, 327, 2589, 18, 6400, 18, 588, 12, 1612, 16186, 2978, 972, 13, 309, 3859, 12, 5254, 16, 733, 16186, 529, 972, 4672, 585, 273, 336, 5113, 768, 12, 1612, 13, 1335, 3580, 30, 327, 599, 309, 4381, 1637, 768, 18, 5332, 67, 856, 12, 768, 4672, 327, 2589, 18, 6400, 63, 6400, 1637, 768, 63, 768, 13563, 364, 1605, 316, 2589, 18, 6400, 18, 2372, 13332, 309, 3859, 12, 2978, 16, 4940, 768, 7250, 4672, 4381, 1637, 768, 63, 588, 5113, 768, 12, 2978, 25887, 273, 1605, 16186, 529, 972, 309, 4381, 1637, 768, 18, 5332, 2 ]
log.notice("%d match, %d mismatch (%.2%% agreement).",
log.notice("%d match, %d mismatch (%.2f%% agreement).",
def query(router, dest, dest_port): s = map(lambda o: str(ord(o)), struct.pack(">I", router.ip)) d = map(lambda o: str(ord(o)), struct.pack(">I", dest)) s.reverse() d.reverse()
c29938250e8a4b79d10cc6eb63e0d38877091c6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/c29938250e8a4b79d10cc6eb63e0d38877091c6e/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 10717, 16, 1570, 16, 1570, 67, 655, 4672, 272, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 4633, 18, 625, 3719, 302, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 1570, 3719, 272, 18, 9845, 1435, 302, 18, 9845, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 10717, 16, 1570, 16, 1570, 67, 655, 4672, 272, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 4633, 18, 625, 3719, 302, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 1570, 3719, 272, 18, 9845, 1435, 302, 18, 9845, 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 ]
return self.__historical
return TimeSeries([x.open for x in self.__historical])
def historical(self,startdate='Jan+1,+1990'): """ Return an immutable sequence of historical price data for this stock, obtained from Google.
ab111b435d74e5e6772a30d6b65d963ddd64ff82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ab111b435d74e5e6772a30d6b65d963ddd64ff82/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23922, 12, 2890, 16, 1937, 712, 2218, 46, 304, 15, 21, 16, 15, 19818, 20, 11, 4672, 3536, 2000, 392, 11732, 3102, 434, 23922, 6205, 501, 364, 333, 12480, 16, 12700, 628, 6124, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23922, 12, 2890, 16, 1937, 712, 2218, 46, 304, 15, 21, 16, 15, 19818, 20, 11, 4672, 3536, 2000, 392, 11732, 3102, 434, 23922, 6205, 501, 364, 333, 12480, 16, 12700, 628, 6124, 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 ]
""" Return registration time for this user, as a Unicode string in ISO8601 format, or None if the date is unknown.
""" Return registration date for this user, as a long in Mediawiki's internal timestamp format, or 0 if the date is unknown.
def registrationTime(self, force=False): """ Return registration time for this user, as a Unicode string in ISO8601 format, or None if the date is unknown.
7e07f8a9fa71ca906e1d8e565fb6fdb99e4b4cf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/7e07f8a9fa71ca906e1d8e565fb6fdb99e4b4cf6/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7914, 950, 12, 2890, 16, 2944, 33, 8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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, 7914, 950, 12, 2890, 16, 2944, 33, 8381, 4672, 3536, 2000, 7914, 813, 364, 333, 729, 16, 487, 279, 9633, 533, 316, 9351, 14181, 740, 16, 578, 599, 309, 326, 1509, 353, 5917, 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 ]
results = lapack_routine('N', 'V', n, a, n, wr, wi,
results = lapack_routine(_N, _V, n, a, n, wr, wi,
def eig(a): """ Compute the eigenvalues and right eigenvectors of a square array. Parameters ---------- a : array_like, shape (M, M) A square array of real or complex elements. Returns ------- w : ndarray, shape (M,) The eigenvalues, each repeated according to its multiplicity. The eigenvalues are not necessarily ordered, nor are they necessarily real for real arrays (though for real arrays complex-valued eigenvalues should occur in conjugate pairs). v : ndarray, shape (M, M) The normalized (unit "length") eigenvectors, such that the column ``v[:,i]`` is the eigenvector corresponding to the eigenvalue ``w[i]``. Raises ------ LinAlgError If the eigenvalue computation does not converge. See Also -------- eigvalsh : eigenvalues of a symmetric or Hermitian (conjugate symmetric) array. eigvals : eigenvalues of a non-symmetric array. Notes ----- This is a simple interface to the LAPACK routines dgeev and zgeev which compute the eigenvalues and eigenvectors of, respectively, general real- and complex-valued square arrays. The number `w` is an eigenvalue of `a` if there exists a vector `v` such that ``dot(a,v) = w * v``. Thus, the arrays `a`, `w`, and `v` satisfy the equations ``dot(a[i,:], v[i]) = w[i] * v[:,i]`` for :math:`i \\in \\{0,...,M-1\\}`. The array `v` of eigenvectors may not be of maximum rank, that is, some of the columns may be linearly dependent, although round-off error may obscure that fact. If the eigenvalues are all different, then theoretically the eigenvectors are linearly independent. Likewise, the (complex-valued) matrix of eigenvectors `v` is unitary if the matrix `a` is normal, i.e., if ``dot(a, a.H) = dot(a.H, a)``, where `a.H` denotes the conjugate transpose of `a`. Finally, it is emphasized that `v` consists of the *right* (as in right-hand side) eigenvectors of `a`. A vector `y` satisfying ``dot(y.T, a) = z * y.T`` for some number `z` is called a *left* eigenvector of `a`, and, in general, the left and right eigenvectors of a matrix are not necessarily the (perhaps conjugate) transposes of each other. References ---------- G. Strang, *Linear Algebra and Its Applications*, 2nd Ed., Orlando, FL, Academic Press, Inc., 1980, Various pp. Examples -------- >>> from numpy import linalg as LA (Almost) trivial example with real e-values and e-vectors. >>> w, v = LA.eig(np.diag((1, 2, 3))) >>> w; v array([ 1., 2., 3.]) array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.]]) Real matrix possessing complex e-values and e-vectors; note that the e-values are complex conjugates of each other. >>> w, v = LA.eig(np.array([[1, -1], [1, 1]])) >>> w; v array([ 1. + 1.j, 1. - 1.j]) array([[ 0.70710678+0.j , 0.70710678+0.j ], [ 0.00000000-0.70710678j, 0.00000000+0.70710678j]]) Complex-valued matrix with real e-values (but complex-valued e-vectors); note that a.conj().T = a, i.e., a is Hermitian. >>> a = np.array([[1, 1j], [-1j, 1]]) >>> w, v = LA.eig(a) >>> w; v array([ 2.00000000e+00+0.j, 5.98651912e-36+0.j]) # i.e., {2, 0} array([[ 0.00000000+0.70710678j, 0.70710678+0.j ], [ 0.70710678+0.j , 0.00000000+0.70710678j]]) Be careful about round-off error! >>> a = np.array([[1 + 1e-9, 0], [0, 1 - 1e-9]]) >>> # Theor. e-values are 1 +/- 1e-9 >>> w, v = LA.eig(a) >>> w; v array([ 1., 1.]) array([[ 1., 0.], [ 0., 1.]]) """ a, wrap = _makearray(a) _assertRank2(a) _assertSquareness(a) _assertFinite(a) a, t, result_t = _convertarray(a) # convert to double or cdouble type real_t = _linalgRealType(t) n = a.shape[0] dummy = zeros((1,), t) if isComplexType(t): # Complex routines take different arguments lapack_routine = lapack_lite.zgeev w = zeros((n,), t) v = zeros((n, n), t) lwork = 1 work = zeros((lwork,), t) rwork = zeros((2*n,), real_t) results = lapack_routine('N', 'V', n, a, n, w, dummy, 1, v, n, work, -1, rwork, 0) lwork = int(abs(work[0])) work = zeros((lwork,), t) results = lapack_routine('N', 'V', n, a, n, w, dummy, 1, v, n, work, lwork, rwork, 0) else: lapack_routine = lapack_lite.dgeev wr = zeros((n,), t) wi = zeros((n,), t) vr = zeros((n, n), t) lwork = 1 work = zeros((lwork,), t) results = lapack_routine('N', 'V', n, a, n, wr, wi, dummy, 1, vr, n, work, -1, 0) lwork = int(work[0]) work = zeros((lwork,), t) results = lapack_routine('N', 'V', n, a, n, wr, wi, dummy, 1, vr, n, work, lwork, 0) if all(wi == 0.0): w = wr v = vr result_t = _realType(result_t) else: w = wr+1j*wi v = array(vr, w.dtype) ind = flatnonzero(wi != 0.0) # indices of complex e-vals for i in range(len(ind)/2): v[ind[2*i]] = vr[ind[2*i]] + 1j*vr[ind[2*i+1]] v[ind[2*i+1]] = vr[ind[2*i]] - 1j*vr[ind[2*i+1]] result_t = _complexType(result_t) if results['info'] > 0: raise LinAlgError, 'Eigenvalues did not converge' vt = v.transpose().astype(result_t) return w.astype(result_t), wrap(vt)
f8012ce42ee9ce709d2f4044e74e61d5d292b3cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/f8012ce42ee9ce709d2f4044e74e61d5d292b3cd/linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11043, 12, 69, 4672, 3536, 8155, 326, 29831, 471, 2145, 11043, 29098, 434, 279, 8576, 526, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 16, 2179, 261, 49, 16, 490, 13, 432, 8576, 526, 434, 2863, 578, 7233, 2186, 18, 225, 2860, 18365, 341, 294, 8304, 16, 2179, 261, 49, 16, 13, 1021, 29831, 16, 1517, 12533, 4888, 358, 2097, 3309, 20458, 18, 1021, 29831, 854, 486, 23848, 5901, 16, 12517, 854, 2898, 23848, 2863, 364, 2863, 5352, 261, 18897, 364, 2863, 5352, 7233, 17, 4531, 329, 29831, 1410, 3334, 316, 10550, 31529, 5574, 2934, 225, 331, 294, 8304, 16, 2179, 261, 49, 16, 490, 13, 1021, 5640, 261, 4873, 315, 2469, 7923, 11043, 29098, 16, 4123, 716, 326, 1057, 12176, 90, 10531, 16, 77, 65, 10335, 353, 326, 11043, 3074, 1229, 4656, 358, 326, 16719, 1132, 12176, 91, 63, 77, 65, 68, 8338, 225, 20497, 31913, 27865, 21883, 668, 971, 326, 16719, 1132, 16039, 1552, 486, 14581, 908, 18, 225, 2164, 8080, 27093, 11043, 1125, 674, 294, 29831, 434, 279, 15108, 578, 670, 1035, 305, 2779, 261, 591, 78, 31529, 15108, 13, 526, 18, 225, 11043, 4524, 294, 29831, 434, 279, 1661, 17, 8117, 6899, 526, 18, 225, 29584, 9135, 1220, 353, 279, 4143, 1560, 358, 326, 511, 2203, 3649, 28580, 302, 908, 14965, 471, 998, 908, 14965, 1492, 3671, 326, 29831, 471, 11043, 29098, 434, 16, 19629, 16, 7470, 2863, 17, 471, 7233, 17, 4531, 329, 8576, 5352, 18, 225, 1021, 1300, 1375, 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, 11043, 12, 69, 4672, 3536, 8155, 326, 29831, 471, 2145, 11043, 29098, 434, 279, 8576, 526, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 16, 2179, 261, 49, 16, 490, 13, 432, 8576, 526, 434, 2863, 578, 7233, 2186, 18, 225, 2860, 18365, 341, 294, 8304, 16, 2179, 261, 49, 16, 13, 1021, 29831, 16, 1517, 12533, 4888, 358, 2097, 3309, 20458, 18, 1021, 29831, 854, 486, 23848, 5901, 16, 12517, 854, 2898, 23848, 2863, 364, 2863, 5352, 261, 18897, 364, 2863, 5352, 7233, 17, 4531, 329, 29831, 1410, 3334, 316, 10550, 31529, 5574, 2934, 225, 331, 294, 8304, 16, 2179, 261, 49, 16, 490, 13, 1021, 5640, 261, 4873, 315, 2469, 7923, 11043, 29098, 16, 4123, 2 ]
m = self.rCtoE.search(html)
m = self.iciba_rCtoE.search(html)
def lookup_ciba(self, word): connect = httplib.HTTPConnection('www.iciba.com', 80) connect.request("GET", "/search?s=%s&t=word&lang=utf-8" % (word.encode("UTF-8"), )) response = connect.getresponse() if response.status != 200: msg = "%d:%s" % (response.status, response.reason) loc = response.getheader("location") self.Debug("dict word(%s) err(%s) loc(%s)" % (word, msg, loc)) return "error" else: # Do the parsing here html = response.read().decode("UTF-8", "ignore") if self.rNx.search(html): return "" m = self.rCtoE.search(html) if m: m = self.rRwWord.findall(html) if m: result = word + ':' for i in m: result += ' ' + i return result
f1bc39a1ce905dd984f258dd33b457e671f217c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10749/f1bc39a1ce905dd984f258dd33b457e671f217c7/weblookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 5591, 18, 335, 495, 69, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206, 3072, 35, 87, 5095, 87, 10, 88, 33, 1095, 10, 4936, 33, 3158, 17, 28, 6, 738, 261, 1095, 18, 3015, 2932, 5159, 17, 28, 6, 3631, 8623, 766, 273, 3077, 18, 588, 2740, 1435, 309, 766, 18, 2327, 480, 4044, 30, 1234, 273, 2213, 72, 5319, 87, 6, 738, 261, 2740, 18, 2327, 16, 766, 18, 10579, 13, 1515, 273, 766, 18, 75, 546, 18105, 2932, 3562, 7923, 365, 18, 2829, 2932, 1576, 2076, 9275, 87, 13, 393, 9275, 87, 13, 1515, 9275, 87, 2225, 738, 261, 1095, 16, 1234, 16, 1515, 3719, 327, 315, 1636, 6, 469, 30, 468, 2256, 326, 5811, 2674, 1729, 273, 766, 18, 896, 7675, 3922, 2932, 5159, 17, 28, 3113, 315, 6185, 7923, 309, 365, 18, 86, 50, 92, 18, 3072, 12, 2620, 4672, 327, 1408, 225, 312, 273, 365, 18, 335, 495, 69, 67, 86, 39, 869, 41, 18, 3072, 12, 2620, 13, 309, 312, 30, 312, 273, 365, 18, 86, 54, 91, 3944, 18, 4720, 454, 12, 2620, 13, 309, 312, 30, 563, 273, 2076, 397, 3921, 364, 277, 316, 312, 30, 563, 1011, 296, 296, 397, 277, 327, 563, 2, 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, 1, 1, 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, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 5591, 18, 335, 495, 69, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206, 3072, 35, 87, 5095, 87, 10, 88, 33, 1095, 10, 4936, 33, 3158, 17, 28, 6, 738, 261, 1095, 18, 3015, 2932, 5159, 17, 28, 6, 3631, 8623, 766, 273, 3077, 18, 588, 2740, 1435, 309, 766, 18, 2327, 480, 4044, 30, 1234, 273, 2213, 72, 5319, 87, 6, 738, 261, 2740, 18, 2327, 16, 766, 18, 10579, 13, 1515, 273, 766, 18, 75, 546, 18105, 2932, 3562, 7923, 365, 18, 2829, 2932, 1576, 2076, 9275, 87, 13, 393, 9275, 87, 13, 1515, 2 ]
if allow_framents and scheme in uses_fragment:
if allow_fragments and scheme in uses_fragment:
def urlparse(url, scheme = '', allow_framents = 1): key = url, scheme, allow_framents try: return _parse_cache[key] except KeyError: pass if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth clear_cache() netloc = path = params = query = fragment = '' i = string.find(url, ':') if i > 0: for c in url[:i]: if c not in scheme_chars: break else: scheme, url = string.lower(url[:i]), url[i+1:] if scheme in uses_netloc: if url[:2] == '//': i = string.find(url, '/', 2) if i < 0: i = len(url) netloc, url = url[2:i], url[i:] if allow_framents and scheme in uses_fragment: i = string.rfind(url, '#') if i >= 0: url, fragment = url[:i], url[i+1:] if scheme in uses_query: i = string.find(url, '?') if i >= 0: url, query = url[:i], url[i+1:] if scheme in uses_params: i = string.find(url, ';') if i >= 0: url, params = url[:i], url[i+1:] tuple = scheme, netloc, url, params, query, fragment _parse_cache[key] = tuple return tuple
abe69dbb5bbe1ed9af9311b15188a024d956b9cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/abe69dbb5bbe1ed9af9311b15188a024d956b9cc/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 74, 1940, 4877, 273, 404, 4672, 498, 273, 880, 16, 4355, 16, 1699, 67, 74, 1940, 4877, 775, 30, 327, 389, 2670, 67, 2493, 63, 856, 65, 1335, 4999, 30, 1342, 309, 562, 24899, 2670, 67, 2493, 13, 1545, 4552, 67, 8495, 67, 4574, 30, 202, 7, 4543, 1086, 26718, 13334, 451, 2424, 67, 2493, 1435, 17345, 273, 589, 273, 859, 273, 843, 273, 5481, 273, 875, 277, 273, 533, 18, 4720, 12, 718, 16, 3921, 13, 309, 277, 405, 374, 30, 364, 276, 316, 880, 10531, 77, 14542, 309, 276, 486, 316, 4355, 67, 7549, 30, 898, 469, 30, 4355, 16, 880, 273, 533, 18, 8167, 12, 718, 10531, 77, 65, 3631, 880, 63, 77, 15, 21, 26894, 309, 4355, 316, 4692, 67, 2758, 1829, 30, 309, 880, 10531, 22, 65, 422, 12084, 4278, 277, 273, 533, 18, 4720, 12, 718, 16, 2023, 16, 576, 13, 309, 277, 411, 374, 30, 277, 273, 562, 12, 718, 13, 17345, 16, 880, 273, 880, 63, 22, 30, 77, 6487, 880, 63, 77, 26894, 309, 1699, 67, 29528, 471, 4355, 316, 4692, 67, 11956, 30, 277, 273, 533, 18, 86, 4720, 12, 718, 16, 2946, 6134, 309, 277, 1545, 374, 30, 880, 16, 5481, 273, 880, 10531, 77, 6487, 880, 63, 77, 15, 21, 26894, 309, 4355, 316, 4692, 67, 2271, 30, 277, 273, 533, 18, 4720, 12, 718, 16, 6787, 13, 309, 277, 1545, 374, 30, 880, 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, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 74, 1940, 4877, 273, 404, 4672, 498, 273, 880, 16, 4355, 16, 1699, 67, 74, 1940, 4877, 775, 30, 327, 389, 2670, 67, 2493, 63, 856, 65, 1335, 4999, 30, 1342, 309, 562, 24899, 2670, 67, 2493, 13, 1545, 4552, 67, 8495, 67, 4574, 30, 202, 7, 4543, 1086, 26718, 13334, 451, 2424, 67, 2493, 1435, 17345, 273, 589, 273, 859, 273, 843, 273, 5481, 273, 875, 277, 273, 533, 18, 4720, 12, 718, 16, 3921, 13, 309, 277, 405, 374, 30, 364, 276, 316, 880, 10531, 77, 14542, 309, 276, 486, 316, 4355, 67, 7549, 30, 898, 469, 30, 4355, 16, 880, 273, 533, 18, 8167, 12, 718, 2 ]
cur = os.path.abspath(".") sub_version(cur)
cur = os.getcwd() sub_version(cur, version)
def docs_multi(version): root = p["targetDir"] + "/" + p["dist.ref.dir"] + "/html" print root setup(root) cur = os.path.abspath(".") sub_version(cur) os.chdir(root) ref = cur + "/" + p["doc.ref.dir"] os.system("java -classpath " + os.path.pathsep.join(glob(ref + "/lib/*.jar")) + \ " -Xmx80M -XX:MaxPermSize=80m com.icl.saxon.StyleSheet " + \ ref+"/src/mangled.xml " + ref+"/styles/html_chunk.xsl") os.remove(ref+"/src/mangled.xml") os.chdir(cur)
8a405e7fd321a7d68e58ef7e892ad80717a33322 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/8a405e7fd321a7d68e58ef7e892ad80717a33322/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3270, 67, 7027, 12, 1589, 4672, 1365, 273, 293, 9614, 3299, 1621, 11929, 397, 4016, 397, 293, 9614, 4413, 18, 1734, 18, 1214, 11929, 397, 2206, 2620, 6, 1172, 1365, 225, 3875, 12, 3085, 13, 225, 662, 273, 1140, 18, 588, 11089, 1435, 720, 67, 1589, 12, 1397, 16, 1177, 13, 1140, 18, 343, 1214, 12, 3085, 13, 1278, 273, 662, 397, 4016, 397, 293, 9614, 2434, 18, 1734, 18, 1214, 11929, 1140, 18, 4299, 2932, 6290, 300, 26302, 315, 397, 1140, 18, 803, 18, 803, 10814, 18, 5701, 12, 10581, 12, 1734, 397, 2206, 2941, 30987, 11930, 6, 3719, 397, 521, 315, 300, 60, 11023, 3672, 49, 300, 5619, 30, 2747, 9123, 1225, 33, 3672, 81, 532, 18, 335, 80, 18, 87, 651, 265, 18, 2885, 8229, 315, 397, 521, 1278, 9078, 19, 4816, 19, 81, 539, 1259, 18, 2902, 315, 397, 1278, 9078, 19, 10218, 19, 2620, 67, 6551, 18, 30903, 7923, 1140, 18, 4479, 12, 1734, 9078, 19, 4816, 19, 81, 539, 1259, 18, 2902, 7923, 1140, 18, 343, 1214, 12, 1397, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3270, 67, 7027, 12, 1589, 4672, 1365, 273, 293, 9614, 3299, 1621, 11929, 397, 4016, 397, 293, 9614, 4413, 18, 1734, 18, 1214, 11929, 397, 2206, 2620, 6, 1172, 1365, 225, 3875, 12, 3085, 13, 225, 662, 273, 1140, 18, 588, 11089, 1435, 720, 67, 1589, 12, 1397, 16, 1177, 13, 1140, 18, 343, 1214, 12, 3085, 13, 1278, 273, 662, 397, 4016, 397, 293, 9614, 2434, 18, 1734, 18, 1214, 11929, 1140, 18, 4299, 2932, 6290, 300, 26302, 315, 397, 1140, 18, 803, 18, 803, 10814, 18, 5701, 12, 10581, 12, 1734, 397, 2206, 2941, 30987, 11930, 6, 3719, 397, 521, 315, 300, 60, 11023, 3672, 49, 300, 5619, 30, 2747, 9123, 1225, 33, 3672, 81, 532, 2 ]
def _center(str, width): """Center a string in a field.""" n = width - len(str) if n <= 0: return str return ' '*((n+1)/2) + str + ' '*((n)/2)
def _center(str, width): """Center a string in a field.""" n = width - len(str) if n <= 0: return str return ' '*((n+1)/2) + str + ' '*((n)/2)
9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5693, 12, 701, 16, 1835, 4672, 3536, 8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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5693, 12, 701, 16, 1835, 4672, 3536, 8449, 279, 533, 316, 279, 652, 12123, 290, 273, 1835, 300, 562, 12, 701, 13, 309, 290, 1648, 374, 30, 327, 609, 327, 296, 14609, 12443, 82, 15, 21, 13176, 22, 13, 397, 609, 397, 296, 14609, 12443, 82, 13176, 22, 13, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
oldAccount = ns.currentIncomingAccount.item
oldAccount = getattr(ns.currentIncomingAccount, "item", None)
def do_password(password): if hasattr(account, 'password'): account.password.delete() account.password = password
3e087cbdba92c2f6fcac818e14007ca4aee3e0c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_tem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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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3664, 12, 3664, 4672, 309, 3859, 12, 4631, 16, 296, 3664, 11, 4672, 2236, 18, 3664, 18, 3733, 1435, 2236, 18, 3664, 273, 2201, 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 test_ignore_case(self): self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
def test_ignore_case(self): self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
894fe7b540f0449081728795c6bda18e8e8782c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/894fe7b540f0449081728795c6bda18e8e8782c9/test_re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6185, 67, 3593, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 315, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 582, 6, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6185, 67, 3593, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 315, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 582, 6, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 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 ]
expected_command_line = [monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY] command_line = monitor_db._autoserv_command_line(machines, extra_args) self.assertEqual(expected_command_line + ['--verbose'] + extra_args, command_line)
expected_command_line_base = set((monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY)) expected_command_line = expected_command_line_base.union( ['--verbose']).union(extra_args) command_line = set( monitor_db._autoserv_command_line(machines, extra_args)) self.assertEqual(expected_command_line, command_line)
def test_autoserv_command_line(self): machines = 'abcd12,efgh34' extra_args = ['-Z', 'hello'] expected_command_line = [monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY]
982adcf87b88a5a103db1f3bc9f492597e39e7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/982adcf87b88a5a103db1f3bc9f492597e39e7d0/monitor_db_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5854, 13164, 90, 67, 3076, 67, 1369, 12, 2890, 4672, 15942, 273, 296, 378, 4315, 2138, 16, 73, 2137, 76, 5026, 11, 2870, 67, 1968, 273, 10228, 17, 62, 2187, 296, 23711, 3546, 2665, 67, 3076, 67, 1369, 273, 306, 10259, 67, 1966, 6315, 5854, 13164, 90, 67, 803, 16, 2400, 84, 2187, 2400, 81, 2187, 15942, 16, 2400, 86, 2187, 5081, 476, 67, 4181, 18, 10566, 1360, 67, 17229, 65, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5854, 13164, 90, 67, 3076, 67, 1369, 12, 2890, 4672, 15942, 273, 296, 378, 4315, 2138, 16, 73, 2137, 76, 5026, 11, 2870, 67, 1968, 273, 10228, 17, 62, 2187, 296, 23711, 3546, 2665, 67, 3076, 67, 1369, 273, 306, 10259, 67, 1966, 6315, 5854, 13164, 90, 67, 803, 16, 2400, 84, 2187, 2400, 81, 2187, 15942, 16, 2400, 86, 2187, 5081, 476, 67, 4181, 18, 10566, 1360, 67, 17229, 65, 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 ]
self.PieceTab.setCurrentIndex(a0)
self.PieceTab.setCurrentIndex(a0.data().toInt()[0])
def changePieceTab(self,a0): self.PieceTab.setCurrentIndex(a0)
4dbe836446fbdbbdf60c1cbd40d99f1fc498b04e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/4dbe836446fbdbbdf60c1cbd40d99f1fc498b04e/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 22607, 5661, 12, 2890, 16, 69, 20, 4672, 365, 18, 22607, 5661, 18, 542, 3935, 1016, 12, 69, 20, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 22607, 5661, 12, 2890, 16, 69, 20, 4672, 365, 18, 22607, 5661, 18, 542, 3935, 1016, 12, 69, 20, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
<td>Great Achievements Start With Tiny Investments !</td>
<td>http://openobject.com</td>
def sendMessage(self, m, recipients):
d09b5709e163d35440f472144fc6a75155c9b191 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/d09b5709e163d35440f472144fc6a75155c9b191/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15399, 12, 2890, 16, 312, 16, 12045, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15399, 12, 2890, 16, 312, 16, 12045, 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 ]
data = yaml.load(yamldata.read())
data = yamldata.read()
def sendVote(self, datamanager, topicid, voteid): authority = datamanager.getAuthority(topicid[:topicid.index("/")]) topic = authority.topics[topicid] vote = topic.votes[voteid] if vote: yamldata = open(self.servent.manager.peergov.datadir + "/" + topicid + "/" + voteid, "r") data = yaml.load(yamldata.read()) yamldata.close() self.conn.send("DATA VOTE %s %s\n" % (topicid, voteid)); self.conn.send("%s\n" % (data)); self.conn.send("DATA FIN\n");
aa8d0513eff6d412885924a7d96beeb974298dab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12833/aa8d0513eff6d412885924a7d96beeb974298dab/servent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 19338, 12, 2890, 16, 1150, 301, 1063, 16, 3958, 350, 16, 12501, 350, 4672, 11675, 273, 1150, 301, 1063, 18, 588, 10962, 12, 10476, 350, 10531, 10476, 350, 18, 1615, 2932, 4898, 13, 5717, 3958, 377, 273, 11675, 18, 17905, 63, 10476, 350, 65, 12501, 1377, 273, 3958, 18, 27800, 63, 25911, 350, 65, 309, 12501, 30, 6097, 892, 273, 1696, 12, 2890, 18, 550, 616, 18, 4181, 18, 12210, 75, 1527, 18, 3404, 361, 481, 397, 4016, 397, 3958, 350, 397, 4016, 397, 12501, 350, 16, 315, 86, 7923, 501, 273, 6097, 892, 18, 896, 1435, 6097, 892, 18, 4412, 1435, 365, 18, 4646, 18, 4661, 2932, 4883, 776, 51, 1448, 738, 87, 738, 87, 64, 82, 6, 738, 261, 10476, 350, 16, 12501, 350, 10019, 365, 18, 4646, 18, 4661, 27188, 87, 64, 82, 6, 738, 261, 892, 10019, 365, 18, 4646, 18, 4661, 2932, 4883, 17563, 64, 82, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 19338, 12, 2890, 16, 1150, 301, 1063, 16, 3958, 350, 16, 12501, 350, 4672, 11675, 273, 1150, 301, 1063, 18, 588, 10962, 12, 10476, 350, 10531, 10476, 350, 18, 1615, 2932, 4898, 13, 5717, 3958, 377, 273, 11675, 18, 17905, 63, 10476, 350, 65, 12501, 1377, 273, 3958, 18, 27800, 63, 25911, 350, 65, 309, 12501, 30, 6097, 892, 273, 1696, 12, 2890, 18, 550, 616, 18, 4181, 18, 12210, 75, 1527, 18, 3404, 361, 481, 397, 4016, 397, 3958, 350, 397, 4016, 397, 12501, 350, 16, 315, 86, 7923, 501, 273, 6097, 892, 18, 896, 1435, 6097, 892, 18, 4412, 1435, 365, 18, 4646, 18, 4661, 2932, 4883, 776, 51, 1448, 738, 87, 738, 87, 64, 2 ]
html += "<span class='fieldRequired' title='%s' > %s </span>" % (translate(_(u'title_required'),context=self.request), translate(_(u'title_required'), context=self.request))
html += "<span class='fieldRequired' title='%s'>%s</span>" % (translate(_(u'title_required'), context=self.request, default='Required'), translate(_(u'label_required'), context=self.request, default='(Required)'))
def __call__( self ): """Render the widget to HTML.""" value = self._getFormValue() html = "<label for='%s'>%s</label>\n" % (self.name , translate(super(BaseWidget,self).label, context=self.request)) if self.__required: html += "<span class='fieldRequired' title='%s' > %s </span>" % (translate(_(u'title_required'),context=self.request), translate(_(u'title_required'), context=self.request)) if super(BaseWidget, self).hint: html += "<div class='formHelp'>%s</div>" % translate(super(BaseWidget, self).hint, context=self.request) if super(BaseWidget, self).error() != '': html += "<div>%s</div>" % translate(super(BaseWidget, self).error(), context=self.request) if value == 'on': kw = {'checked': 'checked'} else: kw = {} if self.disabled: kw['disabled'] = 'disabled' return "%s %s %s" % ( renderElement(self.tag, type='hidden', name=self.name+".used", id=self.name+".used", value="" ), renderElement(self.tag, type=self.type, name=self.name, id=self.name, cssClass=self.cssClass, extra=self.extra, value="on", **kw), html )
84263650f9c8d1b77bb2521665c46ce70d446dfe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12236/84263650f9c8d1b77bb2521665c46ce70d446dfe/checkboxwidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 365, 262, 30, 3536, 3420, 326, 3604, 358, 3982, 12123, 460, 273, 365, 6315, 588, 1204, 620, 1435, 1729, 273, 3532, 1925, 364, 28713, 87, 11, 9822, 87, 1757, 1925, 5333, 82, 6, 738, 261, 2890, 18, 529, 269, 4204, 12, 9565, 12, 2171, 4609, 16, 2890, 2934, 1925, 16, 819, 33, 2890, 18, 2293, 3719, 309, 365, 16186, 4718, 30, 1729, 1011, 3532, 3969, 667, 2218, 1518, 3705, 11, 2077, 28713, 87, 11, 9822, 87, 1757, 3969, 2984, 738, 261, 13929, 24899, 12, 89, 1404, 1280, 67, 4718, 19899, 819, 33, 2890, 18, 2293, 16, 805, 2218, 3705, 19899, 4204, 24899, 12, 89, 11, 1925, 67, 4718, 19899, 819, 33, 2890, 18, 2293, 16, 805, 2218, 12, 3705, 2506, 3719, 309, 2240, 12, 2171, 4609, 16, 365, 2934, 11317, 30, 1729, 1011, 3532, 2892, 667, 2218, 687, 6696, 11, 9822, 87, 1757, 2892, 2984, 738, 4204, 12, 9565, 12, 2171, 4609, 16, 365, 2934, 11317, 16, 819, 33, 2890, 18, 2293, 13, 309, 2240, 12, 2171, 4609, 16, 365, 2934, 1636, 1435, 480, 875, 30, 1729, 1011, 3532, 2892, 9822, 87, 1757, 2892, 2984, 738, 4204, 12, 9565, 12, 2171, 4609, 16, 365, 2934, 1636, 9334, 819, 33, 2890, 18, 2293, 13, 225, 309, 460, 422, 296, 265, 4278, 5323, 273, 13666, 4532, 4278, 296, 4532, 11, 97, 469, 30, 5323, 273, 2618, 309, 365, 18, 9278, 30, 5323, 3292, 9278, 3546, 273, 296, 9278, 11, 327, 2213, 87, 225, 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, 1001, 1991, 972, 12, 365, 262, 30, 3536, 3420, 326, 3604, 358, 3982, 12123, 460, 273, 365, 6315, 588, 1204, 620, 1435, 1729, 273, 3532, 1925, 364, 28713, 87, 11, 9822, 87, 1757, 1925, 5333, 82, 6, 738, 261, 2890, 18, 529, 269, 4204, 12, 9565, 12, 2171, 4609, 16, 2890, 2934, 1925, 16, 819, 33, 2890, 18, 2293, 3719, 309, 365, 16186, 4718, 30, 1729, 1011, 3532, 3969, 667, 2218, 1518, 3705, 11, 2077, 28713, 87, 11, 9822, 87, 1757, 3969, 2984, 738, 261, 13929, 24899, 12, 89, 1404, 1280, 67, 4718, 19899, 819, 33, 2890, 18, 2293, 16, 805, 2218, 3705, 19899, 4204, 24899, 12, 89, 11, 1925, 67, 4718, 19899, 819, 33, 2890, 18, 2293, 2 ]
port = int(a)
ser.port = int(a)
def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: serial port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -P, --localport: TCP/IP port on which to run the server (default 7777) """ % sys.argv[0]
d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 2734, 1756, 16, 279, 1300, 16, 1652, 1462, 88, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 52, 16, 1493, 3729, 655, 30, 9911, 19, 2579, 1756, 603, 1492, 358, 1086, 326, 1438, 261, 1886, 2371, 14509, 13, 3536, 738, 2589, 18, 19485, 63, 20, 65, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 2734, 1756, 16, 279, 1300, 16, 1652, 1462, 88, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 52, 16, 1493, 3729, 655, 30, 9911, 19, 2579, 2 ]
session[ 'csName' ] = "LHCb Configuration"
session[ 'csName' ] = "LHCb Configuration"
def __getRemoteConfiguration( self ): rpcClient = getRPCClient( gConfig.getValue( "/DIRAC/Configuration/MasterServer", "Configuration/Server" ) ) modCfg = Modificator( rpcClient ) retVal = modCfg.loadFromRemote() if retVal[ 'OK' ]: session[ 'cfgData' ] = str( modCfg ) session[ 'csName' ] = "LHCb Configuration" session.save() c.cfgData = modCfg.cfgData c.csName = session[ 'csName' ] return retVal
6ef54087f1fe3a16604362de1c66b612ff5fbab6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12767/6ef54087f1fe3a16604362de1c66b612ff5fbab6/configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5169, 1750, 12, 365, 262, 30, 6724, 1227, 273, 4170, 3513, 1227, 12, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 1750, 19, 7786, 2081, 3113, 315, 1750, 19, 2081, 6, 262, 262, 681, 8198, 273, 3431, 1507, 639, 12, 6724, 1227, 262, 12197, 273, 681, 8198, 18, 945, 1265, 5169, 1435, 309, 12197, 63, 296, 3141, 11, 308, 30, 1339, 63, 296, 7066, 751, 11, 308, 273, 609, 12, 681, 8198, 262, 1339, 63, 296, 2143, 461, 11, 308, 273, 315, 48, 44, 15237, 4659, 6, 1339, 18, 5688, 1435, 276, 18, 7066, 751, 273, 681, 8198, 18, 7066, 751, 276, 18, 2143, 461, 273, 1339, 63, 296, 2143, 461, 11, 308, 327, 12197, 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, 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, 326, 981, 30, 1652, 1001, 588, 5169, 1750, 12, 365, 262, 30, 6724, 1227, 273, 4170, 3513, 1227, 12, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 1750, 19, 7786, 2081, 3113, 315, 1750, 19, 2081, 6, 262, 262, 681, 8198, 273, 3431, 1507, 639, 12, 6724, 1227, 262, 12197, 273, 681, 8198, 18, 945, 1265, 5169, 1435, 309, 12197, 63, 296, 3141, 11, 308, 30, 1339, 63, 296, 7066, 751, 11, 308, 273, 609, 12, 681, 8198, 262, 1339, 63, 296, 2143, 461, 11, 308, 273, 315, 48, 44, 15237, 4659, 6, 1339, 18, 5688, 1435, 276, 18, 7066, 751, 273, 681, 8198, 18, 7066, 751, 276, 18, 2143, 461, 273, 1339, 63, 296, 2143, 461, 11, 308, 327, 12197, 2 ]
startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " "
OutputFileVHist = "OutputVHist" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " --outputFstatHist " + OutputFileVHist + " "
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print >> sys.stderr, "Insufficient command line arguments " print >> sys.stderr, " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print >> sys.stderr, " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: print >> sys.stderr, "Cannot import Config file '",sys.argv[1],"' exiting ...." sys.exit(1) UniqueID = '' # Compute Unique ID Number if(len(sys.argv) >= 3): UniqueID += '_' + sys.argv[2] # Variables Structure/Dictionary Vars = {} # SFT time baseline try: Vars['TSFT'] = config.TSFT except: print >> sys.stderr, "TSFT cannot be read" sys.exit(1) # Strength of signal try: Vars['h0'] = config.h0 except: print >> sys.stderr, "h0 cannot be read" sys.exit(1) # Cosine of iota try: Vars['cosi'] = config.cosi except: try: Vars['cosi'] = random.uniform(config.cosi_min,config.cosi_max) except: print >> sys.stderr, "Cannot read in cosi variable" sys.exit(1) if(math.fabs(Vars['cosi']) > 1): print >> sys.stderr, "abs(cosi) > 1 !!!" sys.exit(1) # Initial Phase try: Vars['phi0'] = config.phi0 except: try: Vars['phi0'] = random.uniform(config.phi0_min,config.phi0_max) except: print >> sys.stderr, "Cannot read in phi0 variable" sys.exit(1) # Polarization Angle try: Vars['psi'] = config.psi except: try: Vars['psi'] = random.uniform(config.psi_min,config.psi_max) except: print >> sys.stderr, "Cannot read in psi variable" sys.exit(1) # Number of Dirichlet terms used. try: Vars['Dterms'] = float(config.Dterms) except: print >> sys.stderr, "Dterms cannot be read" sys.exit(1) # Interferometer try: IFOs = config.IFOs IFOs = IFOs.split(' ') NumofIFOs = len(IFOs) Vars['NumofIFOs'] = NumofIFOs Vars['IFO'] = [] for i in range(NumofIFOs): Vars['IFO'].append(IFOs[i]) except: print >> sys.stderr, "IFO cannot be read" sys.exit(1) # Start Time try: t0 = config.t0 t0 = t0.split(' ') if(len(t0) != NumofIFOs): print >> sys.stderr, "Number of starttimes != Number of IFOs" sys.exit(1) Vars['t0'] = [] for i in range(NumofIFOs): Vars['t0'].append(float(t0[i])) except: print >> sys.stderr, "t0 cannot be read" sys.exit(1) # Reference Time in SSB try: Vars['refTime'] = float(config.refTime) refString = ' --refTime ' + str(Vars['refTime']) except: refString = ' ' # Output Directory try: Vars['Out'] = config.Out + UniqueID except: print >> sys.stderr, "Out cannot be read" sys.exit(1) # Ephemeris Directory try: Vars['Ephem'] = config.Ephem except: print >> sys.stderr, "Ephem cannot be read" sys.exit(1) # Ephemeris Year try: Vars['EphemYear'] = config.EphemYear except: print >> sys.stderr, "EphemYear cannot be read" sys.exit(1) # Noise Sh try: Vars['Sh'] = float(config.Sh) except: print >> sys.stderr, "Sh cannot be read" sys.exit(1) # Duration of Analysis try: TSpan = config.TSpan TSpan = TSpan.split(' ') if(len(TSpan) != NumofIFOs): print >> sys.stderr, "Number of TSpans != Number of IFOs" sys.exit(1) Vars['TSpan'] = [] for i in range(NumofIFOs): Vars['TSpan'].append(float(TSpan[i])) except: print >> sys.stderr, "TSpan cannot be read" sys.exit(1) # Number of SFTs to add try: NumSFTs = config.NumSFTs NumSFTs = NumSFTs.split(' ') if(len(NumSFTs) != NumofIFOs): print >> sys.stderr, "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumSFTs'] = [] for i in range(NumofIFOs): Vars['NumSFTs'].append(int(NumSFTs[i])) except: print >> sys.stderr, "NumSFTs cannot be read" sys.exit(1) # Number of Gaps to add try: NumGaps = config.NumGaps NumGaps = NumGaps.split(' ') if(len(NumGaps) != NumofIFOs): print >> sys.stderr, "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumGaps'] = [] for i in range(NumofIFOs): Vars['NumGaps'].append(int(NumGaps[i])) except: print >> sys.stderr, "NumGaps cannot be read" sys.exit(1) # Alpha (Right Ascension) try: Vars['Alpha'] = config.Alpha except: try: Vars['Alpha'] = random.uniform(config.Alpha_min,config.Alpha_max) except: print >> sys.stderr, "Cannot read in Alpha variable" sys.exit(1) if(Vars['Alpha'] < 0 or Vars['Alpha'] > 2.0*math.pi): print >> sys.stderr, "Alpha out of bounds !!!" sys.exit(1) # Delta (Declination) try: Vars['Delta'] = config.Delta except: try: Vars['Delta'] = random.uniform(config.Delta_min,config.Delta_max) except: print >> sys.stderr, "Cannot read in Delta variable" sys.exit(1) if(math.fabs(Vars['Delta']) > math.pi/2.0): print >> sys.stderr, "abs(Delta) > pi/2 !!!" sys.exit(1) # Minimum Frequency try: Vars['Fmin'] = config.Fmin except: print >> sys.stderr, "Fmin cannot be read" sys.exit(1) # Band of Analysis try: Vars['Band'] = config.Band except: print >> sys.stderr, "Band cannot be read" sys.exit(1) # Injection Frequency try: Vars['Finj'] = config.Finj except: try: Vars['Finj'] = random.uniform(config.Finj_min,config.Finj_max) except: print >> sys.stderr, "Cannot read in Finj variable" sys.exit(1) if(Vars['Finj'] < 0): print >> sys.stderr, "Finj < 0 !!!" sys.exit(1) # Spindown/ FDOT try: Vars['FDot'] = config.FDot except: try: Vars['FDot'] = random.uniform(config.FDot_min,config.FDot_max) except: print >> sys.stderr, "Cannot read in FDot variable" sys.exit(1) # FDOTBand try: Vars['FDotBand'] = config.FDotBand except: Vars['FDotBand'] = 0 #print >> sys.stderr, "Cannot read in FDot variable" #sys.exit(1) # dFDot try: Vars['dFDot'] = config.dFDot except: Vars['dFDot'] = 10 # Resolution try: Vars['Res'] = config.Res if(Vars['Res'] > 1.0/Vars['TSpan'][0]): print >> sys.stderr, "Resolution too low, set to 1/T" Vars['Res'] = 1.0/Vars['TSpan'][0] if(Vars['Res'] < 0): print >> sys.stderr, "Resolution < 0" sys.exit(1) except: Vars['Res'] = 1.0/Vars['TSpan'][0] current = 0 for i in range(NumofIFOs): if(Vars['TSpan'][i] > Vars['TSpan'][current]): current = i Vars['Res'] = 1.0/Vars['TSpan'][i] # Debug Check try: Vars['debug'] = config.debug except: Vars['debug'] = 1.0 # F Threshold try: Vars['FThres'] = config.FThres except: Vars['FThres'] = 0 # Optional Output Variable from Resamp try: Vars['ResampOutput'] = config.ResampOutput except: Vars['ResampOutput'] = "MyTS" # Optional Use Your Own TimeStampsFile try: Vars['TimeStampsFile'] = config.TimeStampsFile TimeStampsFile_Is_Set = True except: Vars['TimeStampsFile'] = 'TimeStampsFile' + UniqueID TimeStampsFile_Is_Set = False # Print out all the variables (if Debug is on) if(Vars['debug']): print "---------- Configuration Variables --------- " PrintValues(Vars) print "-------------------------------------------- \n \n" # Create the Time Stamp File if(not(TimeStampsFile_Is_Set)): if(Vars['debug']): print "------------ Creating TimeStamps Files --------" CreateTimeStampFile(Vars,UniqueID) # If running multiple time, delete all the old SFTs if(os.path.exists("./"+Vars['Out'])): try: shutil.rmtree(Vars['Out']) except: print >> sys.stderr, "Could not delete old directory\n" sys.exit(1) try: os.mkdir(Vars['Out']) except: print >> sys.stderr, "Something went wrong creating new directory\n" print >> sys.stderr, "Permission trouble maybe\n" sys.exit(1) # Generate Fake data string for ifo in range(NumofIFOs): FakeDataString = GenFakeDataString(1,Vars,ifo,UniqueID,refString) if(Vars['debug']): print "----------- Makefakedata String ------------" print FakeDataString print "--------------------------------------------\n\n" # Generate the data try: G = commands.getoutput(FakeDataString) os.remove("timestampsFile"+Vars['IFO'][ifo]+UniqueID) except: print >> sys.stderr, "Tried to generate SFTs, failed" sys.exit(1) # Run v2() OutputFileVLoudest = "OutputVLoudest" + UniqueID OutputFileVFstat = "OutputVFstat" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " " endstring = " " + refString V2DataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "----------- V2 String ------------" print V2DataString print "----------------------------------\n\n" print "----------- Running V2 -----------" (status,Voutput) = commands.getstatusoutput(V2DataString) if(status): print >> sys.stderr, "V2 failed, Output was \n\n" print >> sys.stderr, Voutput print >> sys.stderr, "\nV2 Command was\n" print >> sys.stderr, V2DataString print >> sys.stderr, "\nMakeFakeData Command was\n" print >> sys.stderr, FakeDataString sys.exit(1) if(Vars['debug']): print "---------- V2 Done ---------------\n\n" # Run Resamp #ResampLocation = "/home/ppatel/lalsuite/lalapps/src/pulsar/FDS_isolated/ResamplingFstat/" ResampLocation = "./" OutputFileRLoudest = "OutputRLoudest" + UniqueID OutputFileRFstat = "OutputRFstat" + UniqueID startstring = ResampLocation + "lalapps_ComputeFStatistic_resamp --outputFstat " + OutputFileRFstat + " --outputLoudest " + OutputFileRLoudest+ " -F " + str(Vars['FThres']) + " " endstring = " " + refString RDataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "-------- Resamp String -----------" print RDataString print "----------------------------------\n\n" print "--------- Running Resamp ---------" (status,Routput) = commands.getstatusoutput(RDataString) if(status): print >> sys.stderr, "Resamp failed, Output was\n\n" print >> sys.stderr, Routput print >> sys.stderr, "\nResamp Command was\n" print >> sys.stderr, RDataString print >> sys.stderr, "\nMakeFakeData Command was\n" print >> sys.stderr, FakeDataString sys.exit(0) if(Vars['debug']): print "---------- Resamp Done -----------\n\n" if(Vars['debug']): print "---------- Deleting SFT Folder ---------\n\n" try: shutil.rmtree(Vars['Out']) except: print >> sys.stderr, " Could not delete SFT folder \n\n" sys.exit(1) FreqOutput = AnalyzeFreq(OutputFileRFstat,OutputFileVFstat,Vars['Finj'],Vars['Res']) LoudestOutput = AnalyzeLoudest(OutputFileRLoudest,OutputFileVLoudest) os.remove(OutputFileRLoudest) os.remove(OutputFileVLoudest) os.remove(OutputFileRFstat) os.remove(OutputFileVFstat) print FreqOutput,LoudestOutput return(0)
d413176c5aa91b740377f318dbf425c8d0ed9b4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/d413176c5aa91b740377f318dbf425c8d0ed9b4f/multiresamp_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 1671, 2589, 18, 11241, 16, 315, 5048, 11339, 1296, 980, 1775, 315, 1172, 1671, 2589, 18, 11241, 16, 315, 10858, 353, 3104, 9499, 18, 19485, 63, 20, 6487, 6, 411, 13705, 34, 288, 2278, 3588, 97, 315, 1172, 1671, 2589, 18, 11241, 16, 315, 9500, 310, 1372, 6265, 18460, 2589, 18, 8593, 12, 21, 13, 225, 775, 30, 642, 273, 1001, 5666, 972, 12, 9499, 18, 19485, 63, 21, 19226, 1335, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 4515, 1930, 1903, 585, 19197, 9499, 18, 19485, 63, 21, 6487, 5187, 15702, 1372, 1199, 2589, 18, 8593, 12, 21, 13, 225, 14584, 734, 273, 875, 225, 468, 8155, 14584, 1599, 3588, 309, 12, 1897, 12, 9499, 18, 19485, 13, 1545, 890, 4672, 14584, 734, 1011, 4427, 397, 2589, 18, 19485, 63, 22, 65, 225, 468, 23536, 13348, 19, 10905, 27289, 273, 2618, 225, 468, 348, 4464, 813, 14243, 775, 30, 27289, 3292, 8047, 4464, 3546, 273, 642, 18, 8047, 4464, 1335, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 8047, 4464, 2780, 506, 855, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 934, 13038, 434, 4277, 775, 30, 27289, 3292, 76, 20, 3546, 273, 642, 18, 76, 20, 1335, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 76, 20, 2780, 506, 855, 6, 2589, 18, 8593, 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, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 1671, 2589, 18, 11241, 16, 315, 5048, 11339, 1296, 980, 1775, 315, 1172, 1671, 2589, 18, 11241, 16, 315, 10858, 353, 3104, 9499, 18, 19485, 63, 20, 6487, 6, 411, 13705, 34, 288, 2278, 3588, 97, 315, 1172, 1671, 2589, 18, 11241, 16, 315, 9500, 310, 1372, 6265, 18460, 2589, 18, 8593, 12, 21, 13, 225, 775, 30, 642, 273, 1001, 5666, 972, 12, 9499, 18, 19485, 63, 21, 19226, 1335, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 4515, 1930, 1903, 585, 19197, 9499, 18, 19485, 63, 21, 2 ]
color("green") left(130)
left(120)
def demo2(): # exercises some new and improved features speed('fast') width(3) # draw a segmented half-circle setheading(towards(0,0)) x,y = position() r = (x**2+y**2)**.5/2.0 right(90) pendown = True for i in range(18): if pendown: up() pendown = False else: down() pendown = True circle(r,10) sleep(2) reset() left(90) # draw a series of triangles l = 10 color("green") width(3) left(180) sp = 5 for i in range(-2,16): if i > 0: color(1.0-0.05*i,0,0.05*i) fill(1) color("green") for j in range(3): forward(l) left(120) l += 10 left(15) if sp > 0: sp = sp-1 speed(speeds[sp]) color(0.25,0,0.75) fill(0) color("green") left(130) up() forward(90) color("red") speed('fastest') down(); # create a second turtle and make the original pursue and catch it turtle=Turtle() turtle.reset() turtle.left(90) turtle.speed('normal') turtle.up() turtle.goto(280,40) turtle.left(24) turtle.down() turtle.speed('fast') turtle.color("blue") turtle.width(2) speed('fastest') # turn default turtle towards new turtle object setheading(towards(turtle)) while ( abs(position()[0]-turtle.position()[0])>4 or abs(position()[1]-turtle.position()[1])>4): turtle.forward(3.5) turtle.left(0.6) # turn default turtle towards new turtle object setheading(towards(turtle)) forward(4) write("CAUGHT! ", move=True)
2219110991cdd175e1a19d5965be9339f89d5f07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2219110991cdd175e1a19d5965be9339f89d5f07/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 22, 13332, 468, 431, 12610, 6141, 2690, 394, 471, 13069, 2155, 4467, 8632, 2668, 8076, 6134, 1835, 12, 23, 13, 225, 468, 3724, 279, 3267, 329, 8816, 17, 18970, 444, 19948, 12, 31091, 14727, 12, 20, 16, 20, 3719, 619, 16, 93, 273, 1754, 1435, 436, 273, 261, 92, 636, 22, 15, 93, 636, 22, 13, 636, 18, 25, 19, 22, 18, 20, 2145, 12, 9349, 13, 31472, 995, 273, 1053, 364, 277, 316, 1048, 12, 2643, 4672, 309, 31472, 995, 30, 731, 1435, 31472, 995, 273, 1083, 469, 30, 2588, 1435, 31472, 995, 273, 1053, 12470, 12, 86, 16, 2163, 13, 5329, 12, 22, 13, 225, 2715, 1435, 2002, 12, 9349, 13, 225, 468, 3724, 279, 4166, 434, 19959, 328, 273, 1728, 2036, 2932, 11571, 7923, 1835, 12, 23, 13, 2002, 12, 18278, 13, 1694, 273, 1381, 364, 277, 316, 1048, 19236, 22, 16, 2313, 4672, 309, 277, 405, 374, 30, 2036, 12, 21, 18, 20, 17, 20, 18, 6260, 14, 77, 16, 20, 16, 20, 18, 6260, 14, 77, 13, 3636, 12, 21, 13, 2036, 2932, 11571, 7923, 364, 525, 316, 1048, 12, 23, 4672, 5104, 12, 80, 13, 2002, 12, 22343, 13, 328, 1011, 1728, 2002, 12, 3600, 13, 309, 1694, 405, 374, 30, 1694, 273, 1694, 17, 21, 8632, 12, 13871, 87, 63, 1752, 5717, 2036, 12, 20, 18, 2947, 16, 20, 16, 20, 18, 5877, 13, 3636, 12, 20, 13, 282, 2002, 12, 22343, 13, 731, 1435, 5104, 12, 9349, 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, 21477, 22, 13332, 468, 431, 12610, 6141, 2690, 394, 471, 13069, 2155, 4467, 8632, 2668, 8076, 6134, 1835, 12, 23, 13, 225, 468, 3724, 279, 3267, 329, 8816, 17, 18970, 444, 19948, 12, 31091, 14727, 12, 20, 16, 20, 3719, 619, 16, 93, 273, 1754, 1435, 436, 273, 261, 92, 636, 22, 15, 93, 636, 22, 13, 636, 18, 25, 19, 22, 18, 20, 2145, 12, 9349, 13, 31472, 995, 273, 1053, 364, 277, 316, 1048, 12, 2643, 4672, 309, 31472, 995, 30, 731, 1435, 31472, 995, 273, 1083, 469, 30, 2588, 1435, 31472, 995, 273, 1053, 12470, 12, 86, 16, 2163, 13, 5329, 12, 22, 13, 225, 2715, 1435, 2002, 12, 9349, 13, 225, 468, 3724, 279, 2 ]
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"])
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"] )
def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -e, --echo: enable local echo (default off) -c, --cr: disable CR -> CR+LF translation """ % sys.argv[0]
b7466daf4f82c4ddea5947442be2cc17bce59bf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/b7466daf4f82c4ddea5947442be2cc17bce59bf9/miniterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 1756, 16, 279, 1300, 16, 1652, 1462, 88, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 73, 16, 1493, 12946, 30, 1377, 4237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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, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 1756, 16, 279, 1300, 16, 1652, 1462, 88, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 73, 16, 1493, 12946, 30, 1377, 4237, 1191, 3376, 261, 2 ]
self.assertTrue(diff[0].type == PORT_STATE_CHANGE)
self.assertTrue(isinstance(diff[0], PortStateChangeHunk))
def test_state_change(self): spec = (10, "tcp") a = Port(spec) a.state = "open" b = Port(spec) b.state = "closed" diff = port_diff(a, b) self.assertTrue(len(diff) == 1) self.assertTrue(diff[0].type == PORT_STATE_CHANGE)
e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2019, 67, 3427, 12, 2890, 4672, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 273, 6008, 12, 2793, 13, 279, 18, 2019, 273, 315, 3190, 6, 324, 273, 6008, 12, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2019, 67, 3427, 12, 2890, 4672, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 273, 6008, 12, 2793, 13, 279, 18, 2019, 273, 315, 3190, 6, 324, 273, 6008, 12, 2793, 13, 324, 18, 2019, 273, 315, 12204, 6, 3122, 273, 1756, 67, 5413, 12, 69, 16, 324, 13, 365, 18, 11231, 5510, 12, 1897, 12, 5413, 13, 422, 404, 13, 365, 18, 11231, 5510, 12, 5413, 63, 20, 8009, 723, 422, 20987, 67, 7998, 67, 14473, 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 ]
f1 = open(msg.file.name, "rb") d = f1.read()
def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is None: i.lastbytes = i.currentbytes if i.starttime is None: i.starttime = curtime if i.lasttime is None: i.lasttime = curtime - 1 #i.status = "%s" %(str(i.currentbytes)) i.status = "Transferring" oldelapsed = i.timeelapsed i.timeelapsed = curtime - i.starttime if curtime > i.starttime and i.currentbytes > i.offset: i.speed = (i.currentbytes - i.lastbytes)/(curtime - i.lasttime)/1024 if i.speed <= 0.0: i.timeleft = "∞" else: i.timeleft = self.getTime((i.size - i.currentbytes)/i.speed/1024) i.lastbytes = i.currentbytes i.lasttime = curtime if i.size > i.currentbytes: if oldelapsed == i.timeelapsed: needupdate = 0 #i.status = str(i.currentbytes) i.status = "Transferring" else: msg.file.close() basename = self.CleanPath(self.encode(string.split(i.filename,'\\')[-1], i.user)) downloaddir = config["transfers"]["downloaddir"] if i.path and i.path[0] == '/': folder = self.CleanPath(i.path) else: folder = os.path.join(downloaddir, self.encode(i.path)) if not os.access(folder, os.F_OK): os.makedirs(folder) newname = self.getRenamed(os.path.join(folder, basename)) try: if win32: os.rename(msg.file.name, u"%s" % newname) else: os.rename(msg.file.name, newname) except OSError: try: f1 = open(msg.file.name, "rb") d = f1.read() if win32: f1 = open(u"%s" % newname, "wb") else: f1 = open(newname, "wb") f1.write(d) f1.close() os.remove(msg.file.name) except OSError: self.eventprocessor.logMessage(_("Couldn't move '%(tempfile)s' to '%(file)s'") % {'tempfile':self.decode(msg.file.name), 'file':self.decode(newname)}) i.status = "Finished" self.eventprocessor.logMessage(_("Download finished: %(file)s") % {'file':self.decode(newname)}) self.eventprocessor.logTransfer(_("Download finished: user %(user)s, file %(file)s") % {'user':i.user, 'file':self.decode(i.filename)}) self.queue.put(slskmessages.ConnClose(msg.conn)) #if i.speed is not None: #self.queue.put(slskmessages.SendSpeed(i.user, int(i.speed*1024))) #Removed due to misuse. Replaced by SendUploadSpeed i.conn = None if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles() self.SaveDownloads() self.downloadspanel.update(i) if config["transfers"]["shownotification"]: self.eventprocessor.frame.NewNotification(_("%(file)s downloaded from %(user)s") % {'user':i.user, "file":newname.rsplit(os.sep, 1)[1]}, title=_("Nicotine+ :: file downloaded"))
e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8/transfers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813, 87, 30, 309, 277, 18, 4646, 480, 1234, 18, 4646, 30, 1324, 775, 30, 309, 277, 18, 13866, 12542, 353, 486, 599, 30, 277, 18, 13866, 12542, 18, 10996, 1435, 662, 957, 273, 813, 18, 957, 1435, 277, 18, 2972, 3890, 273, 1234, 18, 768, 18, 88, 1165, 1435, 309, 277, 18, 2722, 3890, 353, 599, 30, 277, 18, 2722, 3890, 273, 277, 18, 2972, 3890, 309, 277, 18, 1937, 957, 353, 599, 30, 277, 18, 1937, 957, 273, 662, 957, 309, 277, 18, 2722, 957, 353, 599, 30, 277, 18, 2722, 957, 273, 662, 957, 300, 404, 468, 77, 18, 2327, 273, 2213, 87, 6, 8975, 701, 12, 77, 18, 2972, 3890, 3719, 277, 18, 2327, 273, 315, 1429, 74, 20245, 6, 1592, 26201, 273, 277, 18, 957, 26201, 277, 18, 957, 26201, 273, 662, 957, 300, 277, 18, 1937, 957, 309, 662, 957, 405, 277, 18, 1937, 957, 471, 277, 18, 2972, 3890, 405, 277, 18, 3348, 30, 277, 18, 13871, 273, 261, 77, 18, 2972, 3890, 300, 277, 18, 2722, 3890, 13176, 12, 1397, 957, 300, 277, 18, 2722, 957, 13176, 2163, 3247, 309, 277, 18, 13871, 1648, 374, 18, 20, 30, 277, 18, 8584, 6516, 1222, 273, 315, 163, 235, 257, 6, 469, 30, 277, 18, 8584, 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, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813, 87, 30, 309, 277, 18, 4646, 480, 1234, 18, 4646, 30, 1324, 775, 30, 309, 277, 18, 13866, 12542, 353, 486, 599, 30, 277, 18, 13866, 12542, 18, 10996, 1435, 662, 957, 273, 813, 18, 957, 1435, 277, 18, 2972, 3890, 273, 1234, 18, 768, 18, 88, 1165, 1435, 309, 277, 18, 2722, 3890, 353, 599, 30, 277, 18, 2722, 3890, 273, 277, 18, 2972, 3890, 309, 277, 18, 1937, 957, 353, 599, 30, 277, 18, 1937, 957, 273, 662, 957, 309, 277, 2 ]
is_line.__doc__ = Vrepresentation.is_line.__doc__
def is_line(self): """ Tests if the object is a line. By construction it must be.
5ee629eab8310178e46ba2426c1e828e44fe1d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5ee629eab8310178e46ba2426c1e828e44fe1d2e/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1369, 12, 2890, 4672, 3536, 7766, 87, 309, 326, 733, 353, 279, 980, 18, 225, 2525, 16171, 518, 1297, 506, 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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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 ]
Implements a discrete Fourier transform
Implements a discrete inverse Fourier transform. Only works over QQ.
def idft(self): """ Implements a discrete Fourier transform
b5d444db2992a10837c0e2ccaebfd79325c6361e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/b5d444db2992a10837c0e2ccaebfd79325c6361e/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 1222, 12, 2890, 4672, 3536, 29704, 279, 20035, 478, 24775, 2510, 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,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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 ]
line = f.readline() if not line:
line1 = f.readline() if not line1:
def _skip_to_nonblank(f, spacegroup): """Read lines from f until a nonblank line not starting with a hash (#) is encountered and returns the line.""" while True: line = f.readline() if not line: raise SpacegroupNotFoundError( 'invalid spacegroup %s, not found in data base'%spacegroup) line.strip() if line and not line.startswith('#'): break return line
85be2a08fb35919f95e36d2aac71cb23f87c260d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/85be2a08fb35919f95e36d2aac71cb23f87c260d/spacegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, 326, 980, 12123, 1323, 1053, 30, 980, 21, 273, 284, 18, 896, 1369, 1435, 309, 486, 980, 21, 30, 1002, 14059, 1655, 13276, 12, 296, 5387, 3476, 1655, 738, 87, 16, 486, 1392, 316, 501, 1026, 11, 9, 2981, 1655, 13, 980, 18, 6406, 1435, 309, 980, 471, 486, 980, 18, 17514, 1918, 2668, 10038, 4672, 898, 327, 980, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, 326, 980, 12123, 1323, 1053, 30, 980, 21, 273, 284, 18, 896, 1369, 1435, 309, 486, 980, 21, 30, 1002, 14059, 1655, 13276, 12, 296, 5387, 3476, 1655, 738, 87, 16, 486, 1392, 316, 501, 1026, 11, 9, 2981, 1655, 13, 980, 18, 6406, 1435, 309, 980, 471, 486, 980, 18, 17514, 1918, 2668, 10038, 4672, 898, 327, 980, 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 ]
if group is None:
if group is not None:
def getGroup(self, group_id): """Like getGroupById in groups tool, but doesn't wrap. """ group = None introspectors = self.plugins.listPlugins(IGroupIntrospection) if not introspectors: raise NotSupported, 'No plugins allow for group management' for iid, introspector in introspectors: group = introspector.getGroupById(group_id) if group is None: break return group
2de9ec9856a11838a0887a2de7a65bb15e3cf0ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/2de9ec9856a11838a0887a2de7a65bb15e3cf0ef/pas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 8804, 11751, 5132, 316, 3252, 5226, 16, 1496, 3302, 1404, 2193, 18, 3536, 1041, 273, 599, 30165, 1383, 273, 365, 18, 8057, 18, 1098, 9461, 12, 45, 1114, 1702, 26362, 13, 225, 309, 486, 30165, 1383, 30, 1002, 31865, 16, 296, 2279, 4799, 1699, 364, 1041, 11803, 11, 364, 22819, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 8804, 11751, 5132, 316, 3252, 5226, 16, 1496, 3302, 1404, 2193, 18, 3536, 1041, 273, 599, 30165, 1383, 273, 365, 18, 8057, 18, 1098, 9461, 12, 45, 1114, 1702, 26362, 13, 225, 309, 486, 30165, 1383, 30, 1002, 31865, 16, 296, 2279, 4799, 1699, 364, 1041, 11803, 11, 364, 22819, 16, 30165, 280, 316, 30165, 1383, 30, 1041, 273, 30165, 280, 18, 588, 1114, 5132, 12, 1655, 67, 350, 13, 309, 1041, 353, 486, 599, 30, 898, 327, 1041, 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 ]
'url': directives.path}
'url': directives.path, 'encoding': directives.encoding}
def raw(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): """ Pass through content unchanged Content is included in output based on type argument Content may be included inline (content section of directive) or imported from a file or url. """ attributes = {'format': ' '.join(arguments[0].lower().split())} encoding = options.get('encoding', state.document.settings.input_encoding) if content: if options.has_key('file') or options.has_key('url'): error = state_machine.reporter.error( '"%s" directive may not both specify an external file and ' 'have content.' % name, nodes.literal_block(block_text, block_text), line=lineno) return [error] text = '\n'.join(content) elif options.has_key('file'): if options.has_key('url'): error = state_machine.reporter.error( 'The "file" and "url" options may not be simultaneously ' 'specified for the "%s" directive.' % name, nodes.literal_block(block_text, block_text), line=lineno) return [error] source_dir = os.path.dirname( os.path.abspath(state.document.current_source)) path = os.path.normpath(os.path.join(source_dir, options['file'])) path = utils.relative_path(None, path) try: state.document.settings.record_dependencies.add(path) raw_file = io.FileInput( source_path=path, encoding=encoding, error_handler=state.document.settings.input_encoding_error_handler, handle_io_errors=None) except IOError, error: severe = state_machine.reporter.severe( 'Problems with "%s" directive path:\n%s.' % (name, error), nodes.literal_block(block_text, block_text), line=lineno) return [severe] text = raw_file.read() attributes['source'] = path elif options.has_key('url'): if not urllib2: severe = state_machine.reporter.severe( 'Problems with the "%s" directive and its "url" option: ' 'unable to access the required functionality (from the ' '"urllib2" module).' % name, nodes.literal_block(block_text, block_text), line=lineno) return [severe] source = options['url'] try: raw_text = urllib2.urlopen(source).read() except (urllib2.URLError, IOError, OSError), error: severe = state_machine.reporter.severe( 'Problems with "%s" directive URL "%s":\n%s.' % (name, options['url'], error), nodes.literal_block(block_text, block_text), line=lineno) return [severe] raw_file = io.StringInput( source=raw_text, source_path=source, encoding=encoding, error_handler=state.document.settings.input_encoding_error_handler) text = raw_file.read() attributes['source'] = source else: error = state_machine.reporter.warning( 'The "%s" directive requires content; none supplied.' % (name), nodes.literal_block(block_text, block_text), line=lineno) return [error] raw_node = nodes.raw('', text, **attributes) return [raw_node]
90c04be32fabc3377ed4190468474244d9092c2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/90c04be32fabc3377ed4190468474244d9092c2b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 3536, 10311, 3059, 913, 14827, 225, 3697, 353, 5849, 316, 876, 2511, 603, 618, 1237, 225, 3697, 2026, 506, 5849, 6370, 261, 1745, 2442, 434, 8655, 13, 578, 9101, 628, 279, 585, 578, 880, 18, 3536, 1677, 273, 13666, 2139, 4278, 296, 2418, 5701, 12, 7099, 63, 20, 8009, 8167, 7675, 4939, 10756, 97, 2688, 273, 702, 18, 588, 2668, 5999, 2187, 919, 18, 5457, 18, 4272, 18, 2630, 67, 5999, 13, 309, 913, 30, 309, 702, 18, 5332, 67, 856, 2668, 768, 6134, 578, 702, 18, 5332, 67, 856, 2668, 718, 11, 4672, 555, 273, 919, 67, 9149, 18, 266, 7988, 18, 1636, 12, 22563, 87, 6, 8655, 2026, 486, 3937, 4800, 392, 3903, 585, 471, 296, 296, 21516, 913, 1093, 738, 508, 16, 2199, 18, 13107, 67, 2629, 12, 2629, 67, 955, 16, 1203, 67, 955, 3631, 980, 33, 17782, 13, 327, 306, 1636, 65, 977, 273, 2337, 82, 10332, 5701, 12, 1745, 13, 1327, 702, 18, 5332, 67, 856, 2668, 768, 11, 4672, 309, 702, 18, 5332, 67, 856, 2668, 718, 11, 4672, 555, 273, 919, 67, 9149, 18, 266, 7988, 18, 1636, 12, 296, 1986, 315, 768, 6, 471, 315, 718, 6, 702, 2026, 486, 506, 27504, 715, 296, 296, 13827, 364, 326, 2213, 87, 6, 8655, 1093, 738, 508, 16, 2199, 18, 13107, 67, 2629, 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, 1831, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 3536, 10311, 3059, 913, 14827, 225, 3697, 353, 5849, 316, 876, 2511, 603, 618, 1237, 225, 3697, 2026, 506, 5849, 6370, 261, 1745, 2442, 434, 8655, 13, 578, 9101, 628, 279, 585, 578, 880, 18, 3536, 1677, 273, 13666, 2139, 4278, 296, 2418, 5701, 12, 7099, 63, 20, 8009, 8167, 7675, 4939, 10756, 97, 2688, 273, 702, 18, 588, 2668, 5999, 2187, 919, 18, 5457, 18, 4272, 18, 2630, 67, 5999, 13, 309, 913, 30, 309, 702, 18, 5332, 67, 856, 2668, 768, 6134, 578, 702, 18, 5332, 67, 856, 2668, 718, 2 ]
assign_set = node.paths[0] if len(attr_types) == 1 and list(attr_types)[0] == assign_set:
if node.paths: assign_set = node.paths[0] else: assign_set = frozenset() if attr_types[varnum] == assign_set:
def ifa_split_no_confusion(cl, dcpa, varnum, classes_nr, nr_classes, csites, allnodes, split): '''creation sites on single path: split them off, possibly reusing contour''' attr_types = nr_classes[dcpa] noconf = set([n for n in csites if len(n.paths)==1]) others = len(csites) - len(noconf) subtype_csites = {} for node in noconf: assign_set = node.paths[0] if len(attr_types) == 1 and list(attr_types)[0] == assign_set: # XXX only one var others += 1 else: subtype = list(attr_types) subtype[varnum] = assign_set subtype = tuple(subtype) try: subtype_csites[subtype].append(node) except KeyError: subtype_csites[subtype] = [node] items = subtype_csites.items() if not others: items = items[1:] for subtype, csites in subtype_csites.iteritems(): if subtype in classes_nr: # reuse contour nr = classes_nr[subtype] split.append((cl, dcpa, csites, nr)) cl.splits[nr] = dcpa else: # create new contour classes_nr[subtype] = cl.newdcpa ifa_split_class(cl, dcpa, csites, split)
1e46cb49994e29bdac7a6514502ee2e2b0d5d451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4470/1e46cb49994e29bdac7a6514502ee2e2b0d5d451/infer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, 17169, 9180, 603, 2202, 589, 30, 1416, 2182, 3397, 16, 10016, 283, 9940, 15332, 26418, 1604, 67, 2352, 273, 9884, 67, 4701, 63, 72, 4057, 69, 65, 290, 16550, 74, 273, 444, 3816, 82, 364, 290, 316, 2873, 2997, 309, 562, 12, 82, 18, 4481, 13, 631, 21, 5717, 10654, 273, 562, 12, 2143, 2997, 13, 300, 562, 12, 82, 16550, 74, 13, 12308, 67, 2143, 2997, 273, 2618, 364, 756, 316, 290, 16550, 74, 30, 309, 756, 18, 4481, 30, 2683, 67, 542, 273, 756, 18, 4481, 63, 20, 65, 469, 30, 2683, 67, 542, 273, 23462, 1435, 309, 1604, 67, 2352, 63, 90, 1303, 379, 65, 422, 2683, 67, 542, 30, 468, 11329, 1338, 1245, 569, 10654, 1011, 404, 469, 30, 12308, 273, 666, 12, 1747, 67, 2352, 13, 12308, 63, 90, 1303, 379, 65, 273, 2683, 67, 542, 12308, 273, 3193, 12, 21974, 13, 775, 30, 12308, 67, 2143, 2997, 63, 21974, 8009, 6923, 12, 2159, 13, 1335, 4999, 30, 12308, 67, 2143, 2997, 63, 21974, 65, 273, 306, 2159, 65, 1516, 273, 12308, 67, 2143, 2997, 18, 3319, 1435, 309, 486, 10654, 30, 1516, 273, 1516, 63, 21, 26894, 364, 12308, 16, 2873, 2997, 316, 12308, 67, 2143, 2997, 18, 2165, 3319, 13332, 309, 12308, 316, 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, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, 17169, 9180, 603, 2202, 589, 30, 1416, 2182, 3397, 16, 10016, 283, 9940, 15332, 26418, 1604, 67, 2352, 273, 9884, 67, 4701, 63, 72, 4057, 69, 65, 290, 16550, 74, 273, 444, 3816, 82, 364, 290, 316, 2873, 2997, 309, 562, 12, 82, 18, 4481, 13, 631, 21, 5717, 10654, 273, 562, 12, 2143, 2997, 13, 300, 562, 12, 82, 16550, 74, 13, 12308, 67, 2143, 2997, 273, 2618, 364, 756, 316, 290, 16550, 74, 30, 309, 756, 18, 4481, 30, 2683, 2 ]
import base64
def fromBase64(cls, data): import base64 return cls(base64.decodestring(data))
9be0f08fa71f0889deb88735a034fcd30381111b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9be0f08fa71f0889deb88735a034fcd30381111b/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 2171, 1105, 12, 6429, 16, 501, 4672, 327, 2028, 12, 1969, 1105, 18, 4924, 1145, 371, 12, 892, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 2171, 1105, 12, 6429, 16, 501, 4672, 327, 2028, 12, 1969, 1105, 18, 4924, 1145, 371, 12, 892, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: parametric_plot((x, t^2), -4, 4)
sage: parametric_plot((x, t^2), (x, -4, 4))
def parametric_plot(funcs, *args, **kwargs): r""" \code{parametric_plot} takes two or three functions as a list or a tuple and makes a plot with the first function giving the $x$ coordinates, the second function giving the $y$ coordinates, and the third function (if present) giving the $z$ coordinates. INPUT: funcs -- 2 or 3-tuple of functions other options -- passed to plot. EXAMPLES: We draw some 2d parametric plots: sage: t = var('t') sage: parametric_plot( (sin(t), sin(2*t)), (t, 0, 2*pi), rgbcolor=hue(0.6) ) sage: parametric_plot((1, t), (t, 0, 4)) sage: parametric_plot((t, t^2), (t, -4, 4)) We draw a 3d parametric plot: sage: parametric_plot3d( (5*cos(x), 5*sin(x), x), (-12, 12), plot_points=150, color="red") TESTS: sage: parametric_plot((x, t^2), -4, 4) Traceback (most recent call last): ... ValueError: there cannot be more than one free variable in funcs sage: parametric_plot((1, x+t), -4, 4) Traceback (most recent call last): ... ValueError: there cannot be more than one free variable in funcs """ if len(funcs) == 3: raise ValueError, "use parametric_plot3d for parametric plots in 3d dimensions." elif len(funcs) != 2: raise ValueError, "parametric plots only implemented in 2 and 3 dimensions." else: vars = [] f,g = funcs if hasattr(f, 'variables'): vars += list(f.variables()) if hasattr(g, 'variables'): vars += list(g.variables()) vars = [str(v) for v in vars] from sage.misc.misc import uniq if len(uniq(vars)) > 1: raise ValueError, "there cannot be more than one free variable in funcs" kwargs['parametric'] = True return plot(funcs, *args, **kwargs)
152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 471, 7297, 279, 3207, 598, 326, 1122, 445, 21057, 326, 271, 92, 8, 5513, 16, 326, 2205, 445, 21057, 326, 271, 93, 8, 5513, 16, 471, 326, 12126, 445, 261, 430, 3430, 13, 21057, 326, 271, 94, 8, 5513, 18, 225, 12943, 30, 15630, 1493, 576, 578, 890, 17, 8052, 434, 4186, 1308, 702, 1493, 2275, 358, 3207, 18, 225, 5675, 8900, 11386, 30, 1660, 3724, 2690, 576, 72, 579, 1591, 17931, 30, 272, 410, 30, 268, 273, 569, 2668, 88, 6134, 272, 410, 30, 579, 1591, 67, 4032, 12, 261, 21861, 12, 88, 3631, 5367, 12, 22, 14, 88, 13, 3631, 261, 88, 16, 374, 16, 576, 14, 7259, 3631, 6917, 3266, 33, 76, 344, 12, 20, 18, 26, 13, 262, 272, 410, 30, 579, 1591, 67, 4032, 12443, 21, 16, 268, 3631, 261, 88, 16, 374, 16, 1059, 3719, 272, 410, 30, 579, 1591, 67, 4032, 12443, 88, 16, 268, 66, 22, 3631, 261, 88, 16, 300, 24, 16, 1059, 3719, 225, 1660, 3724, 279, 890, 72, 579, 1591, 3207, 30, 272, 410, 30, 579, 1591, 67, 4032, 23, 72, 12, 261, 25, 14, 14445, 12, 92, 3631, 1381, 14, 21861, 12, 92, 3631, 619, 3631, 24927, 2138, 16, 2593, 3631, 3207, 67, 4139, 33, 23014, 16, 2036, 1546, 1118, 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, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 471, 7297, 279, 3207, 598, 326, 1122, 445, 21057, 326, 271, 92, 8, 5513, 16, 326, 2205, 445, 21057, 326, 271, 93, 8, 5513, 16, 471, 326, 12126, 445, 261, 430, 3430, 13, 21057, 326, 271, 94, 8, 5513, 18, 225, 12943, 30, 15630, 1493, 576, 578, 890, 17, 8052, 434, 4186, 1308, 702, 1493, 2275, 358, 3207, 18, 225, 5675, 8900, 11386, 30, 1660, 3724, 2690, 576, 72, 579, 1591, 17931, 30, 272, 410, 30, 268, 273, 569, 2668, 88, 6134, 272, 410, 2 ]
print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': gv.cpp_name(func.ident)}
if isinstance(func.parent, class_): id = func.parent.ident+'_'+func.ident else: id = gv.cpp_name(func.ident) print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': id}
def do_extmod_methoddef(gv, ident, funcs): print >>gv.out, 'static PyMethodDef %sMethods[] = {' % ident for func in funcs: print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': gv.cpp_name(func.ident)} print >>gv.out, ' {NULL}\n};\n'
932a76be86eb625660ab8a44c34f9800a5983c29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/932a76be86eb625660ab8a44c34f9800a5983c29/extmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 408, 1711, 67, 2039, 536, 12, 75, 90, 16, 3390, 16, 15630, 4672, 1172, 1671, 75, 90, 18, 659, 16, 296, 3845, 4707, 1305, 3262, 738, 87, 4712, 8526, 273, 13666, 738, 3390, 364, 1326, 316, 15630, 30, 309, 1549, 12, 644, 18, 2938, 16, 667, 67, 4672, 612, 273, 1326, 18, 2938, 18, 6392, 6797, 4623, 15, 644, 18, 6392, 469, 30, 612, 273, 11404, 18, 4057, 84, 67, 529, 12, 644, 18, 6392, 13, 1172, 1671, 75, 90, 18, 659, 16, 296, 565, 288, 12, 3001, 380, 2225, 17105, 350, 13, 87, 3113, 8975, 350, 22, 13, 87, 16, 10078, 67, 7716, 22439, 16, 261, 3001, 380, 2225, 6, 5779, 11, 738, 13666, 350, 4278, 1326, 18, 6392, 16, 296, 350, 22, 4278, 612, 97, 1172, 1671, 75, 90, 18, 659, 16, 296, 565, 288, 8560, 6280, 82, 97, 9747, 82, 11, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 408, 1711, 67, 2039, 536, 12, 75, 90, 16, 3390, 16, 15630, 4672, 1172, 1671, 75, 90, 18, 659, 16, 296, 3845, 4707, 1305, 3262, 738, 87, 4712, 8526, 273, 13666, 738, 3390, 364, 1326, 316, 15630, 30, 309, 1549, 12, 644, 18, 2938, 16, 667, 67, 4672, 612, 273, 1326, 18, 2938, 18, 6392, 6797, 4623, 15, 644, 18, 6392, 469, 30, 612, 273, 11404, 18, 4057, 84, 67, 529, 12, 644, 18, 6392, 13, 1172, 1671, 75, 90, 18, 659, 16, 296, 565, 288, 12, 3001, 380, 2225, 17105, 350, 13, 87, 3113, 8975, 350, 22, 13, 87, 16, 10078, 67, 7716, 22439, 16, 261, 3001, 380, 2225, 6, 5779, 11, 738, 13666, 350, 2 ]
for l in fl.revision(r).splitlines():
for l in fl.read(r).splitlines():
def addtag(self, k, n): try: bin_n = bin(n) except TypeError: bin_n = '' self.tagscache[k.strip()] = bin_n
cf79e555fa79e7ee26ef206391505cbd8c470ecd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/cf79e555fa79e7ee26ef206391505cbd8c470ecd/hg.py
[ 1, 8585, 326, 22398, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2692, 12, 2890, 16, 417, 16, 290, 4672, 775, 30, 4158, 67, 82, 273, 4158, 12, 82, 13, 1335, 3580, 30, 4158, 67, 82, 273, 875, 365, 18, 2692, 1017, 807, 63, 79, 18, 6406, 1435, 65, 273, 4158, 67, 82, 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 ]
if isinstance(title, str): title = title.decode(preferred_encoding)
if isbytestring(title): title = title.decode(preferred_encoding, 'replace')
def create_book_entry(self, mi, cover=None, add_duplicates=True): self._add_newbook_tag(mi) if not add_duplicates and self.has_book(mi): return None series_index = 1.0 if mi.series_index is None else mi.series_index aus = mi.author_sort if mi.author_sort else self.author_sort_from_authors(mi.authors) title = mi.title if isinstance(aus, str): aus = aus.decode(preferred_encoding, 'replace') if isinstance(title, str): title = title.decode(preferred_encoding) obj = self.conn.execute('INSERT INTO books(title, series_index, author_sort) VALUES (?, ?, ?)', (title, series_index, aus)) id = obj.lastrowid self.data.books_added([id], self) self.set_path(id, True) self.conn.commit() if mi.timestamp is None: mi.timestamp = utcnow() if mi.pubdate is None: mi.pubdate = utcnow() self.set_metadata(id, mi) if cover is not None: try: self.set_cover(id, cover) except: traceback.print_exc() return id
c006e2e14bebef07898a934bdb6225ea14b6280f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/c006e2e14bebef07898a934bdb6225ea14b6280f/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3618, 67, 4099, 12, 2890, 16, 12837, 16, 5590, 33, 7036, 16, 527, 67, 22449, 33, 5510, 4672, 365, 6315, 1289, 67, 2704, 3618, 67, 2692, 12, 9197, 13, 309, 486, 527, 67, 22449, 471, 365, 18, 5332, 67, 3618, 12, 9197, 4672, 327, 599, 4166, 67, 1615, 273, 404, 18, 20, 309, 12837, 18, 10222, 67, 1615, 353, 599, 469, 12837, 18, 10222, 67, 1615, 279, 407, 273, 12837, 18, 4161, 67, 3804, 309, 12837, 18, 4161, 67, 3804, 469, 365, 18, 4161, 67, 3804, 67, 2080, 67, 19368, 12, 9197, 18, 19368, 13, 2077, 273, 12837, 18, 2649, 309, 1549, 12, 69, 407, 16, 609, 4672, 279, 407, 273, 279, 407, 18, 3922, 12, 23616, 67, 5999, 16, 296, 2079, 6134, 309, 353, 3890, 371, 12, 2649, 4672, 2077, 273, 2077, 18, 3922, 12, 23616, 67, 5999, 16, 296, 2079, 6134, 1081, 273, 365, 18, 4646, 18, 8837, 2668, 11356, 12421, 6978, 87, 12, 2649, 16, 4166, 67, 1615, 16, 2869, 67, 3804, 13, 13477, 13590, 16, 20033, 692, 13, 2187, 261, 2649, 16, 4166, 67, 1615, 16, 279, 407, 3719, 612, 273, 1081, 18, 2722, 492, 350, 365, 18, 892, 18, 12567, 67, 9665, 3816, 350, 6487, 365, 13, 365, 18, 542, 67, 803, 12, 350, 16, 1053, 13, 365, 18, 4646, 18, 7371, 1435, 309, 12837, 18, 5508, 353, 599, 30, 12837, 18, 5508, 273, 19665, 1435, 309, 12837, 18, 10174, 712, 353, 599, 30, 12837, 18, 10174, 712, 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, 752, 67, 3618, 67, 4099, 12, 2890, 16, 12837, 16, 5590, 33, 7036, 16, 527, 67, 22449, 33, 5510, 4672, 365, 6315, 1289, 67, 2704, 3618, 67, 2692, 12, 9197, 13, 309, 486, 527, 67, 22449, 471, 365, 18, 5332, 67, 3618, 12, 9197, 4672, 327, 599, 4166, 67, 1615, 273, 404, 18, 20, 309, 12837, 18, 10222, 67, 1615, 353, 599, 469, 12837, 18, 10222, 67, 1615, 279, 407, 273, 12837, 18, 4161, 67, 3804, 309, 12837, 18, 4161, 67, 3804, 469, 365, 18, 4161, 67, 3804, 67, 2080, 67, 19368, 12, 9197, 18, 19368, 13, 2077, 273, 12837, 18, 2649, 309, 1549, 12, 69, 407, 16, 609, 4672, 279, 407, 273, 279, 407, 18, 3922, 12, 2 ]
print 'XXXX boolean:', `data`
def _decode_boolean(data, key): print 'XXXX boolean:', `data` return ord(data[0])
3b7e119d50e5b9cdabffa943d4af57312c0aecc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3b7e119d50e5b9cdabffa943d4af57312c0aecc7/ic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 6494, 12, 892, 16, 498, 4672, 327, 4642, 12, 892, 63, 20, 5717, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 6494, 12, 892, 16, 498, 4672, 327, 4642, 12, 892, 63, 20, 5717, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.stats.strip_dirs() return 0
if self.stats: self.stats.strip_dirs() else: print("No statistics object is loaded.", file=self.stream)
def do_strip(self, line): self.stats.strip_dirs() return 0
3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6406, 12, 2890, 16, 980, 4672, 365, 18, 5296, 18, 6406, 67, 8291, 1435, 327, 374, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6406, 12, 2890, 16, 980, 4672, 365, 18, 5296, 18, 6406, 67, 8291, 1435, 327, 374, 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 ]
group.GetZSpacing()
group.UpdateZSpacing()
def FixProblem1(self, dict): """ Merge multiple DICOM groups in case Problem 1 (description above) occurs. WARN: We've implemented an heuristic to try to solve the problem. There is no scientific background and this aims to be a workaround to exams which are not in conformance with the DICOM protocol. """ # Divide existing groups into 2 groups: dict_final = {} # 1 # those containing "3D photos" and undefined # orientation - these won't be changed (groups_lost). dict_to_change = {} # 2 # which can be re-grouped according to our heuristic
b2ea39287527fe984e18df481588043d1b55d9aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/b2ea39287527fe984e18df481588043d1b55d9aa/dicom_grouper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 13719, 21, 12, 2890, 16, 2065, 4672, 3536, 8964, 3229, 30530, 3252, 316, 648, 21685, 404, 261, 3384, 5721, 13, 9938, 18, 225, 20440, 30, 1660, 8081, 8249, 392, 25833, 358, 775, 358, 12439, 326, 6199, 18, 6149, 353, 1158, 888, 1979, 1507, 5412, 471, 333, 279, 12097, 358, 506, 279, 18975, 358, 19707, 87, 1492, 854, 486, 316, 20156, 1359, 598, 326, 30530, 1771, 18, 3536, 468, 21411, 831, 2062, 3252, 1368, 576, 3252, 30, 2065, 67, 6385, 273, 2618, 468, 404, 468, 5348, 4191, 315, 23, 40, 18185, 6, 471, 3109, 468, 9820, 300, 4259, 8462, 1404, 506, 3550, 261, 4650, 67, 383, 334, 2934, 225, 2065, 67, 869, 67, 3427, 273, 2618, 468, 576, 468, 1492, 848, 506, 283, 17, 25472, 4888, 358, 3134, 25833, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 13719, 21, 12, 2890, 16, 2065, 4672, 3536, 8964, 3229, 30530, 3252, 316, 648, 21685, 404, 261, 3384, 5721, 13, 9938, 18, 225, 20440, 30, 1660, 8081, 8249, 392, 25833, 358, 775, 358, 12439, 326, 6199, 18, 6149, 353, 1158, 888, 1979, 1507, 5412, 471, 333, 279, 12097, 358, 506, 279, 18975, 358, 19707, 87, 1492, 854, 486, 316, 20156, 1359, 598, 326, 30530, 1771, 18, 3536, 468, 21411, 831, 2062, 3252, 1368, 576, 3252, 30, 2065, 67, 6385, 273, 2618, 468, 404, 468, 5348, 4191, 315, 23, 40, 18185, 6, 471, 3109, 468, 9820, 300, 4259, 8462, 1404, 506, 3550, 261, 4650, 67, 383, 334, 2934, 225, 2065, 67, 869, 67, 3427, 273, 2618, 468, 576, 2 ]
QtGui.QWidget.focusOutEvent(self, event)
QtGui.QLineEdit.focusOutEvent(self, event)
def focusOutEvent(self, event): self.update_parent() QtGui.QWidget.focusOutEvent(self, event)
07e3afdeaf9d20956c0eb4c848717796ff1a97b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/07e3afdeaf9d20956c0eb4c848717796ff1a97b2/constant_configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7155, 1182, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 67, 2938, 1435, 23425, 18, 53, 4609, 18, 13923, 1182, 1133, 12, 2890, 16, 871, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7155, 1182, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 67, 2938, 1435, 23425, 18, 53, 4609, 18, 13923, 1182, 1133, 12, 2890, 16, 871, 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, -100, -100, -100 ]
self.send_header('Content-type', self.GetMIMETypeFromName(file))
self.send_header('Content-type', self.GetMIMETypeFromName(file_path))
def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!"""
b0dcb9339511b02acbe62c17070415faf1baa7dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/b0dcb9339511b02acbe62c17070415faf1baa7dd/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 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, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 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.pdbg("conflict parse_expr()N bool=%s bool=%s" % ("True" if bool else "False", expr))
if Opt.ParseDBG: self.pdbg("conflict parse_expr()N bool=%s bool=%s" % ("True" if bool else "False", expr))
def parse_statement(self, rule, msg, expr): self.parse_dbg_indent += " " self.pdbg("parse_statement(%s, %s, %s)" % (rule, msg, expr)) expr = expr.strip() if msg == "": if expr == "": self.parse_message_block() expr = self.buffer else: self.message = [msg] if expr == "": if not self.readline(): self.parse_dbg_indent = self.parse_dbg_indent[:-2] return else: self.buffer = expr msg = "" if self.message == [] else " |" + "\n |".join(self.message) # no ending LF if rule == "CONFLICT": # takes any number of exprs exprs = [] self.pdbg("before conflict parse_expr() expr=%s line=%s" % (expr, self.buffer)) (bool, expr) = self.parse_expression() self.pdbg("conflict parse_expr()1 bool=%s bool=%s" % (bool, expr)) while bool != None: if bool: exprs.append(expr) (bool, expr) = self.parse_expression() self.pdbg("conflict parse_expr()N bool=%s bool=%s" % ("True" if bool else "False", expr)) if len(exprs) > 1: Msg.add("[CONFLICT]") for e in exprs: Msg.add(self.pprint(e, " > ")) if msg != "": Msg.add(msg) elif rule == "NOTE": # takes any number of exprs self.pdbg("function NOTE: %s" % msg) exprs = [] (bool, expr) = self.parse_expression(prune=True) while bool != None: if bool: exprs.append(expr) (bool, expr) = self.parse_expression(prune=True) if not Opt.Quiet and len(exprs) > 0: Msg.add("[NOTE]") for e in exprs: Msg.add(self.pprint(e, " > ")) if msg != "": Msg.add(msg) elif rule == "PATCH": # takes 2 exprs (bool1, expr1) = self.parse_expression() if bool1 == None: Msg.add(_["Warning: %s: PATCH rule invalid first expression"] % (self.where())) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return (bool2, expr2) = self.parse_expression() if bool2 == None: Msg.add(_["Warning: %s: PATCH rule invalid second expression"] % (self.where())) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return if bool1 and not bool2: # case where the patch is present but the thing to be patched is missing Msg.add(_["[PATCH]\n%s is missing some pre-requisites:\n%s"] % (self.pprint(expr1, " !!"), self.pprint(expr2, " "))) if msg != "": Msg.add(msg) if bool2 and not bool1: # case where the patch is missing for the thing to be patched Msg.add(_["[PATCH]\n%s for:\n%s"] % (self.pprint(expr1, " !!"), self.pprint(expr2, " "))) if msg != "": Msg.add(msg) elif rule == "REQUIRES": # takes 2 exprs (bool1, expr1) = self.parse_expression(prune=True) if bool1 == None: Msg.add(_["Warning: %s: REQUIRES rule invalid first expression"] % (self.where())) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return (bool2, expr2) = self.parse_expression() if bool2 == None: Msg.add(_["Warning: %s: REQUIRES rule invalid second expression"] % (self.where())) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return if bool1 and not bool2: expr2_str = self.pprint(expr2, " > ") Msg.add(_["[REQUIRES]\n%s Requires:\n%s"] % (self.pprint(expr1, " !!!"), expr2_str)) if msg != "": Msg.add(msg) match = re_filename_version.search(expr2_str) if match: Msg.add(_[" | [Note that you may see this message if you have an older version of one\n | of the pre-requisites. In that case, it is suggested that you upgrade\n | to the newer version]."]) self.parse_dbg_indent = self.parse_dbg_indent[:-2] self.pdbg("parse_statement RETURNING")
0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 17414, 75, 2932, 2670, 67, 11516, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 5345, 16, 1234, 16, 3065, 3719, 3065, 273, 3065, 18, 6406, 1435, 309, 1234, 422, 1408, 30, 309, 3065, 422, 1408, 30, 365, 18, 2670, 67, 2150, 67, 2629, 1435, 3065, 273, 365, 18, 4106, 469, 30, 365, 18, 2150, 273, 306, 3576, 65, 309, 3065, 422, 1408, 30, 309, 486, 365, 18, 896, 1369, 13332, 365, 18, 2670, 67, 1966, 75, 67, 9355, 273, 365, 18, 2670, 67, 1966, 75, 67, 9355, 10531, 17, 22, 65, 327, 469, 30, 365, 18, 4106, 273, 3065, 1234, 273, 1408, 309, 365, 18, 2150, 422, 5378, 469, 315, 571, 6, 397, 1548, 82, 571, 9654, 5701, 12, 2890, 18, 2150, 13, 468, 1158, 11463, 18803, 309, 1720, 422, 315, 14497, 29280, 6877, 225, 468, 5530, 1281, 1300, 434, 22523, 22523, 273, 5378, 365, 18, 17414, 75, 2932, 5771, 7546, 1109, 67, 8638, 1435, 3065, 5095, 87, 980, 5095, 87, 6, 738, 261, 8638, 16, 365, 18, 4106, 3719, 261, 6430, 16, 3065, 13, 273, 365, 18, 2670, 67, 8692, 1435, 365, 18, 17414, 75, 2932, 20340, 1109, 67, 8638, 1435, 21, 1426, 5095, 87, 1426, 5095, 87, 6, 738, 261, 6430, 16, 3065, 3719, 1323, 1426, 480, 599, 30, 309, 1426, 30, 22523, 18, 6923, 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, 1109, 67, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 17414, 75, 2932, 2670, 67, 11516, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 5345, 16, 1234, 16, 3065, 3719, 3065, 273, 3065, 18, 6406, 1435, 309, 1234, 422, 1408, 30, 309, 3065, 422, 1408, 30, 365, 18, 2670, 67, 2150, 67, 2629, 1435, 3065, 273, 365, 18, 4106, 469, 30, 365, 18, 2150, 273, 306, 3576, 65, 309, 3065, 422, 1408, 30, 309, 486, 365, 18, 896, 1369, 13332, 365, 18, 2670, 67, 1966, 75, 67, 9355, 273, 365, 18, 2670, 67, 1966, 75, 67, 9355, 10531, 17, 2 ]
return change, touchloc
return change, touchloc_bl
def light_switch1(self, point, point_offset, press_contact_pressure, move_back_distance, press_pressure, press_distance, visual_change_thres): print '====================================================================' point = point + point_offset rospy.loginfo('REACHING') #self.behaviors.gripper_close() self.behaviors.move_absolute(self.start_location, stop='pressure_accel')
7afbc453c5c750798bfc45712af1852e65d80e2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/7afbc453c5c750798bfc45712af1852e65d80e2e/linear_move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9052, 67, 9610, 21, 12, 2890, 16, 1634, 16, 1634, 67, 3348, 16, 11779, 67, 8994, 67, 17103, 16, 3635, 67, 823, 67, 8969, 16, 11779, 67, 17103, 16, 11779, 67, 8969, 16, 11623, 67, 3427, 67, 451, 455, 4672, 1172, 296, 16296, 11, 1634, 273, 1634, 397, 1634, 67, 3348, 721, 30884, 18, 1330, 1376, 2668, 862, 18133, 1360, 6134, 468, 2890, 18, 31772, 1383, 18, 75, 21335, 457, 67, 4412, 1435, 365, 18, 31772, 1383, 18, 8501, 67, 12547, 12, 2890, 18, 1937, 67, 3562, 16, 2132, 2218, 17103, 67, 30737, 6134, 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, 9052, 67, 9610, 21, 12, 2890, 16, 1634, 16, 1634, 67, 3348, 16, 11779, 67, 8994, 67, 17103, 16, 3635, 67, 823, 67, 8969, 16, 11779, 67, 17103, 16, 11779, 67, 8969, 16, 11623, 67, 3427, 67, 451, 455, 4672, 1172, 296, 16296, 11, 1634, 273, 1634, 397, 1634, 67, 3348, 721, 30884, 18, 1330, 1376, 2668, 862, 18133, 1360, 6134, 468, 2890, 18, 31772, 1383, 18, 75, 21335, 457, 67, 4412, 1435, 365, 18, 31772, 1383, 18, 8501, 67, 12547, 12, 2890, 18, 1937, 67, 3562, 16, 2132, 2218, 17103, 67, 30737, 6134, 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 ]
self.__generate(values).render(method=self.serialization_method, out=page, encoding='utf-8') page.close()
try: self.__generate(values).render(method=self.serialization_method, out=page, encoding='utf-8') except UnicodeDecodeError: problematic_vars = [] for key, value in values.items(): try: str(value).decode('utf-8') except UnicodeDecodeError: problematic_vars.append(key) print 'Problematic template vars : %s' % ', '.join(problematic_vars) raise finally: page.close()
def dump(self, values, dest): self.__complement_values(values)
3885f161b5c87f83bb7eea2d8842edaabd09f2c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/3885f161b5c87f83bb7eea2d8842edaabd09f2c5/tpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 924, 16, 1570, 4672, 365, 16186, 2919, 806, 67, 2372, 12, 2372, 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, 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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 ]
are returned in a list, correct first.
are returned in a tuple, correct first.
def Guess(self, guess): """ Checks the guess against the correct answer. If it's correct: guess gets added to self.correct in all of the appropriate spots in the word. If it's incorrect it gets appended to self.guesses. correct and guesses are returned in a list, correct first. """ # If the answer is correct insert it into the correct places in the # 'correct' list. if self.answer.find(guess) != -1: self.correct = [self.TestEntry(i, guess) for i in range(len(self.correct))] # If not correct and the letter hasn't been guessed yet, append to guesses. # Increment Hangman.numMissed. else: self.numMissed += 1 if self.guesses.count(guess) == 0: self.guesses.append(guess) return (self.correct, self.guesses)
c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea/Hangman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30282, 12, 2890, 16, 7274, 4672, 3536, 13074, 326, 7274, 5314, 326, 3434, 5803, 18, 225, 971, 518, 1807, 3434, 30, 7274, 5571, 3096, 358, 365, 18, 6746, 316, 777, 434, 326, 5505, 1694, 6968, 316, 326, 2076, 18, 971, 518, 1807, 11332, 518, 5571, 12317, 358, 365, 18, 20885, 281, 18, 225, 3434, 471, 7274, 281, 854, 2106, 316, 279, 3193, 16, 3434, 1122, 18, 3536, 468, 971, 326, 5803, 353, 3434, 2243, 518, 1368, 326, 3434, 12576, 316, 326, 468, 296, 6746, 11, 666, 18, 309, 365, 18, 13490, 18, 4720, 12, 20885, 13, 480, 300, 21, 30, 365, 18, 6746, 273, 306, 2890, 18, 4709, 1622, 12, 77, 16, 7274, 13, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 6746, 3719, 65, 225, 468, 971, 486, 3434, 471, 326, 9471, 13342, 1404, 2118, 3058, 281, 730, 4671, 16, 714, 358, 7274, 281, 18, 468, 17883, 670, 539, 4728, 18, 2107, 11729, 730, 18, 469, 30, 365, 18, 2107, 11729, 730, 1011, 404, 309, 365, 18, 20885, 281, 18, 1883, 12, 20885, 13, 422, 374, 30, 365, 18, 20885, 281, 18, 6923, 12, 20885, 13, 225, 327, 261, 2890, 18, 6746, 16, 365, 18, 20885, 281, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30282, 12, 2890, 16, 7274, 4672, 3536, 13074, 326, 7274, 5314, 326, 3434, 5803, 18, 225, 971, 518, 1807, 3434, 30, 7274, 5571, 3096, 358, 365, 18, 6746, 316, 777, 434, 326, 5505, 1694, 6968, 316, 326, 2076, 18, 971, 518, 1807, 11332, 518, 5571, 12317, 358, 365, 18, 20885, 281, 18, 225, 3434, 471, 7274, 281, 854, 2106, 316, 279, 3193, 16, 3434, 1122, 18, 3536, 468, 971, 326, 5803, 353, 3434, 2243, 518, 1368, 326, 3434, 12576, 316, 326, 468, 296, 6746, 11, 666, 18, 309, 365, 18, 13490, 18, 4720, 12, 20885, 13, 480, 300, 21, 30, 365, 18, 6746, 273, 306, 2890, 18, 4709, 1622, 12, 77, 16, 7274, 13, 364, 277, 316, 1048, 2 ]
logo_image = getattr(getattr(session.instance, "logos", None), "normal", "/images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "/images/WordForge-white.png")
logo_image = getattr(getattr(session.instance, "logos", None), "normal", "images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "images/WordForge-white.png") if not banner_image.startswith("/"): banner_image = baseurl + banner_image if not logo_image.startswith("/"): logo_image = baseurl + logo_image
def layout_banner(maxheight, session): """calculates dimensions, image name for banner""" logo_width, logo_height = min((98*maxheight/130, maxheight), (98, 130)) banner_width, banner_height = min((290*maxheight/160, maxheight), (290, 160)) if logo_width <= 61: logo_image = getattr(getattr(session.instance, "logos", None), "medium", "/images/pootle-medium.png") else: logo_image = getattr(getattr(session.instance, "logos", None), "normal", "/images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "/images/WordForge-white.png") return {"logo_width": logo_width, "logo_height": logo_height, "banner_width": banner_width, "banner_height": banner_height, "logo_image": logo_image, "banner_image": banner_image}
4ec0ef2508050836566698fb746f963104a1e896 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/4ec0ef2508050836566698fb746f963104a1e896/pagelayout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3511, 67, 16563, 12, 1896, 4210, 16, 1339, 4672, 3536, 12780, 815, 5769, 16, 1316, 508, 364, 14090, 8395, 19128, 67, 2819, 16, 19128, 67, 4210, 273, 1131, 12443, 10689, 14, 1896, 4210, 19, 24417, 16, 943, 4210, 3631, 261, 10689, 16, 404, 5082, 3719, 14090, 67, 2819, 16, 14090, 67, 4210, 273, 1131, 12443, 5540, 20, 14, 1896, 4210, 19, 16874, 16, 943, 4210, 3631, 261, 5540, 20, 16, 25430, 3719, 225, 309, 19128, 67, 2819, 1648, 17845, 30, 19128, 67, 2730, 273, 3869, 12, 588, 1747, 12, 3184, 18, 1336, 16, 315, 1330, 538, 3113, 599, 3631, 315, 19011, 3113, 2206, 7369, 19, 1631, 352, 298, 17, 19011, 18, 6446, 7923, 469, 30, 19128, 67, 2730, 273, 3869, 12, 588, 1747, 12, 3184, 18, 1336, 16, 315, 1330, 538, 3113, 599, 3631, 315, 6130, 3113, 315, 7369, 19, 1631, 352, 298, 18, 6446, 7923, 14090, 67, 2730, 273, 3869, 12, 588, 1747, 12, 3184, 18, 1336, 16, 315, 1330, 538, 3113, 599, 3631, 315, 16563, 3113, 315, 7369, 19, 3944, 1290, 908, 17, 14739, 18, 6446, 7923, 225, 309, 486, 14090, 67, 2730, 18, 17514, 1918, 2932, 4898, 4672, 14090, 67, 2730, 273, 25427, 397, 14090, 67, 2730, 309, 486, 19128, 67, 2730, 18, 17514, 1918, 2932, 4898, 4672, 19128, 67, 2730, 273, 25427, 397, 19128, 67, 2730, 327, 12528, 19882, 67, 2819, 6877, 19128, 67, 2819, 16, 315, 19882, 67, 4210, 6877, 19128, 67, 4210, 16, 315, 16563, 67, 2819, 6877, 14090, 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, 3511, 67, 16563, 12, 1896, 4210, 16, 1339, 4672, 3536, 12780, 815, 5769, 16, 1316, 508, 364, 14090, 8395, 19128, 67, 2819, 16, 19128, 67, 4210, 273, 1131, 12443, 10689, 14, 1896, 4210, 19, 24417, 16, 943, 4210, 3631, 261, 10689, 16, 404, 5082, 3719, 14090, 67, 2819, 16, 14090, 67, 4210, 273, 1131, 12443, 5540, 20, 14, 1896, 4210, 19, 16874, 16, 943, 4210, 3631, 261, 5540, 20, 16, 25430, 3719, 225, 309, 19128, 67, 2819, 1648, 17845, 30, 19128, 67, 2730, 273, 3869, 12, 588, 1747, 12, 3184, 18, 1336, 16, 315, 1330, 538, 3113, 599, 3631, 315, 19011, 3113, 2206, 7369, 19, 1631, 352, 298, 17, 19011, 18, 6446, 7923, 469, 30, 19128, 67, 2730, 2 ]
tgids = [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9']
tgids = self.options.pids or [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9']
def update_process_counts(self): total_read = total_write = 0 duration = None tgids = [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9'] for tgid in tgids: for pid in self.list_pids(tgid): process = self.get_process(pid) if process: stats = self.taskstats_connection.get_task_stats(pid) if stats: process.mark = False process.add_stats(stats) total_read += process.stats['read_bytes'][1] total_write += process.stats['write_bytes'][1] if duration is None: duration = process.stats['ac_etime'][1] / 1000000.0 return total_read, total_write, duration
e053bec62bb507664e91245ab02d68138e3dfe3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10607/e053bec62bb507664e91245ab02d68138e3dfe3f/iotop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2567, 67, 8008, 12, 2890, 4672, 2078, 67, 896, 273, 2078, 67, 2626, 273, 374, 3734, 273, 599, 18289, 2232, 273, 365, 18, 2116, 18, 84, 2232, 578, 306, 474, 12, 88, 15780, 13, 364, 268, 15780, 316, 1140, 18, 1098, 1214, 2668, 19, 9381, 6134, 309, 296, 20, 11, 1648, 268, 15780, 63, 20, 65, 471, 268, 15780, 63, 20, 65, 1648, 296, 29, 3546, 364, 268, 15780, 316, 18289, 2232, 30, 364, 4231, 316, 365, 18, 1098, 67, 84, 2232, 12, 88, 15780, 4672, 1207, 273, 365, 18, 588, 67, 2567, 12, 6610, 13, 309, 1207, 30, 3177, 273, 365, 18, 4146, 5296, 67, 4071, 18, 588, 67, 4146, 67, 5296, 12, 6610, 13, 309, 3177, 30, 1207, 18, 3355, 273, 1083, 1207, 18, 1289, 67, 5296, 12, 5296, 13, 2078, 67, 896, 1011, 1207, 18, 5296, 3292, 896, 67, 3890, 3546, 63, 21, 65, 2078, 67, 2626, 1011, 1207, 18, 5296, 3292, 2626, 67, 3890, 3546, 63, 21, 65, 309, 3734, 353, 599, 30, 3734, 273, 1207, 18, 5296, 3292, 1077, 67, 2374, 3546, 63, 21, 65, 342, 15088, 18, 20, 327, 2078, 67, 896, 16, 2078, 67, 2626, 16, 3734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2567, 67, 8008, 12, 2890, 4672, 2078, 67, 896, 273, 2078, 67, 2626, 273, 374, 3734, 273, 599, 18289, 2232, 273, 365, 18, 2116, 18, 84, 2232, 578, 306, 474, 12, 88, 15780, 13, 364, 268, 15780, 316, 1140, 18, 1098, 1214, 2668, 19, 9381, 6134, 309, 296, 20, 11, 1648, 268, 15780, 63, 20, 65, 471, 268, 15780, 63, 20, 65, 1648, 296, 29, 3546, 364, 268, 15780, 316, 18289, 2232, 30, 364, 4231, 316, 365, 18, 1098, 67, 84, 2232, 12, 88, 15780, 4672, 1207, 273, 365, 18, 588, 67, 2567, 12, 6610, 13, 309, 1207, 30, 3177, 273, 365, 18, 4146, 5296, 67, 4071, 18, 588, 67, 4146, 67, 5296, 12, 6610, 13, 2 ]
GmstTweak(_('Arrow: Litter Count'), _("Maximum number of spent arrows allowed in cell."), 'iArrowMaxRefCount', ('[15]',15), ('25',25), ('35',35), ('50',50), ('100',100), ('500',500), ), GmstTweak(_('Arrow: Litter Time'), _("Time before spent arrows fade away from cells and actors."), 'fArrowAgeMax', (_('1 Minute'),60), (_('[1.5 Minutes]'),90), (_('2 Minutes'),120), (_('3 Minutes'),180), (_('5 Minutes'),300), (_('10 Minutes'),600), (_('30 Minutes'),1800), (_('1 Hour'),3600), ), GmstTweak(_('Arrow: Recovery from Actor'), _("Chance that an arrow shot into an actor can be recovered."), 'iArrowInventoryChance', ('[50%]',50), ('60%',60), ('70%',70), ('80%',80), ('90%',90), ('100%',100), ), GmstTweak(_('Arrow: Speed'), _("Speed of full power arrow."), 'fArrowSpeedMult', (_('x 1.2'),1500*1.2), (_('x 1.4'),1500*1.4), (_('x 1.6'),1500*1.6), (_('x 1.8'),1500*1.8), (_('x 2.0'),1500*2.0), (_('x 2.2'),1500*2.2), (_('x 2.4'),1500*2.4), (_('x 2.6'),1500*2.6), (_('x 2.8'),1500*2.8), (_('x 3.0'),1500*3.0), ), GmstTweak(_('Camera: Chase Tightness'), _("Tightness of chase camera to player turning."), ('fChase3rdPersonVanityXYMult','fChase3rdPersonXYMult'), (_('x 1.5'),6,6), (_('x 2.0'),8,8), (_('x 3.0'),12,12), (_('x 5.0'),20,20), ), GmstTweak(_('Camera: Chase Distance'), _("Distance camera can be moved away from PC using mouse wheel."), ('fVanityModeWheelMax', 'fChase3rdPersonZUnitsPerSecond','fVanityModeWheelMult'), (_('x 1.5'),600*1.5, 300*1.5,0.15), (_('x 2'), 600*2, 300*2, 0.2), (_('x 3'), 600*3, 300*3, 0.3), (_('x 5'), 600*5, 1000, 0.3), (_('x 10'), 600*10, 2000, 0.3), ), GmstTweak(_('Magic: Chameleon Refraction'), _("Chameleon with transparency instead of refraction effect."), ('fChameleonMinRefraction','fChameleonMaxRefraction'), ('Zero',0,0), ('[Normal]',0.01,1), ('Full',1,1), ), GmstTweak(_('Compass: Disable'), _("No quest and/or points of interest markers on compass."), 'iMapMarkerRevealDistance', (_('Quests'),1803), (_('POIs'),1802), (_('Quests and POIs'),1801), ), GmstTweak(_('Compass: POI Recognition'), _("Distance at which POI markers begin to show on compass."), 'iMapMarkerVisibleDistance', (_('x 0.25'),3000), (_('x 0.50'),6000), (_('x 0.75'),9000), ), GmstTweak(_('Essential NPC Unconsciousness'), _("Time which essential NPCs stay unconscious."), 'fEssentialDeathTime', (_('[10 Seconds]'),20), (_('20 Seconds'),20), (_('30 Seconds'),30), (_('1 Minute'),60), (_('3 Minutes'),3*60), (_('5 Minutes'),5*60), ), GmstTweak(_('Fatigue from Running/Encumbrance'), _("Fatigue cost of running and encumbrance."), ('fFatigueRunBase','fFatigueRunMult'), ('x 1.5',12,6), ('x 2',16,8), ('x 3',24,12), ('x 4',32,16), ('x 5',40,20), ), GmstTweak(_('Horse Turning Speed'), _("Speed at which horses turn."), 'iHorseTurnDegreesPerSecond', (_('x 1.5'),68), (_('x 2.0'),90), ), GmstTweak(_('Jump Higher'), _("Maximum height player can jump to."), 'fJumpHeightMax', (_('x 1.1'),164*1.1), (_('x 1.2'),164*1.2), (_('x 1.4'),164*1.4), (_('x 1.6'),164*1.6), (_('x 1.8'),164*1.8), (_('x 2.0'),164*2), (_('x 3.0'),164*3), ), GmstTweak(_('Camera: PC Death Time'), _("Time after player's death before reload menu appears."), 'fPlayerDeathReloadTime', (_('15 Seconds'),15), (_('30 Seconds'),30), (_('1 Minute'),60), (_('5 Minute'),300), (_('Unlimited'),9999999), ), GmstTweak(_('Cell Respawn Time'), _("Time before unvisited cell respawns. But longer times increase save sizes."), 'iHoursToRespawnCell', (_('1 Day'),24*1), (_('[3 Days]'),24*3), (_('5 Days'),24*5), (_('10 Days'),24*10), (_('20 Days'),24*20), (_('1 Month'),24*30), (_('6 Months'),24*182), (_('1 Year'),24*365), ), GmstTweak(_('Combat: Recharge Weapons'), _("Allow recharging weapons during combat."), ('iAllowRechargeDuringCombat'), (_('[Allow]'),1), (_('Disallow'),0), ), GmstTweak(_('Magic: Bolt Speed'), _("Speed of magic bolt/projectile."), 'fMagicProjectileBaseSpeed', (_('x 1.2'),1000*1.2), (_('x 1.4'),1000*1.4), (_('x 1.6'),1000*1.6), (_('x 1.8'),1000*1.8), (_('x 2.0'),1000*2.0), (_('x 2.2'),1000*2.2), (_('x 2.4'),1000*2.4), (_('x 2.6'),1000*2.6), (_('x 2.8'),1000*2.8), (_('x 3.0'),1000*3.0), ), GmstTweak(_('Msg: Equip Misc. Item'), _("Message upon equipping misc. item."), ('sCantEquipGeneric'), (_('[None]'),' '), (_('.'),'.'), (_('Hmm...'),_('Hmm...')), ), GmstTweak(_('Cost Multiplier: Repair'), _("Cost factor for repairing items."), ('fRepairCostMult'),
GmstTweak(_('Combat: Gun Spread Run Multiplier'), _("The multiplier which bullet spread when running."), 'fGunSpreadRunMult', ('[0.0]',0.0),
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GMST.setRecord(gmst) if len(self.choiceLabels) > 1: log('* %s: %s' % (self.label,self.choiceLabels[self.chosen])) else: log('* ' + self.label)
33c406410851d297b48db7962bfb397b6ace74bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/33c406410851d297b48db7962bfb397b6ace74bb/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, 856, 16, 8052, 25887, 364, 22555, 16, 1132, 316, 3144, 12, 73, 2232, 16, 2890, 18, 11569, 1972, 63, 2890, 18, 343, 8918, 65, 4672, 14125, 334, 273, 490, 266, 43, 27523, 12, 2668, 43, 49, 882, 2187, 20, 16, 20, 16, 20, 16, 20, 3719, 14125, 334, 18, 73, 350, 16, 23336, 334, 18, 1132, 16, 23336, 334, 18, 5748, 42, 2232, 273, 22555, 16, 1132, 16, 5510, 13444, 273, 14125, 334, 18, 27268, 273, 3455, 12, 23336, 334, 18, 588, 42, 287, 14533, 23, 42, 350, 10756, 4729, 812, 18, 43, 49, 882, 18, 542, 2115, 12, 23336, 334, 13, 309, 562, 12, 2890, 18, 11569, 5888, 13, 405, 404, 30, 613, 2668, 14, 738, 87, 30, 738, 87, 11, 738, 261, 2890, 18, 1925, 16, 2890, 18, 11569, 5888, 63, 2890, 18, 343, 8918, 22643, 469, 30, 613, 2668, 14, 296, 397, 365, 18, 1925, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, 856, 16, 8052, 25887, 364, 22555, 16, 1132, 316, 3144, 12, 73, 2232, 16, 2890, 18, 11569, 1972, 63, 2890, 18, 343, 8918, 65, 4672, 14125, 334, 273, 490, 266, 43, 27523, 12, 2668, 43, 49, 882, 2187, 20, 16, 20, 16, 20, 16, 20, 3719, 14125, 334, 18, 73, 350, 16, 23336, 334, 18, 1132, 16, 23336, 334, 18, 5748, 42, 2232, 273, 22555, 16, 1132, 16, 5510, 13444, 273, 14125, 334, 18, 27268, 273, 3455, 12, 23336, 334, 18, 588, 42, 287, 2 ]
latitude, longitude = (0.0, 0.0)
latitude, longitude = None, None
def add_location(self, title, description, address, URL, approved, container, geo_type, latitude, longitude): """ add a location in the database """ from Products.NaayaContent.NyGeoPoint.NyGeoPoint import addNyGeoPoint meta_type = 'Naaya GeoPoint'
7cbe1bbec0000fbf6380ecd146ccb51edc68ee87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/7cbe1bbec0000fbf6380ecd146ccb51edc68ee87/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3562, 12, 2890, 16, 2077, 16, 2477, 16, 1758, 16, 1976, 16, 20412, 16, 1478, 16, 7856, 67, 723, 16, 8904, 16, 9192, 4672, 3536, 527, 279, 2117, 316, 326, 2063, 3536, 628, 8094, 87, 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, 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, 527, 67, 3562, 12, 2890, 16, 2077, 16, 2477, 16, 1758, 16, 1976, 16, 20412, 16, 1478, 16, 7856, 67, 723, 16, 8904, 16, 9192, 4672, 3536, 527, 279, 2117, 316, 326, 2063, 3536, 628, 8094, 87, 18, 24101, 528, 69, 1350, 18, 50, 93, 12447, 2148, 18, 50, 93, 12447, 2148, 1930, 527, 50, 93, 12447, 2148, 2191, 67, 723, 273, 296, 24101, 528, 69, 9385, 2148, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational'):
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational', verbose = False):
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational'): """ A class for polyhedral objects. Architecture is still in flux. Do not instantiate with both vertex/ray and ieq/linearity data: no consistency check is made.
e0588467c08546dbf9fab9708fa78f61fe9a839c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e0588467c08546dbf9fab9708fa78f61fe9a839c/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6928, 273, 5378, 16, 14961, 87, 273, 5378, 16, 9228, 12926, 273, 5378, 16, 9103, 1961, 273, 5378, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 2187, 3988, 273, 1083, 4672, 3536, 432, 667, 364, 7573, 28351, 2184, 18, 225, 16959, 18123, 353, 4859, 316, 11772, 18, 2256, 486, 10275, 598, 3937, 5253, 19, 435, 471, 9228, 85, 19, 12379, 560, 501, 30, 1158, 14297, 866, 353, 7165, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6928, 273, 5378, 16, 14961, 87, 273, 5378, 16, 9228, 12926, 273, 5378, 16, 9103, 1961, 273, 5378, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 2187, 3988, 273, 1083, 4672, 3536, 432, 667, 364, 7573, 28351, 2184, 18, 225, 16959, 18123, 353, 4859, 316, 11772, 18, 2256, 486, 10275, 598, 3937, 5253, 19, 435, 471, 9228, 85, 19, 12379, 560, 501, 30, 1158, 14297, 866, 353, 7165, 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 ]
print 'Step 1: Getting a list of all redirects' redirs = self.get_redirects_from_dump() print 'Step 2: Getting a list of all page titles' dump = xmlreader.XmlDump(self.xmlFilename) pagetitles = {} for entry in dump.parse(): pagetitles[entry.title] = None print 'Step 3: Comparing.' brokenredirs = []
wikipedia.output(u'Getting a list of all redirects and of all page titles...') redirs, pageTitles = self.get_redirects_from_dump(alsoGetPageTitles = True)
def retrieve_broken_redirects(self): if self.xmlFilename == None: # retrieve information from the live wiki's maintenance page mysite = wikipedia.getSite() # broken redirect maintenance page's URL path = mysite.broken_redirects_address(default_limit = False) print 'Retrieving special page...' maintenance_txt = mysite.getUrl(path)
3c5f3fd14b075f82c3e5efddc5ba087c3b3b2dd9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/3c5f3fd14b075f82c3e5efddc5ba087c3b3b2dd9/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 12933, 3136, 18388, 1363, 1807, 1976, 589, 273, 312, 1900, 1137, 18, 70, 19906, 67, 22715, 67, 2867, 12, 1886, 67, 3595, 273, 1083, 13, 1172, 296, 3848, 6282, 4582, 1363, 7821, 18388, 67, 5830, 273, 312, 1900, 1137, 18, 588, 1489, 12, 803, 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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0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 12933, 3136, 18388, 1363, 1807, 1976, 589, 273, 312, 1900, 1137, 18, 70, 19906, 67, 22715, 67, 2867, 12, 1886, 67, 3595, 273, 1083, 13, 1172, 296, 3848, 6282, 4582, 1363, 7821, 18388, 67, 5830, 273, 312, 1900, 1137, 18, 588, 1489, 12, 803, 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 ]
title = u'S&haring', helpString = u'Sharing-related test commands',
title = _(u'S&haring'), helpString = _(u'Sharing-related test commands'),
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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 ]
elif partition.getFlag(parted.PARTITION_MSFT_RESERVED):
elif partition.type == parted.PARTITION_MSFT_RESERVED:
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flags if partition.getFlag(parted.PARTITION_SWAP): self.type = ("Linux swap") elif partition.getFlag(parted.PARTITION_RAID): self.type = ("RAID") elif partition.getFlag(parted.PARTITION_LVM): self.type = ("Linux LVM") elif partition.getFlag(parted.PARTITION_HPSERVICE): self.type = ("HP Service") elif partition.getFlag(parted.PARTITION_PALO): self.type = ("PALO") elif partition.getFlag(parted.PARTITION_PREP): self.type = ("PReP") elif partition.getFlag(parted.PARTITION_MSFT_RESERVED): self.type = ("MSFT Reserved") elif partition.getFlag(parted.PARTITION_EXTENDED): self.type = ("Extended Partition") elif partition.getFlag(parted.PARTITION_LOGICAL): self.type = ("Logical Partition") elif partition.getFlag(parted.PARTITION_FREESPACE): self.type = ("Free Space") else: self.type =("Unknown") else: self.type = partition.fileSystem.type else: self.type = "" self.name = _("unallocated")
c4993745f76e2dbbb7e80145e7a6166e91f08d7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/c4993745f76e2dbbb7e80145e7a6166e91f08d7e/screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3590, 4672, 365, 18, 10534, 273, 3590, 365, 18, 1467, 273, 3590, 18, 588, 1225, 1435, 365, 18, 1937, 273, 3590, 18, 14330, 18, 1937, 365, 18, 409, 273, 3590, 18, 14330, 18, 409, 365, 18, 3384, 273, 1408, 365, 18, 3668, 67, 2981, 273, 1408, 225, 309, 3590, 18, 2696, 480, 300, 21, 30, 365, 18, 529, 273, 3590, 18, 803, 309, 3590, 18, 768, 3163, 353, 599, 30, 468, 1158, 6496, 16, 866, 2943, 309, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 18746, 2203, 4672, 365, 18, 723, 273, 7566, 19475, 7720, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 2849, 734, 4672, 365, 18, 723, 273, 7566, 2849, 734, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 48, 7397, 4672, 365, 18, 723, 273, 7566, 19475, 511, 7397, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 2500, 12426, 4672, 365, 18, 723, 273, 7566, 2500, 1956, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 26497, 51, 4672, 365, 18, 723, 273, 7566, 26497, 51, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 3670, 52, 4672, 365, 18, 723, 273, 7566, 52, 426, 52, 7923, 1327, 3590, 18, 723, 422, 1087, 329, 18, 15055, 7022, 67, 3537, 4464, 67, 28635, 30, 365, 18, 723, 273, 7566, 3537, 4464, 16237, 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, 1001, 2738, 972, 12, 2890, 16, 3590, 4672, 365, 18, 10534, 273, 3590, 365, 18, 1467, 273, 3590, 18, 588, 1225, 1435, 365, 18, 1937, 273, 3590, 18, 14330, 18, 1937, 365, 18, 409, 273, 3590, 18, 14330, 18, 409, 365, 18, 3384, 273, 1408, 365, 18, 3668, 67, 2981, 273, 1408, 225, 309, 3590, 18, 2696, 480, 300, 21, 30, 365, 18, 529, 273, 3590, 18, 803, 309, 3590, 18, 768, 3163, 353, 599, 30, 468, 1158, 6496, 16, 866, 2943, 309, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 18746, 2203, 4672, 365, 18, 723, 273, 7566, 19475, 7720, 7923, 1327, 3590, 18, 588, 4678, 12, 2680, 329, 18, 15055, 7022, 67, 2849, 2 ]
img = '<%s="%s" %s longdesc="%s" %s">' % (tag, url.encode('utf8'), caption, caption, attr);
img = '<%s="%s" %s longdesc="%s" %s">' % (tag, url.encode('utf8'), caption.encode('utf8'), caption.encode('utf8'), attr);
def writeImageLink(self, obj): if self.images is None: return
ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6694/ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2040, 2098, 12, 2890, 16, 1081, 4672, 309, 365, 18, 7369, 353, 599, 30, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2040, 2098, 12, 2890, 16, 1081, 4672, 309, 365, 18, 7369, 353, 599, 30, 327, 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 ]
self._add_library(name, sources, install_dir, build_info)
self._add_library(name, sources, None, build_info)
def add_library(self,name,sources,**build_info): """Add library to configuration.
0407363fe009c004da0e2c2bbbaa421cb64e160d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/0407363fe009c004da0e2c2bbbaa421cb64e160d/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12083, 12, 2890, 16, 529, 16, 10141, 16, 636, 3510, 67, 1376, 4672, 3536, 986, 5313, 358, 1664, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12083, 12, 2890, 16, 529, 16, 10141, 16, 636, 3510, 67, 1376, 4672, 3536, 986, 5313, 358, 1664, 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 ]
pass
sec.setSeqRepeat(False)
def updateAdvanced(self, slotid): sec = eDVBSatelliteEquipmentControl.getInstance() lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = config.Nims[slotid].advanced.lnb[x] sec.addLNB() sec.setLNBTunerMask(1 << slotid) if currentConfigSelectionElement(currLnb.lof) == "universal_lnb": sec.setLNBLOFL(9750000) sec.setLNBLOFH(10600000) sec.setLNBThreshold(11750000) elif currentConfigSelectionElement(currLnb.lof) == "c_band": sec.setLNBLOFL(5150000) sec.setLNBLOFH(5150000) sec.setLNBThreshold(5150000) elif currentConfigSelectionElement(currLnb.lof) == "user_defined": sec.setLNBLOFL(currLnb.lofl.value * 1000) sec.setLNBLOFH(currLnb.lofh.value * 1000) sec.setLNBThreshold(currLnb.threshold.value * 1000) if currentConfigSelectionElement(currLnb.output_12v) == "0V": pass elif currentConfigSelectionElement(currLnb.output_12v) == "12V": pass if currentConfigSelectionElement(currLnb.increased_voltage) == "yes": pass else: pass if currentConfigSelectionElement(currLnb.diseqcMode) == "none": pass elif currentConfigSelectionElement(currLnb.diseqcMode) == "1_0": pass elif currentConfigSelectionElement(currLnb.diseqcMode) == "1_1": pass elif currentConfigSelectionElement(currLnb.diseqcMode) == "1_2": pass
45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 328, 6423, 15163, 63, 92, 65, 273, 5378, 364, 619, 316, 365, 18, 50, 381, 1318, 18, 12973, 682, 30, 328, 6423, 273, 642, 18, 50, 12097, 63, 14194, 350, 8009, 27080, 18, 12973, 63, 92, 63, 21, 65, 8009, 2370, 70, 18, 1132, 309, 328, 6423, 480, 374, 30, 328, 6423, 15163, 63, 2370, 70, 8009, 6923, 12, 92, 63, 21, 5717, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 309, 562, 12, 2370, 70, 15163, 63, 92, 5717, 405, 374, 30, 4306, 48, 6423, 273, 642, 18, 50, 12097, 63, 14194, 350, 8009, 27080, 18, 2370, 70, 63, 92, 65, 1428, 18, 1289, 48, 20626, 1435, 1428, 18, 542, 48, 20626, 56, 29640, 5796, 12, 21, 2296, 4694, 350, 13, 309, 783, 809, 6233, 1046, 12, 17016, 48, 6423, 18, 383, 74, 13, 422, 315, 318, 14651, 67, 2370, 70, 6877, 1428, 18, 542, 48, 20626, 1502, 19054, 12, 29, 5877, 2787, 13, 1428, 18, 542, 48, 20626, 1502, 42, 44, 12, 22135, 11706, 13, 1428, 18, 542, 48, 20626, 7614, 12, 2499, 5877, 2787, 13, 1327, 783, 809, 6233, 1046, 12, 17016, 48, 6423, 18, 383, 74, 13, 422, 315, 71, 67, 12752, 6877, 1428, 18, 542, 48, 20626, 1502, 19054, 12, 25, 3600, 2787, 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, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 328, 6423, 15163, 63, 92, 65, 273, 5378, 364, 619, 316, 365, 18, 50, 381, 1318, 18, 12973, 682, 30, 328, 6423, 273, 642, 18, 50, 12097, 63, 14194, 350, 8009, 27080, 18, 12973, 63, 92, 63, 21, 65, 8009, 2370, 70, 18, 1132, 309, 328, 6423, 480, 374, 30, 328, 6423, 15163, 63, 2370, 70, 8009, 6923, 12, 92, 63, 21, 5717, 364, 619, 316, 1048, 12, 21, 16, 3707, 4672, 309, 562, 12, 2370, 70, 15163, 63, 92, 5717, 405, 2 ]
try: if mapping: k = v[sort] else: k = getattr(v, sort) except AttributeError, KeyError: k = None
if mapping: k = v.get(sort) else: k = getattr(v, sort, None)
def sort_sequence(self, sequence, md):
28b76553fbc2347e0e592ec4fc30e3c9c17547fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/28b76553fbc2347e0e592ec4fc30e3c9c17547fd/DT_In.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 6178, 12, 2890, 16, 3102, 16, 3481, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 6178, 12, 2890, 16, 3102, 16, 3481, 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 ]
fd.BlockSizeList.append((BlockSize, BlockNumber, BlockSizePcd))
obj.BlockSizeList.append((BlockSize, BlockNumber, BlockSizePcd))
def __GetBlockStatement(self, obj): if not self.__IsKeyword( "BlockSize"):
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 1768, 3406, 12, 2890, 16, 1081, 4672, 309, 486, 365, 16186, 2520, 8736, 12, 315, 22506, 6, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 1768, 3406, 12, 2890, 16, 1081, 4672, 309, 486, 365, 16186, 2520, 8736, 12, 315, 22506, 6, 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 ]
module = None
mod_name = None
def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hcmw:i:o:', ['help', 'class', 'module', 'working_dir=', 'inputqueue', 'outputqueue']) except: usage() input_queue = None output_queue = None wdir = 'work' module = None class_name = None for o, a in opts: if o in ('-h', '--help'): usage() sys.exit() if o in ('-c', '--class'): class_name = a if o in ('-m', '--module'): module = a if o in ('-w', '--working_dir'): wdir = a if o in ('-i', '--inputqueue'): input_queue = a if o in ('-o', '--outputqueue'): output_queue = a print 'module=%s' % module print 'class_name=%s' % classname print 'input_queue=%s' % input_queue print 'output-queue=%s' % output_queue print 'wdir=%s' % wdir if not class_name or not module: usage() cls = find_class(module, class_name) s = cls(working_dir=wdir, input_queue_name=input_queue, output_queue_name=output-queue) s.run(notify)
dbd75ed69a403fda0ee09db565a1e1b5a1caa785 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/dbd75ed69a403fda0ee09db565a1e1b5a1caa785/start_service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 7670, 91, 30, 77, 30, 83, 30, 2187, 10228, 5201, 2187, 296, 1106, 2187, 296, 2978, 2187, 296, 20478, 67, 1214, 33, 2187, 296, 2630, 4000, 2187, 296, 2844, 4000, 19486, 1335, 30, 4084, 1435, 810, 67, 4000, 273, 599, 876, 67, 4000, 273, 599, 341, 1214, 273, 296, 1252, 11, 681, 67, 529, 273, 599, 667, 67, 529, 273, 599, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 316, 7707, 17, 76, 2187, 3534, 5201, 11, 4672, 4084, 1435, 2589, 18, 8593, 1435, 309, 320, 316, 7707, 17, 71, 2187, 3534, 1106, 11, 4672, 667, 67, 529, 273, 279, 309, 320, 316, 7707, 17, 81, 2187, 3534, 2978, 11, 4672, 1605, 273, 279, 309, 320, 316, 7707, 17, 91, 2187, 3534, 20478, 67, 1214, 11, 4672, 341, 1214, 273, 279, 309, 320, 316, 7707, 17, 77, 2187, 3534, 2630, 4000, 11, 4672, 810, 67, 4000, 273, 279, 309, 320, 316, 7707, 17, 83, 2187, 3534, 2844, 4000, 11, 4672, 876, 67, 4000, 273, 279, 1172, 296, 2978, 5095, 87, 11, 738, 1605, 1172, 296, 1106, 67, 529, 5095, 87, 11, 738, 7479, 1172, 296, 2630, 67, 4000, 5095, 87, 11, 738, 810, 67, 4000, 1172, 296, 2844, 17, 4000, 5095, 87, 11, 738, 876, 67, 4000, 1172, 296, 91, 1214, 5095, 87, 11, 738, 341, 1214, 309, 486, 667, 67, 529, 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, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 7670, 91, 30, 77, 30, 83, 30, 2187, 10228, 5201, 2187, 296, 1106, 2187, 296, 2978, 2187, 296, 20478, 67, 1214, 33, 2187, 296, 2630, 4000, 2187, 296, 2844, 4000, 19486, 1335, 30, 4084, 1435, 810, 67, 4000, 273, 599, 876, 67, 4000, 273, 599, 341, 1214, 273, 296, 1252, 11, 681, 67, 529, 273, 599, 667, 67, 529, 273, 599, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 316, 7707, 17, 76, 2187, 3534, 5201, 11, 4672, 4084, 1435, 2589, 18, 8593, 1435, 309, 320, 316, 7707, 17, 71, 2187, 3534, 1106, 11, 2 ]
def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, "Preprocess")
def __init__(self, parent=None, signalManager=None, name="Preprocess"): OWWidget.__init__(self, parent, signalManager, name)
def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, "Preprocess") self.inputs = [("Example Table", ExampleTable, self.setData)] #, ("Learner", orange.Learner, self.setLearner)] self.outputs = [("Preprocessing", orngWrap.PreprocessedLearner), ("Preprocessed Example Table", ExampleTable)] #, ("Preprocessor", orange.Preprocessor)] self.autoCommit = False self.changedFlag = False ## [(name, [list of preprocessors], selected preprocessor index), ...] self.allSchemas = [("Default" , [Preprocessor_discretize(method=orange.EntropyDiscretization()), Preprocessor_dropMissing()], 0)] self.lastSelectedSchemaIndex = 0 self.preprocessorsList = PyListModel([], self) box = OWGUI.widgetBox(self.controlArea, "Preprocessors", addSpace=True) self.preprocessorsListView = QListView() self.preprocessorsListSelectionModel = ListSingleSelectionModel(self.preprocessorsList, self) self.preprocessorsListView.setItemDelegate(PreprocessorItemDelegate(self)) self.preprocessorsListView.setModel(self.preprocessorsList) self.preprocessorsListView.setSelectionModel(self.preprocessorsListSelectionModel) self.preprocessorsListView.setSelectionMode(QListView.SingleSelection) self.connect(self.preprocessorsListSelectionModel, SIGNAL("selectedIndexChanged(QModelIndex)"), self.onPreprocessorSelection) self.connect(self.preprocessorsList, SIGNAL("dataChanged(QModelIndex, QModelIndex)"), lambda arg1, arg2: self.commitIf) box.layout().addWidget(self.preprocessorsListView) self.addPreprocessorAction = QAction("+",self) self.removePreprocessorAction = QAction("-", self) self.removePreprocessorAction.setEnabled(False) self.connect(self.preprocessorsListSelectionModel, SIGNAL("selectedIndexChanged(QModelIndex)"), lambda index:self.removePreprocessorAction.setEnabled(index.isValid())) actionsWidget = ModelActionsWidget([self.addPreprocessorAction, self.removePreprocessorAction]) actionsWidget.layout().setSpacing(1) actionsWidget.layout().addStretch(10) box.layout().addWidget(actionsWidget) self.connect(self.addPreprocessorAction, SIGNAL("triggered()"), self.onAddPreprocessor) self.connect(self.removePreprocessorAction, SIGNAL("triggered()"), self.onRemovePreprocessor) box = OWGUI.widgetBox(self.controlArea, "Saved Schemas", addSpace=True) self.schemaFilterEdit = OWGUIEx.LineEditFilter(self) box.layout().addWidget(self.schemaFilterEdit) self.schemaList = PyListModel([], self, flags=Qt.ItemIsSelectable | Qt.ItemIsEditable| Qt.ItemIsEnabled) self.schemaListView = QListView() self.schemaListView.setItemDelegate(NamedTupleItemDelegate(self)) self.schemaListView.setModel(self.schemaList) box.layout().addWidget(self.schemaListView) self.schemaListSelectionModel = ListSingleSelectionModel(self.schemaList, self) self.schemaListView.setSelectionMode(QListView.SingleSelection) self.schemaListView.setSelectionModel(self.schemaListSelectionModel) self.connect(self.schemaListSelectionModel, SIGNAL("selectedIndexChanged(QModelIndex)"), self.onSchemaSelection) self.addSchemaAction = QAction("+", self) self.updateSchemaAction = QAction("Update", self) self.removeSchemaAction = QAction("-", self) self.updateSchemaAction.setEnabled(False) self.removeSchemaAction.setEnabled(False) actionsWidget = ModelActionsWidget([]) actionsWidget.addAction(self.addSchemaAction) actionsWidget.addAction(self.updateSchemaAction).setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Fixed) actionsWidget.addAction(self.removeSchemaAction) actionsWidget.layout().setSpacing(1) box.layout().addWidget(actionsWidget) self.connect(self.addSchemaAction, SIGNAL("triggered()"), self.onAddSchema) self.connect(self.updateSchemaAction, SIGNAL("triggered()"), self.onUpdateSchema) self.connect(self.removeSchemaAction, SIGNAL("triggered()"), self.onRemoveSchema) self.addPreprocessorsMenuActions = actions = [] for name, pp, kwargs in self.preprocessors: action = QAction(name, self) self.connect(action, SIGNAL("triggered()"), lambda pp=pp, kwargs=kwargs:self.addPreprocessor(pp(**kwargs))) actions.append(action) box = OWGUI.widgetBox(self.controlArea, "Output") cb = OWGUI.checkBox(box, self, "autoCommit", "Commit on any change", callback=self.commitIf) b = OWGUI.button(box, self, "Commit", callback=self.commit) OWGUI.setStopper(self, b, cb, "changedFlag", callback=self.commitIf) self.mainAreaStack = QStackedLayout() self.stackedEditorsCache = {} OWGUI.widgetBox(self.mainArea, orientation=self.mainAreaStack) self.data = None self.learner = None self.loadSettings() self.activateLoadedSettings()
040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec/OWPreprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 1386, 2567, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 13, 225, 365, 18, 10029, 273, 306, 2932, 10908, 3555, 3113, 5090, 1388, 16, 365, 18, 542, 751, 25887, 468, 16, 7566, 1682, 24834, 3113, 578, 726, 18, 1682, 24834, 16, 365, 18, 542, 1682, 24834, 25887, 365, 18, 12295, 273, 306, 2932, 1386, 10632, 3113, 578, 3368, 2964, 18, 1386, 11005, 1682, 24834, 3631, 7566, 1386, 11005, 5090, 3555, 3113, 5090, 1388, 25887, 468, 16, 7566, 1386, 8700, 3113, 578, 726, 18, 1386, 8700, 25887, 225, 365, 18, 6079, 5580, 273, 1083, 365, 18, 6703, 4678, 273, 1083, 225, 7541, 306, 12, 529, 16, 306, 1098, 434, 17942, 1383, 6487, 3170, 31445, 770, 3631, 1372, 65, 365, 18, 454, 16749, 273, 306, 2932, 1868, 6, 269, 306, 1386, 8700, 67, 2251, 71, 1349, 554, 12, 2039, 33, 280, 726, 18, 28727, 28912, 1349, 1588, 1435, 3631, 2962, 8700, 67, 7285, 4841, 1435, 6487, 374, 25887, 225, 365, 18, 2722, 7416, 3078, 1016, 273, 374, 225, 365, 18, 1484, 22962, 682, 273, 225, 4707, 682, 1488, 3816, 6487, 365, 13, 225, 3919, 273, 18233, 43, 5370, 18, 6587, 3514, 12, 2890, 18, 7098, 5484, 16, 315, 1386, 22962, 3113, 527, 3819, 33, 5510, 13, 225, 365, 18, 1484, 22962, 682, 1767, 273, 2238, 682, 1767, 1435, 365, 18, 1484, 22962, 682, 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, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 1386, 2567, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 13, 225, 365, 18, 10029, 273, 306, 2932, 10908, 3555, 3113, 5090, 1388, 16, 365, 18, 542, 751, 25887, 468, 16, 7566, 1682, 24834, 3113, 578, 726, 18, 1682, 24834, 16, 365, 18, 542, 1682, 24834, 25887, 365, 18, 12295, 273, 306, 2932, 1386, 10632, 3113, 578, 3368, 2964, 18, 1386, 11005, 1682, 24834, 3631, 7566, 1386, 11005, 5090, 3555, 3113, 5090, 1388, 25887, 468, 16, 7566, 1386, 8700, 3113, 578, 726, 18, 1386, 8700, 25887, 225, 365, 18, 6079, 5580, 273, 1083, 2 ]
db['YP_LAST_MODIFIED'] = '%010d' % time.time() if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn()
if not virtualp: db['YP_LAST_MODIFIED'] = '%010d' % time.time() if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn()
def remove(mlist, cgi=0): # Acquire the global list database lock lock = LockFile.LockFile(LOCKFILE) lock.lock() lockfp = None try: listname = mlist.internal_name() # Crack open the dbhash file, and delete all the entries. See the # discussion above for while we lock the aliases.db file this way. lockfp = open(DBFILE) fcntl.flock(lockfp.fileno(), fcntl.LOCK_EX) db = dbhash.open(DBFILE, 'c') for k, v in makealiases(listname): try: del db[k + '\0'] except KeyError: pass # Always update YP_LAST_MODIFIED db['YP_LAST_MODIFIED'] = '%010d' % time.time() # Add a YP_MASTER_NAME only if there isn't one already if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn() # And flush the changes to disk db.sync() # Now do our best to filter out the proper stanza from the text file. # The text file better exist! outfile = TEXTFILE try: infp = open(TEXTFILE) except IOError, e: if e.errno <> errno.ENOENT: raise # Otherwise, there's no text file to filter so we're done. return omask = os.umask(007) try: outfp = open(TEXTFILE + '.tmp', 'w') finally: os.umask(omask) filteroutp = 0 start = '# STANZA START: ' + listname end = '# STANZA END: ' + listname while 1: line = infp.readline() if not line: break # If we're filtering out a stanza, just look for the end marker # and filter out everything in between. If we're not in the # middle of filter out a stanza, we're just looking for the proper # begin marker. if filteroutp: if line.startswith(end): filteroutp = 0 # Discard the trailing blank line, but don't worry if # we're at the end of the file. infp.readline() # Otherwise, ignore the line else: if line.startswith(start): # Filter out this stanza filteroutp = 1 else: outfp.write(line) # Close up shop, and rotate the files infp.close() outfp.close() os.rename(TEXTFILE+'.tmp', TEXTFILE) finally: if lockfp: fcntl.flock(lockfp.fileno(), fcntl.LOCK_UN) lockfp.close() lock.unlock(unconditionally=1)
0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5/Postfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 781, 376, 16, 276, 10052, 33, 20, 4672, 468, 28822, 326, 2552, 666, 2063, 2176, 2176, 273, 3488, 812, 18, 2531, 812, 12, 6589, 3776, 13, 2176, 18, 739, 1435, 2176, 7944, 273, 599, 775, 30, 666, 529, 273, 312, 1098, 18, 7236, 67, 529, 1435, 468, 385, 21580, 1696, 326, 1319, 2816, 585, 16, 471, 1430, 777, 326, 3222, 18, 225, 2164, 326, 468, 14716, 5721, 364, 1323, 732, 2176, 326, 6900, 18, 1966, 585, 333, 4031, 18, 2176, 7944, 273, 1696, 12, 2290, 3776, 13, 30894, 18, 74, 739, 12, 739, 7944, 18, 7540, 5764, 9334, 30894, 18, 6589, 67, 2294, 13, 1319, 273, 1319, 2816, 18, 3190, 12, 2290, 3776, 16, 296, 71, 6134, 364, 417, 16, 331, 316, 1221, 13831, 12, 1098, 529, 4672, 775, 30, 1464, 1319, 63, 79, 397, 2337, 20, 3546, 1335, 4999, 30, 1342, 468, 14178, 1089, 1624, 52, 67, 14378, 67, 21143, 1319, 3292, 61, 52, 67, 14378, 67, 21143, 3546, 273, 1995, 23254, 72, 11, 738, 813, 18, 957, 1435, 468, 1436, 279, 1624, 52, 67, 28045, 67, 1985, 1338, 309, 1915, 5177, 1404, 1245, 1818, 309, 486, 1319, 18, 5332, 67, 856, 2668, 61, 52, 67, 28045, 67, 1985, 11, 4672, 1319, 3292, 61, 52, 67, 28045, 67, 1985, 3546, 273, 2987, 18, 588, 19206, 5176, 1435, 468, 7835, 3663, 326, 3478, 358, 4234, 1319, 18, 8389, 1435, 468, 4494, 741, 3134, 3796, 358, 1034, 596, 326, 5338, 21650, 628, 326, 977, 585, 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, 1206, 12, 781, 376, 16, 276, 10052, 33, 20, 4672, 468, 28822, 326, 2552, 666, 2063, 2176, 2176, 273, 3488, 812, 18, 2531, 812, 12, 6589, 3776, 13, 2176, 18, 739, 1435, 2176, 7944, 273, 599, 775, 30, 666, 529, 273, 312, 1098, 18, 7236, 67, 529, 1435, 468, 385, 21580, 1696, 326, 1319, 2816, 585, 16, 471, 1430, 777, 326, 3222, 18, 225, 2164, 326, 468, 14716, 5721, 364, 1323, 732, 2176, 326, 6900, 18, 1966, 585, 333, 4031, 18, 2176, 7944, 273, 1696, 12, 2290, 3776, 13, 30894, 18, 74, 739, 12, 739, 7944, 18, 7540, 5764, 9334, 30894, 18, 6589, 67, 2294, 13, 1319, 273, 1319, 2816, 18, 3190, 12, 2290, 3776, 16, 296, 71, 2 ]
Error are reported to standard output.
If exception(s) occur, an Error is raised with a list of reasons.
def copytree(src, dst, symlinks=0): """Recursively copy a directory tree using copy2(). The destination directory must not already exist. Error are reported to standard output. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied. XXX Consider this example code rather than the ultimate tool. """ names = os.listdir(src) os.mkdir(dst) errors = [] for name in names: srcname = os.path.join(src, name) dstname = os.path.join(dst, name) try: if symlinks and os.path.islink(srcname): linkto = os.readlink(srcname) os.symlink(linkto, dstname) elif os.path.isdir(srcname): copytree(srcname, dstname, symlinks) else: copy2(srcname, dstname) # XXX What about devices, sockets etc.? except (IOError, os.error), why: errors.append((srcname, dstname, why)) if errors: raise Error, errors
a4c93b68f164e6e3db881e9af5f0fdc9153680d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4c93b68f164e6e3db881e9af5f0fdc9153680d4/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 20, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, 13, 3334, 16, 392, 1068, 353, 11531, 598, 279, 666, 434, 14000, 18, 225, 971, 326, 3129, 23146, 2982, 353, 638, 16, 16754, 4716, 316, 326, 1084, 2151, 563, 316, 16754, 4716, 316, 326, 2929, 2151, 31, 309, 518, 353, 629, 16, 326, 2939, 434, 326, 1390, 25874, 358, 635, 16754, 4716, 854, 9268, 18, 225, 11329, 23047, 333, 3454, 981, 9178, 2353, 326, 225, 406, 4988, 5226, 18, 225, 3536, 1257, 273, 1140, 18, 1098, 1214, 12, 4816, 13, 1140, 18, 26686, 12, 11057, 13, 1334, 273, 5378, 364, 508, 316, 1257, 30, 1705, 529, 273, 1140, 18, 803, 18, 5701, 12, 4816, 16, 508, 13, 3046, 529, 273, 1140, 18, 803, 18, 5701, 12, 11057, 16, 508, 13, 775, 30, 309, 23146, 471, 1140, 18, 803, 18, 291, 1232, 12, 4816, 529, 4672, 1692, 869, 273, 1140, 18, 896, 1232, 12, 4816, 529, 13, 1140, 18, 21278, 12, 1232, 869, 16, 3046, 529, 13, 1327, 1140, 18, 803, 18, 291, 1214, 12, 4816, 529, 4672, 1610, 3413, 12, 4816, 529, 16, 3046, 529, 16, 23146, 13, 469, 30, 1610, 22, 12, 4816, 529, 16, 3046, 529, 13, 468, 11329, 18734, 2973, 7166, 16, 16762, 5527, 18, 35, 1335, 261, 4294, 668, 16, 1140, 18, 1636, 3631, 11598, 30, 1334, 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, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 20, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, 13, 3334, 16, 392, 1068, 353, 11531, 598, 279, 666, 434, 14000, 18, 225, 971, 326, 3129, 23146, 2982, 353, 638, 16, 16754, 4716, 316, 326, 1084, 2151, 563, 316, 16754, 4716, 316, 326, 2929, 2151, 31, 309, 518, 353, 629, 16, 326, 2939, 434, 326, 1390, 25874, 358, 635, 16754, 4716, 854, 9268, 18, 225, 11329, 23047, 333, 3454, 981, 9178, 2353, 326, 225, 406, 4988, 5226, 18, 225, 3536, 1257, 273, 1140, 18, 1098, 1214, 12, 4816, 13, 1140, 18, 26686, 12, 2 ]
self.__peer = conn.getpeername()
try: self.__peer = conn.getpeername() except socket.error as err: self.close() if err.args[0] != errno.ENOTCONN: raise return
def __init__(self, server, conn, addr): asynchat.async_chat.__init__(self, conn) self.__server = server self.__conn = conn self.__addr = addr self.__line = [] self.__state = self.COMMAND self.__greeting = 0 self.__mailfrom = None self.__rcpttos = [] self.__data = '' self.__fqdn = socket.getfqdn() self.__peer = conn.getpeername() print >> DEBUGSTREAM, 'Peer:', repr(self.__peer) self.push('220 %s %s' % (self.__fqdn, __version__)) self.set_terminator('\r\n')
8497f0a85d97e1d9660bbb450ba9f2dc8b03f87d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8497f0a85d97e1d9660bbb450ba9f2dc8b03f87d/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4646, 273, 1487, 365, 16186, 4793, 273, 3091, 365, 16186, 1369, 273, 5378, 365, 16186, 2019, 273, 365, 18, 19104, 365, 16186, 75, 9015, 310, 273, 374, 365, 16186, 4408, 2080, 273, 599, 365, 16186, 1310, 337, 14627, 273, 5378, 365, 16186, 892, 273, 875, 365, 16186, 19206, 5176, 273, 2987, 18, 588, 19206, 5176, 1435, 775, 30, 365, 16186, 12210, 273, 1487, 18, 588, 12210, 529, 1435, 1335, 2987, 18, 1636, 487, 393, 30, 282, 365, 18, 4412, 1435, 309, 393, 18, 1968, 63, 20, 65, 480, 8402, 18, 1157, 1974, 27733, 30, 1002, 327, 1172, 1671, 6369, 13693, 16, 296, 6813, 30, 2187, 8480, 12, 2890, 16186, 12210, 13, 365, 18, 6206, 2668, 27246, 738, 87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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, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4646, 273, 1487, 365, 16186, 4793, 273, 3091, 365, 16186, 1369, 273, 5378, 365, 16186, 2019, 273, 365, 18, 19104, 365, 16186, 75, 9015, 310, 273, 374, 365, 16186, 4408, 2080, 273, 599, 365, 16186, 1310, 337, 14627, 273, 5378, 365, 16186, 892, 273, 875, 365, 16186, 19206, 5176, 273, 2987, 18, 588, 19206, 5176, 1435, 775, 30, 365, 16186, 12210, 273, 1487, 18, 588, 12210, 529, 1435, 1335, 2987, 18, 1636, 487, 393, 30, 282, 365, 18, 4412, 1435, 309, 393, 18, 1968, 2 ]
self.salestax = calcSalesTax(self.billAddressID)
self.salestax = calcSalesTax(self.billAddressID, self.cart.subtotal())
def act_update(self): """ Update Cashier with some new information. This method allows you to inform the Cashier incrementally, if you want. Just post to the page with an 'update' action, and it'll recognize any of the required fields. """ for item in self.steps: if self.input.has_key(item): setattr(self, item, self.input[item]) ## calculate the sales tax if (self.salestax is None) and (self.billAddressID is not None): self.salestax = calcSalesTax(self.billAddressID)
12de07d713c9fa698dc8f6a1ac47bdaf2ca0fcf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/12de07d713c9fa698dc8f6a1ac47bdaf2ca0fcf3/Cashier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 2725, 12, 2890, 4672, 3536, 2315, 385, 961, 2453, 598, 2690, 394, 1779, 18, 225, 1220, 707, 5360, 1846, 358, 13235, 326, 385, 961, 2453, 5504, 1230, 16, 309, 1846, 2545, 18, 12526, 1603, 358, 326, 1363, 598, 392, 296, 2725, 11, 1301, 16, 471, 518, 5614, 21431, 1281, 434, 326, 1931, 1466, 18, 3536, 364, 761, 316, 365, 18, 8986, 30, 309, 365, 18, 2630, 18, 5332, 67, 856, 12, 1726, 4672, 9241, 12, 2890, 16, 761, 16, 365, 18, 2630, 63, 1726, 5717, 225, 7541, 4604, 326, 272, 5408, 5320, 309, 261, 2890, 18, 21982, 395, 651, 353, 599, 13, 471, 261, 2890, 18, 17240, 1887, 734, 353, 486, 599, 4672, 365, 18, 21982, 395, 651, 273, 7029, 23729, 7731, 12, 2890, 18, 17240, 1887, 734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 2725, 12, 2890, 4672, 3536, 2315, 385, 961, 2453, 598, 2690, 394, 1779, 18, 225, 1220, 707, 5360, 1846, 358, 13235, 326, 385, 961, 2453, 5504, 1230, 16, 309, 1846, 2545, 18, 12526, 1603, 358, 326, 1363, 598, 392, 296, 2725, 11, 1301, 16, 471, 518, 5614, 21431, 1281, 434, 326, 1931, 1466, 18, 3536, 364, 761, 316, 365, 18, 8986, 30, 309, 365, 18, 2630, 18, 5332, 67, 856, 12, 1726, 4672, 9241, 12, 2890, 16, 761, 16, 365, 18, 2630, 63, 1726, 5717, 225, 7541, 4604, 326, 272, 5408, 5320, 309, 261, 2890, 18, 21982, 395, 651, 353, 599, 13, 471, 261, 2890, 18, 17240, 1887, 734, 353, 486, 599, 4672, 365, 18, 21982, 2 ]
lockitem = LockItem(user)
lockitem = LockItem(user, timeout=(self.timeout_days * 86400))
def lock(self, object): '''Locks an object''' locker = self.locker(object) if locker: raise LockingError, '%s is already locked' % pathOf(object)
7f0ae4e86fe99771bac3b4fede1e65c8338899ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/7f0ae4e86fe99771bac3b4fede1e65c8338899ff/LockTool.py
[ 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2176, 12, 2890, 16, 733, 4672, 9163, 19159, 392, 733, 26418, 28152, 273, 365, 18, 739, 264, 12, 1612, 13, 309, 28152, 30, 1002, 3488, 310, 668, 16, 1995, 87, 353, 1818, 8586, 11, 738, 589, 951, 12, 1612, 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 ]
"""
"""
def fl_popup_entry_get_by_text(p1, p2): """ fl_popup_entry_get_by_text(p1, p2) -> popup_entry """ retval = _fl_popup_entry_get_by_text(p1, p2) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 317, 10431, 67, 4099, 3536, 225, 5221, 273, 389, 2242, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 327, 5221, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 317, 10431, 67, 4099, 3536, 225, 5221, 273, 389, 2242, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 327, 5221, 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 ]