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
self.bondBefore = bondBefore self.bondAfter = bondAfter
def __init__(self, currentChainModel, structureEditor, resSeqNum, chosenCoordinates, viewer, bondBefore=None, bondAfter=None, description=None): super(CommandAcceptAtomPlacement, self).__init__(description) self.currentChainModel = currentChainModel self.structureEditor = structureEditor self.resSeqNum = resSeqNum self.chosenCoordinates = chosenCoordinates self.viewer = viewer self.bondBefore = bondBefore self.bondAfter = bondAfter
be290785c9222be753703ba6feed159f62895298 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4399/be290785c9222be753703ba6feed159f62895298/structure_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 783, 3893, 1488, 16, 3695, 6946, 16, 400, 6926, 2578, 16, 10447, 13431, 16, 14157, 16, 8427, 4649, 33, 7036, 16, 8427, 4436, 33, 7036, 16, 2477, 33, 7036, 4672, 2240, 12, 2189, 5933, 3641, 12420, 16, 365, 2934, 972, 2738, 972, 12, 3384, 13, 365, 18, 2972, 3893, 1488, 273, 783, 3893, 1488, 365, 18, 7627, 6946, 273, 3695, 6946, 365, 18, 455, 6926, 2578, 273, 400, 6926, 2578, 365, 18, 343, 8918, 13431, 273, 10447, 13431, 365, 18, 25256, 273, 14157, 365, 18, 26425, 4649, 273, 8427, 4649, 365, 18, 26425, 4436, 273, 8427, 4436, 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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, 16, 783, 3893, 1488, 16, 3695, 6946, 16, 400, 6926, 2578, 16, 10447, 13431, 16, 14157, 16, 8427, 4649, 33, 7036, 16, 8427, 4436, 33, 7036, 16, 2477, 33, 7036, 4672, 2240, 12, 2189, 5933, 3641, 12420, 16, 365, 2934, 972, 2738, 972, 12, 3384, 13, 365, 18, 2972, 3893, 1488, 273, 783, 3893, 1488, 365, 18, 7627, 6946, 273, 3695, 6946, 365, 18, 455, 6926, 2578, 273, 400, 6926, 2578, 365, 18, 343, 8918, 13431, 273, 10447, 13431, 365, 18, 25256, 273, 14157, 365, 18, 26425, 4649, 273, 8427, 4649, 365, 18, 26425, 4436, 273, 8427, 4436, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str = str + c
token.append(c)
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c == '"': dquote = 1 continue if c in string.whitespace: space = 1 continue if space: str = str + ' ' space = 0 if paren: if c == '(': paren = paren + 1 str = str + c continue if c == ')': paren = paren - 1 if paren == 0: comment = comment + str str = '' continue if c == '(': paren = paren + 1 if bracket: email = email + str str = '' elif not seen_bracket: email = email + str str = '' continue if bracket: if c == '>': bracket = 0 email = email + str str = '' continue if c == '<': bracket = 1 seen_bracket = 1 comment = comment + str str = '' email = '' continue if c == '#' and not bracket and not paren: # rest is comment break str = str + c if str: if seen_bracket: if bracket: email = str else: comment = comment + str else: if paren: comment = comment + str else: email = email + str return string.strip(comment), string.strip(email)
a27c46cb14f5161823e8286256b61e46ad0634c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a27c46cb14f5161823e8286256b61e46ad0634c5/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 21025, 273, 374, 364, 276, 316, 1758, 30, 309, 23253, 30, 1147, 18, 6923, 12, 71, 13, 23253, 273, 374, 1324, 309, 276, 422, 3718, 4278, 23253, 273, 404, 1324, 309, 302, 6889, 30, 309, 276, 422, 2119, 4278, 302, 6889, 273, 374, 469, 30, 1147, 18, 6923, 12, 71, 13, 1324, 309, 276, 422, 2119, 4278, 302, 6889, 273, 404, 1324, 309, 276, 316, 533, 18, 18777, 30, 3476, 273, 404, 1324, 309, 3476, 30, 609, 273, 609, 397, 296, 296, 3476, 273, 374, 309, 22146, 30, 309, 276, 422, 7321, 30, 22146, 273, 22146, 397, 404, 1147, 18, 6923, 12, 71, 13, 1324, 309, 276, 422, 5777, 30, 22146, 273, 22146, 300, 404, 309, 22146, 422, 374, 30, 2879, 273, 2879, 397, 609, 609, 273, 875, 1324, 309, 276, 422, 7321, 30, 22146, 273, 22146, 397, 404, 309, 9843, 30, 2699, 273, 2699, 397, 609, 609, 273, 875, 1327, 486, 5881, 67, 21025, 30, 2699, 273, 2699, 397, 609, 609, 273, 875, 1324, 309, 9843, 30, 309, 276, 422, 7481, 30, 9843, 273, 374, 2699, 273, 2699, 397, 609, 609, 273, 875, 1324, 309, 276, 422, 2368, 4278, 9843, 273, 404, 5881, 67, 21025, 273, 404, 2879, 273, 2879, 397, 609, 609, 273, 875, 2699, 273, 875, 1324, 309, 276, 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, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 21025, 273, 374, 364, 276, 316, 1758, 30, 309, 23253, 30, 1147, 18, 6923, 12, 71, 13, 23253, 273, 374, 1324, 309, 276, 422, 3718, 4278, 23253, 273, 404, 1324, 309, 302, 6889, 30, 309, 276, 422, 2119, 4278, 302, 6889, 273, 374, 469, 30, 1147, 18, 6923, 12, 71, 13, 1324, 309, 276, 422, 2119, 4278, 302, 6889, 273, 404, 1324, 309, 276, 316, 533, 18, 18777, 30, 3476, 273, 404, 1324, 309, 3476, 30, 609, 273, 609, 397, 296, 296, 3476, 273, 2 ]
elif buffer == self.mode.buffer:
elif buffer == self.buffer:
def execute(self): """Operate on all the flags for each of the buffers. For each buffer item, process the flags to perform the requested action. """ delete_self = None try: list_count = self.GetItemCount() for index in range(list_count): key = self.GetItem(index, 5).GetText() flags = self.flags[key] dprint("flags %s for %s" % (flags, key)) if not flags: continue self.updating = True buffer = Dired.findBufferByURL(key) if 'S' in flags: buffer.save() if 'D' in flags: if buffer.modified: Publisher().sendMessage('peppy.log.error', "Buffer %s modified. Not deleting.\n" % key) elif buffer == self.mode.buffer: # BadThings happen if you try to delete this buffer # in the middle of the delete process! dprint("Deleting me! Save till later") delete_self = buffer elif not buffer.permanent: buffer.removeAllViewsAndDelete() del self.flags[key] # skip processing any other flags if the buffer has # been deleted. continue elif 'M' in flags: self.mode.frame.newBuffer(buffer) self.flags[key] = "" finally: if delete_self is not None: dprint("OK, now deleting myself") self.deletePreHook() # delete the buffer using call after to allow any pending # events to the list to be cleaned up wx.CallAfter(delete_self.removeAllViewsAndDelete) elif self.updating: self.updating = False self.reset()
5cfb102115321ea923828cfe2331e4b8f8a43e20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5cfb102115321ea923828cfe2331e4b8f8a43e20/dired.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 3542, 340, 603, 777, 326, 2943, 364, 1517, 434, 326, 9664, 18, 225, 2457, 1517, 1613, 761, 16, 1207, 326, 2943, 358, 3073, 326, 3764, 1301, 18, 3536, 1430, 67, 2890, 273, 599, 775, 30, 666, 67, 1883, 273, 365, 18, 967, 30687, 1435, 364, 770, 316, 1048, 12, 1098, 67, 1883, 4672, 498, 273, 365, 18, 967, 1180, 12, 1615, 16, 1381, 2934, 967, 1528, 1435, 2943, 273, 365, 18, 7133, 63, 856, 65, 302, 1188, 2932, 7133, 738, 87, 364, 738, 87, 6, 738, 261, 7133, 16, 498, 3719, 309, 486, 2943, 30, 1324, 365, 18, 5533, 1776, 273, 1053, 1613, 273, 463, 2921, 18, 4720, 1892, 858, 1785, 12, 856, 13, 309, 296, 55, 11, 316, 2943, 30, 1613, 18, 5688, 1435, 309, 296, 40, 11, 316, 2943, 30, 309, 1613, 18, 7342, 30, 21932, 7675, 4661, 1079, 2668, 29363, 2074, 18, 1330, 18, 1636, 2187, 315, 1892, 738, 87, 4358, 18, 225, 2288, 12993, 8403, 82, 6, 738, 498, 13, 1327, 1613, 422, 365, 18, 4106, 30, 468, 6107, 1315, 899, 5865, 309, 1846, 775, 358, 1430, 333, 1613, 468, 316, 326, 7689, 434, 326, 1430, 1207, 5, 302, 1188, 2932, 20433, 1791, 5, 225, 7074, 21364, 5137, 7923, 1430, 67, 2890, 273, 1613, 1327, 486, 1613, 18, 457, 4728, 319, 30, 1613, 18, 4479, 1595, 9959, 1876, 2613, 1435, 1464, 365, 18, 7133, 63, 856, 65, 468, 2488, 4929, 1281, 1308, 2943, 309, 326, 1613, 711, 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, 1836, 12, 2890, 4672, 3536, 3542, 340, 603, 777, 326, 2943, 364, 1517, 434, 326, 9664, 18, 225, 2457, 1517, 1613, 761, 16, 1207, 326, 2943, 358, 3073, 326, 3764, 1301, 18, 3536, 1430, 67, 2890, 273, 599, 775, 30, 666, 67, 1883, 273, 365, 18, 967, 30687, 1435, 364, 770, 316, 1048, 12, 1098, 67, 1883, 4672, 498, 273, 365, 18, 967, 1180, 12, 1615, 16, 1381, 2934, 967, 1528, 1435, 2943, 273, 365, 18, 7133, 63, 856, 65, 302, 1188, 2932, 7133, 738, 87, 364, 738, 87, 6, 738, 261, 7133, 16, 498, 3719, 309, 486, 2943, 30, 1324, 365, 18, 5533, 1776, 273, 1053, 1613, 273, 463, 2921, 18, 4720, 1892, 858, 1785, 12, 856, 2 ]
writefile(os.path.join(distutils_path, 'distutils.cfg'), DISTUTILS_CFG, overwrite=False)
writefile(os.path.join(distutils_path, 'distutils.cfg'), distutils_cfg, overwrite=False)
def install_distutils(lib_dir): distutils_path = os.path.join(lib_dir, 'distutils') mkdir(distutils_path) writefile(os.path.join(distutils_path, '__init__.py'), DISTUTILS_INIT) writefile(os.path.join(distutils_path, 'distutils.cfg'), DISTUTILS_CFG, overwrite=False)
c470644f69661b102e212e3e763de440c46f14f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12981/c470644f69661b102e212e3e763de440c46f14f8/virtualenv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 4413, 5471, 12, 2941, 67, 1214, 4672, 2411, 5471, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2941, 67, 1214, 16, 296, 4413, 5471, 6134, 6535, 12, 4413, 5471, 67, 803, 13, 1045, 768, 12, 538, 18, 803, 18, 5701, 12, 4413, 5471, 67, 803, 16, 4940, 2738, 25648, 2074, 19899, 3690, 882, 1693, 2627, 55, 67, 12919, 13, 1045, 768, 12, 538, 18, 803, 18, 5701, 12, 4413, 5471, 67, 803, 16, 296, 4413, 5471, 18, 7066, 19899, 2411, 5471, 67, 7066, 16, 6156, 33, 8381, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 4413, 5471, 12, 2941, 67, 1214, 4672, 2411, 5471, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2941, 67, 1214, 16, 296, 4413, 5471, 6134, 6535, 12, 4413, 5471, 67, 803, 13, 1045, 768, 12, 538, 18, 803, 18, 5701, 12, 4413, 5471, 67, 803, 16, 4940, 2738, 25648, 2074, 19899, 3690, 882, 1693, 2627, 55, 67, 12919, 13, 1045, 768, 12, 538, 18, 803, 18, 5701, 12, 4413, 5471, 67, 803, 16, 296, 4413, 5471, 18, 7066, 19899, 2411, 5471, 67, 7066, 16, 6156, 33, 8381, 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 ]
'mvto':mvto,
'to':mvto,
def move(self, mvto, reason=False, movetalk=False, noredirect=False, watch=False, unwatch=False): """ Move the page Most params are self-explanatory mvto (move to) is the only required param must have "suppressredirect" right to use noredirect """ if not self.exists: raise NoPage token = self.getToken('move') params = { 'action': 'move', 'fromid':self.pageid, 'mvto':mvto, 'token':token, } if reason: params['reason'] = reason.encode('utf-8') if movetalk: params['movetalk'] = '1' if noredirect: params['noredirect'] = '1' if watch: params['watch'] = '1' if unwatch: params['unwatch'] = '1' req = api.APIRequest(self.site, params, write=False) result = req.query() if 'move' in result: self.title = result['move']['to'] if not isinstance(self.title, unicode): self.title = unicode(self.title, 'utf-8') self.urltitle = urllib.quote(self.title.encode('utf-8')).replace('%20', '_').replace('%2F', '/') else: self.urltitle = urllib.quote(self.title.encode('utf-8')).replace('%20', '_').replace('%2F', '/') return result
bf82abe3ecbe2a7fd86fcbd203ee221d9624a5d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8398/bf82abe3ecbe2a7fd86fcbd203ee221d9624a5d5/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 12, 2890, 16, 7701, 869, 16, 3971, 33, 8381, 16, 5730, 278, 2960, 33, 8381, 16, 290, 479, 7205, 33, 8381, 16, 4267, 33, 8381, 16, 640, 7585, 33, 8381, 4672, 3536, 9933, 326, 1363, 22099, 859, 854, 365, 17, 338, 7088, 8452, 7701, 869, 261, 8501, 358, 13, 353, 326, 1338, 1931, 579, 1297, 1240, 315, 10840, 7590, 6, 2145, 358, 999, 290, 479, 7205, 3536, 309, 486, 365, 18, 1808, 30, 1002, 2631, 1964, 1147, 273, 365, 18, 588, 1345, 2668, 8501, 6134, 859, 273, 288, 296, 1128, 4278, 296, 8501, 2187, 296, 2080, 350, 4278, 2890, 18, 30974, 16, 296, 869, 4278, 17509, 869, 16, 296, 2316, 4278, 2316, 16, 289, 309, 3971, 30, 859, 3292, 10579, 3546, 273, 3971, 18, 3015, 2668, 3158, 17, 28, 6134, 309, 5730, 278, 2960, 30, 859, 3292, 81, 1527, 278, 2960, 3546, 273, 296, 21, 11, 309, 290, 479, 7205, 30, 859, 3292, 82, 479, 7205, 3546, 273, 296, 21, 11, 309, 4267, 30, 859, 3292, 7585, 3546, 273, 296, 21, 11, 309, 640, 7585, 30, 859, 3292, 318, 7585, 3546, 273, 296, 21, 11, 1111, 273, 1536, 18, 2557, 691, 12, 2890, 18, 4256, 16, 859, 16, 1045, 33, 8381, 13, 563, 273, 1111, 18, 2271, 1435, 309, 296, 8501, 11, 316, 563, 30, 365, 18, 2649, 273, 563, 3292, 8501, 21712, 869, 3546, 309, 486, 1549, 12, 2890, 18, 2649, 16, 5252, 4672, 365, 18, 2649, 273, 5252, 12, 2890, 18, 2649, 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, 3635, 12, 2890, 16, 7701, 869, 16, 3971, 33, 8381, 16, 5730, 278, 2960, 33, 8381, 16, 290, 479, 7205, 33, 8381, 16, 4267, 33, 8381, 16, 640, 7585, 33, 8381, 4672, 3536, 9933, 326, 1363, 22099, 859, 854, 365, 17, 338, 7088, 8452, 7701, 869, 261, 8501, 358, 13, 353, 326, 1338, 1931, 579, 1297, 1240, 315, 10840, 7590, 6, 2145, 358, 999, 290, 479, 7205, 3536, 309, 486, 365, 18, 1808, 30, 1002, 2631, 1964, 1147, 273, 365, 18, 588, 1345, 2668, 8501, 6134, 859, 273, 288, 296, 1128, 4278, 296, 8501, 2187, 296, 2080, 350, 4278, 2890, 18, 30974, 16, 296, 869, 4278, 17509, 869, 16, 296, 2316, 4278, 2316, 16, 289, 309, 3971, 30, 2 ]
message = slskmessages.FileSearchResult(None, user, geoip, searchid, results, fileindex, slotsavail, self.speed, queuesizes, fifoqueue)
message = slskmessages.FileSearchResult(None, self.config.sections["server"]["login"], geoip, searchid, results, fileindex, slotsavail, self.speed, queuesizes, fifoqueue)
def processSearchRequest(self, searchterm, user, searchid, direct = 0): if searchterm is None: return
9aef0c1eee141aab4ff5f302f25da270d2e16a74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/9aef0c1eee141aab4ff5f302f25da270d2e16a74/pynicotine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2979, 691, 12, 2890, 16, 1623, 6408, 16, 729, 16, 1623, 350, 16, 2657, 273, 374, 4672, 309, 1623, 6408, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2979, 691, 12, 2890, 16, 1623, 6408, 16, 729, 16, 1623, 350, 16, 2657, 273, 374, 4672, 309, 1623, 6408, 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 ]
smtp_server = config['smtp_server'] if smtp_server.startswith('maildir:/'): from mailbox import Maildir maildir_path = smtp_server[8:] try: mdir = Maildir(maildir_path,factory=None, create = True) mdir.add(msg.as_string(True)) return True except Exception,e: netsvc.Logger().notifyChannel('email_send (maildir)', netsvc.LOG_ERROR, e) return False return _email_send(msg, openobject_id=openobject_id, debug=debug)
return _email_send(email_from, flatten([email_to, email_cc, email_bcc]), msg, openobject_id=openobject_id, ssl=ssl, debug=debug)
def write(self, s): self.logger.notifyChannel('email_send', netsvc.LOG_DEBUG, s)
3d8d4a173b87927fdf5ffb9de8e423ad1b1599b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3d8d4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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 272, 4672, 365, 18, 4901, 18, 12336, 2909, 2668, 3652, 67, 4661, 2187, 21954, 4227, 18, 4842, 67, 9394, 16, 272, 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 ]
if not f90: raise CompilerNotFound('f90')
def set_exe(exe_key, f77=None, f90=None): cmd = self.executables.get(exe_key, None) if not cmd: return None # Note that we get cmd[0] here if the environment doesn't # have anything set exe_from_environ = getattr(self.command_vars, exe_key) if not exe_from_environ: possibles = [f90, f77] + self.possible_executables else: possibles = [exe_from_environ] + self.possible_executables
888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14880, 12, 14880, 67, 856, 16, 284, 4700, 33, 7036, 16, 284, 9349, 33, 7036, 4672, 1797, 273, 365, 18, 4177, 322, 1538, 18, 588, 12, 14880, 67, 856, 16, 599, 13, 309, 486, 1797, 30, 327, 599, 468, 3609, 716, 732, 336, 1797, 63, 20, 65, 2674, 309, 326, 3330, 3302, 1404, 468, 1240, 6967, 444, 15073, 67, 2080, 67, 28684, 273, 3869, 12, 2890, 18, 3076, 67, 4699, 16, 15073, 67, 856, 13, 309, 486, 15073, 67, 2080, 67, 28684, 30, 949, 6044, 1040, 273, 306, 74, 9349, 16, 284, 4700, 65, 397, 365, 18, 12708, 67, 4177, 322, 1538, 469, 30, 949, 6044, 1040, 273, 306, 14880, 67, 2080, 67, 28684, 65, 397, 365, 18, 12708, 67, 4177, 322, 1538, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14880, 12, 14880, 67, 856, 16, 284, 4700, 33, 7036, 16, 284, 9349, 33, 7036, 4672, 1797, 273, 365, 18, 4177, 322, 1538, 18, 588, 12, 14880, 67, 856, 16, 599, 13, 309, 486, 1797, 30, 327, 599, 468, 3609, 716, 732, 336, 1797, 63, 20, 65, 2674, 309, 326, 3330, 3302, 1404, 468, 1240, 6967, 444, 15073, 67, 2080, 67, 28684, 273, 3869, 12, 2890, 18, 3076, 67, 4699, 16, 15073, 67, 856, 13, 309, 486, 15073, 67, 2080, 67, 28684, 30, 949, 6044, 1040, 273, 306, 74, 9349, 16, 284, 4700, 65, 397, 365, 18, 12708, 67, 4177, 322, 1538, 469, 30, 949, 6044, 1040, 273, 306, 14880, 67, 2080, 67, 28684, 65, 397, 2 ]
remainderString = " "+ number_to_string(remainder)
remainderString = " "+ number_to_words(remainder)
def number_to_words(number): if number == 0: return "none" if number < 20: return [ "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" ][number] if number < 100: factor = (number / 10) - 2 remainder = number % 10 if remainder: remainderString = " "+ number_to_string(remainder) return [ "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety" ][factor] + remainderString if number < 1000: factor = (number / 100) remainder = number % 100 parts = [ number_to_words(factor) +" hundred" ] if remainder: parts.append(number_to_words(remainder)) return " and ".join(parts) if number < 1000000: factor = number / 1000 remainder = number % 1000 parts = [ number_to_words(factor) +" thousand" ] if remainder: parts.append(number_to_words(remainder)) if remainder < 100: return " and ".join(parts) return ", ".join(parts) factor = number / 1000000 remainder = number % 1000000 parts = [ number_to_words(factor) +" million" ] if remainder: parts.append(number_to_words(remainder)) if remainder < 100: return " and ".join(parts) return ", ".join(parts)
7838c4218c8625ee01295721a88c709cad84abc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/7838c4218c8625ee01295721a88c709cad84abc4/textsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 869, 67, 3753, 12, 2696, 4672, 309, 1300, 422, 374, 30, 327, 315, 6102, 6, 225, 309, 1300, 411, 4200, 30, 327, 306, 315, 476, 3113, 315, 15415, 3113, 315, 451, 992, 3113, 315, 74, 477, 3113, 315, 74, 688, 3113, 315, 87, 697, 3113, 315, 307, 3995, 3113, 315, 1274, 3113, 315, 82, 558, 3113, 315, 2253, 3113, 315, 6516, 3995, 3113, 315, 11246, 292, 537, 3113, 315, 451, 481, 736, 275, 3113, 315, 74, 477, 736, 275, 3113, 315, 74, 430, 736, 275, 3113, 315, 87, 697, 736, 275, 3113, 315, 307, 616, 73, 275, 3113, 315, 1274, 73, 275, 3113, 315, 82, 267, 12865, 275, 6, 308, 63, 2696, 65, 225, 309, 1300, 411, 2130, 30, 5578, 273, 261, 2696, 342, 1728, 13, 300, 576, 10022, 273, 1300, 738, 1728, 309, 10022, 30, 10022, 780, 273, 315, 13773, 1300, 67, 869, 67, 3753, 12, 2764, 25407, 13, 327, 306, 315, 11246, 319, 93, 3113, 315, 451, 30012, 3113, 315, 74, 477, 4098, 3113, 315, 74, 2136, 93, 3113, 315, 87, 697, 4098, 3113, 315, 307, 616, 93, 3113, 315, 1274, 93, 3113, 315, 82, 267, 14369, 6, 308, 63, 6812, 65, 397, 10022, 780, 225, 309, 1300, 411, 4336, 30, 5578, 273, 261, 2696, 342, 2130, 13, 10022, 273, 1300, 738, 2130, 2140, 273, 306, 1300, 67, 869, 67, 3753, 12, 6812, 13, 397, 6, 366, 1074, 1118, 6, 308, 309, 10022, 30, 2140, 18, 6923, 12, 2696, 67, 869, 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, 1300, 67, 869, 67, 3753, 12, 2696, 4672, 309, 1300, 422, 374, 30, 327, 315, 6102, 6, 225, 309, 1300, 411, 4200, 30, 327, 306, 315, 476, 3113, 315, 15415, 3113, 315, 451, 992, 3113, 315, 74, 477, 3113, 315, 74, 688, 3113, 315, 87, 697, 3113, 315, 307, 3995, 3113, 315, 1274, 3113, 315, 82, 558, 3113, 315, 2253, 3113, 315, 6516, 3995, 3113, 315, 11246, 292, 537, 3113, 315, 451, 481, 736, 275, 3113, 315, 74, 477, 736, 275, 3113, 315, 74, 430, 736, 275, 3113, 315, 87, 697, 736, 275, 3113, 315, 307, 616, 73, 275, 3113, 315, 1274, 73, 275, 3113, 315, 82, 267, 12865, 275, 6, 308, 63, 2696, 65, 225, 309, 1300, 2 ]
self.extension_path = extension_path
self.extension_path = extension_path
def __init__(self, name=ANONYMOUS_PROFILE_NAME, port=DEFAULT_PORT, template_profile=None, extension_path=None): """Creates a FirefoxProfile.
fe70a540da47b72418f8f98fe1949a5bc7f7cb65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/fe70a540da47b72418f8f98fe1949a5bc7f7cb65/fir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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 33, 1258, 673, 61, 5980, 3378, 67, 22462, 67, 1985, 16, 1756, 33, 5280, 67, 6354, 16, 1542, 67, 5040, 33, 7036, 16, 2710, 67, 803, 33, 7036, 4672, 3536, 2729, 279, 22950, 4029, 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 ]
>>> a = TM(p, o2, o3) >>> type(a).__name__ '_Proxy' >>> a = removeSecurityProxy(a) >>> a.context[0] is o, a.context[1] is o2, a.context[2] is o3 (True, True, True) >>> a = TM(p, ProxyFactory(o2), ProxyFactory(o3)) >>> type(a).__name__ '_Proxy' >>> a = removeSecurityProxy(a) >>> a.context[0] is o, a.context[1] is o2, a.context[2] is o3 (True, True, True) The __parent__ will be set to the first object if the adapter is a location. M isn't a location, so the adapter has no __parent__: >>> a.__parent__ Traceback (most recent call last): ... AttributeError: 'M' object has no attribute '__parent__' But if we create an adapter that is a Location: >>> class L(A, Location): ... pass >>> TL = TrustedAdapterFactory(L) Then __parent__ will be set: >>> TL(o).__parent__ is o True >>> removeSecurityProxy(TL(p)).__parent__ is o True The factory adapter has the __name__ and __module__ of the factory it adapts: >>> (TA.__module__, TA.__name__) == (A.__module__, A.__name__) True """
see adapter.txt """
... def __init__(self, *context):
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 2472, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 2472, 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 ]
def validate(self, value):
def _validate(self, value):
def validate(self, value): if not isinstance(value, decimal.Decimal): raise zope.schema.ValidationError( "Value must be of type 'Decimal', not '%s'." % ( type(value).__name__) )
2bb51952418355129fdd1bbd0aa61b3c4cbe1ffa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8726/2bb51952418355129fdd1bbd0aa61b3c4cbe1ffa/field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 460, 4672, 309, 486, 1549, 12, 1132, 16, 6970, 18, 5749, 4672, 1002, 998, 1306, 18, 4821, 18, 12101, 12, 315, 620, 1297, 506, 434, 618, 296, 5749, 2187, 486, 1995, 87, 14550, 738, 261, 618, 12, 1132, 2934, 972, 529, 972, 13, 262, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5662, 12, 2890, 16, 460, 4672, 309, 486, 1549, 12, 1132, 16, 6970, 18, 5749, 4672, 1002, 998, 1306, 18, 4821, 18, 12101, 12, 315, 620, 1297, 506, 434, 618, 296, 5749, 2187, 486, 1995, 87, 14550, 738, 261, 618, 12, 1132, 2934, 972, 529, 972, 13, 262, 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 ]
class _SSLBioProxy:
class _BioProxy:
def listenTCP(port, factory, backlog=5, interface='', reactor=twisted.internet.reactor, postConnectionCheck=None): """ A convenience function to listen for TCP connections using Twisted. NOTE: You must call startTLS(ctx) to go into SSL/TLS mode. See IReactorTCP interface in Twisted. """ wrappingFactory = policies.WrappingFactory(factory) wrappingFactory.protocol = lambda factory, wrappedProtocol: \ TLSProtocolWrapper(factory, wrappedProtocol, startPassThrough=1, client=0, contextFactory=None, postConnectionCheck=postConnectionCheck) return reactor.listenTCP(port, wrappingFactory, backlog, interface)
a99db2ef84a088d900677844b0f1a047a8cfd25a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10522/a99db2ef84a088d900677844b0f1a047a8cfd25a/TwistedProtocolWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 13891, 12, 655, 16, 3272, 16, 1473, 1330, 33, 25, 16, 1560, 2218, 2187, 19178, 33, 11246, 25444, 18, 267, 14726, 18, 266, 3362, 16, 1603, 1952, 1564, 33, 7036, 4672, 3536, 432, 13553, 445, 358, 6514, 364, 9911, 5921, 1450, 12694, 25444, 18, 225, 5219, 30, 4554, 1297, 745, 787, 9905, 12, 5900, 13, 358, 1960, 1368, 7419, 19, 9905, 1965, 18, 225, 2164, 467, 426, 3362, 13891, 1560, 316, 12694, 25444, 18, 3536, 14702, 1733, 273, 8923, 18, 30888, 1733, 12, 6848, 13, 14702, 1733, 18, 8373, 273, 3195, 3272, 16, 5805, 5752, 30, 521, 8098, 5752, 3611, 12, 6848, 16, 5805, 5752, 16, 787, 6433, 14287, 33, 21, 16, 1004, 33, 20, 16, 819, 1733, 33, 7036, 16, 1603, 1952, 1564, 33, 2767, 1952, 1564, 13, 327, 19178, 18, 18085, 13891, 12, 655, 16, 14702, 1733, 16, 1473, 1330, 16, 1560, 13, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6514, 13891, 12, 655, 16, 3272, 16, 1473, 1330, 33, 25, 16, 1560, 2218, 2187, 19178, 33, 11246, 25444, 18, 267, 14726, 18, 266, 3362, 16, 1603, 1952, 1564, 33, 7036, 4672, 3536, 432, 13553, 445, 358, 6514, 364, 9911, 5921, 1450, 12694, 25444, 18, 225, 5219, 30, 4554, 1297, 745, 787, 9905, 12, 5900, 13, 358, 1960, 1368, 7419, 19, 9905, 1965, 18, 225, 2164, 467, 426, 3362, 13891, 1560, 316, 12694, 25444, 18, 3536, 14702, 1733, 273, 8923, 18, 30888, 1733, 12, 6848, 13, 14702, 1733, 18, 8373, 273, 3195, 3272, 16, 5805, 5752, 30, 521, 8098, 5752, 3611, 12, 6848, 16, 5805, 5752, 16, 787, 6433, 14287, 33, 21, 16, 1004, 33, 20, 16, 819, 2 ]
if invalid_module.internal_version != invalid_module.module_descriptor.version:
desc = None try:
def attempt_automatic_upgrade(controller, pipeline, module_id, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): """attempt_automatic_upgrade(module_id, pipeline): [Action]
6599e17ec5695db0a0389e47986fbae0d2b583d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/6599e17ec5695db0a0389e47986fbae0d2b583d5/upgradeworkflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 67, 5854, 4941, 67, 15097, 12, 5723, 16, 5873, 16, 1605, 67, 350, 16, 445, 67, 266, 1458, 28793, 1705, 67, 655, 67, 266, 1458, 28793, 3046, 67, 655, 67, 266, 1458, 28793, 3204, 67, 266, 1458, 12938, 4672, 3536, 11764, 67, 5854, 4941, 67, 15097, 12, 2978, 67, 350, 16, 5873, 4672, 306, 1803, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 67, 5854, 4941, 67, 15097, 12, 5723, 16, 5873, 16, 1605, 67, 350, 16, 445, 67, 266, 1458, 28793, 1705, 67, 655, 67, 266, 1458, 28793, 3046, 67, 655, 67, 266, 1458, 28793, 3204, 67, 266, 1458, 12938, 4672, 3536, 11764, 67, 5854, 4941, 67, 15097, 12, 2978, 67, 350, 16, 5873, 4672, 306, 1803, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: unicode('abc\001', codecname) except UnicodeError: print '\\001 maps to undefined: OK' else: print '*** check failed: \\001 does not map to undefined'
def test_maptoundefined(self): self.assertRaises(UnicodeError, unicode, 'abc\001', codecname) def test_main(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(CharmapCodecTest)) test.test_support.run_suite(suite) if __name__ == "__main__": test_main()
def check(a, b): if a != b: print '*** check failed: %s != %s' % (repr(a), repr(b)) else: print '%s == %s: OK' % (a, b)
1413fdd21de7ea15a17172fb1461ea80e82f70fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1413fdd21de7ea15a17172fb1461ea80e82f70fc/test_charmapcodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 69, 16, 324, 4672, 309, 279, 480, 324, 30, 1172, 296, 14465, 866, 2535, 30, 738, 87, 480, 738, 87, 11, 738, 261, 12715, 12, 69, 3631, 8480, 12, 70, 3719, 469, 30, 1172, 1995, 87, 422, 738, 87, 30, 7791, 11, 738, 261, 69, 16, 324, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 69, 16, 324, 4672, 309, 279, 480, 324, 30, 1172, 296, 14465, 866, 2535, 30, 738, 87, 480, 738, 87, 11, 738, 261, 12715, 12, 69, 3631, 8480, 12, 70, 3719, 469, 30, 1172, 1995, 87, 422, 738, 87, 30, 7791, 11, 738, 261, 69, 16, 324, 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 ]
"type" : "JClassDepJob",
"type" : "JCompileJob",
def listJobTriggers(self): return {
f5d4ca3e2e1dc0f3d07bc854aac0f88163180ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f5d4ca3e2e1dc0f3d07bc854aac0f88163180ebf/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2278, 15114, 12, 2890, 4672, 327, 288, 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,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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2278, 15114, 12, 2890, 4672, 327, 288, 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 ]
self.parser.parseError()
self.parser.parseError(_(u"Unexpected end tag (col). " u"col has no end tag."))
def endTagCol(self, name): self.parser.parseError()
d714b17ea5dc88de01658fc32a1153e84dbce4ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/d714b17ea5dc88de01658fc32a1153e84dbce4ff/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 914, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 914, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.location == 0:
if self.location == 0:
def put_zoom_image_to_window(self, currimg_preloaded):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 67, 14932, 67, 2730, 67, 869, 67, 5668, 12, 2890, 16, 4306, 6081, 67, 1484, 4230, 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, 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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, 1378, 67, 14932, 67, 2730, 67, 869, 67, 5668, 12, 2890, 16, 4306, 6081, 67, 1484, 4230, 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 ]
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_)
def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, nodeName_)
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 12, 3624, 18, 2692, 2934, 4650, 1435, 18919, 21, 65, 365, 18, 3510, 4212, 12, 3624, 16, 7553, 67, 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 ]
tokenNumber = self.PcdTokenNumber[pcd.TokenSpaceGuidCName, pcd.TokenCName]
tokenNumber = self.PcdTokenNumber[pcd.TokenCName, pcd.TokenSpaceGuidCName]
def CreateModulePcdCode(self, pcd): # # Write PCDs # #for TokenSpaceGuidCName in self.Module.Pcds: # Platform.PcdDatabase[ModuleSA]: # for C_Name in Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName]: # Pcd = Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName][C_Name] pcdTokenName = '_PCD_TOKEN_' + pcd.TokenCName if pcd.Type == TAB_PCDS_DYNAMIC_EX: tokenNumber = pcd.TokenValue else: tokenNumber = self.PcdTokenNumber[pcd.TokenSpaceGuidCName, pcd.TokenCName] self.AutoGenH.Append('#define %s %d\n' % (pcdTokenName, tokenNumber))
502c7f8e852c690f3cb00ab852f2902d8eb0db4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/502c7f8e852c690f3cb00ab852f2902d8eb0db4f/AutoGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3120, 52, 4315, 1085, 12, 2890, 16, 293, 4315, 4672, 468, 468, 2598, 453, 10160, 87, 468, 468, 1884, 3155, 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 14542, 468, 565, 364, 385, 67, 461, 316, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 6362, 1345, 3819, 22549, 39, 461, 14542, 468, 1377, 453, 4315, 273, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 6362, 1345, 3819, 22549, 39, 461, 6362, 39, 67, 461, 65, 293, 4315, 1345, 461, 273, 2070, 3513, 40, 67, 8412, 4623, 397, 293, 4315, 18, 1345, 39, 461, 309, 293, 4315, 18, 559, 422, 26158, 67, 3513, 3948, 67, 40, 25145, 67, 2294, 30, 1147, 1854, 273, 293, 4315, 18, 1345, 620, 469, 30, 1147, 1854, 273, 365, 18, 52, 4315, 1345, 1854, 63, 2436, 72, 18, 1345, 39, 461, 16, 293, 4315, 18, 1345, 3819, 22549, 39, 461, 65, 365, 18, 4965, 7642, 44, 18, 5736, 2668, 7, 11255, 738, 87, 225, 738, 72, 64, 82, 11, 738, 261, 2436, 72, 1345, 461, 16, 1147, 1854, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 14542, 468, 565, 364, 385, 67, 461, 316, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 6362, 1345, 3819, 22549, 39, 461, 14542, 468, 1377, 453, 4315, 273, 11810, 18, 52, 4315, 4254, 63, 3120, 5233, 6362, 1345, 3819, 22549, 39, 461, 6362, 39, 67, 461, 65, 293, 4315, 1345, 461, 273, 2070, 3513, 40, 67, 8412, 4623, 397, 293, 4315, 18, 1345, 39, 461, 309, 293, 4315, 18, 559, 422, 26158, 67, 3513, 3948, 67, 2 ]
if os.path.isabs(self.target_file._name) and self.target_file._name.startswith(MEDIA_URL): self.target_file._name = self.target_file._name[len(MEDIA_URL):]
if os.path.isabs(self.target_file.name) and self.target_file.name.startswith(MEDIA_URL): self.target_file.name = self.target_file.name[len(MEDIA_URL):]
def delete(self, *args, **kwargs): """ Delete entry; provide hack to fix old absolute-path-storing. """ import os # If needby, strip URL prefix if os.path.isabs(self.target_file._name) and self.target_file._name.startswith(MEDIA_URL): self.target_file._name = self.target_file._name[len(MEDIA_URL):] # In case trailing slash missing if self.target_file._name[0] is '/': self.target_file._name = self.target_file._name[1:] super(Media, self).delete(*args, **kwargs)
536e646a98dfecbbbc9af869621b9b089e72c04d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/536e646a98dfecbbbc9af869621b9b089e72c04d/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2504, 1241, 31, 5615, 11769, 358, 2917, 1592, 4967, 17, 803, 17, 334, 6053, 18, 3536, 1930, 1140, 468, 971, 1608, 1637, 16, 2569, 1976, 1633, 309, 1140, 18, 803, 18, 291, 5113, 12, 2890, 18, 3299, 67, 768, 18, 529, 13, 471, 365, 18, 3299, 67, 768, 18, 529, 18, 17514, 1918, 12, 26368, 67, 1785, 4672, 365, 18, 3299, 67, 768, 18, 529, 273, 365, 18, 3299, 67, 768, 18, 529, 63, 1897, 12, 26368, 67, 1785, 4672, 65, 468, 657, 648, 7341, 9026, 3315, 309, 365, 18, 3299, 67, 768, 6315, 529, 63, 20, 65, 353, 2023, 30, 365, 18, 3299, 67, 768, 6315, 529, 273, 365, 18, 3299, 67, 768, 6315, 529, 63, 21, 26894, 2240, 12, 5419, 16, 365, 2934, 3733, 30857, 1968, 16, 2826, 4333, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2504, 1241, 31, 5615, 11769, 358, 2917, 1592, 4967, 17, 803, 17, 334, 6053, 18, 3536, 1930, 1140, 468, 971, 1608, 1637, 16, 2569, 1976, 1633, 309, 1140, 18, 803, 18, 291, 5113, 12, 2890, 18, 3299, 67, 768, 18, 529, 13, 471, 365, 18, 3299, 67, 768, 18, 529, 18, 17514, 1918, 12, 26368, 67, 1785, 4672, 365, 18, 3299, 67, 768, 18, 529, 273, 365, 18, 3299, 67, 768, 18, 529, 63, 1897, 12, 26368, 67, 1785, 4672, 65, 468, 657, 648, 7341, 9026, 3315, 309, 365, 18, 3299, 67, 768, 6315, 529, 63, 20, 65, 353, 2023, 30, 365, 18, 3299, 67, 768, 6315, 2 ]
maxwidth = minwidth + ((2 ** auxdatalen.width) * 8) +
maxwidth = minwidth + ((2 ** auxdatalen.width) * 8) + \
def bounds(self, value): """Check the bounds of this field."""
5eccb02e90045c72191131d83261a0bde537827b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/5eccb02e90045c72191131d83261a0bde537827b/igmpv3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4972, 12, 2890, 16, 460, 4672, 3536, 1564, 326, 4972, 434, 333, 652, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4972, 12, 2890, 16, 460, 4672, 3536, 1564, 326, 4972, 434, 333, 652, 12123, 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 ]
un = self.getPureUserNames()
un = map(lambda x: x.getId(), self.getPureUsers())
def listUsersBatches(self,): """ listUsersBatches(self,) => return a list of (start, end) tuples. Return None if batching is not necessary """ # Time-consuming stuff ! un = self.getPureUserNames() if len(un) <= MAX_USERS_PER_PAGE: return None un.sort()
349a95cc3d754ca8884f37d7aef37803b7793cb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/349a95cc3d754ca8884f37d7aef37803b7793cb3/GroupUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6588, 31584, 12, 2890, 16, 4672, 3536, 666, 6588, 31584, 12, 2890, 16, 13, 516, 327, 279, 666, 434, 261, 1937, 16, 679, 13, 10384, 18, 2000, 599, 309, 2581, 310, 353, 486, 4573, 3536, 468, 2647, 17, 17664, 310, 10769, 401, 640, 273, 852, 12, 14661, 619, 30, 619, 18, 26321, 9334, 365, 18, 588, 13645, 6588, 10756, 309, 562, 12, 318, 13, 1648, 4552, 67, 30846, 67, 3194, 67, 11219, 30, 327, 599, 640, 18, 3804, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 666, 6588, 31584, 12, 2890, 16, 4672, 3536, 666, 6588, 31584, 12, 2890, 16, 13, 516, 327, 279, 666, 434, 261, 1937, 16, 679, 13, 10384, 18, 2000, 599, 309, 2581, 310, 353, 486, 4573, 3536, 468, 2647, 17, 17664, 310, 10769, 401, 640, 273, 852, 12, 14661, 619, 30, 619, 18, 26321, 9334, 365, 18, 588, 13645, 6588, 10756, 309, 562, 12, 318, 13, 1648, 4552, 67, 30846, 67, 3194, 67, 11219, 30, 327, 599, 640, 18, 3804, 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 ]
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, distOption, hardhatScript):
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, hardhatScript):
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, distOption, hardhatScript): # Create end-user, developer distributions print "Making distribution files for " + releaseMode log.write(separator) log.write("Making distribution files for " + releaseMode + "\n") if releaseMode == "debug": distOption = "-dD" else: distOption = "-D" try: outputList = hardhatutil.executeCommandReturnOutput( [hardhatScript, "-o", os.path.join(outputDir, buildVersion), distOption, buildVersionEscaped]) hardhatutil.dumpOutputList(outputList, log) except Exception, e: doCopyLog("***Error during distribution building process*** ", workingDir, logPath, log) raise e
b7d96f6e38cf31b878fa8c3597e8b8b36ca61582 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b7d96f6e38cf31b878fa8c3597e8b8b36ca61582/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 9003, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 16, 21412, 16, 1361, 1444, 16, 1361, 1444, 17208, 16, 7877, 11304, 3651, 4672, 468, 282, 1788, 679, 17, 1355, 16, 8751, 23296, 1172, 315, 49, 6159, 7006, 1390, 364, 315, 397, 3992, 2309, 613, 18, 2626, 12, 11287, 13, 613, 18, 2626, 2932, 49, 6159, 7006, 1390, 364, 315, 397, 3992, 2309, 397, 1548, 82, 7923, 309, 3992, 2309, 422, 315, 4148, 6877, 2411, 1895, 273, 3701, 72, 40, 6, 469, 30, 2411, 1895, 273, 3701, 40, 6, 225, 775, 30, 876, 682, 273, 7877, 11304, 1367, 18, 8837, 2189, 990, 1447, 12, 306, 20379, 11304, 3651, 16, 3701, 83, 3113, 1140, 18, 803, 18, 5701, 12, 2844, 1621, 16, 1361, 1444, 3631, 2411, 1895, 16, 1361, 1444, 17208, 5717, 7877, 11304, 1367, 18, 8481, 1447, 682, 12, 2844, 682, 16, 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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, 741, 9003, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 16, 21412, 16, 1361, 1444, 16, 1361, 1444, 17208, 16, 7877, 11304, 3651, 4672, 468, 282, 1788, 679, 17, 1355, 16, 8751, 23296, 1172, 315, 49, 6159, 7006, 1390, 364, 315, 397, 3992, 2309, 613, 18, 2626, 12, 11287, 13, 613, 18, 2626, 2932, 49, 6159, 7006, 1390, 364, 315, 397, 3992, 2309, 397, 1548, 82, 7923, 309, 3992, 2309, 422, 315, 4148, 6877, 2411, 1895, 273, 3701, 72, 40, 6, 469, 30, 2411, 1895, 273, 3701, 40, 6, 225, 775, 30, 876, 682, 273, 7877, 11304, 1367, 18, 8837, 2189, 990, 1447, 12, 306, 20379, 11304, 3651, 16, 3701, 83, 3113, 1140, 18, 803, 18, 5701, 12, 2 ]
length = length - 2
length = length - 1 break elif platformId == 1 and encodingId == 0 and languageId == 0 \ and nameId == 6: psName = self.get_chunk(string_data_offset + offset, length) for char in psName: char = ord(char) if char < 33 or char > 126 or chr(char) in \ ('[', ']', '(', ')', '{', '}', '<', '>', '/', '%'): raise TTFError, "PostScript contains invalid character %02X" % char break
def extractInfo(self, charInfo=1): """Extract typographic information from the loaded font file.
07507b8a952bfffc6323d9fd017854aa4f8705ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/07507b8a952bfffc6323d9fd017854aa4f8705ae/ttfonts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 966, 12, 2890, 16, 1149, 966, 33, 21, 4672, 3536, 4976, 3815, 16983, 1779, 628, 326, 4203, 3512, 585, 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,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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, 2608, 966, 12, 2890, 16, 1149, 966, 33, 21, 4672, 3536, 4976, 3815, 16983, 1779, 628, 326, 4203, 3512, 585, 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 ]
nodeConnections.append(0)
def crackConnections(crackConnectionImage): edges = [None] nodeImage = GrayImage(crackConnectionImage.size()) nodePositions = [None] for startPos in meshIter(crackConnectionImage.size()): #startPos = Point2D(*startPos) nodeConn = int(crackConnectionImage[startPos]) if isNode(nodeConn): startNode = int(nodeImage[startPos]) if not startNode: nodeImage[startPos] = startNode = len(nodePositions) << 4 nodePositions.append(Vector2(*startPos) - Vector2(0.5, 0.5)) nodeConnections.append(0) for direction, startConn in enumerate(connections): if nodeConn & startConn and not startNode & startConn: edge, endPos, endConn = followEdge( crackConnectionImage, startPos, direction) endNode = int(nodeImage[endPos]) if not endNode: endNode = len(nodePositions) << 4 nodePositions.append(Vector2(*endPos) - Vector2(0.5, 0.5)) assert not endNode & endConn, "double connection?" edges.append((startNode >> 4, endNode >> 4, Polygon(edge))) startNode |= startConn if endNode >> 4 == startNode >> 4: startNode |= endConn nodeImage[startPos] = startNode else: nodeImage[startPos] = startNode nodeImage[endPos] = endNode | endConn return nodePositions, edges
2daee55c485c15dd62d69be06fc16ad48f1752ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/2daee55c485c15dd62d69be06fc16ad48f1752ec/crackConvert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 9314, 12, 71, 21580, 1952, 2040, 4672, 5231, 273, 306, 7036, 65, 756, 2040, 273, 12435, 2040, 12, 71, 21580, 1952, 2040, 18, 1467, 10756, 756, 11024, 273, 306, 7036, 65, 364, 16013, 316, 6986, 2360, 12, 71, 21580, 1952, 2040, 18, 1467, 1435, 4672, 468, 1937, 1616, 273, 4686, 22, 40, 30857, 1937, 1616, 13, 756, 3543, 273, 509, 12, 71, 21580, 1952, 2040, 63, 1937, 1616, 5717, 309, 28452, 12, 2159, 3543, 4672, 25467, 273, 509, 12, 2159, 2040, 63, 1937, 1616, 5717, 309, 486, 25467, 30, 756, 2040, 63, 1937, 1616, 65, 273, 25467, 273, 562, 12, 2159, 11024, 13, 2296, 1059, 756, 11024, 18, 6923, 12, 5018, 22, 30857, 1937, 1616, 13, 300, 5589, 22, 12, 20, 18, 25, 16, 374, 18, 25, 3719, 364, 4068, 16, 787, 3543, 316, 4241, 12, 13313, 4672, 309, 756, 3543, 473, 787, 3543, 471, 486, 25467, 473, 787, 3543, 30, 3591, 16, 19809, 16, 679, 3543, 273, 2805, 6098, 12, 276, 21580, 1952, 2040, 16, 16013, 16, 4068, 13, 679, 907, 273, 509, 12, 2159, 2040, 63, 409, 1616, 5717, 309, 486, 679, 907, 30, 679, 907, 273, 562, 12, 2159, 11024, 13, 2296, 1059, 756, 11024, 18, 6923, 12, 5018, 22, 30857, 409, 1616, 13, 300, 5589, 22, 12, 20, 18, 25, 16, 374, 18, 25, 3719, 1815, 486, 679, 907, 473, 679, 3543, 16, 315, 9056, 1459, 7225, 5231, 18, 6923, 12443, 1937, 907, 1671, 1059, 16, 679, 907, 1671, 1059, 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, 276, 21580, 9314, 12, 71, 21580, 1952, 2040, 4672, 5231, 273, 306, 7036, 65, 756, 2040, 273, 12435, 2040, 12, 71, 21580, 1952, 2040, 18, 1467, 10756, 756, 11024, 273, 306, 7036, 65, 364, 16013, 316, 6986, 2360, 12, 71, 21580, 1952, 2040, 18, 1467, 1435, 4672, 468, 1937, 1616, 273, 4686, 22, 40, 30857, 1937, 1616, 13, 756, 3543, 273, 509, 12, 71, 21580, 1952, 2040, 63, 1937, 1616, 5717, 309, 28452, 12, 2159, 3543, 4672, 25467, 273, 509, 12, 2159, 2040, 63, 1937, 1616, 5717, 309, 486, 25467, 30, 756, 2040, 63, 1937, 1616, 65, 273, 25467, 273, 562, 12, 2159, 11024, 13, 2296, 1059, 756, 11024, 18, 6923, 12, 5018, 22, 30857, 1937, 1616, 13, 2 ]
print "nextPktNum: New Time"
LOG.debug( "nextPktNum: New Time" )
def nextPktNum(self):
94194b78b83de3d89b6ffd035804de2c82bbaff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/94194b78b83de3d89b6ffd035804de2c82bbaff0/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 7789, 88, 2578, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 7789, 88, 2578, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
This example involves a `p`-adic number. ::
This example involves a `p`-adic number::
def algdep(z, degree, known_bits=None, use_bits=None, known_digits=None, use_digits=None, height_bound=None, proof=False): """ Returns a polynomial of degree at most `degree` which is approximately satisfied by the number `z`. Note that the returned polynomial need not be irreducible, and indeed usually won't be if `z` is a good approximation to an algebraic number of degree less than `degree`. You can specify the number of known bits or digits with ``known_bits=k`` or ``known_digits=k``; Pari is then told to compute the result using `0.8k` of these bits/digits. (The Pari documentation recommends using a factor between .6 and .9, but internally defaults to .8.) Or, you can specify the precision to use directly with ``use_bits=k`` or ``use_digits=k``. If none of these are specified, then the precision is taken from the input value. A height bound may specified to indicate the maximum coefficient size of the returned polynomial; if a sufficiently small polyomial is not found then ``None`` wil be returned. If ``proof=True`` then the result is returned only if it can be proved correct (i.e. the only possible minimal polynomial satisfying the height bound, or no such polynomial exists). Otherwise a ``ValueError`` is raised indicating that higher precision is required. ALGORITHM: Uses LLL for real/complex inputs, PARI C-library algdep command otherwise. Note that ``algebraic_dependency`` is a synonym for ``algdep``. INPUT: - ``z`` - real, complex, or `p`-adic number - ``degree`` - an integer - ``height_bound`` - an integer (default ``None``) specifying the maximum coefficient size for the returned polynomial - ``proof`` - a boolean (default ``False``), requres height_bound to be set EXAMPLES:: sage: algdep(1.888888888888888, 1) 9*x - 17 sage: algdep(0.12121212121212,1) 33*x - 4 sage: algdep(sqrt(2),2) x^2 - 2 This example involves a complex number. :: sage: z = (1/2)*(1 + RDF(sqrt(3)) *CC.0); z 0.500000000000000 + 0.866025403784439*I sage: p = algdep(z, 6); p x^3 + 1 sage: p.factor() (x + 1) * (x^2 - x + 1) sage: z^2 - z + 1 0 This example involves a `p`-adic number. :: sage: K = Qp(3, print_mode = 'series') sage: a = K(7/19); a 1 + 2*3 + 3^2 + 3^3 + 2*3^4 + 2*3^5 + 3^8 + 2*3^9 + 3^11 + 3^12 + 2*3^15 + 2*3^16 + 3^17 + 2*3^19 + O(3^20) sage: algdep(a, 1) 19*x - 7 These examples show the importance of proper precision control. We compute a 200-bit approximation to sqrt(2) which is wrong in the 33'rd bit. :: sage: z = sqrt(RealField(200)(2)) + (1/2)^33 sage: p = algdep(z, 4); p 227004321085*x^4 - 216947902586*x^3 - 99411220986*x^2 + 82234881648*x - 211871195088 sage: factor(p) 227004321085*x^4 - 216947902586*x^3 - 99411220986*x^2 + 82234881648*x - 211871195088 sage: algdep(z, 4, known_bits=32) x^2 - 2 sage: algdep(z, 4, known_digits=10) x^2 - 2 sage: algdep(z, 4, use_bits=25) x^2 - 2 sage: algdep(z, 4, use_digits=8) x^2 - 2 Using the ``height_bound`` and ``proof`` parameters, we can see that `pi` is not the root of an integer polynomial of degree at most 5 and coefficients bounded above by 10. :: sage: algdep(pi.n(), 5, height_bound=10, proof=True) is None True For stronger results, we need more precicion. :: sage: algdep(pi.n(), 5, height_bound=100, proof=True) is None Traceback (most recent call last): ... ValueError: insufficient precision for non-existence proof sage: algdep(pi.n(200), 5, height_bound=100, proof=True) is None True sage: algdep(pi.n(), 10, height_bound=10, proof=True) is None Traceback (most recent call last): ... ValueError: insufficient precision for non-existence proof sage: algdep(pi.n(200), 10, height_bound=10, proof=True) is None True We can also use ``proof=True`` to get positive results. :: sage: a = sqrt(2) + sqrt(3) + sqrt(5) sage: algdep(a.n(), 8, height_bound=1000, proof=True) Traceback (most recent call last): ... ValueError: insufficient precision for uniqueness proof sage: f = algdep(a.n(1000), 8, height_bound=1000, proof=True); f x^8 - 40*x^6 + 352*x^4 - 960*x^2 + 576 sage: f(a).expand() 0 """ if proof and not height_bound: raise ValueError, "height_bound must be given for proof=True" x = ZZ['x'].gen() if isinstance(z, (int, long, integer.Integer)): if height_bound and abs(z) >= height_bound: return None return x - ZZ(z) degree = ZZ(degree) if isinstance(z, (sage.rings.rational.Rational)): if height_bound and max(abs(z.denominator()), abs(z.numerator())) >= height_bound: return None return z.denominator()*x - z.numerator() if isinstance(z, float): z = sage.rings.real_mpfr.RR(z) elif isinstance(z, complex): z = sage.rings.complex_field.CC(z) if isinstance(z, (sage.rings.real_mpfr.RealNumber, sage.rings.complex_number.ComplexNumber)): log2_10 = 3.32192809488736 prec = z.prec() - 6 if known_digits is not None: known_bits = known_digits * log2_10 if known_bits is not None: use_bits = known_bits * 0.8 if use_digits is not None: use_bits = use_digits * log2_10 if use_bits is not None: prec = int(use_bits) is_complex = isinstance(z, sage.rings.complex_number.ComplexNumber) n = degree+1 from sage.matrix.all import matrix M = matrix(ZZ, n, n+1+int(is_complex)) r = ZZ(1) << prec M[0, 0] = 1 M[0,-1] = r for k in range(1, degree+1): M[k,k] = 1 r *= z if is_complex: M[k, -1] = r.real().round() M[k, -2] = r.imag().round() else: M[k, -1] = r.round() LLL = M.LLL(delta=.75) coeffs = LLL[0][:n] if height_bound: def norm(v): # norm on an integer vector invokes Integer.sqrt() which tries to factor... from sage.rings.real_mpfi import RIF return v.change_ring(RIF).norm() if max(abs(a) for a in coeffs) > height_bound: if proof: # Given an LLL reduced basis $b_1, ..., b_n$, we only # know that $|b_1| <= 2^((n-1)/2) |x|$ for non-zero $x \in L$. if norm(LLL[0]) <= 2**((n-1)/2) * n.sqrt() * height_bound: raise ValueError, "insufficient precision for non-existence proof" return None elif proof and norm(LLL[1]) < 2**((n-1)/2) * max(norm(LLL[0]), n.sqrt()*height_bound): raise ValueError, "insufficient precision for uniqueness proof" if coeffs[degree] < 0: coeffs = -coeffs f = list(coeffs) elif proof or height_bound: raise NotImplementedError, "proof and height bound only implemented for real and complex numbers" else: y = pari(z) f = y.algdep(degree) return x.parent()(f)
77a54f69e28a7333c3cd3eba5214f2a668319f2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/77a54f69e28a7333c3cd3eba5214f2a668319f2c/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036, 16, 14601, 33, 8381, 4672, 3536, 2860, 279, 16991, 434, 10782, 622, 4486, 1375, 21361, 68, 1492, 353, 26962, 5173, 18958, 635, 326, 1300, 1375, 94, 8338, 3609, 716, 326, 2106, 16991, 1608, 486, 506, 9482, 1118, 5286, 1523, 16, 471, 316, 323, 329, 11234, 8462, 1404, 506, 309, 1375, 94, 68, 353, 279, 7494, 24769, 358, 392, 524, 29087, 335, 1300, 434, 10782, 5242, 2353, 1375, 21361, 8338, 225, 4554, 848, 4800, 326, 1300, 434, 4846, 4125, 578, 6815, 598, 12176, 2994, 67, 6789, 33, 79, 10335, 578, 12176, 2994, 67, 16649, 33, 79, 10335, 31, 2280, 77, 353, 1508, 268, 1673, 358, 3671, 326, 563, 1450, 1375, 20, 18, 28, 79, 68, 434, 4259, 4125, 19, 16649, 18, 261, 1986, 2280, 77, 7323, 10519, 5839, 1450, 279, 5578, 3086, 263, 26, 471, 263, 29, 16, 1496, 12963, 3467, 358, 263, 28, 12998, 2965, 16, 1846, 848, 4800, 326, 6039, 358, 999, 5122, 598, 12176, 1202, 67, 6789, 33, 79, 10335, 578, 12176, 1202, 67, 16649, 33, 79, 68, 8338, 971, 6555, 434, 4259, 854, 1269, 16, 1508, 326, 6039, 353, 9830, 628, 326, 810, 460, 18, 225, 432, 2072, 2489, 2026, 1269, 358, 10768, 326, 4207, 16554, 963, 434, 326, 2106, 16991, 31, 309, 279, 18662, 715, 5264, 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, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036, 16, 14601, 33, 8381, 4672, 3536, 2860, 279, 16991, 434, 10782, 622, 4486, 1375, 21361, 68, 1492, 353, 26962, 5173, 18958, 635, 326, 1300, 1375, 94, 8338, 3609, 716, 326, 2106, 16991, 1608, 486, 506, 9482, 1118, 5286, 1523, 16, 471, 316, 323, 329, 11234, 8462, 1404, 506, 309, 1375, 94, 68, 353, 279, 7494, 24769, 358, 392, 524, 29087, 335, 1300, 434, 10782, 5242, 2353, 1375, 21361, 8338, 225, 4554, 848, 4800, 326, 1300, 434, 4846, 4125, 578, 6815, 598, 12176, 2 ]
if self.kana[-2:]=="-2": self.kana = self.kana[:-2] if answer==self.kana:
if self.kana[-2:] == "-2": self.kana = self.kana[:-2] if answer == self.kana:
def checkAnswer(self,widget): """Check the given answer, update the score and display the result. """
64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 13203, 12, 2890, 16, 6587, 4672, 3536, 1564, 326, 864, 5803, 16, 1089, 326, 4462, 471, 2562, 326, 563, 18, 225, 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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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, 866, 13203, 12, 2890, 16, 6587, 4672, 3536, 1564, 326, 864, 5803, 16, 1089, 326, 4462, 471, 2562, 326, 563, 18, 225, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DeleteKey(key, "sub_key")
DeleteKey(key, subkeystr)
def DeleteTestData(self, root_key): key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) sub_key = OpenKey(key, "sub_key", 0, KEY_ALL_ACCESS) # It is not necessary to delete the values before deleting # the key (although subkeys must not exist). We delete them # manually just to prove we can :-) for value_name, value_data, value_type in test_data: DeleteValue(sub_key, value_name)
27c230b00f34c7b812823e0eb8f7f9a484a40253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/27c230b00f34c7b812823e0eb8f7f9a484a40253/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 273, 3502, 653, 12, 856, 16, 315, 1717, 67, 856, 3113, 374, 16, 5311, 67, 4685, 67, 13204, 13, 468, 2597, 353, 486, 4573, 358, 1430, 326, 924, 1865, 12993, 468, 326, 498, 261, 4162, 4966, 720, 2452, 1297, 486, 1005, 2934, 225, 1660, 1430, 2182, 468, 10036, 2537, 358, 450, 537, 732, 848, 294, 17, 13, 364, 460, 67, 529, 16, 460, 67, 892, 16, 460, 67, 723, 316, 1842, 67, 892, 30, 2504, 620, 12, 1717, 67, 856, 16, 460, 67, 529, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 273, 3502, 653, 12, 856, 16, 315, 1717, 67, 856, 3113, 374, 16, 5311, 67, 4685, 67, 13204, 13, 468, 2597, 353, 486, 4573, 358, 1430, 326, 924, 1865, 12993, 468, 326, 498, 261, 4162, 4966, 720, 2452, 1297, 486, 1005, 2934, 225, 1660, 1430, 2182, 468, 10036, 2537, 358, 450, 537, 732, 848, 294, 17, 13, 364, 460, 67, 529, 16, 460, 67, 892, 16, 460, 67, 723, 316, 1842, 67, 892, 30, 2504, 620, 12, 1717, 67, 856, 16, 460, 2 ]
('01__actual__name', 'actual__name'), ]:
('01__actual__name.tsv', 'actual__name.tsv'), ('no_prefix_here.html', 'no_prefix_here.html') ]:
def test_remove_prefix(self): for inp, exp in [ ('01__hello', 'hello'), ('textual_prefix__hello', 'hello'), ('01__actual__name', 'actual__name'), ]: assert_equals(_remove_prefix(inp), exp)
017e22f3d6d4d6035562ac7608112fbbb0e0c22c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/017e22f3d6d4d6035562ac7608112fbbb0e0c22c/test_misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 67, 3239, 12, 2890, 4672, 364, 12789, 16, 1329, 316, 306, 7707, 1611, 972, 23711, 2187, 296, 23711, 19899, 7707, 955, 1462, 67, 3239, 972, 23711, 2187, 296, 23711, 19899, 7707, 1611, 972, 18672, 972, 529, 18, 25338, 2187, 296, 18672, 972, 529, 18, 25338, 19899, 7707, 2135, 67, 3239, 67, 14852, 18, 2620, 2187, 296, 2135, 67, 3239, 67, 14852, 18, 2620, 6134, 308, 30, 1815, 67, 14963, 24899, 4479, 67, 3239, 12, 31647, 3631, 1329, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4479, 67, 3239, 12, 2890, 4672, 364, 12789, 16, 1329, 316, 306, 7707, 1611, 972, 23711, 2187, 296, 23711, 19899, 7707, 955, 1462, 67, 3239, 972, 23711, 2187, 296, 23711, 19899, 7707, 1611, 972, 18672, 972, 529, 18, 25338, 2187, 296, 18672, 972, 529, 18, 25338, 19899, 7707, 2135, 67, 3239, 67, 14852, 18, 2620, 2187, 296, 2135, 67, 3239, 67, 14852, 18, 2620, 6134, 308, 30, 1815, 67, 14963, 24899, 4479, 67, 3239, 12, 31647, 3631, 1329, 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 ]
pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll))
pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll))
def main(): # Use Makefile for windows. distutils doesn't work well with windows. if sys.platform == 'win32': pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll)) return pacparser_module = Extension('_pacparser', include_dirs = ['../spidermonkey/js/src', '..'], sources = ['pacparser_py.c'], extra_objects = ['../pacparser.o', '../libjs.a']) setup (name = 'pacparser', version = '1', description = 'Pacparser package', author = 'Manu Garg', author_email = '[email protected]', url = 'http://code.google.com/p/pacparser', long_description = 'python library to parse proxy auto-config (PAC) ' 'files.', license = 'LGPL', ext_package = 'pacparser', ext_modules = [pacparser_module], py_modules = ['pacparser.__init__'])
85d193ec0c9cfe2cb12c1e3d7b46ecada64a2873 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9887/85d193ec0c9cfe2cb12c1e3d7b46ecada64a2873/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 2672, 4344, 768, 364, 9965, 18, 2411, 5471, 3302, 1404, 1440, 5492, 598, 9965, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2395, 27670, 273, 7707, 39, 5581, 13226, 64, 4299, 1578, 64, 8103, 9, 87, 18, 27670, 11, 738, 2589, 1425, 18, 588, 67, 1425, 67, 4699, 2668, 5757, 6134, 63, 20, 5717, 1140, 18, 4299, 2668, 6540, 300, 74, 4344, 768, 18, 8082, 1578, 738, 87, 12191, 67, 14209, 11613, 87, 6, 12191, 67, 40, 4503, 11613, 87, 5187, 738, 7707, 2418, 5701, 12, 9499, 18, 19485, 63, 21, 26894, 3631, 2589, 18, 3239, 16, 2395, 27670, 3719, 327, 225, 293, 1077, 4288, 67, 2978, 273, 10021, 2668, 67, 84, 1077, 4288, 2187, 2341, 67, 8291, 273, 10228, 6216, 1752, 350, 1035, 265, 856, 19, 2924, 19, 4816, 2187, 11597, 17337, 5550, 273, 10228, 84, 1077, 4288, 67, 2074, 18, 71, 17337, 2870, 67, 6911, 273, 10228, 6216, 84, 1077, 4288, 18, 83, 2187, 25226, 549, 441, 87, 18, 69, 19486, 3875, 261, 529, 273, 296, 84, 1077, 4288, 2187, 1177, 273, 296, 21, 2187, 2477, 273, 296, 52, 1077, 4288, 2181, 2187, 2869, 273, 296, 5669, 89, 611, 3175, 2187, 2869, 67, 3652, 273, 296, 4728, 637, 3175, 36, 75, 4408, 18, 832, 2187, 880, 273, 296, 2505, 2207, 710, 18, 9536, 18, 832, 19, 84, 19, 84, 1077, 4288, 2187, 1525, 67, 3384, 273, 296, 8103, 5313, 358, 1109, 2889, 3656, 17, 1425, 261, 52, 2226, 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, 2774, 13332, 468, 2672, 4344, 768, 364, 9965, 18, 2411, 5471, 3302, 1404, 1440, 5492, 598, 9965, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2395, 27670, 273, 7707, 39, 5581, 13226, 64, 4299, 1578, 64, 8103, 9, 87, 18, 27670, 11, 738, 2589, 1425, 18, 588, 67, 1425, 67, 4699, 2668, 5757, 6134, 63, 20, 5717, 1140, 18, 4299, 2668, 6540, 300, 74, 4344, 768, 18, 8082, 1578, 738, 87, 12191, 67, 14209, 11613, 87, 6, 12191, 67, 40, 4503, 11613, 87, 5187, 738, 7707, 2418, 5701, 12, 9499, 18, 19485, 63, 21, 26894, 3631, 2589, 18, 3239, 16, 2395, 27670, 3719, 327, 225, 293, 1077, 4288, 67, 2978, 273, 10021, 2668, 67, 84, 1077, 2 ]
print "DEBUG: data:" print data
print "DEBUG: str1='%s', str2='%s', str3='%s', str4='%s'" %(str1, str2, str3, str4)
def destroy(obj, event, data): print "DEBUG: window destroy callback called!" print "DEBUG: data:" print data elementary.exit()
dff3caa2ec713908f112c4970120d3d880226170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/dff3caa2ec713908f112c4970120d3d880226170/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 12, 2603, 16, 871, 16, 501, 4672, 1172, 315, 9394, 30, 2742, 5546, 1348, 2566, 4442, 1172, 315, 9394, 30, 609, 21, 28713, 87, 2187, 609, 22, 28713, 87, 2187, 609, 23, 28713, 87, 2187, 609, 24, 28713, 87, 4970, 8975, 701, 21, 16, 609, 22, 16, 609, 23, 16, 609, 24, 13, 930, 814, 18, 8593, 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 ]
'shadow': 'fo:text-shadow'}
'shadow': 'fo:text-shadow', 'stroke': 'draw:stroke', 'fill_color': 'draw:fill-color', 'fill_image_width': 'draw:fill-image-width', 'fill_image_height': 'draw:fill-image-height', 'textarea_vertical_align': 'draw:textarea-vertical-align', 'line_distance': 'draw:line-distance', 'guide_overhang': 'draw:guide-overhang', 'guide_distance': 'draw:guide-distance' }
def _expand_properties(properties): # This mapping is not exhaustive, it only contains cases where replacing # '_' with '-' and adding the "fo:" prefix is not enough mapping = {# text 'font': 'style:font-name', 'size': 'fo:font-size', 'weight': 'fo:font-weight', 'style': 'fo:font-style', 'underline': 'style:text-underline-style', 'display': 'text:display', # paragraph 'align': 'fo:text-align', 'align-last': 'fo:text-align-last', 'indent': 'fo:text-indent', 'together': 'fo:keep-together', # TODO 'page-break-before': 'fo:page-break-before', # TODO 'page-break-after': 'fo:page-break-after', 'shadow': 'fo:text-shadow'} def map_key(key): key = mapping.get(key, key).replace('_', '-') if ":" not in key: key = "fo:" + key return key if type(properties) is dict: expanded = {} for key, value in properties.iteritems(): key = map_key(key) expanded[key] = value elif type(properties) is list: expanded = [] for key in properties: key = map_key(key) expanded.append(key) return expanded
ce033cd55fb60df835dde8066e973f6c4b1a713b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10612/ce033cd55fb60df835dde8066e973f6c4b1a713b/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 67, 4738, 12, 4738, 4672, 468, 1220, 2874, 353, 486, 19575, 641, 688, 16, 518, 1338, 1914, 6088, 1625, 13993, 468, 4427, 598, 4014, 471, 6534, 326, 315, 617, 2773, 1633, 353, 486, 7304, 2874, 273, 288, 7, 977, 296, 5776, 4278, 296, 4060, 30, 5776, 17, 529, 2187, 296, 1467, 4278, 296, 617, 30, 5776, 17, 1467, 2187, 296, 4865, 4278, 296, 617, 30, 5776, 17, 4865, 2187, 296, 4060, 4278, 296, 617, 30, 5776, 17, 4060, 2187, 296, 9341, 1369, 4278, 296, 4060, 30, 955, 17, 9341, 1369, 17, 4060, 2187, 296, 5417, 4278, 296, 955, 30, 5417, 2187, 468, 10190, 296, 7989, 4278, 296, 617, 30, 955, 17, 7989, 2187, 296, 7989, 17, 2722, 4278, 296, 617, 30, 955, 17, 7989, 17, 2722, 2187, 296, 9355, 4278, 296, 617, 30, 955, 17, 9355, 2187, 296, 88, 717, 2437, 4278, 296, 617, 30, 10102, 17, 88, 717, 2437, 2187, 468, 2660, 296, 2433, 17, 8820, 17, 5771, 4278, 296, 617, 30, 2433, 17, 8820, 17, 5771, 2187, 468, 2660, 296, 2433, 17, 8820, 17, 5205, 4278, 296, 617, 30, 2433, 17, 8820, 17, 5205, 2187, 296, 19119, 4278, 296, 617, 30, 955, 17, 19119, 2187, 225, 296, 16181, 4278, 296, 9446, 30, 16181, 2187, 296, 5935, 67, 3266, 4278, 296, 9446, 30, 5935, 17, 3266, 2187, 296, 5935, 67, 2730, 67, 2819, 4278, 296, 9446, 30, 5935, 17, 2730, 17, 2819, 2187, 296, 5935, 67, 2730, 67, 4210, 4278, 296, 9446, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 67, 4738, 12, 4738, 4672, 468, 1220, 2874, 353, 486, 19575, 641, 688, 16, 518, 1338, 1914, 6088, 1625, 13993, 468, 4427, 598, 4014, 471, 6534, 326, 315, 617, 2773, 1633, 353, 486, 7304, 2874, 273, 288, 7, 977, 296, 5776, 4278, 296, 4060, 30, 5776, 17, 529, 2187, 296, 1467, 4278, 296, 617, 30, 5776, 17, 1467, 2187, 296, 4865, 4278, 296, 617, 30, 5776, 17, 4865, 2187, 296, 4060, 4278, 296, 617, 30, 5776, 17, 4060, 2187, 296, 9341, 1369, 4278, 296, 4060, 30, 955, 17, 9341, 1369, 17, 4060, 2187, 296, 5417, 4278, 296, 955, 30, 5417, 2187, 468, 10190, 296, 7989, 4278, 296, 617, 30, 955, 17, 7989, 2187, 296, 7989, 17, 2 ]
assert oct(wa) == zs
def test01_SimpleMethods(self): if verbose: print '\n', '-=' * 30 print "Running %s.test01_SimpleMethods..." % \ self.__class__.__name__ print "\ta:\t%s\t%s\t0x%x" % (type(self.a), self.a, self.a) print "\tb:\t%s\t%s\t0x%x" % (type(self.b), self.b, self.b) print "\tc:\t%s\t%s\t0x%x" % (type(self.c), self.c, self.c)
3f6155b6e28fedbc1e082dbf1bca55535715aa77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1057/3f6155b6e28fedbc1e082dbf1bca55535715aa77/test_methods.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 5784, 4712, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 5784, 4712, 7070, 738, 521, 365, 16186, 1106, 972, 16186, 529, 972, 1172, 1548, 2351, 5581, 88, 9, 87, 64, 88, 9, 87, 64, 88, 20, 92, 9, 92, 6, 738, 261, 723, 12, 2890, 18, 69, 3631, 365, 18, 69, 16, 365, 18, 69, 13, 1172, 1548, 18587, 5581, 88, 9, 87, 64, 88, 9, 87, 64, 88, 20, 92, 9, 92, 6, 738, 261, 723, 12, 2890, 18, 70, 3631, 365, 18, 70, 16, 365, 18, 70, 13, 1172, 1548, 5111, 5581, 88, 9, 87, 64, 88, 9, 87, 64, 88, 20, 92, 9, 92, 6, 738, 261, 723, 12, 2890, 18, 71, 3631, 365, 18, 71, 16, 365, 18, 71, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 5784, 4712, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 5784, 4712, 7070, 738, 521, 365, 16186, 1106, 972, 16186, 529, 972, 1172, 1548, 2351, 5581, 88, 9, 87, 64, 88, 9, 87, 64, 88, 20, 92, 9, 92, 6, 738, 261, 723, 12, 2890, 18, 69, 3631, 365, 18, 69, 16, 365, 18, 69, 13, 1172, 1548, 18587, 5581, 88, 9, 87, 64, 88, 9, 87, 64, 88, 20, 92, 9, 92, 6, 738, 261, 723, 12, 2890, 18, 70, 3631, 365, 18, 70, 16, 365, 18, 70, 13, 1172, 1548, 5111, 5581, 88, 9, 87, 64, 88, 9, 2 ]
should be a single type object
should be a single string describing thd desired type
def __instantiator(self, type_blob, relative_to, **kwargs): """ Instantiate a type, which is defined by a type blob in the following format:
1971fbb523d07729bbc5e3fee87b01faf4378828 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12876/1971fbb523d07729bbc5e3fee87b01faf4378828/runner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 24628, 10620, 12, 2890, 16, 618, 67, 10721, 16, 3632, 67, 869, 16, 2826, 4333, 4672, 3536, 26492, 279, 618, 16, 1492, 353, 2553, 635, 279, 618, 4795, 316, 326, 3751, 740, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 24628, 10620, 12, 2890, 16, 618, 67, 10721, 16, 3632, 67, 869, 16, 2826, 4333, 4672, 3536, 26492, 279, 618, 16, 1492, 353, 2553, 635, 279, 618, 4795, 316, 326, 3751, 740, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""returns an invalid value and expected parse result by index."""
"""overridden from Argument."""
def GetInvalidArg(self, offset, index): """returns an invalid value and expected parse result by index.""" return ("-1", "kNoError", "GL_INVALID_VALUE")
1ef566cc7626f0180e4b8b44da00e60fdbb0de8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1ef566cc7626f0180e4b8b44da00e60fdbb0de8e/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 4051, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 4051, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
children = list(self.getChildrenView()) for child in children: if child.is_watched_folder(): child.setVisible(False) child.set_folder(None) else: child.remove(moveItemsTo) DDBObject.remove(self)
"""Remove this folder and children. """ raise NotImplementedError()
def remove(self, moveItemsTo=None): children = list(self.getChildrenView()) for child in children: if child.is_watched_folder(): child.setVisible(False) # just hide watched folders child.set_folder(None) else: child.remove(moveItemsTo) DDBObject.remove(self)
7620b23064f4a74fedddd7c100a1abbfec02879a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/7620b23064f4a74fedddd7c100a1abbfec02879a/folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 3635, 3126, 774, 33, 7036, 4672, 2325, 273, 666, 12, 2890, 18, 588, 4212, 1767, 10756, 364, 1151, 316, 2325, 30, 309, 1151, 18, 291, 67, 7585, 329, 67, 5609, 13332, 1151, 18, 542, 6207, 12, 8381, 13, 468, 2537, 6853, 23135, 9907, 1151, 18, 542, 67, 5609, 12, 7036, 13, 469, 30, 1151, 18, 4479, 12, 8501, 3126, 774, 13, 463, 2290, 921, 18, 4479, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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16, 3635, 3126, 774, 33, 7036, 4672, 2325, 273, 666, 12, 2890, 18, 588, 4212, 1767, 10756, 364, 1151, 316, 2325, 30, 309, 1151, 18, 291, 67, 7585, 329, 67, 5609, 13332, 1151, 18, 542, 6207, 12, 8381, 13, 468, 2537, 6853, 23135, 9907, 1151, 18, 542, 67, 5609, 12, 7036, 13, 469, 30, 1151, 18, 4479, 12, 8501, 3126, 774, 13, 463, 2290, 921, 18, 4479, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif ((skipFlags & SKIP_WIDGET) and
elif base.direct and\ ((skipFlags & SKIP_WIDGET) and
def findCollisionEntry(self, skipFlags = SKIP_NONE, startIndex = 0): # Init self.index and self.entry self.setCurrentIndex(-1) self.setCurrentEntry(None) # Pick out the closest object that isn't a widget for i in range(startIndex, self.getNumEntries()): entry = self.getEntry(i) nodePath = entry.getIntoNodePath() if (skipFlags & SKIP_HIDDEN) and nodePath.isHidden(): # Skip if hidden node pass elif (skipFlags & SKIP_BACKFACE) and self.isEntryBackfacing(entry): # Skip, if backfacing poly pass elif ((skipFlags & SKIP_CAMERA) and (camera in nodePath.getAncestors())): # Skip if parented to a camera. pass # Can pick unpickable, use the first visible node elif ((skipFlags & SKIP_UNPICKABLE) and (nodePath.getName() in self.unpickable)): # Skip if in unpickable list pass elif ((skipFlags & SKIP_WIDGET) and (nodePath.getTag('WidgetName') != base.direct.widget.getName())): # Skip if this widget part is not belong to current widget pass elif ((skipFlags & SKIP_WIDGET) and base.direct.fControl and (nodePath.getName()[2:] == 'ring')): # Skip when ununiformly scale in ortho view pass else: self.setCurrentIndex(i) self.setCurrentEntry(entry) break return self.getCurrentEntry()
e47bc0df7261e22b72e796cc4d9b1c6e1f4defd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e47bc0df7261e22b72e796cc4d9b1c6e1f4defd9/DirectSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 13535, 1951, 1622, 12, 2890, 16, 2488, 5094, 273, 18420, 67, 9826, 16, 10588, 273, 374, 4672, 468, 4378, 365, 18, 1615, 471, 365, 18, 4099, 365, 18, 542, 3935, 1016, 19236, 21, 13, 365, 18, 542, 3935, 1622, 12, 7036, 13, 468, 23038, 596, 326, 9219, 733, 716, 5177, 1404, 279, 3604, 364, 277, 316, 1048, 12, 1937, 1016, 16, 365, 18, 588, 2578, 5400, 1435, 4672, 1241, 273, 365, 18, 588, 1622, 12, 77, 13, 20758, 273, 1241, 18, 588, 5952, 907, 743, 1435, 309, 261, 7457, 5094, 473, 18420, 67, 44, 18216, 13, 471, 20758, 18, 291, 9345, 13332, 468, 6611, 309, 5949, 756, 1342, 1327, 261, 7457, 5094, 473, 18420, 67, 8720, 11300, 13, 471, 365, 18, 291, 1622, 2711, 507, 2822, 12, 4099, 4672, 468, 6611, 16, 309, 1473, 507, 2822, 7573, 1342, 1327, 14015, 7457, 5094, 473, 18420, 67, 39, 2192, 654, 37, 13, 471, 261, 26426, 316, 20758, 18, 588, 28304, 1435, 3719, 30, 468, 6611, 309, 982, 329, 358, 279, 10836, 18, 1342, 468, 4480, 6002, 640, 11503, 429, 16, 999, 326, 1122, 6021, 756, 1327, 14015, 7457, 5094, 473, 18420, 67, 2124, 1102, 3507, 2782, 13, 471, 261, 2159, 743, 18, 17994, 1435, 316, 365, 18, 318, 11503, 429, 3719, 30, 468, 6611, 309, 316, 640, 11503, 429, 666, 1342, 1327, 1026, 18, 7205, 471, 64, 14015, 7457, 5094, 473, 18420, 67, 59, 734, 3264, 13, 471, 261, 2159, 743, 18, 588, 1805, 2668, 4609, 461, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 13535, 1951, 1622, 12, 2890, 16, 2488, 5094, 273, 18420, 67, 9826, 16, 10588, 273, 374, 4672, 468, 4378, 365, 18, 1615, 471, 365, 18, 4099, 365, 18, 542, 3935, 1016, 19236, 21, 13, 365, 18, 542, 3935, 1622, 12, 7036, 13, 468, 23038, 596, 326, 9219, 733, 716, 5177, 1404, 279, 3604, 364, 277, 316, 1048, 12, 1937, 1016, 16, 365, 18, 588, 2578, 5400, 1435, 4672, 1241, 273, 365, 18, 588, 1622, 12, 77, 13, 20758, 273, 1241, 18, 588, 5952, 907, 743, 1435, 309, 261, 7457, 5094, 473, 18420, 67, 44, 18216, 13, 471, 20758, 18, 291, 9345, 13332, 468, 6611, 309, 5949, 756, 1342, 1327, 261, 7457, 5094, 473, 18420, 67, 8720, 11300, 2 ]
height -= self.toolbar.size_request()[1]
height -= self.toolbar.size_request()[1]
def available_image_height(self): height = self.window.get_size()[1] if self.fullscreen_mode == False: height -= self.menubar.size_request()[1] if self.toolbar_show == True: height -= self.toolbar.size_request()[1] if self.statusbar_show == True: height -= self.statusbar.size_request()[1] return height
f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 67, 2730, 67, 4210, 12, 2890, 4672, 2072, 273, 365, 18, 5668, 18, 588, 67, 1467, 1435, 63, 21, 65, 309, 365, 18, 2854, 9252, 67, 3188, 422, 1083, 30, 2072, 3947, 365, 18, 27617, 373, 297, 18, 1467, 67, 2293, 1435, 63, 21, 65, 309, 365, 18, 18849, 67, 4500, 422, 1053, 30, 2072, 3947, 365, 18, 18849, 18, 1467, 67, 2293, 1435, 63, 21, 65, 309, 365, 18, 2327, 3215, 67, 4500, 422, 1053, 30, 2072, 3947, 365, 18, 2327, 3215, 18, 1467, 67, 2293, 1435, 63, 21, 65, 327, 2072, 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,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 63, 21, 65, 309, 365, 18, 2854, 9252, 67, 3188, 422, 1083, 30, 2072, 3947, 365, 18, 27617, 373, 297, 18, 1467, 67, 2293, 1435, 63, 21, 65, 309, 365, 18, 18849, 67, 4500, 422, 1053, 30, 2072, 3947, 365, 18, 18849, 18, 1467, 67, 2293, 1435, 63, 21, 65, 309, 365, 18, 2327, 3215, 67, 4500, 422, 1053, 30, 2072, 3947, 365, 18, 2327, 3215, 18, 1467, 67, 2293, 1435, 63, 21, 65, 327, 2072, 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 ]
eval("%s(%s)" % (colType.__name__, header[col])) except:
colType(header[col]) except ValueError, TypeError:
def seval(item): """ Strips parens from item prior to calling eval in an attempt to make it safer """ return eval(item.replace('(', '').replace(')', ''))
6083e9fc91e30426ec5fcbabb206495280cb6395 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6083e9fc91e30426ec5fcbabb206495280cb6395/csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 875, 2934, 2079, 2668, 13, 2187, 875, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 875, 2934, 2079, 2668, 13, 2187, 875, 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 ]
whenV = translate(str(whenV), maketrans("", ""), "-:")
whenV = mkDATE(whenV)
def doDateTime(self, sts, when, propName, predName): """ helper function to output general date value""" w = self._w
a644513b944044743f3746502b01eb01e9388d24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a644513b944044743f3746502b01eb01e9388d24/toIcal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 5096, 12, 2890, 16, 27099, 16, 1347, 16, 9994, 16, 3479, 461, 4672, 3536, 4222, 445, 358, 876, 7470, 1509, 460, 8395, 341, 273, 365, 6315, 91, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 5096, 12, 2890, 16, 27099, 16, 1347, 16, 9994, 16, 3479, 461, 4672, 3536, 4222, 445, 358, 876, 7470, 1509, 460, 8395, 341, 273, 365, 6315, 91, 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 ]
self.admin_user = options['admin-user']
self.admin_user = options.get('admin-user', 'admin')
def __init__(self, buildout, name, options): self.buildout, self.name, self.options = buildout, name, options options['location'] = os.path.join( buildout['buildout']['bin-directory'], self.name, ) # suppress script generation. self.options['scripts'] = '' options['bin-directory'] = buildout['buildout']['bin-directory'] # all the options that will be passed on to the 'run' script self.site_id = options['site-id'] self.site_replace = options.get('site-replace', '').lower() in TRUISMS self.admin_user = options['admin-user'] self.products_initial = options.get('products-initial', "").split() self.profiles_initial = options.get('profiles-initial', "").split() self.products = options.get('products', "").split() self.profiles = options.get('profiles', "").split() options['args'] = self.createArgs() # We can disable the starting of zope and zeo. useful from the # command line: # $ bin/buildout -v plonesite:enabled=false self.enabled = options.get('enabled', 'true').lower() in TRUISMS # figure out if we need a zeo server started, and if it's on windows # this code was borrowed from plone.recipe.runscript is_win = sys.platform[:3].lower() == "win" instance = buildout[options["instance"]] instance_home = instance['location'] instance_script = os.path.basename(instance_home) if is_win: instance_script = "%s.exe" % instance_script options['instance-script'] = instance_script self.zeoserver = options.get('zeoserver', False) if self.zeoserver: if is_win: zeo_script = 'zeoservice.exe' else: zeo_home = buildout[self.zeoserver]['location'] zeo_script = os.path.basename(zeo_home) options['zeo-script'] = zeo_script
0894a4bbf68b522813db357a0f1b78c45e3f201f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10968/0894a4bbf68b522813db357a0f1b78c45e3f201f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1361, 659, 16, 508, 16, 702, 4672, 365, 18, 3510, 659, 16, 365, 18, 529, 16, 365, 18, 2116, 273, 1361, 659, 16, 508, 16, 702, 702, 3292, 3562, 3546, 273, 1140, 18, 803, 18, 5701, 12, 1361, 659, 3292, 3510, 659, 21712, 4757, 17, 5149, 17337, 365, 18, 529, 16, 262, 468, 12257, 2728, 9377, 18, 365, 18, 2116, 3292, 12827, 3546, 273, 875, 702, 3292, 4757, 17, 5149, 3546, 273, 1361, 659, 3292, 3510, 659, 21712, 4757, 17, 5149, 3546, 225, 468, 777, 326, 702, 716, 903, 506, 2275, 603, 358, 326, 296, 2681, 11, 2728, 365, 18, 4256, 67, 350, 273, 702, 3292, 4256, 17, 350, 3546, 365, 18, 4256, 67, 2079, 273, 702, 18, 588, 2668, 4256, 17, 2079, 2187, 875, 2934, 8167, 1435, 316, 4235, 57, 5127, 3537, 365, 18, 3666, 67, 1355, 273, 702, 18, 588, 2668, 3666, 17, 1355, 2187, 296, 3666, 6134, 365, 18, 18736, 67, 6769, 273, 702, 18, 588, 2668, 18736, 17, 6769, 2187, 1408, 2934, 4939, 1435, 365, 18, 18314, 67, 6769, 273, 702, 18, 588, 2668, 18314, 17, 6769, 2187, 1408, 2934, 4939, 1435, 365, 18, 18736, 273, 702, 18, 588, 2668, 18736, 2187, 1408, 2934, 4939, 1435, 365, 18, 18314, 273, 702, 18, 588, 2668, 18314, 2187, 1408, 2934, 4939, 1435, 702, 3292, 1968, 3546, 273, 365, 18, 2640, 2615, 1435, 225, 468, 1660, 848, 4056, 326, 5023, 434, 998, 1306, 471, 998, 4361, 18, 225, 5301, 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, 1361, 659, 16, 508, 16, 702, 4672, 365, 18, 3510, 659, 16, 365, 18, 529, 16, 365, 18, 2116, 273, 1361, 659, 16, 508, 16, 702, 702, 3292, 3562, 3546, 273, 1140, 18, 803, 18, 5701, 12, 1361, 659, 3292, 3510, 659, 21712, 4757, 17, 5149, 17337, 365, 18, 529, 16, 262, 468, 12257, 2728, 9377, 18, 365, 18, 2116, 3292, 12827, 3546, 273, 875, 702, 3292, 4757, 17, 5149, 3546, 273, 1361, 659, 3292, 3510, 659, 21712, 4757, 17, 5149, 3546, 225, 468, 777, 326, 702, 716, 903, 506, 2275, 603, 358, 326, 296, 2681, 11, 2728, 365, 18, 4256, 67, 350, 273, 702, 3292, 4256, 17, 350, 3546, 365, 18, 2 ]
p.destroy_index = None
p.destroy_index = -1
def _fixup_param_destroy(self, parent, param): for p in parent.parameters: if p is not param and p.destroy_index == param.destroy_index: p.destroy_index = None
2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f/annotationparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 891, 67, 11662, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 11662, 67, 1615, 422, 579, 18, 11662, 67, 1615, 30, 293, 18, 11662, 67, 1615, 273, 599, 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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0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 891, 67, 11662, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 11662, 67, 1615, 422, 579, 18, 11662, 67, 1615, 30, 293, 18, 11662, 67, 1615, 273, 599, 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 ]
G = DiGraph(self._nxg, name=self._nxg.name, pos=self._pos, boundary=self._boundary)
G = DiGraph(self._nxg.copy(), name=self._nxg.name, pos=self._pos, boundary=self._boundary)
def copy(self): """ Creates a copy of the graph.
712b137d61271e8a94869b7f53f6e80ed15116d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/712b137d61271e8a94869b7f53f6e80ed15116d1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 10210, 279, 1610, 434, 326, 2667, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 10210, 279, 1610, 434, 326, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
compile_dir(fullname, maxlevels - 1, dfile, force)
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx): success = 0
def compile_dir(dir, maxlevels=10, ddir=None, force=0): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name that will show up in error messages) force: if 1, force compilation, even if timestamps are up-to-date """ print 'Listing', dir, '...' try: names = os.listdir(dir) except os.error: print "Can't list", dir names = [] names.sort() success = 1 for name in names: fullname = os.path.join(dir, name) if ddir: dfile = os.path.join(ddir, name) else: dfile = None if os.path.isfile(fullname): head, tail = name[:-3], name[-3:] if tail == '.py': cfile = fullname + (__debug__ and 'c' or 'o') ftime = os.stat(fullname)[stat.ST_MTIME] try: ctime = os.stat(cfile)[stat.ST_MTIME] except os.error: ctime = 0 if (ctime > ftime) and not force: continue print 'Compiling', fullname, '...' try: py_compile.compile(fullname, None, dfile) except KeyboardInterrupt: raise KeyboardInterrupt except: if type(sys.exc_type) == type(''): exc_type_name = sys.exc_type else: exc_type_name = sys.exc_type.__name__ print 'Sorry:', exc_type_name + ':', print sys.exc_value success = 0 elif maxlevels > 0 and \ name != os.curdir and name != os.pardir and \ os.path.isdir(fullname) and \ not os.path.islink(fullname): compile_dir(fullname, maxlevels - 1, dfile, force) return success
12b6457e24924ff60cf89fd19a584185a5d6c256 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/12b6457e24924ff60cf89fd19a584185a5d6c256/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326, 864, 1867, 2151, 18, 225, 13599, 261, 3700, 1577, 353, 1931, 4672, 225, 1577, 30, 4202, 326, 1867, 358, 1160, 17, 11100, 943, 12095, 30, 4207, 13917, 1801, 261, 1886, 1728, 13, 302, 1214, 30, 1377, 309, 864, 16, 5405, 1798, 1867, 508, 261, 2211, 353, 326, 1867, 508, 716, 903, 2405, 731, 316, 555, 2743, 13, 2944, 30, 377, 309, 404, 16, 2944, 8916, 16, 5456, 309, 11267, 854, 731, 17, 869, 17, 712, 225, 3536, 1172, 296, 19081, 2187, 1577, 16, 20243, 775, 30, 1257, 273, 1140, 18, 1098, 1214, 12, 1214, 13, 1335, 1140, 18, 1636, 30, 1172, 315, 2568, 1404, 666, 3113, 1577, 1257, 273, 5378, 1257, 18, 3804, 1435, 2216, 273, 404, 364, 508, 316, 1257, 30, 13321, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 508, 13, 309, 302, 1214, 30, 302, 768, 273, 1140, 18, 803, 18, 5701, 12, 449, 481, 16, 508, 13, 469, 30, 302, 768, 273, 599, 309, 1140, 18, 803, 18, 291, 768, 12, 21885, 4672, 910, 16, 5798, 273, 508, 10531, 17, 23, 6487, 508, 18919, 23, 26894, 309, 5798, 422, 2418, 2074, 4278, 276, 768, 273, 13321, 397, 261, 972, 4148, 972, 471, 296, 71, 11, 578, 296, 83, 6134, 284, 957, 273, 1140, 18, 5642, 12, 21885, 25146, 5642, 18, 882, 67, 49, 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, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326, 864, 1867, 2151, 18, 225, 13599, 261, 3700, 1577, 353, 1931, 4672, 225, 1577, 30, 4202, 326, 1867, 358, 1160, 17, 11100, 943, 12095, 30, 4207, 13917, 1801, 261, 1886, 1728, 13, 302, 1214, 30, 1377, 309, 864, 16, 5405, 1798, 1867, 508, 261, 2211, 353, 326, 1867, 508, 716, 903, 2405, 731, 316, 555, 2743, 13, 2944, 30, 377, 309, 404, 16, 2944, 8916, 16, 5456, 309, 11267, 854, 731, 17, 869, 17, 712, 225, 3536, 1172, 296, 19081, 2187, 1577, 16, 20243, 775, 30, 1257, 273, 1140, 18, 2 ]
print self.SendMessage(
self.SendMessage(
def PressButton(self, button_identifier): "Find where the button is and click it"
75e0b2db2c7b34042f6458edeefb54edfdc3ba39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/75e0b2db2c7b34042f6458edeefb54edfdc3ba39/common_controls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29806, 3616, 12, 2890, 16, 3568, 67, 5644, 4672, 315, 3125, 1625, 326, 3568, 353, 471, 4682, 518, 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, 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, 30, 1652, 29806, 3616, 12, 2890, 16, 3568, 67, 5644, 4672, 315, 3125, 1625, 326, 3568, 353, 471, 4682, 518, 6, 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 ]
typ.fields = dict.fromkeys(cls.__slots__)
typ.fields = dict((k,{}) for k in cls.__slots__)
def _init_schema_item(cls,typ): typ.fields = dict.fromkeys(cls.__slots__) typ.implementationTypes = {'python': cls}
9560b4df23894e4608f05c840d6adf170993215b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9560b4df23894e4608f05c840d6adf170993215b/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4821, 67, 1726, 12, 6429, 16, 12846, 4672, 3815, 18, 2821, 273, 2065, 12443, 79, 16, 2916, 13, 364, 417, 316, 2028, 16186, 18875, 972, 13, 3815, 18, 30810, 2016, 273, 13666, 8103, 4278, 2028, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4821, 67, 1726, 12, 6429, 16, 12846, 4672, 3815, 18, 2821, 273, 2065, 12443, 79, 16, 2916, 13, 364, 417, 316, 2028, 16186, 18875, 972, 13, 3815, 18, 30810, 2016, 273, 13666, 8103, 4278, 2028, 97, 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 ]
t1.drop()
metadata.drop_all()
def test_default_exec(self): metadata = MetaData(testing.db) t1 = Table('t1', metadata, Column(u'special_col', Integer, Sequence('special_col'), primary_key=True), Column('data', String(50)) # to appease SQLite without DEFAULT VALUES ) t1.create()
1a352c69f9c66bdc7ef90ecaffcc0c65b5911073 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/1a352c69f9c66bdc7ef90ecaffcc0c65b5911073/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 4177, 12, 2890, 4672, 1982, 273, 27512, 12, 3813, 310, 18, 1966, 13, 268, 21, 273, 3555, 2668, 88, 21, 2187, 1982, 16, 4753, 12, 89, 1807, 705, 649, 67, 1293, 2187, 2144, 16, 8370, 2668, 9371, 67, 1293, 19899, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 892, 2187, 514, 12, 3361, 3719, 468, 358, 7226, 448, 16192, 2887, 3331, 13477, 262, 268, 21, 18, 2640, 1435, 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, 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, 1886, 67, 4177, 12, 2890, 4672, 1982, 273, 27512, 12, 3813, 310, 18, 1966, 13, 268, 21, 273, 3555, 2668, 88, 21, 2187, 1982, 16, 4753, 12, 89, 1807, 705, 649, 67, 1293, 2187, 2144, 16, 8370, 2668, 9371, 67, 1293, 19899, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 892, 2187, 514, 12, 3361, 3719, 468, 358, 7226, 448, 16192, 2887, 3331, 13477, 262, 268, 21, 18, 2640, 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 ]
go_back_logo = """<img src="http://pcuds36.cern.ch/img/wb-go-back.png" />"""
go_back_logo = """<img src="%s/img/wb-go-back.png" />""" % (CFG_SITE_URL,)
def tmpl_public_basket_single_item_header(self, bskid, name, nb_items, previous_item_recid, next_item_recid, item_index, ln=CFG_SITE_LANG): """Template for public basket's single item header display."""
21fbd39770d792689a5af9cad650e20c36ad4f24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/21fbd39770d792689a5af9cad650e20c36ad4f24/webbasket_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 482, 67, 26219, 67, 7526, 67, 1726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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 482, 67, 26219, 67, 7526, 67, 1726, 67, 3374, 12, 2890, 16, 7081, 79, 350, 16, 508, 16, 4264, 67, 3319, 16, 2416, 67, 1726, 67, 3927, 350, 16, 1024, 67, 1726, 67, 3927, 350, 16, 761, 67, 1615, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 2283, 364, 1071, 12886, 1807, 2202, 761, 1446, 2562, 12123, 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 ]
raise SMTPSenderRefused('%s: %s' % (from_addr, resp))
raise SMTPSenderRefused(code, resp, from_addr)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
7ce512fd70a64eb7cf9563bb31dd4291a44254dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ce512fd70a64eb7cf9563bb31dd4291a44254dd/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 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 ]
0.27395725 + 0.58370113*I
0.27395 + 0.58370*I
def __pow__(self, right): """ EXAMPLES: sage: C, i = ComplexField(20).objgen() sage: a = i^2; a -1.0000000 sage: a.parent() Complex Field with 20 bits of precision sage: a = (1+i)^i; a 0.42882919 + 0.15487170*I sage: (1+i)^(1+i) 0.27395725 + 0.58370113*I sage: a.parent() Complex Field with 20 bits of precision sage: i^i 0.20787954 sage: (2+i)^(0.5) 1.4553471 + 0.34356070*I """ if isinstance(right, (int, long, integer.Integer)): return ring_element.RingElement.__pow__(self, right) z = self._pari_() P = self.parent() w = P(right)._pari_() m = z**w return P(m)
193380da4580283517e8b5d85f0bf8d1c6d47fce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/193380da4580283517e8b5d85f0bf8d1c6d47fce/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66, 22, 31, 279, 300, 21, 18, 17877, 272, 410, 30, 279, 18, 2938, 1435, 16060, 2286, 598, 4200, 4125, 434, 6039, 272, 410, 30, 279, 273, 261, 21, 15, 77, 13, 66, 77, 31, 279, 374, 18, 9452, 5482, 5540, 3657, 397, 374, 18, 3600, 8875, 27, 31779, 14, 45, 272, 410, 30, 261, 21, 15, 77, 13, 29020, 21, 15, 77, 13, 374, 18, 5324, 5520, 25, 397, 374, 18, 8204, 6418, 20, 14, 45, 272, 410, 30, 279, 18, 2938, 1435, 16060, 2286, 598, 4200, 4125, 434, 6039, 272, 410, 30, 277, 66, 77, 374, 18, 3462, 8285, 7235, 6564, 272, 410, 30, 261, 22, 15, 77, 13, 29020, 20, 18, 25, 13, 404, 18, 24, 2539, 5026, 11212, 397, 374, 18, 5026, 23, 4313, 20, 7301, 14, 45, 3536, 309, 1549, 12, 4083, 16, 261, 474, 16, 1525, 16, 3571, 18, 4522, 3719, 30, 327, 9221, 67, 2956, 18, 10369, 1046, 16186, 23509, 972, 12, 2890, 16, 2145, 13, 998, 273, 365, 6315, 1065, 77, 67, 1435, 453, 273, 365, 18, 2938, 1435, 341, 273, 453, 12, 4083, 2934, 67, 1065, 77, 67, 1435, 312, 273, 998, 636, 91, 327, 453, 12, 81, 13, 225, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66, 22, 31, 279, 300, 21, 18, 17877, 272, 410, 30, 279, 18, 2938, 1435, 16060, 2286, 598, 4200, 4125, 434, 6039, 272, 410, 30, 279, 273, 261, 21, 15, 77, 13, 66, 77, 31, 279, 374, 18, 9452, 5482, 5540, 3657, 397, 374, 18, 3600, 8875, 27, 31779, 14, 45, 272, 410, 30, 261, 21, 15, 77, 13, 29020, 21, 15, 77, 13, 374, 18, 5324, 5520, 25, 397, 374, 18, 8204, 6418, 20, 14, 45, 272, 410, 30, 279, 18, 2938, 1435, 2 ]
SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR + "ssh_host_rsa_key"
SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR + "/ssh_host_rsa_key"
def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision)
553bd93f0905a4b93d899377b792a354049ea595 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/553bd93f0905a4b93d899377b792a354049ea595/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 13, 225, 261, 14019, 16, 10022, 13, 273, 26105, 12, 1589, 16, 15088, 13, 261, 17364, 16, 6350, 13, 273, 26105, 12, 2764, 25407, 16, 12619, 13, 225, 327, 261, 14019, 16, 8439, 16, 6350, 13, 282, 2, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 13, 225, 261, 14019, 16, 10022, 13, 273, 26105, 12, 1589, 16, 15088, 13, 261, 17364, 16, 6350, 13, 273, 26105, 12, 2764, 25407, 16, 12619, 13, 225, 327, 261, 14019, 16, 8439, 16, 6350, 13, 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 ]
taskMgr.step()
def run(self): from time import sleep while self.isRunning: sleep(self.FPS) taskMgr.step() else: render.analyze() # TODO do cleanup logger.info("Quitting application, have fun")
f2fb2af7d3b6c28fa60acafbf13a85fe1a5884b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7999/f2fb2af7d3b6c28fa60acafbf13a85fe1a5884b1/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 813, 1930, 5329, 1323, 365, 18, 291, 7051, 30, 5329, 12, 2890, 18, 42, 5857, 13, 469, 30, 1743, 18, 304, 9508, 1435, 468, 2660, 741, 6686, 1194, 18, 1376,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 813, 1930, 5329, 1323, 365, 18, 291, 7051, 30, 5329, 12, 2890, 18, 42, 5857, 13, 469, 30, 1743, 18, 304, 9508, 1435, 468, 2660, 741, 6686, 1194, 18, 1376, 2932, 25365, 1787, 2521, 16, 1240, 9831, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gMonitor.addMark("%Files" % status,len(files.keys())) pfnDict = {}
pfnIDs= {}
def __getFiles(self,se,status): # Get files with the given status and se from the database res = self.MigrationMonitoringDB.getFiles(se,status) if not res['OK']: return res files = res['Value'] gMonitor.addMark("%Files" % status,len(files.keys())) pfnDict = {} if len(files.keys()) > 0: for fileID,metadataDict in files.items(): pfn = metadataDict['PFN'] pfnIDs[pfn] = fileID return S_OK({'PFNIDs':pfnIDs,'MigratingFiles':files})
4f91556b86199dede4b08bee27f08eea5a1de278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/4f91556b86199dede4b08bee27f08eea5a1de278/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2697, 12, 2890, 16, 307, 16, 2327, 4672, 468, 968, 1390, 598, 326, 864, 1267, 471, 695, 628, 326, 2063, 400, 273, 365, 18, 10224, 18410, 2290, 18, 588, 2697, 12, 307, 16, 2327, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 1390, 273, 400, 3292, 620, 3546, 293, 4293, 5103, 33, 2618, 309, 562, 12, 2354, 18, 2452, 10756, 405, 374, 30, 364, 585, 734, 16, 4165, 5014, 316, 1390, 18, 3319, 13332, 293, 4293, 273, 1982, 5014, 3292, 52, 19793, 3546, 293, 4293, 5103, 63, 84, 4293, 65, 273, 585, 734, 327, 348, 67, 3141, 12590, 11, 52, 19793, 5103, 4278, 84, 4293, 5103, 11189, 25483, 1776, 2697, 4278, 2354, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1001, 588, 2697, 12, 2890, 16, 307, 16, 2327, 4672, 468, 968, 1390, 598, 326, 864, 1267, 471, 695, 628, 326, 2063, 400, 273, 365, 18, 10224, 18410, 2290, 18, 588, 2697, 12, 307, 16, 2327, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 1390, 273, 400, 3292, 620, 3546, 293, 4293, 5103, 33, 2618, 309, 562, 12, 2354, 18, 2452, 10756, 405, 374, 30, 364, 585, 734, 16, 4165, 5014, 316, 1390, 18, 3319, 13332, 293, 4293, 273, 1982, 5014, 3292, 52, 19793, 3546, 293, 4293, 5103, 63, 84, 4293, 65, 273, 585, 734, 327, 348, 67, 3141, 12590, 11, 52, 19793, 5103, 4278, 84, 4293, 5103, 11189, 25483, 1776, 2697, 4278, 2354, 6792, 2, -100 ]
self.d.BringToFront() self.d.HideWindow()
self.w.BringToFront() self.w.HideWindow() del self.w
def __del__( self ): self.d.BringToFront() self.d.HideWindow() del self.d
0f86aa1080c85d22253db2524dab56c3a8565e6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0f86aa1080c85d22253db2524dab56c3a8565e6b/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 365, 262, 30, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 15690, 3829, 1435, 1464, 365, 18, 91, 1464, 365, 18, 72, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3771, 972, 12, 365, 262, 30, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 15690, 3829, 1435, 1464, 365, 18, 91, 1464, 365, 18, 72, 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 ]
re_key = re.compile("^ *ui_strings\.([^ ]*)") file = codecs.open(path, "r", "utf_8_sig")
re_key = re.compile("^ *ui_strings\.([^ =]*)") fp = codecs.open(path, "r", "utf_8_sig")
def _get_string_keys(path): """Grab all the string keys of out a language file""" re_key = re.compile("^ *ui_strings\.([^ ]*)") file = codecs.open(path, "r", "utf_8_sig") lang_keys = set() for line in file: lang_keys.update(re_key.findall(line)) file.close() return lang_keys
9d99784e561c0304ae746a4c36cbdab657b682e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10925/9d99784e561c0304ae746a4c36cbdab657b682e6/dfbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1080, 67, 2452, 12, 803, 4672, 3536, 14571, 70, 777, 326, 533, 1311, 434, 596, 279, 2653, 585, 8395, 283, 67, 856, 273, 283, 18, 11100, 2932, 66, 380, 4881, 67, 10219, 5834, 8178, 273, 5772, 2225, 13, 4253, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 315, 3158, 67, 28, 67, 7340, 7923, 3303, 67, 2452, 273, 444, 1435, 364, 980, 316, 585, 30, 3303, 67, 2452, 18, 2725, 12, 266, 67, 856, 18, 4720, 454, 12, 1369, 3719, 585, 18, 4412, 1435, 327, 3303, 67, 2452, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1080, 67, 2452, 12, 803, 4672, 3536, 14571, 70, 777, 326, 533, 1311, 434, 596, 279, 2653, 585, 8395, 283, 67, 856, 273, 283, 18, 11100, 2932, 66, 380, 4881, 67, 10219, 5834, 8178, 273, 5772, 2225, 13, 4253, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 315, 3158, 67, 28, 67, 7340, 7923, 3303, 67, 2452, 273, 444, 1435, 364, 980, 316, 585, 30, 3303, 67, 2452, 18, 2725, 12, 266, 67, 856, 18, 4720, 454, 12, 1369, 3719, 585, 18, 4412, 1435, 327, 3303, 67, 2452, 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 ]
if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle
if self.__verbose(): print 'CR::INTEREST.interestDone(handle=%s)' % handle
def handleInterestDoneMessage(self, di): """ This handles the interest done messages and may dispatch an event """ assert DoInterestManager.notify.debugCall() handle = di.getUint16() scopeId = di.getUint32() if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle DoInterestManager.notify.debug( "handleInterestDoneMessage--> Received handle %s, scope %s" % ( handle, scopeId)) eventsToSend = [] # if the scope matches, send out the event if scopeId == DoInterestManager._interests[handle].scope: DoInterestManager._interests[handle].scope = NO_SCOPE # the event handlers may call back into the interest manager. Send out # the events after we're once again in a stable state. #DoInterestManager._interests[handle].sendEvents() eventsToSend = list(DoInterestManager._interests[handle].getEvents()) DoInterestManager._interests[handle].clearEvents() else: DoInterestManager.notify.warning( "handleInterestDoneMessage--> handle: %s: Expecting scope %s, got %s" % ( handle, DoInterestManager._interests[handle].scope, scopeId)) if __debug__: state = DoInterestManager._interests[handle] self._addDebugInterestHistory( "finished", state.desc, handle, scopeId, state.parentId, state.zoneIdList) self._considerRemoveInterest(handle) for event in eventsToSend: messenger.send(event) # if there are no more outstanding interest-completes, send out global all-done event if self._completeEventCount.num == 0: # wait for 3 frames, if no new interests, send out all-done event def checkMoreInterests(): return self._completeEventCount.num > 0 def sendEvent(): messenger.send(self.getAllInterestsCompleteEvent()) for callback in self._allInterestsCompleteCallbacks: callback() self._allInterestsCompleteCallbacks = [] self.cleanupWaitAllInterestsClosed() self._completeDelayedCallback = FrameDelayedCallback( 'waitForAllInterestCompletes', frames=3, callback=sendEvent, cancelFunc=checkMoreInterests) checkMoreInterests = None sendEvent = None assert self.printInterestsIfDebug()
0ad3bac423d39b998827d489a97d947c4e85743a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0ad3bac423d39b998827d489a97d947c4e85743a/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640, 273, 4314, 18, 588, 5487, 2313, 1435, 2146, 548, 273, 4314, 18, 588, 5487, 1578, 1435, 309, 365, 16186, 11369, 13332, 1172, 296, 5093, 2866, 9125, 11027, 18, 2761, 395, 7387, 12, 4110, 5095, 87, 2506, 738, 1640, 2256, 29281, 1318, 18, 12336, 18, 4148, 12, 315, 4110, 29281, 7387, 1079, 413, 34, 21066, 1640, 738, 87, 16, 2146, 738, 87, 6, 738, 261, 1640, 16, 2146, 548, 3719, 2641, 28878, 273, 5378, 468, 309, 326, 2146, 1885, 16, 1366, 596, 326, 871, 309, 2146, 548, 422, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 4887, 30, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 4887, 273, 3741, 67, 19444, 468, 326, 871, 4919, 2026, 745, 1473, 1368, 326, 16513, 3301, 18, 2479, 596, 468, 326, 2641, 1839, 732, 4565, 3647, 3382, 316, 279, 14114, 919, 18, 468, 3244, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 4661, 3783, 1435, 2641, 28878, 273, 666, 12, 3244, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 588, 3783, 10756, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 8507, 3783, 1435, 469, 30, 2256, 29281, 1318, 18, 12336, 18, 8551, 12, 315, 4110, 29281, 7387, 1079, 413, 34, 1640, 30, 738, 87, 30, 15510, 310, 2146, 738, 87, 16, 2363, 738, 87, 6, 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, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640, 273, 4314, 18, 588, 5487, 2313, 1435, 2146, 548, 273, 4314, 18, 588, 5487, 1578, 1435, 309, 365, 16186, 11369, 13332, 1172, 296, 5093, 2866, 9125, 11027, 18, 2761, 395, 7387, 12, 4110, 5095, 87, 2506, 738, 1640, 2256, 29281, 1318, 18, 12336, 18, 4148, 12, 315, 4110, 29281, 7387, 1079, 413, 34, 21066, 1640, 738, 87, 16, 2146, 738, 87, 6, 738, 261, 1640, 16, 2146, 548, 3719, 2641, 28878, 273, 5378, 468, 309, 326, 2146, 1885, 16, 1366, 596, 326, 871, 309, 2146, 2 ]
print >>sys.stderr, ('\nWarning: could not find UID for '+
if sys.stderr.softspace: print >>sys.stderr print >>sys.stderr, ('Warning: could not find UID for '+
def _dom_link_to_html(self, target, name, container): uid = findUID(target, container, self._docmap) if uid is None: print >>sys.stderr, ('\nWarning: could not find UID for '+ 'L{%s} in %s' % (target, container)) return self._uid_to_href(uid, name, 'link')
771e91d9f27aff69c7681d17285ac18c37519cc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/771e91d9f27aff69c7681d17285ac18c37519cc0/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 1232, 67, 869, 67, 2620, 12, 2890, 16, 1018, 16, 508, 16, 1478, 4672, 4555, 273, 1104, 3060, 12, 3299, 16, 1478, 16, 365, 6315, 2434, 1458, 13, 309, 4555, 353, 599, 30, 309, 2589, 18, 11241, 18, 9269, 2981, 30, 1172, 1671, 9499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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 1232, 67, 869, 67, 2620, 12, 2890, 16, 1018, 16, 508, 16, 1478, 4672, 4555, 273, 1104, 3060, 12, 3299, 16, 1478, 16, 365, 6315, 2434, 1458, 13, 309, 4555, 353, 599, 30, 309, 2589, 18, 11241, 18, 9269, 2981, 30, 1172, 1671, 9499, 18, 11241, 1172, 1671, 9499, 18, 11241, 16, 7707, 6210, 30, 3377, 486, 1104, 10034, 364, 15126, 296, 48, 95, 9, 87, 97, 316, 738, 87, 11, 738, 261, 3299, 16, 1478, 3719, 327, 365, 6315, 1911, 67, 869, 67, 7547, 12, 1911, 16, 508, 16, 296, 1232, 6134, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.respond("214 %s.\r\n" %proto_cmds[line.upper()])
self.respond("214 %s" %proto_cmds[line.upper()])
def ftp_HELP(self, line): "Return help" # TODO - A lot of FTP servers return command names only while we # return cmd_name + description. I believe we should return the same. if line: # FIX #10 if line.upper() in proto_cmds: self.respond("214 %s.\r\n" %proto_cmds[line.upper()]) else: self.respond("500 Unrecognized command.") else: self.push("214-The following commands are recognized " + \ "(* == argument required):\r\n" + \ helper_string) self.respond("214 Help command succesful.")
3031f49a8bea90014d498d75fa5b6115bae33d58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/3031f49a8bea90014d498d75fa5b6115bae33d58/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 27396, 12, 2890, 16, 980, 4672, 315, 990, 2809, 6, 468, 2660, 300, 432, 17417, 434, 19324, 7084, 327, 1296, 1257, 1338, 1323, 732, 468, 327, 1797, 67, 529, 397, 2477, 18, 467, 3952, 21271, 732, 1410, 327, 326, 1967, 18, 309, 980, 30, 468, 8563, 468, 2163, 309, 980, 18, 5797, 1435, 316, 3760, 67, 24680, 30, 365, 18, 17863, 2932, 22, 3461, 738, 87, 6, 738, 9393, 67, 24680, 63, 1369, 18, 5797, 1435, 5717, 469, 30, 365, 18, 17863, 2932, 12483, 1351, 12916, 1296, 1199, 13, 469, 30, 365, 18, 6206, 2932, 22, 3461, 17, 1986, 3751, 4364, 854, 16332, 315, 397, 521, 7751, 14, 422, 1237, 1931, 4672, 64, 86, 64, 82, 6, 397, 521, 4222, 67, 1080, 13, 365, 18, 17863, 2932, 22, 3461, 11288, 1296, 8667, 764, 2706, 1199, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 27396, 12, 2890, 16, 980, 4672, 315, 990, 2809, 6, 468, 2660, 300, 432, 17417, 434, 19324, 7084, 327, 1296, 1257, 1338, 1323, 732, 468, 327, 1797, 67, 529, 397, 2477, 18, 467, 3952, 21271, 732, 1410, 327, 326, 1967, 18, 309, 980, 30, 468, 8563, 468, 2163, 309, 980, 18, 5797, 1435, 316, 3760, 67, 24680, 30, 365, 18, 17863, 2932, 22, 3461, 738, 87, 6, 738, 9393, 67, 24680, 63, 1369, 18, 5797, 1435, 5717, 469, 30, 365, 18, 17863, 2932, 12483, 1351, 12916, 1296, 1199, 13, 469, 30, 365, 18, 6206, 2932, 22, 3461, 17, 1986, 3751, 4364, 854, 16332, 315, 397, 521, 7751, 14, 422, 1237, 1931, 4672, 64, 86, 64, 82, 2 ]
pdp = PDP(VOExtension, granularity = self.__granularity, name = self.__name,
pdp = PDP(self.VOExtension, granularity = self.__granularity, name = self.__name,
def enforce(self, pdpIn = None, rsDBIn = None, ncIn = None, setupIn = None, daIn = None, csAPIIn = None, knownInfo = None): """ enforce policies, using a PDP (Policy Decision Point), based on
e9b2e8840f1ad34980e155d4e27cc6d17d52d555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e9b2e8840f1ad34980e155d4e27cc6d17d52d555/PEP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 12, 2890, 16, 4863, 84, 382, 273, 599, 16, 3597, 2290, 382, 273, 599, 16, 8194, 382, 273, 599, 16, 3875, 382, 273, 599, 16, 5248, 382, 273, 599, 16, 2873, 2557, 382, 273, 599, 16, 4846, 966, 273, 599, 4672, 3536, 12980, 8923, 16, 1450, 279, 453, 8640, 225, 261, 2582, 23193, 4686, 3631, 2511, 603, 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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, 599, 16, 3875, 382, 273, 599, 16, 5248, 382, 273, 599, 16, 2873, 2557, 382, 273, 599, 16, 4846, 966, 273, 599, 4672, 3536, 12980, 8923, 16, 1450, 279, 453, 8640, 225, 261, 2582, 23193, 4686, 3631, 2511, 603, 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 ]
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(aclass, 'Component'))
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(className, 'Component'))
def refreshCtrl(self): self.DeleteAllItems()
0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12418, 12, 2890, 4672, 365, 18, 2613, 1595, 3126, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12418, 12, 2890, 4672, 365, 18, 2613, 1595, 3126, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = m.group()
if m.groups(): match_str = m.group(1) else: match_str = m.group(0) global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = match_str
def find(what, flags=''): """ >> find <regexp> [<flags>] Succeed if the regular expression is on the page. Sets the local variable __match__ to the matching text. Flags is a string consisting of the following characters: * i: ignorecase * m: multiline * s: dotall For explanations of these, please see the Python re module documentation. """ regexp = re.compile(what, _parseFindFlags(flags)) page = browser.get_html() m = regexp.search(page) if not m: raise TwillAssertionError("no match to '%s'" % (what,)) global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = m.group()
c08d82127bbe9f59163a369af241121ed6969362 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/c08d82127bbe9f59163a369af241121ed6969362/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 23770, 16, 2943, 2218, 11, 4672, 3536, 1671, 1104, 411, 17745, 34, 306, 32, 7133, 34, 65, 225, 348, 5286, 5288, 309, 326, 6736, 2652, 353, 603, 326, 1363, 18, 225, 11511, 326, 1191, 2190, 1001, 1916, 972, 358, 326, 3607, 977, 18, 225, 10104, 353, 279, 533, 23570, 434, 326, 3751, 3949, 30, 225, 380, 277, 30, 2305, 3593, 380, 312, 30, 19431, 380, 272, 30, 3928, 454, 225, 2457, 431, 7088, 1012, 434, 4259, 16, 9582, 2621, 326, 6600, 283, 1605, 7323, 18, 3536, 7195, 273, 283, 18, 11100, 12, 23770, 16, 389, 2670, 3125, 5094, 12, 7133, 3719, 1363, 273, 4748, 18, 588, 67, 2620, 1435, 225, 312, 273, 7195, 18, 3072, 12, 2433, 13, 309, 486, 312, 30, 1002, 12694, 737, 14979, 668, 2932, 2135, 845, 358, 1995, 87, 4970, 738, 261, 23770, 16, 3719, 225, 309, 312, 18, 4650, 13332, 845, 67, 701, 273, 312, 18, 1655, 12, 21, 13, 469, 30, 845, 67, 701, 273, 312, 18, 1655, 12, 20, 13, 225, 2552, 67, 1576, 16, 1191, 67, 1576, 273, 336, 67, 11246, 737, 67, 75, 17977, 1435, 1191, 67, 1576, 3292, 972, 1916, 972, 3546, 273, 845, 67, 701, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 23770, 16, 2943, 2218, 11, 4672, 3536, 1671, 1104, 411, 17745, 34, 306, 32, 7133, 34, 65, 225, 348, 5286, 5288, 309, 326, 6736, 2652, 353, 603, 326, 1363, 18, 225, 11511, 326, 1191, 2190, 1001, 1916, 972, 358, 326, 3607, 977, 18, 225, 10104, 353, 279, 533, 23570, 434, 326, 3751, 3949, 30, 225, 380, 277, 30, 2305, 3593, 380, 312, 30, 19431, 380, 272, 30, 3928, 454, 225, 2457, 431, 7088, 1012, 434, 4259, 16, 9582, 2621, 326, 6600, 283, 1605, 7323, 18, 3536, 7195, 273, 283, 18, 11100, 12, 23770, 16, 389, 2670, 3125, 5094, 12, 7133, 3719, 1363, 273, 4748, 18, 588, 67, 2620, 1435, 225, 312, 273, 7195, 18, 3072, 12, 2 ]
return self.substitute(dict, **kwds)
if 'substitute' in kwds: del kwds['substitute'] return self.substitute(dict, **kwds) else: if len(self.variables()) > 0: return self.substitute(dict, **kwds) else: raise ValueError, "trying to substitute into a constant expression, use substitute=True if this is what you really want to do"
def __call__(self, dict=None, **kwds): return self.substitute(dict, **kwds)
5c9cefd9c391016e39a47f6191cdd50e7407663c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5c9cefd9c391016e39a47f6191cdd50e7407663c/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2065, 33, 7036, 16, 2826, 25577, 4672, 327, 365, 18, 1717, 17207, 12, 1576, 16, 2826, 25577, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1991, 972, 12, 2890, 16, 2065, 33, 7036, 16, 2826, 25577, 4672, 327, 365, 18, 1717, 17207, 12, 1576, 16, 2826, 25577, 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 ]
"(r,g,b,a)")
"(r,g,b,a)") def to_qt4_color(editor): if editor.factory.mapped: retval = getattr(editor.object, editor.name + '_') else: retval = getattr(editor.object, editor.name) if isinstance(retval, tuple): col = QtGui.QColor() col.setRgbF(*retval) retval = col return retval def str_color(color): if isinstance(color, QtGui.QColor): color = color.getRgbF() if isinstance(color, tuple): fmt = "(" + ",".join(["%0.3f"] * len(color)) + ")" color = fmt % color return color class SimpleColorEditor(SimpleEditor): pass class CustomColorEditor(CustomEditor): pass class TextColorEditor(TextEditor): pass class ReadonlyColorEditor(ReadonlyEditor): pass
def convert_from_pyqt_color(obj, name, value): if isinstance(value, QtGui.QColor): return value.getRgbF() elif isinstance(value, Str): return color_table.get(value, transparent_color) elif type(value) is int: num = int(value) return ((num >> 16)/255.0, ((num>>8) & 0xFF)/255.0, (num & 0xFF)/255.0, 1.0) elif type(value) in (list, tuple): if len(value) == 3: return (value[0]/255.0, value[1]/255.0, value[2]/255.0, 1.0) elif len(value) == 4: return value else: raise TraitError else: raise TraitError
abfde0830a10d7b7b7758d68d0a20e3d95e68150 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/abfde0830a10d7b7b7758d68d0a20e3d95e68150/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 12, 1132, 16, 3978, 4672, 327, 2036, 67, 2121, 18, 588, 12, 1132, 16, 17270, 67, 3266, 13, 1327, 618, 12, 1132, 13, 353, 509, 30, 818, 273, 509, 12, 1132, 13, 327, 14015, 2107, 1671, 2872, 13176, 10395, 18, 20, 16, 14015, 2107, 9778, 28, 13, 473, 374, 6356, 13176, 10395, 18, 20, 16, 261, 2107, 473, 374, 6356, 13176, 10395, 18, 20, 16, 404, 18, 20, 13, 1327, 618, 12, 1132, 13, 316, 261, 1098, 16, 3193, 4672, 309, 562, 12, 1132, 13, 422, 890, 30, 327, 261, 1132, 63, 20, 18537, 10395, 18, 20, 16, 460, 63, 21, 18537, 10395, 18, 20, 16, 460, 63, 22, 18537, 10395, 18, 20, 16, 404, 18, 20, 13, 1327, 562, 12, 1132, 13, 422, 1059, 30, 327, 460, 469, 30, 1002, 2197, 305, 668, 469, 30, 1002, 2197, 305, 668, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 12, 1132, 16, 3978, 4672, 327, 2036, 67, 2121, 18, 588, 12, 1132, 16, 17270, 67, 3266, 13, 1327, 618, 12, 1132, 13, 353, 509, 30, 818, 273, 509, 12, 1132, 13, 327, 14015, 2107, 1671, 2872, 13176, 10395, 18, 20, 16, 14015, 2107, 9778, 28, 13, 473, 374, 6356, 13176, 10395, 18, 20, 16, 261, 2107, 473, 374, 6356, 13176, 10395, 18, 20, 16, 404, 18, 20, 13, 1327, 618, 12, 1132, 13, 316, 261, 1098, 16, 3193, 4672, 309, 562, 12, 1132, 2 ]
stream.write(fs.decode(stream.encoding) % msg)
fs = fs.decode(stream.encoding) try: stream.write(fs % msg) except UnicodeEncodeError: stream.write((fs % msg).encode(stream.encoding))
def emit(self, record): """ Emit a record.
cbb530872354fb4eb3b8b5bbaa36db38a0d9a64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/cbb530872354fb4eb3b8b5bbaa36db38a0d9a64a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__prog__ = 'findFlagsJob'
def __init__(self, opts, cp, dir='', tag_base="DQFLAGS"): """ """ self.__conditionalLoadDefaults__(findFlagsJob.defaults,cp) self.__prog__ = 'findFlagsJob' self.__executable = string.strip(cp.get('fu-condor','dqflags')) self.__universe = string.strip(cp.get('fu-condor','universe')) pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.setupJob(self.__prog__,tag_base=tag_base, dir=dir)
e7dc96264f8fa6761fca7488785053e6db4d6c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/e7dc96264f8fa6761fca7488785053e6db4d6c14/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 40, 53, 17836, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 4720, 5094, 2278, 18, 7606, 16, 4057, 13, 225, 365, 16186, 17751, 273, 533, 18, 6406, 12, 4057, 18, 588, 2668, 27074, 17, 10013, 280, 17023, 72, 85, 7133, 26112, 365, 16186, 318, 17488, 273, 533, 18, 6406, 12, 4057, 18, 588, 2668, 27074, 17, 10013, 280, 17023, 318, 17488, 26112, 5873, 18, 12441, 280, 40, 1781, 2278, 16186, 2738, 972, 12, 2890, 16, 2890, 16186, 318, 17488, 16, 2890, 16186, 17751, 13, 365, 18, 1289, 67, 10013, 280, 67, 4172, 2668, 588, 3074, 17023, 5510, 6134, 365, 18, 8401, 2278, 12, 2890, 16186, 14654, 972, 16, 2692, 67, 1969, 33, 2692, 67, 1969, 16, 1577, 33, 1214, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 40, 53, 17836, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 4720, 5094, 2278, 18, 7606, 16, 4057, 13, 225, 365, 16186, 17751, 273, 533, 18, 6406, 12, 4057, 18, 588, 2668, 27074, 17, 10013, 280, 17023, 72, 85, 7133, 26112, 365, 16186, 318, 17488, 273, 533, 18, 6406, 12, 4057, 18, 588, 2668, 27074, 17, 10013, 280, 17023, 318, 17488, 26112, 5873, 18, 12441, 280, 40, 1781, 2278, 16186, 2738, 972, 12, 2890, 16, 2890, 16186, 318, 17488, 16, 2890, 16186, 17751, 13, 365, 18, 1289, 67, 10013, 280, 67, 4172, 2668, 588, 3074, 17023, 5510, 6134, 2 ]
import pdb;pdb.set_trace()
def text_version_delete(request, key, text_version_key): text_version = TextVersion.objects.get(key=text_version_key) text=text_version.text if request.method != 'POST': raise UnauthorizedException('Unauthorized') display_message(request, _(u'Text version %(text_version_title)s deleted') %{'text_version_title':text_version.title}) register_activity(request, "text_version_removed", text=text) import pdb;pdb.set_trace() text_version.delete() return HttpResponse('') # no redirect because this is called by js
d8fe5026eba38991e374c0fce8b11d6f78f15f46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5622/d8fe5026eba38991e374c0fce8b11d6f78f15f46/texts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 1589, 67, 3733, 12, 2293, 16, 498, 16, 977, 67, 1589, 67, 856, 4672, 977, 67, 1589, 273, 3867, 1444, 18, 6911, 18, 588, 12, 856, 33, 955, 67, 1589, 67, 856, 13, 977, 33, 955, 67, 1589, 18, 955, 309, 590, 18, 2039, 480, 296, 3798, 4278, 1002, 24830, 2668, 13981, 6134, 2562, 67, 2150, 12, 2293, 16, 389, 12, 89, 11, 1528, 1177, 8975, 955, 67, 1589, 67, 2649, 13, 87, 4282, 6134, 738, 27828, 955, 67, 1589, 67, 2649, 4278, 955, 67, 1589, 18, 2649, 6792, 1744, 67, 9653, 12, 2293, 16, 315, 955, 67, 1589, 67, 14923, 3113, 977, 33, 955, 13, 977, 67, 1589, 18, 3733, 1435, 327, 9476, 2668, 6134, 468, 1158, 3136, 2724, 333, 353, 2566, 635, 3828, 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, 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498, 16, 977, 67, 1589, 67, 856, 4672, 977, 67, 1589, 273, 3867, 1444, 18, 6911, 18, 588, 12, 856, 33, 955, 67, 1589, 67, 856, 13, 977, 33, 955, 67, 1589, 18, 955, 309, 590, 18, 2039, 480, 296, 3798, 4278, 1002, 24830, 2668, 13981, 6134, 2562, 67, 2150, 12, 2293, 16, 389, 12, 89, 11, 1528, 1177, 8975, 955, 67, 1589, 67, 2649, 13, 87, 4282, 6134, 738, 27828, 955, 67, 1589, 67, 2649, 4278, 955, 67, 1589, 18, 2649, 6792, 1744, 67, 9653, 12, 2293, 16, 315, 955, 67, 1589, 67, 14923, 3113, 977, 33, 955, 13, 977, 67, 1589, 18, 3733, 1435, 327, 9476, 2668, 6134, 2 ]
return "%s - %s" % (self.__class__.__name__, self.get_title())
return "%s - %s" % (self.__class__.__name__, stringify(self.get_title()))
def __str__(self): return "%s - %s" % (self.__class__.__name__, self.get_title())
2c71139c79a6391bafa634487c97ee0908732930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/2c71139c79a6391bafa634487c97ee0908732930/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2213, 87, 300, 738, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 18, 588, 67, 2649, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2213, 87, 300, 738, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 18, 588, 67, 2649, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" if not isinstance(a, RingElement):
sage: xgcd(5/1, 7/1) (1, 3, -2) sage: x = polygen(QQ) sage: xgcd(x^3 - 1, x^2 - 1) (x - 1, 1, -x) """ try: return a.xgcd(b) except AttributeError: pass if not isinstance(a, sage.rings.integer.Integer):
def xgcd(a, b): """ Returns triple of integers (g,s,t) such that g = s*a+t*b = gcd(a,b). sage: xgcd(56, 44) (4, 4, -5) sage: 4*56 + (-5)*44 4 """ if not isinstance(a, RingElement): a = integer_ring.ZZ(a) return a.xgcd(b)
2e334249835e22b9452b590a27fb481cabb8642f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2e334249835e22b9452b590a27fb481cabb8642f/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 75, 4315, 12, 69, 16, 324, 4672, 3536, 2860, 14543, 434, 12321, 261, 75, 16, 87, 16, 88, 13, 4123, 716, 314, 273, 272, 14, 69, 15, 88, 14, 70, 273, 14876, 12, 69, 16, 70, 2934, 225, 272, 410, 30, 619, 75, 4315, 12, 4313, 16, 13291, 13, 261, 24, 16, 1059, 16, 300, 25, 13, 272, 410, 30, 1059, 14, 4313, 397, 24927, 25, 17653, 6334, 1059, 272, 410, 30, 619, 75, 4315, 12, 25, 19, 21, 16, 2371, 19, 21, 13, 261, 21, 16, 890, 16, 300, 22, 13, 272, 410, 30, 619, 273, 2952, 4338, 275, 12, 53, 53, 13, 272, 410, 30, 619, 75, 4315, 12, 92, 66, 23, 300, 404, 16, 619, 66, 22, 300, 404, 13, 261, 92, 300, 404, 16, 404, 16, 300, 92, 13, 3536, 775, 30, 327, 279, 18, 92, 75, 4315, 12, 70, 13, 1335, 6394, 30, 1342, 309, 486, 1549, 12, 69, 16, 272, 410, 18, 86, 899, 18, 7745, 18, 4522, 4672, 279, 273, 3571, 67, 8022, 18, 27096, 12, 69, 13, 327, 279, 18, 92, 75, 4315, 12, 70, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 75, 4315, 12, 69, 16, 324, 4672, 3536, 2860, 14543, 434, 12321, 261, 75, 16, 87, 16, 88, 13, 4123, 716, 314, 273, 272, 14, 69, 15, 88, 14, 70, 273, 14876, 12, 69, 16, 70, 2934, 225, 272, 410, 30, 619, 75, 4315, 12, 4313, 16, 13291, 13, 261, 24, 16, 1059, 16, 300, 25, 13, 272, 410, 30, 1059, 14, 4313, 397, 24927, 25, 17653, 6334, 1059, 272, 410, 30, 619, 75, 4315, 12, 25, 19, 21, 16, 2371, 19, 21, 13, 261, 21, 16, 890, 16, 300, 22, 13, 272, 410, 30, 619, 273, 2952, 4338, 275, 12, 53, 53, 13, 272, 410, 30, 619, 75, 4315, 12, 92, 66, 23, 300, 404, 16, 2 ]
def check_simple_html(self):
def test_simple_html(self):
def check_simple_html(self): self._run_check("""
b7ef883bf29270d1acf9d78a6aaca78b06a69944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b7ef883bf29270d1acf9d78a6aaca78b06a69944/test_htmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9647, 67, 2620, 12, 2890, 4672, 365, 6315, 2681, 67, 1893, 2932, 3660, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9647, 67, 2620, 12, 2890, 4672, 365, 6315, 2681, 67, 1893, 2932, 3660, 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 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.UtcTimeStampField.__init__(self, 629) else quickfix.UtcTimeStampField.__init__(self, 629, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 5540, 13, 469, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 5540, 16, 501, 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 ]
entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry)
if not msg in self.__options.toexclude: entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry)
def __openseen(self, ttype, tstring, lineno): if ttype == tokenize.OP and tstring == ')': # We've seen the last of the translatable strings. Record the # line number of the first line of the strings and update the list # of messages seen. Reset state for the next batch. If there # were no strings inside _(), then just ignore this entry. if self.__data: msg = string.join(self.__data, '') entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry) self.__state = self.__waiting elif ttype == tokenize.STRING: self.__data.append(safe_eval(tstring)) # TBD: should we warn if we seen anything else?
52043ea2b7a4417a947165040dd20990b822491f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52043ea2b7a4417a947165040dd20990b822491f/pygettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3190, 15156, 12, 2890, 16, 27963, 16, 268, 1080, 16, 7586, 4672, 309, 27963, 422, 13672, 18, 3665, 471, 268, 1080, 422, 5777, 30, 468, 1660, 8081, 5881, 326, 1142, 434, 326, 21884, 2064, 18, 225, 5059, 326, 468, 980, 1300, 434, 326, 1122, 980, 434, 326, 2064, 471, 1089, 326, 666, 468, 434, 2743, 5881, 18, 225, 7151, 919, 364, 326, 1024, 2581, 18, 225, 971, 1915, 468, 4591, 1158, 2064, 4832, 389, 9334, 1508, 2537, 2305, 333, 1241, 18, 309, 365, 16186, 892, 30, 1234, 273, 533, 18, 5701, 12, 2890, 16186, 892, 16, 28707, 309, 486, 1234, 316, 365, 16186, 2116, 18, 869, 10157, 30, 1241, 273, 261, 2890, 16186, 1397, 768, 16, 365, 16186, 17782, 13, 4739, 275, 538, 273, 365, 16186, 6833, 18, 588, 12, 3576, 13, 309, 4739, 275, 538, 353, 599, 30, 365, 16186, 6833, 63, 3576, 65, 273, 306, 4099, 65, 469, 30, 4739, 275, 538, 18, 6923, 12, 4099, 13, 365, 16186, 2019, 273, 365, 16186, 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3190, 15156, 12, 2890, 16, 27963, 16, 268, 1080, 16, 7586, 4672, 309, 27963, 422, 13672, 18, 3665, 471, 268, 1080, 422, 5777, 30, 468, 1660, 8081, 5881, 326, 1142, 434, 326, 21884, 2064, 18, 225, 5059, 326, 468, 980, 1300, 434, 326, 1122, 980, 434, 326, 2064, 471, 1089, 326, 666, 468, 434, 2743, 5881, 18, 225, 7151, 919, 364, 326, 1024, 2581, 18, 225, 971, 1915, 468, 4591, 1158, 2064, 4832, 389, 9334, 1508, 2537, 2305, 333, 1241, 18, 309, 365, 16186, 892, 30, 1234, 273, 533, 18, 5701, 12, 2890, 16186, 892, 16, 28707, 309, 486, 1234, 316, 365, 16186, 2116, 18, 869, 10157, 30, 1241, 273, 261, 2890, 16186, 1397, 768, 16, 365, 2 ]
self.metaList.insertItem(self.createListItem(itemType,itemText))
self.metaList.insertItem(self.icons[itemType],itemText)
def onMetaButtonClicked(self): self.internalSelectionUpdateFlag = self.internalSelectionUpdateFlag + 1 if self.metaButtonLeft: self.removeSelectedItems(self.metaList) else: for i in range(0, self.inputAttributesList.count()): if (self.inputAttributesList.isSelected(i)): itemText = str(self.inputAttributesList.text(i)) itemType = self.data.domain[itemText].varType self.metaList.insertItem(self.createListItem(itemType,itemText))
c60b799c2d721cec880f1547ee4418a162265b81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c60b799c2d721cec880f1547ee4418a162265b81/OWDataDomain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2781, 3616, 27633, 12, 2890, 4672, 365, 18, 7236, 6233, 1891, 4678, 273, 365, 18, 7236, 6233, 1891, 4678, 397, 404, 309, 365, 18, 3901, 3616, 3910, 30, 365, 18, 4479, 7416, 3126, 12, 2890, 18, 3901, 682, 13, 469, 30, 364, 277, 316, 1048, 12, 20, 16, 365, 18, 2630, 2498, 682, 18, 1883, 1435, 4672, 309, 261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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, 603, 2781, 3616, 27633, 12, 2890, 4672, 365, 18, 7236, 6233, 1891, 4678, 273, 365, 18, 7236, 6233, 1891, 4678, 397, 404, 309, 365, 18, 3901, 3616, 3910, 30, 365, 18, 4479, 7416, 3126, 12, 2890, 18, 3901, 682, 13, 469, 30, 364, 277, 316, 1048, 12, 20, 16, 365, 18, 2630, 2498, 682, 18, 1883, 1435, 4672, 309, 261, 2890, 18, 2630, 2498, 682, 18, 291, 7416, 12, 77, 3719, 30, 761, 1528, 273, 609, 12, 2890, 18, 2630, 2498, 682, 18, 955, 12, 77, 3719, 23080, 273, 365, 18, 892, 18, 4308, 63, 1726, 1528, 8009, 1401, 559, 365, 18, 3901, 682, 18, 6387, 1180, 12, 2890, 18, 2640, 13575, 12, 1726, 559, 16, 1726, 1528, 2 ]
security.declarePublic('styleselect')
security.declarePublic('styleselect_text')
def includeLibs(self, lang=None): """ Returns HTML code that includes required JavaScript libraries. Parameters: `lang` **Not used** """ return '<script language="JavaScript" \
8c8633f2bcc2e562504acb3b04c0239a78f71cb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/8c8633f2bcc2e562504acb3b04c0239a78f71cb5/EditorTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2341, 5664, 87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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2341, 5664, 87, 12, 2890, 16, 3303, 33, 7036, 4672, 3536, 2860, 3982, 981, 716, 6104, 1931, 11905, 14732, 18, 7012, 30, 1375, 4936, 68, 2826, 1248, 1399, 636, 3536, 327, 2368, 4263, 2653, 1546, 16634, 6, 521, 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 ]
i = self.i l = self.l p = self.p h = self.headersize
h = self.header size = self.calcsize
def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_sizeof([1, 2, 3], h + l + p + l + 3*l) # unicode usize = len(u'\0'.encode('unicode-internal')) samples = [u'', u'1'*100] # we need to test for both sizes, because we don't know if the string # has been cached for s in samples: basicsize = h + l + p + l + p + usize * (len(s) + 1) self.check_sizeof(s, basicsize,\ size2=basicsize + sys.getsizeof(str(s))) # XXX trigger caching encoded version as Python string s = samples[1] try: getattr(sys, s) except AttributeError: pass finally: self.check_sizeof(s, basicsize + sys.getsizeof(str(s)))
300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 2352, 12, 2890, 4672, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23506, 16, 366, 397, 890, 14, 80, 397, 890, 14, 84, 397, 1725, 21556, 80, 397, 576, 14, 84, 3719, 1525, 1576, 273, 288, 21, 30, 21, 16, 576, 30, 22, 16, 890, 30, 23, 16, 1059, 30, 24, 16, 1381, 30, 25, 16, 1666, 30, 26, 16, 2371, 30, 27, 16, 1725, 30, 28, 97, 365, 18, 1893, 67, 1467, 792, 12, 5748, 1576, 16, 366, 397, 890, 14, 80, 397, 890, 14, 84, 397, 1725, 21556, 80, 397, 576, 14, 84, 13, 397, 2872, 21556, 80, 397, 576, 14, 84, 3719, 468, 666, 365, 18, 1893, 67, 1467, 792, 3816, 6487, 366, 397, 328, 397, 293, 397, 328, 13, 365, 18, 1893, 67, 1467, 792, 3816, 21, 16, 576, 16, 890, 6487, 366, 397, 328, 397, 293, 397, 328, 397, 890, 14, 80, 13, 468, 5252, 584, 554, 273, 562, 12, 89, 8314, 20, 10332, 3015, 2668, 9124, 17, 7236, 26112, 5216, 273, 306, 89, 11, 2187, 582, 11, 21, 11, 14, 6625, 65, 468, 732, 1608, 358, 1842, 364, 3937, 8453, 16, 2724, 732, 2727, 1404, 5055, 309, 326, 533, 468, 711, 2118, 3472, 364, 272, 316, 5216, 30, 5337, 1467, 273, 225, 366, 397, 328, 397, 293, 397, 328, 397, 293, 397, 584, 554, 380, 261, 1897, 12, 87, 13, 397, 404, 13, 365, 18, 1893, 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, 1842, 67, 9371, 2352, 12, 2890, 4672, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23506, 16, 366, 397, 890, 14, 80, 397, 890, 14, 84, 397, 1725, 21556, 80, 397, 576, 14, 84, 3719, 1525, 1576, 273, 288, 21, 30, 21, 16, 576, 30, 22, 16, 890, 30, 23, 16, 1059, 30, 24, 16, 1381, 30, 25, 16, 1666, 30, 26, 16, 2371, 30, 27, 16, 1725, 30, 28, 97, 365, 18, 1893, 67, 1467, 792, 12, 5748, 1576, 16, 366, 397, 890, 14, 80, 397, 890, 14, 84, 397, 1725, 21556, 80, 397, 576, 14, 84, 13, 397, 2872, 21556, 80, 397, 576, 14, 84, 2 ]
CallLater(5, auth_failed)
auth_failed()
def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False
b89ca03de8ef4f30169d72d3120ee291481d5964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/b89ca03de8ef4f30169d72d3120ee291481d5964/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, 365, 18, 1896, 67, 5819, 67, 14359, 30, 1234, 273, 315, 25, 5082, 315, 397, 1234, 397, 315, 23957, 310, 1199, 365, 18, 17863, 12, 3576, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 4412, 67, 13723, 67, 8734, 1435, 469, 30, 365, 18, 17863, 2932, 25, 5082, 315, 397, 1234, 13, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, 365, 18, 1896, 67, 5819, 67, 14359, 30, 1234, 273, 315, 25, 5082, 315, 397, 1234, 397, 315, 23957, 310, 1199, 365, 18, 17863, 12, 3576, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 4412, 67, 13723, 67, 8734, 1435, 469, 30, 365, 18, 17863, 2932, 25, 5082, 315, 397, 1234, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 19607, 310, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __str__(self): return "The projective general unitary group of degree %s over %s\n (matrix representation has coefficients in %s)"%(self._n, self.base_ring(), self.field_of_definition())
def _repr_(self): return "The projective general unitary group of degree %s over %s"%(self._n, self.base_ring())
def __str__(self): return "The projective general unitary group of degree %s over %s\n (matrix representation has coefficients in %s)"%(self._n, self.base_ring(), self.field_of_definition())
eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1986, 1984, 688, 7470,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1986, 1984, 688, 7470, 2836, 814, 1041, 434, 10782, 738, 87, 1879, 738, 87, 64, 82, 261, 5667, 4335, 711, 14229, 316, 738, 87, 2225, 17105, 2890, 6315, 82, 16, 365, 18, 1969, 67, 8022, 9334, 365, 18, 1518, 67, 792, 67, 6907, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def test_sf_person_projects_lookup(self):
def _test_sf_person_projects_lookup(self):
def test_sf_person_projects_lookup(self): self.test_import_one_flossmole_row(delete_now=False) url = 'http://openhatch.org/people/sf_projects_by_person?u=paulproteus' tc.go(make_twill_url(url)) tc.find('zoph')
bd1b10dfc47e60d4853357873707d614c4bebf8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/bd1b10dfc47e60d4853357873707d614c4bebf8b/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 21668, 67, 12479, 67, 13582, 67, 8664, 12, 2890, 4672, 365, 18, 3813, 67, 5666, 67, 476, 67, 74, 7873, 81, 790, 67, 492, 12, 3733, 67, 3338, 33, 8381, 13, 880, 273, 296, 2505, 2207, 3190, 76, 505, 18, 3341, 19, 28035, 19, 21668, 67, 13582, 67, 1637, 67, 12479, 35, 89, 33, 8774, 332, 685, 736, 407, 11, 1715, 18, 3240, 12, 6540, 67, 11246, 737, 67, 718, 12, 718, 3719, 1715, 18, 4720, 2668, 94, 23169, 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, 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, 389, 3813, 67, 21668, 67, 12479, 67, 13582, 67, 8664, 12, 2890, 4672, 365, 18, 3813, 67, 5666, 67, 476, 67, 74, 7873, 81, 790, 67, 492, 12, 3733, 67, 3338, 33, 8381, 13, 880, 273, 296, 2505, 2207, 3190, 76, 505, 18, 3341, 19, 28035, 19, 21668, 67, 13582, 67, 1637, 67, 12479, 35, 89, 33, 8774, 332, 685, 736, 407, 11, 1715, 18, 3240, 12, 6540, 67, 11246, 737, 67, 718, 12, 718, 3719, 1715, 18, 4720, 2668, 94, 23169, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _basic_get_ok(self, args):
def _basic_get_ok(self, args, msg):
def _basic_get_ok(self, args): """ provide client with a message
53019bb5fd2a3405591b5928a9feefa8d7b950c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10764/53019bb5fd2a3405591b5928a9feefa8d7b950c8/client_0_8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13240, 67, 588, 67, 601, 12, 2890, 16, 833, 16, 1234, 4672, 3536, 5615, 1004, 598, 279, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13240, 67, 588, 67, 601, 12, 2890, 16, 833, 16, 1234, 4672, 3536, 5615, 1004, 598, 279, 883, 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 ]
pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1])
align_code = align_codes[attrs['align']] pre.append(align_code[0]) post.append(align_code[1])
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) # alignment defaults: if not 'align' in attrs: # Set default align of image in a figure to 'center' if isinstance(node.parent, nodes.figure): attrs['align'] = 'center' # query 'align-*' class argument for cls in node['classes']: if cls.startswith('align-'): attrs['align'] = cls.split('-')[1] # pre- and postfix (prefix inserted in reverse order) pre = [] post = [] include_graphics_options = [] is_inline = self.is_inline(node) align_prepost = { # key == (<is_inline>, <align>) # By default latex aligns the bottom of an image. (True, 'bottom'): ('', ''), (True, 'middle'): (r'\raisebox{-0.5\height}{', '}'), (True, 'top'): (r'\raisebox{-\height}{', '}'), (False, 'center'): (r'\noindent\makebox[\textwidth][c]{', '}'), (False, 'left'): (r'\noindent{', r'\hfill}'), (False, 'right'): (r'\noindent{\hfill', '}'),} if 'align' in attrs: try: pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1]) except KeyError: pass # TODO: warn? if 'height' in attrs: include_graphics_options.append('height=%s' % self.to_latex_length(attrs['height'])) if 'scale' in attrs: include_graphics_options.append('scale=%f' % (attrs['scale'] / 100.0)) ## # Could also be done with ``scale`` option to ## # ``\includegraphics``; doing it this way for consistency. ## pre.append('\\scalebox{%f}{' % (attrs['scale'] / 100.0,)) ## post.append('}') if 'width' in attrs: include_graphics_options.append('width=%s' % self.to_latex_length(attrs['width'])) if not is_inline: pre.append('\n') post.append('\n') pre.reverse() self.out.extend(pre) self.append_hypertargets(node) options = '' if include_graphics_options: options = '[%s]' % (','.join(include_graphics_options)) self.out.append('\\includegraphics%s{%s}' % (options, attrs['uri'])) self.out.extend(post)
be1fbeb9faee010ab9af5286d03796b46342047e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/be1fbeb9faee010ab9af5286d03796b46342047e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18, 4272, 18, 3366, 67, 11037, 18, 1289, 12, 7039, 3292, 1650, 19486, 468, 8710, 3467, 30, 309, 486, 296, 7989, 11, 316, 3422, 30, 468, 1000, 805, 5689, 434, 1316, 316, 279, 7837, 358, 296, 5693, 11, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 19675, 4672, 3422, 3292, 7989, 3546, 273, 296, 5693, 11, 468, 843, 296, 7989, 17, 4035, 667, 1237, 364, 2028, 316, 756, 3292, 4701, 3546, 30, 309, 2028, 18, 17514, 1918, 2668, 7989, 6627, 4672, 3422, 3292, 7989, 3546, 273, 2028, 18, 4939, 2668, 17, 6134, 63, 21, 65, 468, 675, 17, 471, 18923, 261, 3239, 9564, 316, 4219, 1353, 13, 675, 273, 5378, 1603, 273, 5378, 2341, 67, 31586, 67, 2116, 273, 5378, 353, 67, 10047, 273, 365, 18, 291, 67, 10047, 12, 2159, 13, 5689, 67, 1484, 2767, 273, 288, 468, 498, 422, 261, 32, 291, 67, 10047, 20401, 411, 7989, 23429, 468, 2525, 805, 25079, 5689, 87, 326, 5469, 434, 392, 1316, 18, 261, 5510, 16, 296, 9176, 11, 4672, 7707, 2187, 875, 3631, 261, 5510, 16, 296, 18661, 11, 4672, 261, 86, 8314, 11628, 2147, 95, 17, 20, 18, 25, 64, 4210, 8637, 2187, 9571, 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, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18, 4272, 18, 3366, 67, 11037, 18, 1289, 12, 7039, 3292, 1650, 19486, 468, 8710, 3467, 30, 309, 486, 296, 7989, 11, 316, 3422, 30, 468, 1000, 805, 5689, 434, 1316, 316, 279, 7837, 358, 296, 5693, 11, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 19675, 4672, 3422, 3292, 7989, 3546, 273, 296, 5693, 11, 468, 843, 296, 7989, 17, 4035, 667, 1237, 364, 2028, 316, 2 ]
upgrade_graph(graph, module_list, force)
upgrade_graph(graph, cr, module_list, force)
def create_graph(module_list, force=None): graph = Graph() upgrade_graph(graph, module_list, force) return graph
f5724590ce894a156c7e5fb63648f1b355d22f58 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f5724590ce894a156c7e5fb63648f1b355d22f58/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4660, 12, 2978, 67, 1098, 16, 2944, 33, 7036, 4672, 2667, 273, 5601, 1435, 8400, 67, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 13, 327, 2667, 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,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, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 13, 327, 2667, 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 ]
'B,MinorLinkerVersion', 'L,SizeOfCode', 'L,SizeOfInitializedData', 'L,SizeOfUninitializedData', 'L,AddressOfEntryPoint', 'L,BaseOfCode', 'Q,ImageBase', 'L,SectionAlignment', 'L,FileAlignment',
'B,MinorLinkerVersion', 'I,SizeOfCode', 'I,SizeOfInitializedData', 'I,SizeOfUninitializedData', 'I,AddressOfEntryPoint', 'I,BaseOfCode', 'Q,ImageBase', 'I,SectionAlignment', 'I,FileAlignment',
def __init__(self, **args): for key, value in args.items(): setattr(self, key, value)
b1bfd27bf7c329d36f68dc5f4ed5adda7c025501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4177/b1bfd27bf7c329d36f68dc5f4ed5adda7c025501/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 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 ]
eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset, borderColor, borderWidth)
eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, borderColor, borderWidth)
def loadSingleSkinData(desktop, skin, path_prefix): """loads skin data like colors, windowstyle etc.""" assert skin.tag == "skin", "root element in skin must be 'skin'!" #print "***SKIN: ", path_prefix for c in skin.findall("output"): id = c.attrib.get('id') if id: id = int(id) else: id = 0 if id == 0: # framebuffer for res in c.findall("resolution"): get_attr = res.attrib.get xres = get_attr("xres") if xres: xres = int(xres) else: xres = 720 yres = get_attr("yres") if yres: yres = int(yres) else: yres = 576 bpp = get_attr("bpp") if bpp: bpp = int(bpp) else: bpp = 32 #print "Resolution:", xres,yres,bpp from enigma import gFBDC gFBDC.getInstance().setResolution(xres, yres) desktop.resize(eSize(xres, yres)) if bpp != 32: # load palette (not yet implemented) pass for c in skin.findall("colors"): for color in c.findall("color"): get_attr = color.attrib.get name = get_attr("name") color = get_attr("value") if name and color: colorNames[name] = parseColor(color) #print "Color:", name, color else: raise SkinError("need color and name, got %s %s" % (name, color)) for c in skin.findall("fonts"): for font in c.findall("font"): get_attr = font.attrib.get filename = get_attr("filename", "<NONAME>") name = get_attr("name", "Regular") scale = get_attr("scale") if scale: scale = int(scale) else: scale = 100 is_replacement = get_attr("replacement") and True or False render = get_attr("render") if render: render = int(render) else: render = 0 resolved_font = resolveFilename(SCOPE_FONTS, filename, path_prefix=path_prefix) if not fileExists(resolved_font): #when font is not available look at current skin path skin_path = resolveFilename(SCOPE_CURRENT_SKIN, filename) if fileExists(skin_path): resolved_font = skin_path addFont(resolved_font, name, scale, is_replacement, render) #print "Font: ", resolved_font, name, scale, is_replacement for c in skin.findall("subtitles"): from enigma import eWidget, eSubtitleWidget scale = ((1,1),(1,1)) for substyle in c.findall("sub"): get_attr = substyle.attrib.get font = parseFont(get_attr("font"), scale) col = get_attr("foregroundColor") if col: foregroundColor = parseColor(col) haveColor = 1 else: foregroundColor = gRGB(0xFFFFFF) haveColor = 0 col = get_attr("borderColor") if col: borderColor = parseColor(col) else: borderColor = gRGB(0) borderwidth = get_attr("borderWidth") if borderwidth is None: # default: use a subtitle border borderwidth = 3 else: borderWidth = int(borderwidth) face = eSubtitleWidget.__dict__[get_attr("name")] eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset, borderColor, borderWidth) for windowstyle in skin.findall("windowstyle"): style = eWindowStyleSkinned() id = windowstyle.attrib.get("id") if id: id = int(id) else: id = 0 #print "windowstyle:", id # defaults font = gFont("Regular", 20) offset = eSize(20, 5) for title in windowstyle.findall("title"): get_attr = title.attrib.get offset = parseSize(get_attr("offset"), ((1,1),(1,1))) font = parseFont(get_attr("font"), ((1,1),(1,1))) style.setTitleFont(font); style.setTitleOffset(offset) #print " ", font, offset for borderset in windowstyle.findall("borderset"): bsName = str(borderset.attrib.get("name")) for pixmap in borderset.findall("pixmap"): get_attr = pixmap.attrib.get bpName = get_attr("pos") filename = get_attr("filename") if filename and bpName: png = loadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, filename, path_prefix=path_prefix), desktop) style.setPixmap(eWindowStyleSkinned.__dict__[bsName], eWindowStyleSkinned.__dict__[bpName], png) #print " borderset:", bpName, filename for color in windowstyle.findall("color"): get_attr = color.attrib.get colorType = get_attr("name") color = parseColor(get_attr("color")) try: style.setColor(eWindowStyleSkinned.__dict__["col" + colorType], color) except: raise SkinError("Unknown color %s" % (colorType)) #pass #print " color:", type, color x = eWindowStyleManager.getInstance() x.setStyle(id, style)
674388bdc427410dbc396ab9c30db6db10f92e63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/674388bdc427410dbc396ab9c30db6db10f92e63/skin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5281, 26827, 751, 12, 31949, 16, 18705, 16, 589, 67, 3239, 4672, 3536, 17135, 18705, 501, 3007, 5740, 16, 2742, 4060, 5527, 12123, 1815, 18705, 18, 2692, 422, 315, 7771, 267, 3113, 315, 3085, 930, 316, 18705, 1297, 506, 296, 7771, 267, 11, 4442, 225, 468, 1188, 315, 14465, 11129, 706, 30, 3104, 589, 67, 3239, 225, 364, 276, 316, 18705, 18, 4720, 454, 2932, 2844, 6, 4672, 612, 273, 276, 18, 14588, 18, 588, 2668, 350, 6134, 309, 612, 30, 612, 273, 509, 12, 350, 13, 469, 30, 612, 273, 374, 309, 612, 422, 374, 30, 468, 2623, 4106, 364, 400, 316, 276, 18, 4720, 454, 2932, 19182, 6, 4672, 336, 67, 1747, 273, 400, 18, 14588, 18, 588, 619, 455, 273, 336, 67, 1747, 2932, 92, 455, 7923, 309, 619, 455, 30, 619, 455, 273, 509, 12, 92, 455, 13, 469, 30, 619, 455, 273, 2371, 3462, 677, 455, 273, 336, 67, 1747, 2932, 93, 455, 7923, 309, 677, 455, 30, 677, 455, 273, 509, 12, 93, 455, 13, 469, 30, 677, 455, 273, 1381, 6669, 9107, 84, 273, 336, 67, 1747, 2932, 70, 11858, 7923, 309, 9107, 84, 30, 9107, 84, 273, 509, 12, 70, 11858, 13, 469, 30, 9107, 84, 273, 3847, 468, 1188, 315, 11098, 2773, 16, 619, 455, 16, 93, 455, 16, 70, 11858, 628, 570, 17288, 1930, 314, 22201, 5528, 314, 22201, 5528, 18, 588, 1442, 7675, 542, 11098, 12, 92, 455, 16, 677, 455, 13, 21304, 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, 1262, 5281, 26827, 751, 12, 31949, 16, 18705, 16, 589, 67, 3239, 4672, 3536, 17135, 18705, 501, 3007, 5740, 16, 2742, 4060, 5527, 12123, 1815, 18705, 18, 2692, 422, 315, 7771, 267, 3113, 315, 3085, 930, 316, 18705, 1297, 506, 296, 7771, 267, 11, 4442, 225, 468, 1188, 315, 14465, 11129, 706, 30, 3104, 589, 67, 3239, 225, 364, 276, 316, 18705, 18, 4720, 454, 2932, 2844, 6, 4672, 612, 273, 276, 18, 14588, 18, 588, 2668, 350, 6134, 309, 612, 30, 612, 273, 509, 12, 350, 13, 469, 30, 612, 273, 374, 309, 612, 422, 374, 30, 468, 2623, 4106, 364, 400, 316, 276, 18, 4720, 454, 2932, 19182, 6, 4672, 336, 67, 1747, 273, 400, 18, 2 ]
db="dbglog",
db="pharos",
def setup(): web.config.db_parameters = dict(dbn="postgres", db="dbglog", user="pharos", pw="pharos") web.load()
8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c/logdaemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 3311, 18, 1425, 18, 1966, 67, 3977, 273, 2065, 12, 1966, 82, 1546, 2767, 14107, 3113, 225, 1319, 1546, 844, 297, 538, 3113, 729, 1546, 844, 297, 538, 3113, 8772, 1546, 844, 297, 538, 7923, 3311, 18, 945, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 3311, 18, 1425, 18, 1966, 67, 3977, 273, 2065, 12, 1966, 82, 1546, 2767, 14107, 3113, 225, 1319, 1546, 844, 297, 538, 3113, 729, 1546, 844, 297, 538, 3113, 8772, 1546, 844, 297, 538, 7923, 3311, 18, 945, 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 ]
if not utc:
if not self.utc:
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount self.utc = utc # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Also set the filename suffix used when # a rollover occurs. Current 'when' events supported: # S - Seconds # M - Minutes # H - Hours # D - Days # midnight - roll over at midnight # W{0-6} - roll over on a certain day; 0 - Monday # # Case of the 'when' specifier is not important; lower or upper case # will work. currentTime = int(time.time()) if self.when == 'S': self.interval = 1 # one second self.suffix = "%Y-%m-%d_%H-%M-%S" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}$" elif self.when == 'M': self.interval = 60 # one minute self.suffix = "%Y-%m-%d_%H-%M" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$" elif self.when == 'H': self.interval = 60 * 60 # one hour self.suffix = "%Y-%m-%d_%H" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}$" elif self.when == 'D' or self.when == 'MIDNIGHT': self.interval = 60 * 60 * 24 # one day self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" elif self.when.startswith('W'): self.interval = 60 * 60 * 24 * 7 # one week if len(self.when) != 2: raise ValueError("You must specify a day for weekly rollover from 0 to 6 (0 is Monday): %s" % self.when) if self.when[1] < '0' or self.when[1] > '6': raise ValueError("Invalid day specified for weekly rollover: %s" % self.when) self.dayOfWeek = int(self.when[1]) self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" else: raise ValueError("Invalid rollover interval specified: %s" % self.when)
023f1d5d69ff62bf33efaa43589476ffeebe60bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/023f1d5d69ff62bf33efaa43589476ffeebe60bb/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 16, 9439, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 16, 1544, 16, 296, 69, 2187, 2688, 16, 4624, 13, 365, 18, 13723, 273, 533, 18, 5797, 12, 13723, 13, 365, 18, 9572, 1380, 273, 5114, 1380, 365, 18, 17892, 273, 9439, 468, 9029, 326, 2863, 10643, 21896, 3673, 16, 1492, 353, 2537, 326, 1300, 434, 468, 3974, 3086, 10643, 383, 2496, 18, 225, 8080, 444, 326, 1544, 3758, 1399, 1347, 468, 279, 10643, 21896, 9938, 18, 225, 6562, 296, 13723, 11, 2641, 3260, 30, 468, 348, 300, 18301, 468, 490, 300, 5444, 993, 468, 670, 300, 670, 4390, 468, 463, 300, 463, 8271, 468, 7501, 18840, 300, 5824, 1879, 622, 7501, 18840, 468, 678, 95, 20, 17, 26, 97, 300, 5824, 1879, 603, 279, 8626, 2548, 31, 374, 300, 490, 28612, 468, 468, 12605, 434, 326, 296, 13723, 11, 24562, 353, 486, 10802, 31, 2612, 578, 3854, 648, 468, 903, 1440, 18, 6680, 273, 509, 12, 957, 18, 957, 10756, 309, 365, 18, 13723, 422, 296, 55, 4278, 365, 18, 6624, 273, 404, 468, 1245, 2205, 365, 18, 8477, 273, 2213, 61, 6456, 81, 6456, 72, 10185, 44, 6456, 49, 6456, 55, 6, 365, 18, 408, 2060, 273, 436, 6, 17134, 72, 95, 24, 97, 6943, 72, 95, 22, 97, 6943, 72, 95, 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, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 16, 9439, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 16, 1544, 16, 296, 69, 2187, 2688, 16, 4624, 13, 365, 18, 13723, 273, 533, 18, 5797, 12, 13723, 13, 365, 18, 9572, 1380, 273, 5114, 1380, 365, 18, 17892, 273, 9439, 468, 9029, 326, 2863, 10643, 21896, 3673, 16, 1492, 353, 2537, 326, 1300, 434, 468, 3974, 3086, 10643, 383, 2496, 18, 225, 8080, 444, 326, 1544, 3758, 1399, 1347, 468, 279, 10643, 21896, 9938, 18, 225, 6562, 296, 13723, 11, 2641, 3260, 30, 468, 2 ]
if os.getuid() == 0: if config.log_file: os.chown(config.log_file, config.uid, config.gid) log.debug("Changed owner of log file %s to uid=%d, gid=%d", config.log_file, config.uid, config.gid) os.setgid(config.gid) os.setuid(config.uid) log.info("Dropped root privileges to uid=%d, gid=%d", config.uid, config.gid)
def init_tests(self): """ Initialize testing infrastructure - sockets, resource limits, etc. """ # Init Twisted factory. self.server_factory = network.TestServerFactory(controller = self) #self.client_factory = TestClientFactory(controller = self)
8b8425c1d4067c7805ef91259b32619bb0dc70f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/8b8425c1d4067c7805ef91259b32619bb0dc70f4/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 16341, 12, 2890, 4672, 3536, 9190, 7769, 316, 26150, 300, 16762, 16, 1058, 8181, 16, 5527, 18, 3536, 468, 4378, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 16341, 12, 2890, 4672, 3536, 9190, 7769, 316, 26150, 300, 16762, 16, 1058, 8181, 16, 5527, 18, 3536, 468, 4378, 12694, 25444, 3272, 18, 365, 18, 3567, 67, 6848, 273, 2483, 18, 4709, 2081, 1733, 12, 5723, 273, 365, 13, 468, 2890, 18, 2625, 67, 6848, 273, 7766, 1227, 1733, 12, 5723, 273, 365, 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 ]
GROUP BY file, item_name.value ORDER BY item_name.value ORDER BY unit""", (build.id, step.name))
GROUP BY file, item_name.value ORDER BY item_name.value""", (build.id, step.name))
def render_summary(self, req, config, build, step, category): assert category == 'coverage'
13b661eacb662e44e5a74c584e0219a82c9f624c /local1/tlutelli/issta_data/temp/all_python//python/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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, 1743, 67, 7687, 12, 2890, 16, 1111, 16, 642, 16, 1361, 16, 2235, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"pydot","asyncore","asynchat", "reportlab", "vobject"],
"pydot","asyncore","asynchat", "reportlab", "vobject", "HTMLParser"],
def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) for (dp,dn,names) in os.walk('i18n'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('..') for (dp,dn,names) in os.walk('doc'): files.append((dp, map(lambda x: opj(dp, x), names))) files.append(('.', [('bin/import_xml.rng')])) else: man_directory = opj('share', 'man') files.append((opj(man_directory, 'man1'), ['man/openerp-server.1'])) files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5'])) doc_directory = opj('share', 'doc', 'openerp-server-%s' % version) files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.3.0-3.4.0'), [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.4.0-4.0.0'), [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)])) openerp_site_packages = opj('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server') files.append((opj(openerp_site_packages, 'i18n'), glob.glob('bin/i18n/*'))) files.append((opj(openerp_site_packages, 'addons', 'custom'), glob.glob('bin/addons/custom/*xml') + glob.glob('bin/addons/custom/*rml') + glob.glob('bin/addons/custom/*xsl'))) files.append((openerp_site_packages, [('bin/import_xml.rng')])) for addon in find_addons(): add_path = addon.replace('.', os.path.sep).replace('openerp-server', 'bin', 1) addon_path = opj('lib', 'python%s' % py_short_version, 'site-packages', add_path.replace('bin', 'openerp-server', 1)) pathfiles = [ ( addon_path, glob.glob(opj(add_path, '*xml')) + glob.glob(opj(add_path, '*csv')) + glob.glob(opj(add_path, '*sql')) ), ( opj(addon_path, 'data'), glob.glob(opj(add_path, 'data', '*xml')) ), ( opj(addon_path, 'report'), glob.glob(opj(add_path, 'report', '*xml')) + glob.glob(opj(add_path, 'report', '*rml')) + glob.glob(opj(add_path, 'report', '*sxw')) + glob.glob(opj(add_path, 'report', '*xsl')) ), ( opj(addon_path, 'security'), glob.glob(opj(add_path, 'security', '*csv')) + glob.glob(opj(add_path, 'security', '*xml')) ), ( opj(addon_path, 'rng'), glob.glob(opj(add_path, 'rng', '*rng')) ) ] files.extend(pathfiles) return files
fa09719fbf89e38b3a70be0360584fc0fbfe99d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/fa09719fbf89e38b3a70be0360584fc0fbfe99d2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 1289, 7008, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 77, 2643, 82, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 1140, 18, 343, 1214, 2668, 838, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 2434, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 12, 9295, 16, 619, 3631, 1257, 20349, 1390, 18, 6923, 12, 2668, 1093, 16, 306, 2668, 4757, 19, 5666, 67, 2902, 18, 86, 3368, 6134, 22643, 469, 30, 3161, 67, 5149, 273, 1061, 78, 2668, 14419, 2187, 296, 4728, 6134, 1390, 18, 6923, 12443, 556, 78, 12, 4728, 67, 5149, 16, 296, 4728, 21, 19899, 10228, 4728, 19, 25098, 84, 17, 3567, 18, 21, 3546, 3719, 1390, 18, 6923, 12443, 556, 78, 12, 4728, 67, 5149, 16, 296, 4728, 25, 19899, 10228, 4728, 19, 25098, 84, 67, 550, 1107, 71, 18, 25, 3546, 3719, 225, 997, 67, 5149, 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, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 1289, 7008, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 77, 2643, 82, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 1140, 18, 343, 1214, 2668, 838, 6134, 2 ]
"""Constructor. Usage: pen = Pen(*rest) Pen takes any number of optional argument. The interpretation of each optional argument depends on its data type: (1) Qt.PenStyle -- sets the style of the pen. (2) QColor or Qt.GlobalColor -- sets the color of the pen. (3) int -- sets the width of the pen. """
def __init__(self, *rest): """Constructor.
7f6e0aa341ffc2546ccda230fb1be9e78425aba8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5650/7f6e0aa341ffc2546ccda230fb1be9e78425aba8/qplt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 8792, 4672, 3536, 6293, 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,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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, 1001, 2738, 972, 12, 2890, 16, 380, 8792, 4672, 3536, 6293, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print(keys) print(vals) raise Exception("Number of vals does not equal number of keys")
raise Exception("Number of vals does not equal number of keys. \ Number of vals are: "+str(len(vals))+" and number of keys are: "+str(len(keys)))
def get_x_start_attributes(self): """ Extract ValueReference and Start attribute for all differentiated variables in the XML document. Returns: Dict with ValueReference as key and Start attribute as value. """ keys = self._xpatheval("//ScalarVariable/ValueReference/text()[../../VariableCategory=\"state\"][../../Attributes/*/Start]") vals = self._xpatheval("//ScalarVariable/Attributes/*/Start/text()[../../../../VariableCategory=\"state\"]") if len(keys)!=len(vals): print(keys) print(vals) raise Exception("Number of vals does not equal number of keys") return dict(zip(keys,vals))
f764f349d643190118591f5efb0058e97cef2494 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f764f349d643190118591f5efb0058e97cef2494/xmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 1937, 67, 4350, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 3603, 1566, 364, 777, 3775, 10206, 3152, 316, 326, 3167, 1668, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 487, 498, 471, 3603, 1566, 487, 460, 18, 225, 3536, 1311, 273, 365, 6315, 18644, 8622, 2932, 759, 13639, 3092, 19, 620, 2404, 19, 955, 1435, 63, 16644, 3092, 4457, 5189, 2019, 2412, 6362, 16644, 2498, 19, 5549, 1685, 4279, 13, 5773, 273, 365, 6315, 18644, 8622, 2932, 759, 13639, 3092, 19, 2498, 19, 5549, 1685, 19, 955, 1435, 63, 16644, 16644, 3092, 4457, 5189, 2019, 2412, 4279, 13, 309, 562, 12, 2452, 13, 5, 33, 1897, 12, 4524, 4672, 1002, 1185, 2932, 1854, 434, 5773, 1552, 486, 3959, 1300, 434, 1311, 18, 521, 3588, 434, 5773, 854, 30, 13773, 701, 12, 1897, 12, 4524, 3719, 9078, 471, 1300, 434, 1311, 854, 30, 13773, 701, 12, 1897, 12, 2452, 20349, 327, 2065, 12, 4450, 12, 2452, 16, 4524, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 1937, 67, 4350, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 3603, 1566, 364, 777, 3775, 10206, 3152, 316, 326, 3167, 1668, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 487, 498, 471, 3603, 1566, 487, 460, 18, 225, 3536, 1311, 273, 365, 6315, 18644, 8622, 2932, 759, 13639, 3092, 19, 620, 2404, 19, 955, 1435, 63, 16644, 3092, 4457, 5189, 2019, 2412, 6362, 16644, 2498, 19, 5549, 1685, 4279, 13, 5773, 273, 365, 6315, 18644, 8622, 2932, 759, 13639, 3092, 19, 2498, 19, 5549, 1685, 19, 955, 1435, 63, 16644, 16644, 3092, 4457, 5189, 2019, 2412, 4279, 13, 309, 562, 12, 2452, 13, 5, 33, 1897, 12, 4524, 4672, 1002, 1185, 2932, 1854, 2 ]
if str(data[i][1]) in ['nan', 'NaN']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i)
def _plot(funcs, xrange, parametric=False, polar=False, label='', randomize=True, **kwds): options = {'alpha':1,'thickness':1,'rgbcolor':(0,0,1), 'plot_points':200, 'plot_division':1000, 'max_bend': 0.1, 'rgbcolor': (0,0,1) } if kwds.has_key('color') and not kwds.has_key('rgbcolor'): kwds['rgbcolor'] = kwds['color'] del kwds['color'] options.update(kwds) #parametric_plot will be a list or tuple of two functions (f,g) #and will plotted as (f(x), g(x)) for all x in the given range if parametric: if len(funcs) == 3: raise ValueError, "use parametric_plot3d for parametric plots in 3d dimensions." elif len(funcs) == 2: # 2d f,g = funcs else: raise ValueError, "parametric plots only implemented in 2 and 3 dimensions." #or we have only a single function to be plotted: else: f = funcs plot_points = int(options.pop('plot_points')) x, data = var_and_list_of_values(xrange, plot_points) data = list(data) xmin = data[0] xmax = data[-1] #check to see if funcs is a list of functions that will #be all plotted together. if isinstance(funcs, (list, tuple)) and not parametric: return reduce(operator.add, (plot(f, (xmin, xmax), polar=polar, **kwds) for f in funcs)) if len(data) >= 2: delta = data[1]-data[0] else: delta = 0 random = current_randstate().python_random().random exceptions = 0; msg='' exception_indices = [] for i in range(len(data)): xi = data[i] # Slightly randomize the interior sample points if # randomize is true if i > 0 and i < plot_points-1: if randomize: xi += delta*random() if xi > xmax: xi = xmax elif i == plot_points-1: xi = xmax # guarantee that we get the last point. try: data[i] = (float(xi), float(f(xi))) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) if str(data[i][1]) in ['nan', 'NaN']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) data = [data[i] for i in range(len(data)) if i not in exception_indices] # adaptive refinement i, j = 0, 0 max_bend = float(options['max_bend']) del options['max_bend'] plot_division = int(options['plot_division']) del options['plot_division'] while i < len(data) - 1: if abs(data[i+1][1] - data[i][1]) > max_bend: x = float((data[i+1][0] + data[i][0])/2) try: y = float(f(x)) data.insert(i+1, (x, y)) except (ZeroDivisionError, TypeError, ValueError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 j += 1 if j > plot_division: break else: i += 1 if (len(data) == 0 and exceptions > 0) or exceptions > 10: sage.misc.misc.verbose("WARNING: When plotting, failed to evaluate function at %s points."%exceptions, level=0) sage.misc.misc.verbose("Last error message: '%s'"%msg, level=0) if parametric: data = [(fdata, g(x)) for x, fdata in data] if polar: data = [(y*cos(x), y*sin(x)) for x, y in data] G = line(data, **options) # Label? if label: label = ' '+str(label) G += text(label, data[-1], horizontal_alignment='left', vertical_alignment='center') return G
522d1c42d5fd1d753d437a08aeb09e3807cb076e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/522d1c42d5fd1d753d437a08aeb09e3807cb076e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4032, 12, 17728, 16, 12314, 16, 579, 1591, 33, 8381, 16, 24244, 33, 8381, 16, 1433, 2218, 2187, 2744, 554, 33, 5510, 16, 2826, 25577, 4672, 702, 273, 13666, 5429, 4278, 21, 11189, 451, 19517, 4278, 21, 11189, 10948, 3266, 4278, 12, 20, 16, 20, 16, 21, 3631, 296, 4032, 67, 4139, 4278, 6976, 16, 296, 4032, 67, 2892, 1951, 4278, 18088, 16, 296, 1896, 67, 70, 409, 4278, 374, 18, 21, 16, 296, 10948, 3266, 4278, 261, 20, 16, 20, 16, 21, 13, 289, 225, 309, 17149, 18, 5332, 67, 856, 2668, 3266, 6134, 471, 486, 17149, 18, 5332, 67, 856, 2668, 10948, 3266, 11, 4672, 17149, 3292, 10948, 3266, 3546, 273, 17149, 3292, 3266, 3546, 1464, 17149, 3292, 3266, 3546, 225, 702, 18, 2725, 12, 25577, 13, 225, 468, 891, 1591, 67, 4032, 903, 506, 279, 666, 578, 3193, 434, 2795, 4186, 261, 74, 16, 75, 13, 468, 464, 903, 3207, 2344, 487, 261, 74, 12, 92, 3631, 314, 12, 92, 3719, 364, 777, 619, 316, 326, 864, 1048, 309, 579, 1591, 30, 309, 562, 12, 17728, 13, 422, 890, 30, 1002, 2068, 16, 315, 1202, 579, 1591, 67, 4032, 23, 72, 364, 579, 1591, 17931, 316, 890, 72, 5769, 1199, 1327, 562, 12, 17728, 13, 422, 576, 30, 468, 576, 72, 284, 16, 75, 273, 15630, 469, 30, 1002, 2068, 16, 315, 891, 1591, 17931, 1338, 8249, 316, 576, 471, 890, 5769, 1199, 225, 468, 280, 732, 1240, 1338, 279, 2202, 445, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4032, 12, 17728, 16, 12314, 16, 579, 1591, 33, 8381, 16, 24244, 33, 8381, 16, 1433, 2218, 2187, 2744, 554, 33, 5510, 16, 2826, 25577, 4672, 702, 273, 13666, 5429, 4278, 21, 11189, 451, 19517, 4278, 21, 11189, 10948, 3266, 4278, 12, 20, 16, 20, 16, 21, 3631, 296, 4032, 67, 4139, 4278, 6976, 16, 296, 4032, 67, 2892, 1951, 4278, 18088, 16, 296, 1896, 67, 70, 409, 4278, 374, 18, 21, 16, 296, 10948, 3266, 4278, 261, 20, 16, 20, 16, 21, 13, 289, 225, 309, 17149, 18, 5332, 67, 856, 2668, 3266, 6134, 471, 486, 17149, 18, 5332, 67, 856, 2668, 10948, 3266, 11, 4672, 17149, 3292, 10948, 3266, 3546, 273, 17149, 3292, 3266, 3546, 2 ]
UNIT["feet",0.3048006],
UNIT["US survey foot",0.3048006096012192, AUTHORITY["EPSG","9003"]],
def genbin_1(): tst = gdaltest.GDALTest( 'GenBin', 'tm4628_96.bil', 1, 5738, 0, 0, 500, 1 ) prj = """PROJCS["NAD27 / Washington South", GEOGCS["NAD27", DATUM["North_American_Datum_1927", SPHEROID["Clarke 1866",6378206.4,294.9786982139103, AUTHORITY["EPSG","7008"]], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4267"]], UNIT["feet",0.3048006], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",45.83333333333334], PARAMETER["standard_parallel_2",47.33333333333334], PARAMETER["latitude_of_origin",45.33333333333334], PARAMETER["central_meridian",-120.5], PARAMETER["false_easting",2000000.063000002], PARAMETER["false_northing",0]]""" gt = (1181700.9894981384, 82.021003723042099, 0.0, 596254.01050186157, 0.0, -82.021003723045894 ) return tst.testOpen( check_prj = prj, check_gt = gt )
3943981708a2f7281f2edfa2bf14000a30c12a66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/3943981708a2f7281f2edfa2bf14000a30c12a66/genbin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4757, 67, 21, 13332, 225, 268, 334, 273, 15551, 2390, 395, 18, 27338, 1013, 4709, 12, 296, 7642, 9913, 2187, 296, 16925, 8749, 6030, 67, 10525, 18, 70, 330, 2187, 404, 16, 15981, 7414, 16, 374, 16, 374, 16, 6604, 16, 404, 262, 225, 27378, 273, 3536, 3373, 46, 4596, 9614, 50, 1880, 5324, 342, 678, 961, 310, 1917, 348, 15347, 3113, 17788, 13369, 4596, 9614, 50, 1880, 5324, 3113, 12364, 2799, 9614, 50, 7825, 67, 9864, 3036, 304, 67, 18268, 67, 3657, 5324, 3113, 11405, 3891, 12945, 9614, 2009, 1313, 73, 404, 5292, 26, 3113, 4449, 8285, 3462, 26, 18, 24, 16, 5540, 24, 18, 10580, 5292, 10689, 22, 24347, 23494, 16, 12790, 14751, 9614, 41, 5857, 43, 15937, 26874, 28, 11929, 6487, 12790, 14751, 9614, 41, 5857, 43, 15937, 26, 5558, 27, 11929, 6487, 10365, 12286, 9614, 21453, 91, 1354, 3113, 20, 16, 12790, 14751, 9614, 41, 5857, 43, 15937, 6675, 1611, 11929, 6487, 28721, 9614, 21361, 3113, 20, 18, 1611, 5608, 25, 1578, 29, 2947, 19818, 24, 1578, 28, 16, 12790, 14751, 9614, 41, 5857, 43, 15937, 29, 22266, 11929, 6487, 12790, 14751, 9614, 41, 5857, 43, 15937, 24, 5558, 27, 11929, 6487, 28721, 9614, 3378, 14902, 14200, 3113, 20, 18, 23, 3028, 17374, 4848, 10525, 1611, 22, 15561, 16, 12790, 14751, 9614, 41, 5857, 43, 15937, 29, 25425, 11929, 6487, 4629, 30781, 3106, 9614, 48, 301, 25925, 67, 442, 687, 287, 67, 442, 335, 67, 22, 3118, 6, 6487, 18120, 9614, 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, 3157, 4757, 67, 21, 13332, 225, 268, 334, 273, 15551, 2390, 395, 18, 27338, 1013, 4709, 12, 296, 7642, 9913, 2187, 296, 16925, 8749, 6030, 67, 10525, 18, 70, 330, 2187, 404, 16, 15981, 7414, 16, 374, 16, 374, 16, 6604, 16, 404, 262, 225, 27378, 273, 3536, 3373, 46, 4596, 9614, 50, 1880, 5324, 342, 678, 961, 310, 1917, 348, 15347, 3113, 17788, 13369, 4596, 9614, 50, 1880, 5324, 3113, 12364, 2799, 9614, 50, 7825, 67, 9864, 3036, 304, 67, 18268, 67, 3657, 5324, 3113, 11405, 3891, 12945, 9614, 2009, 1313, 73, 404, 5292, 26, 3113, 4449, 8285, 3462, 26, 18, 24, 16, 5540, 24, 18, 10580, 5292, 10689, 22, 24347, 23494, 16, 12790, 14751, 9614, 41, 2 ]
self.busname_box.set_hide_private(toggle.get_active())
a = toggle.get_active() if a: toggle.set_label("Show Private") else: toggle.set_label("Hide Private") self.busname_box.set_hide_private(a)
def hide_private_toggled_cb(self, toggle): self.busname_box.set_hide_private(toggle.get_active())
d5cf0286312d10d2e5a7e82ca47790455920cbf9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/d5cf0286312d10d2e5a7e82ca47790455920cbf9/_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 1152, 67, 88, 23972, 1259, 67, 7358, 12, 2890, 16, 10486, 4672, 365, 18, 9274, 529, 67, 2147, 18, 542, 67, 11248, 67, 1152, 12, 14401, 18, 588, 67, 3535, 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, 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8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 1152, 67, 88, 23972, 1259, 67, 7358, 12, 2890, 16, 10486, 4672, 365, 18, 9274, 529, 67, 2147, 18, 542, 67, 11248, 67, 1152, 12, 14401, 18, 588, 67, 3535, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
file.write("<?%s?>" % _escape_cdata(node.text, encoding))
file.write(_encode("<?%s?>" % _escape_cdata(node.text), encoding))
def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new namespaces in this scope try: if isinstance(tag, QName) or tag[:1] == "{": tag, xmlns = fixtag(tag, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(tag) file.write("<" + _encode(tag, encoding)) if items or xmlns_items: items.sort() # lexical order for k, v in items: try: if isinstance(k, QName) or k[:1] == "{": k, xmlns = fixtag(k, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(k) try: if isinstance(v, QName): v, xmlns = fixtag(v, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(v) file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) for k, v in xmlns_items: file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) if node.text or len(node): file.write(">") if node.text: file.write(_escape_cdata(node.text, encoding)) for n in node: self._write(file, n, encoding, namespaces) file.write("</" + _encode(tag, encoding) + ">") else: file.write(" />") for k, v in xmlns_items: del namespaces[v] if node.tail: file.write(_escape_cdata(node.tail, encoding))
e4cfaf8f7bb5d21848fb232e3757979401720c1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e4cfaf8f7bb5d21848fb232e3757979401720c1d/ElementTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 87, 1493, 2984, 738, 389, 6939, 67, 71, 892, 12, 2159, 18, 955, 16, 2688, 3719, 1327, 1047, 353, 19652, 11983, 30, 585, 18, 2626, 24899, 3015, 2932, 12880, 9, 87, 35, 2984, 738, 389, 6939, 67, 71, 892, 12, 2159, 18, 955, 3631, 2688, 3719, 469, 30, 1516, 273, 666, 12, 2159, 18, 3319, 10756, 12302, 67, 3319, 273, 5378, 468, 394, 7728, 316, 333, 2146, 775, 30, 309, 1549, 12, 2692, 16, 16723, 13, 578, 1047, 10531, 21, 65, 422, 4144, 6877, 1047, 16, 12302, 273, 2917, 2692, 12, 2692, 16, 7728, 13, 309, 12302, 30, 12302, 67, 3319, 18, 6923, 12, 16741, 13, 1335, 3580, 30, 389, 11628, 67, 8818, 1588, 67, 1636, 12, 2692, 13, 585, 18, 2626, 2932, 32, 6, 397, 389, 3015, 12, 2692, 16, 2688, 3719, 309, 1516, 578, 12302, 67, 3319, 30, 1516, 18, 3804, 1435, 468, 5275, 1706, 1353, 364, 417, 16, 331, 316, 1516, 30, 775, 30, 309, 1549, 12, 79, 16, 16723, 13, 578, 417, 10531, 21, 65, 422, 4144, 6877, 417, 16, 12302, 273, 2917, 2692, 12, 79, 16, 7728, 13, 309, 12302, 30, 12302, 67, 3319, 18, 6923, 12, 16741, 13, 1335, 3580, 30, 389, 11628, 67, 8818, 1588, 67, 1636, 12, 79, 13, 775, 30, 309, 1549, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 87, 1493, 2984, 738, 389, 6939, 67, 71, 892, 12, 2159, 18, 955, 16, 2688, 3719, 1327, 1047, 353, 19652, 11983, 30, 585, 18, 2626, 24899, 3015, 2932, 12880, 9, 87, 35, 2984, 738, 389, 6939, 67, 71, 892, 12, 2159, 18, 955, 3631, 2688, 3719, 469, 30, 1516, 273, 666, 12, 2159, 18, 3319, 10756, 12302, 67, 3319, 273, 5378, 468, 394, 7728, 316, 333, 2146, 775, 30, 309, 1549, 12, 2692, 16, 16723, 13, 578, 1047, 10531, 21, 65, 422, 4144, 2 ]
self.s_apply(self.r_reload, args)
return self.s_apply(self.r_reload, args)
def s_reload(self, *args): self.s_apply(self.r_reload, args)
9626d92183ad55670ae3bf25df8672eb992673fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9626d92183ad55670ae3bf25df8672eb992673fe/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 17517, 12, 2890, 16, 380, 1968, 4672, 365, 18, 87, 67, 9010, 12, 2890, 18, 86, 67, 17517, 16, 833, 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, 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18, 86, 67, 17517, 16, 833, 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 ]
M = Matrix(k,r,r,1)
M = Matrix(k, r, r, 1)
def mix_columns_matrix(self): """ Return the MixColumns matrix.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 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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 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for i in range(0,len(l2),e):
for i in range(0, len(l2), e):
def antiphi(self,l): """ Inverse of self.phi.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET"
if passwd: os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET"
def createProxy(certfile='',keyfile='',hours=0,bits=512,password=''): """ Create a new full legacy proxy and return it as a string """ debug = 0 openssl = "openssl" # Directory where all the temporary files will be put tmpdir = tempfile.mkdtemp() if hours > MAX_PROXY_VALIDITY_DAYS*24: hours = MAX_PROXY_VALIDITY_DAYS*24 if not certfile: result = getCertificateAndKey() if result: certfile,keyfile = result if not certfile: return S_ERROR('Grid credentials are not found') serial = 1000 result = getProxySerial(certfile) if result['OK']: serial = int(result['Value']) # Transform int into a hex string serial_string = hex(serial).replace('0x','').zfill(4).upper() serialfile = tmpdir+'/cert_serial' sfile = open(serialfile,'w') sfile.write(serial_string) sfile.close() configfile = tmpdir+'/proxy_config' newkeyfile = tmpdir+'/proxy_key' if debug: print "\nCreating new certificate request in %s" % configfile print "and placing private key in %s:" % newkeyfile configfile = __makeX509ConfigFile(configfile,certfile,bits) comm = openssl+" req -new -nodes -config %s -keyout %s " % (configfile,newkeyfile) if debug: print "\n",comm result = shellCall(0,comm) if not result['OK']: shutil.rmtree(tmpdir) return S_ERROR('Failed to create the proxy request') status,output,error = result['Value'] if status: if debug: print "--- Error creating proxy certificate!" print output shutil.rmtree(tmpdir) return S_ERROR('Failed to create the proxy request') requestfile = configfile+'.req' rfile = open(requestfile,'w') rfile.write(output) rfile.close() if debug: print "\nSigning certificate request" days = int(hours)/24 + 1 comm = openssl+" x509 -req -in %s -CAkey %s " % (requestfile,keyfile) comm = comm + "-extfile %s -extensions ext_section -days %s " % (configfile,days) comm = comm + "-CA %s -CAcreateserial -CAserial %s" % (certfile,serialfile) if not password: passwd = getpass.getpass("Enter GRID pass phrase:") else: passwd = password os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET" if debug: print "\n",comm,"\n" result = shellCall(0,comm) del os.environ['TMPTICKET'] if not result['OK']: shutil.rmtree(tmpdir) return result status,proxy,error = result['Value'] if status > 0: shutil.rmtree(tmpdir) return S_ERROR('Failed to create proxy: '+error) kf = open(newkeyfile,'r') newkey = kf.read() if debug: print "\nAppending user certificate" print "\nopenssl x509 -in "+certfile result = shellCall(0,openssl+' x509 -in '+certfile) if not result['OK']: shutil.rmtree(tmpdir) return S_ERROR('Failed to read in certificate') status,certificate,error = result['Value'] if status > 0: shutil.rmtree(tmpdir) return S_ERROR('Failed to read in certificate: '+error) shutil.rmtree(tmpdir) result_proxy = proxy+newkey+certificate return S_OK(result_proxy)
ccb3203977b697bf0db65d0281f24e9b329186b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/ccb3203977b697bf0db65d0281f24e9b329186b5/GridCredentials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3886, 12, 7593, 768, 2218, 2187, 856, 768, 2218, 2187, 16814, 33, 20, 16, 6789, 33, 13757, 16, 3664, 2218, 11, 4672, 3536, 1788, 279, 394, 1983, 8866, 2889, 471, 327, 518, 487, 279, 533, 3536, 1198, 273, 374, 14704, 273, 315, 27764, 6, 468, 8930, 1625, 777, 326, 6269, 1390, 903, 506, 1378, 20213, 273, 13275, 18, 24816, 72, 5814, 1435, 225, 309, 7507, 405, 4552, 67, 16085, 67, 5063, 4107, 67, 31551, 14, 3247, 30, 7507, 273, 4552, 67, 16085, 67, 5063, 4107, 67, 31551, 14, 3247, 225, 309, 486, 3320, 768, 30, 563, 273, 27653, 1876, 653, 1435, 309, 563, 30, 3320, 768, 16, 856, 768, 273, 563, 309, 486, 3320, 768, 30, 327, 348, 67, 3589, 2668, 6313, 4448, 854, 486, 1392, 6134, 225, 2734, 273, 4336, 563, 273, 18992, 6342, 12, 7593, 768, 13, 309, 563, 3292, 3141, 3546, 30, 2734, 273, 509, 12, 2088, 3292, 620, 19486, 468, 11514, 509, 1368, 279, 3827, 533, 2734, 67, 1080, 273, 3827, 12, 8818, 2934, 2079, 2668, 20, 92, 2187, 6309, 2934, 94, 5935, 12, 24, 2934, 5797, 1435, 2734, 768, 273, 20213, 6797, 19, 7593, 67, 8818, 11, 272, 768, 273, 1696, 12, 8818, 768, 11189, 91, 6134, 272, 768, 18, 2626, 12, 8818, 67, 1080, 13, 272, 768, 18, 4412, 1435, 225, 642, 768, 273, 20213, 6797, 19, 5656, 67, 1425, 11, 394, 856, 768, 273, 20213, 6797, 19, 5656, 67, 856, 11, 225, 309, 1198, 30, 1172, 1548, 82, 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, 3886, 12, 7593, 768, 2218, 2187, 856, 768, 2218, 2187, 16814, 33, 20, 16, 6789, 33, 13757, 16, 3664, 2218, 11, 4672, 3536, 1788, 279, 394, 1983, 8866, 2889, 471, 327, 518, 487, 279, 533, 3536, 1198, 273, 374, 14704, 273, 315, 27764, 6, 468, 8930, 1625, 777, 326, 6269, 1390, 903, 506, 1378, 20213, 273, 13275, 18, 24816, 72, 5814, 1435, 225, 309, 7507, 405, 4552, 67, 16085, 67, 5063, 4107, 67, 31551, 14, 3247, 30, 7507, 273, 4552, 67, 16085, 67, 5063, 4107, 67, 31551, 14, 3247, 225, 309, 486, 3320, 768, 30, 563, 273, 27653, 1876, 653, 1435, 309, 563, 30, 3320, 768, 16, 856, 768, 273, 563, 309, 486, 3320, 768, 30, 327, 2 ]
self.sort = None
def run(self): """ Perform search and return results object """ start = time.time() if self.request.cfg.xapian_search: hits = self._xapianSearch() logging.debug("_xapianSearch found %d hits" % len(hits)) else: hits = self._moinSearch() logging.debug("_moinSearch found %d hits" % len(hits))
07ed51d91fa5e8bda99aae546d02ed9de883975d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/07ed51d91fa5e8bda99aae546d02ed9de883975d/builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 11217, 1623, 471, 327, 1686, 733, 3536, 787, 273, 813, 18, 957, 1435, 309, 365, 18, 2293, 18, 7066, 18, 92, 2425, 304, 67, 3072, 30, 11076, 273, 365, 6315, 92, 2425, 304, 2979, 1435, 2907, 18, 4148, 2932, 67, 92, 2425, 304, 2979, 1392, 738, 72, 11076, 6, 738, 562, 12, 15173, 3719, 469, 30, 11076, 273, 365, 6315, 81, 885, 2979, 1435, 2907, 18, 4148, 2932, 67, 81, 885, 2979, 1392, 738, 72, 11076, 6, 738, 562, 12, 15173, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 11217, 1623, 471, 327, 1686, 733, 3536, 787, 273, 813, 18, 957, 1435, 309, 365, 18, 2293, 18, 7066, 18, 92, 2425, 304, 67, 3072, 30, 11076, 273, 365, 6315, 92, 2425, 304, 2979, 1435, 2907, 18, 4148, 2932, 67, 92, 2425, 304, 2979, 1392, 738, 72, 11076, 6, 738, 562, 12, 15173, 3719, 469, 30, 11076, 273, 365, 6315, 81, 885, 2979, 1435, 2907, 18, 4148, 2932, 67, 81, 885, 2979, 1392, 738, 72, 11076, 6, 738, 562, 12, 15173, 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 ]