rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if not self.buffer:
endpos = self.scanTo(">") + 1 if self.buffer[self.tagpos:self.tagpos+4] == "<!--": while True: if self.EOF: break if self.buffer[endpos-2:endpos] == '-->': break self.bufpos = endpos endpos = self.scanTo(">") + 1 self.bufpos = endpos
def parseFile(self, file): self.file = file self.EOF = False self.buffer = "" self.extendBuffer() while True:
76fdbe5c982cfc23db9b0406a5307afa7d58c5a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/76fdbe5c982cfc23db9b0406a5307afa7d58c5a1/simplexmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31986, 12, 2890, 16, 585, 4672, 365, 18, 768, 273, 585, 365, 18, 12706, 273, 1083, 365, 18, 4106, 273, 1408, 365, 18, 14313, 1892, 1435, 225, 1323, 1053, 30, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31986, 12, 2890, 16, 585, 4672, 365, 18, 768, 273, 585, 365, 18, 12706, 273, 1083, 365, 18, 4106, 273, 1408, 365, 18, 14313, 1892, 1435, 225, 1323, 1053, 30, 2, -100, -100, -100, -100,...
self._io_trait_changed(self, path, Undefined, getattr(self, path))
self._io_trait_changed(self, path, Undefined, getattr(self, path))
def set(self, path, value, index=None, srcname=None, force=False): """Set the value of the data object specified by the given path, which may contain '.' characters. If path specifies a Variable, then its value attribute will be set to the given value, subject to validation and constraints. index, if not None, shoul...
8586d67f5d42158f614b7fc3ff6c91066cfdb680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/8586d67f5d42158f614b7fc3ff6c91066cfdb680/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 589, 16, 460, 16, 770, 33, 7036, 16, 1705, 529, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 694, 326, 460, 434, 326, 501, 733, 1269, 635, 326, 225, 864, 589, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 2890, 16, 589, 16, 460, 16, 770, 33, 7036, 16, 1705, 529, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 694, 326, 460, 434, 326, 501, 733, 1269, 635, 326, 225, 864, 589, 16, 1...
print value
def unwrapValueFromHTML(value): """Remove the html stuff around the body """ # get the body text print value result = RE_BODY.search(value) if result: body = result.group(1) else: raise ValueError('%s is not a html string' % value)
729019ded8d6dfae2786f11cc5256cc42447d87e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/729019ded8d6dfae2786f11cc5256cc42447d87e/Validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11014, 620, 1265, 4870, 12, 1132, 4672, 3536, 3288, 326, 1729, 10769, 6740, 326, 1417, 3536, 468, 336, 326, 1417, 977, 563, 273, 2438, 67, 16691, 18, 3072, 12, 1132, 13, 309, 563, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11014, 620, 1265, 4870, 12, 1132, 4672, 3536, 3288, 326, 1729, 10769, 6740, 326, 1417, 3536, 468, 336, 326, 1417, 977, 563, 273, 2438, 67, 16691, 18, 3072, 12, 1132, 13, 309, 563, 30, ...
chain = self.context._default_chain for workflow_id in chain:
for workflow_id in self.context._default_chain or ():
def _extractChains(self): fragment = self._doc.createDocumentFragment() node = self._doc.createElement('bindings') child = self._doc.createElement('default') chain = self.context._default_chain for workflow_id in chain: sub = self._doc.createElement('bound-workflow') sub.setAttribute('workflow_id', workflow_id) child.a...
35ec350ce0f144df2edf60273e860fa2fb923d2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11955/35ec350ce0f144df2edf60273e860fa2fb923d2c/exportimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 15945, 12, 2890, 4672, 5481, 273, 365, 6315, 2434, 18, 2640, 2519, 7456, 1435, 756, 273, 365, 6315, 2434, 18, 2640, 1046, 2668, 15863, 6134, 1151, 273, 365, 6315, 2434, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 15945, 12, 2890, 4672, 5481, 273, 365, 6315, 2434, 18, 2640, 2519, 7456, 1435, 756, 273, 365, 6315, 2434, 18, 2640, 1046, 2668, 15863, 6134, 1151, 273, 365, 6315, 2434, 18, 26...
self._dkeys = self._dict.keys() self._dkeys.sort()
def __init__(self, *args): unittest.TestCase.__init__(self, *args) self._dkeys = self._dict.keys() self._dkeys.sort()
c7392e9a988d3d5003c94a367c90c945a0f5e0b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c7392e9a988d3d5003c94a367c90c945a0f5e0b3/test_dumbdbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 2836, 3813, 18, 4709, 2449, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 365, 6315, 72, 2452, 273, 365, 6315, 1576, 18, 2452, 1435, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 2836, 3813, 18, 4709, 2449, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 365, 6315, 72, 2452, 273, 365, 6315, 1576, 18, 2452, 1435, 36...
if tableWhitelist != None: columnSQLWhitelist = '`%s`' % "`, `".join(colsWhitelist)
if self.tableWhitelist != None:
def start(self): if self.factory == None: raise ParamError("this module need reference to fatory and database connection pool")
2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 309, 365, 18, 6848, 422, 599, 30, 1002, 3014, 668, 2932, 2211, 1605, 1608, 2114, 358, 284, 8452, 471, 2063, 1459, 2845, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 309, 365, 18, 6848, 422, 599, 30, 1002, 3014, 668, 2932, 2211, 1605, 1608, 2114, 358, 284, 8452, 471, 2063, 1459, 2845, 7923, 2, -100, -100, -100, -100, -100, -100, ...
rotation_axis = numpy.array([0.0, 0.0, -1.0], float)
rotation_axis = numpy.array([0.0, 0.0, 1.0], float)
def button_motion(self, drawing_area, event, start_button): if start_button == 2: return elif start_button == 1: # XY rotation rotx = (event.x - self.former_x) / float(drawing_area.allocation.width) * 360 roty = (event.y - self.former_y) / float(drawing_area.allocation.width) * 360 rotation_axis = numpy.array([-roty, -...
df0f16f4feb292b95cbec42d84d5765f42dc1639 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/df0f16f4feb292b95cbec42d84d5765f42dc1639/transform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 81, 8240, 12, 2890, 16, 16327, 67, 5036, 16, 871, 16, 787, 67, 5391, 4672, 309, 787, 67, 5391, 422, 576, 30, 327, 1327, 787, 67, 5391, 422, 404, 30, 468, 18774, 6752, 721, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3568, 67, 81, 8240, 12, 2890, 16, 16327, 67, 5036, 16, 871, 16, 787, 67, 5391, 4672, 309, 787, 67, 5391, 422, 576, 30, 327, 1327, 787, 67, 5391, 422, 404, 30, 468, 18774, 6752, 721, ...
security.declarePublic( permissions.View, 'EffectiveDate')
security.declareProtected( permissions.View, 'EffectiveDate')
def CreationDate(self): """ Dublin Core element - date resource created. """ creation = self.getField('creation_date').get(self) # return unknown if never set properly return creation is None and 'Unknown' or creation.ISO()
258e367eb382d8fe8c19d54322b0fde4f1321aeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/258e367eb382d8fe8c19d54322b0fde4f1321aeb/ExtensibleMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18199, 1626, 12, 2890, 4672, 3536, 31760, 4586, 930, 300, 1509, 1058, 2522, 18, 3536, 6710, 273, 365, 18, 588, 974, 2668, 17169, 67, 712, 16063, 588, 12, 2890, 13, 468, 327, 5917, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18199, 1626, 12, 2890, 4672, 3536, 31760, 4586, 930, 300, 1509, 1058, 2522, 18, 3536, 6710, 273, 365, 18, 588, 974, 2668, 17169, 67, 712, 16063, 588, 12, 2890, 13, 468, 327, 5917, 309, ...
try:
r = None if self.info and self.info.has_key(attr[4:-1]):
def __getitem__(self, attr): """ return the specific attribute as string or an empty string """ if attr == 'length': try: length = int(self.info['length']) except ValueError: return self.info['length'] except: try: length = int(self.length) except: return '' if length == 0: return '' if length / 3600: return '%d:%02d:%...
1847af2df1a8288fb48b4731fced06f45e3eea3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1847af2df1a8288fb48b4731fced06f45e3eea3f/item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 1604, 4672, 3536, 327, 326, 2923, 1566, 487, 533, 578, 392, 1008, 533, 3536, 309, 1604, 422, 296, 2469, 4278, 436, 273, 599, 309, 365, 18, 1376, 471, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 1604, 4672, 3536, 327, 326, 2923, 1566, 487, 533, 578, 392, 1008, 533, 3536, 309, 1604, 422, 296, 2469, 4278, 436, 273, 599, 309, 365, 18, 1376, 471, 36...
elem("Ar", "Argon", 66.33, 1.88, [0.85, 0.24, 0.57],
elem("Ar", "Argon", 66.33, 1.88, [0.42, 0.45, 0.55],
def __repr__(self): return "<Element: " + self.symbol + "(" + self.name + ")>"
5f768e37c023eeda4b13b1983e3dba813e3be601 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5f768e37c023eeda4b13b1983e3dba813e3be601/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3532, 1046, 30, 315, 397, 365, 18, 7175, 397, 12452, 397, 365, 18, 529, 397, 9369, 2984, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3532, 1046, 30, 315, 397, 365, 18, 7175, 397, 12452, 397, 365, 18, 529, 397, 9369, 2984, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
yield file
yield file
def list_files(self): dir = os.path.expanduser("~/rpmbuild/BUILD/") for file in FileUtilities.children_in_directory(dir, True): yield file
ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 1577, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 19, 13832, 1627, 680, 19, 20215, 4898, 13, 364, 585, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 1577, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 19, 13832, 1627, 680, 19, 20215, 4898, 13, 364, 585, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, ...
elif R._cartan_type.is_reducible():
elif R._cartan_type.is_compound():
def rule(x): return [x[0]-x[3],x[1]-x[2]]
4f1d9b099eb7fa4771eb32c91fd6665497057884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4f1d9b099eb7fa4771eb32c91fd6665497057884/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 12, 92, 4672, 327, 306, 92, 63, 20, 65, 17, 92, 63, 23, 6487, 92, 63, 21, 65, 17, 92, 63, 22, 13563, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 12, 92, 4672, 327, 306, 92, 63, 20, 65, 17, 92, 63, 23, 6487, 92, 63, 21, 65, 17, 92, 63, 22, 13563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
elif flags.id: id = flags.args[0]
else: id = specifier
def execute_untag_command (flags, db, tags): if flags.about: about = flags.args[0] for tag in tags: o = db.untag_object_by_about (about, tag) if o == 0: if flags.verbose: print ('Removed tag %s from object with about="%s"' % (tag, about)) else: warning ('Failed to remove tag %s from object with about="%s"' % (tag, abou...
635ed1bdd854767b671f02d71a9daf95339913e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/635ed1bdd854767b671f02d71a9daf95339913e5/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 318, 2692, 67, 3076, 261, 7133, 16, 1319, 16, 2342, 4672, 309, 2943, 18, 21071, 30, 2973, 273, 2943, 18, 1968, 63, 20, 65, 364, 1047, 316, 2342, 30, 320, 273, 1319, 18, 318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 318, 2692, 67, 3076, 261, 7133, 16, 1319, 16, 2342, 4672, 309, 2943, 18, 21071, 30, 2973, 273, 2943, 18, 1968, 63, 20, 65, 364, 1047, 316, 2342, 30, 320, 273, 1319, 18, 318...
items = items[ : -1 ] menu, wl, l, h, w, optw, opth = calc_lsize( 0.6 ) if topline and menu: opth += 1
wl, l, optw, opth = calc_lsize( 0.6 ) items.append( items_t[ len(items) -1 ] ) if opth >= max_h -4: break if topline and items: opth += 1
def calc_lsize(r): """Calculate the size required on screen to display the list. Unfortunately Python 2.x doesn't allow assigning to the scope one level up of a nested function, so the return list on this function is horrible. I could have used an object and mutated it from here but it doesn't seem like such a big deal...
782a61f807eac87f9c94d710f152c0957f4e9f9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/782a61f807eac87f9c94d710f152c0957f4e9f9c/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 18, 1351, 24233, 6600, 576, 18, 92, 3302, 1404, 1699, 28639, 358, 326, 2146, 1245, 1801, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7029, 67, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 18, 1351, 24233, 6600, 576, 18, 92, 3302, 1404, 1699, 28639, 358, 326, 2146, 1245, 1801, 7...
fill_frame["style"]='ColorWatchTransp' filltxt=_('Fill: None')
fill_frame["style"] = 'ColorWatchTransp' filltxt = _('Fill: None')
def ColorInfo(): if len(self.document.selection) != 1 or self.document.CanUngroup(): fill_frame["style"]='ColorWatchDisabled' outline_frame["style"]='ColorWatchDisabled' fill_frame['background']=app.uimanager.currentColorTheme.bg outline_frame['background']=app.uimanager.currentColorTheme.bg return "" properties = sel...
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5563, 966, 13332, 309, 562, 12, 2890, 18, 5457, 18, 10705, 13, 480, 404, 578, 365, 18, 5457, 18, 2568, 984, 1655, 13332, 3636, 67, 3789, 9614, 4060, 11929, 2218, 2957, 5234, 8853, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5563, 966, 13332, 309, 562, 12, 2890, 18, 5457, 18, 10705, 13, 480, 404, 578, 365, 18, 5457, 18, 2568, 984, 1655, 13332, 3636, 67, 3789, 9614, 4060, 11929, 2218, 2957, 5234, 8853, 11, ...
self.canvas.lower(self.id, belowthis)
self.canvas.tag_lower(self.id, belowthis)
def lower(self, belowthis=None): self.canvas.lower(self.id, belowthis)
2c25a3deecf33f653b4a2745025be74f6905f2ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c25a3deecf33f653b4a2745025be74f6905f2ae/Canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2612, 12, 2890, 16, 5712, 2211, 33, 7036, 4672, 365, 18, 15424, 18, 8167, 12, 2890, 18, 350, 16, 5712, 2211, 13, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2612, 12, 2890, 16, 5712, 2211, 33, 7036, 4672, 365, 18, 15424, 18, 8167, 12, 2890, 18, 350, 16, 5712, 2211, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
global BLOCK, kicker
global BLOCK, kicker, mouseAy
def near_callback(args, geom1, geom2): ##TODO: 4P generalization global BLOCK, kicker #global called #called = called + 1 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: #if not ((geom1 == ballGeom) or (geom2 == ballGeom)): # print "rong collision!" if (geom1 in kickerGeom) or (geo...
73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13378, 67, 3394, 12, 1968, 16, 7364, 21, 16, 7364, 22, 4672, 7541, 6241, 30, 1059, 52, 7470, 1588, 2552, 14073, 16, 417, 5448, 16, 7644, 37, 93, 468, 6347, 2566, 225, 468, 11777, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13378, 67, 3394, 12, 1968, 16, 7364, 21, 16, 7364, 22, 4672, 7541, 6241, 30, 1059, 52, 7470, 1588, 2552, 14073, 16, 417, 5448, 16, 7644, 37, 93, 468, 6347, 2566, 225, 468, 11777, 273, ...
elif ( os.path.isfile(source_file) and os.name != "nt" and not os.path.samefile(reg, source_file)):
elif (os.path.isfile(source_file) and ( not hasattr(os.path, "samefile") or not os.path.samefile(reg, source_file)) and self.abs_path_short(abs_path=reg) != self.abs_path_short(abs_path=source_file)):
def write_dispatcher(self, source_file, target_file): reg = self._dispatcher_registry.setdefault(target_file, source_file) if (reg != source_file): if (not os.path.isfile(reg)): self._dispatcher_registry[target_file] = source_file elif ( os.path.isfile(source_file) and os.name != "nt" # XXX and not os.path.samefile(...
64d4c71b86cdde4ab2b9c05d3adcc23838b0d9a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/64d4c71b86cdde4ab2b9c05d3adcc23838b0d9a2/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 18495, 12, 2890, 16, 1084, 67, 768, 16, 1018, 67, 768, 4672, 960, 273, 365, 6315, 18495, 67, 9893, 18, 542, 1886, 12, 3299, 67, 768, 16, 1084, 67, 768, 13, 309, 261, 1574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 18495, 12, 2890, 16, 1084, 67, 768, 16, 1018, 67, 768, 4672, 960, 273, 365, 6315, 18495, 67, 9893, 18, 542, 1886, 12, 3299, 67, 768, 16, 1084, 67, 768, 13, 309, 261, 1574, ...
data = src.fp._sock.recv(256)
data = sock.recv(256)
def _download_as_child(url): from httplib import HTTPException from urllib2 import urlopen, HTTPError, URLError try: #print "Child downloading", url if url.startswith('/'): if not os.path.isfile(url): print >>sys.stderr, "File '%s' does not " \ "exist!" % url return src = file(url) elif url.startswith('http:') or url.s...
c085406f4f73564869fad6b7c859b10e79c8ec7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10543/c085406f4f73564869fad6b7c859b10e79c8ec7f/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7813, 67, 345, 67, 3624, 12, 718, 4672, 628, 15851, 6673, 1930, 2239, 503, 628, 11527, 22, 1930, 19613, 16, 14415, 16, 1976, 668, 775, 30, 468, 1188, 315, 1763, 23742, 3113, 880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7813, 67, 345, 67, 3624, 12, 718, 4672, 628, 15851, 6673, 1930, 2239, 503, 628, 11527, 22, 1930, 19613, 16, 14415, 16, 1976, 668, 775, 30, 468, 1188, 315, 1763, 23742, 3113, 880, ...
if host:
if (uname[0] == 'Darwin') and host.startswith('/tmp/'): family = xauth.FamilyLocal addr = socket.gethostname() elif host:
def new_get_auth(sock, dname, host, dno): # Translate socket address into the xauth domain if host: family = xauth.FamilyInternet # Convert the prettyprinted IP number into 4-octet string. # Sometimes these modules are too damn smart... octets = string.split(sock.getpeername()[0], '.') addr = string.join(map(lambda x:...
870fc90edc7c3a9460c364319ddc45eb3af64667 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8084/870fc90edc7c3a9460c364319ddc45eb3af64667/unix_connect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 588, 67, 1944, 12, 15031, 16, 302, 529, 16, 1479, 16, 302, 2135, 4672, 468, 16820, 2987, 1758, 1368, 326, 619, 1944, 2461, 309, 261, 318, 339, 63, 20, 65, 422, 296, 40, 1999...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 67, 588, 67, 1944, 12, 15031, 16, 302, 529, 16, 1479, 16, 302, 2135, 4672, 468, 16820, 2987, 1758, 1368, 326, 619, 1944, 2461, 309, 261, 318, 339, 63, 20, 65, 422, 296, 40, 1999...
while hasattr(words[i],'cbDefn'): i = i-1
while hasattr(words[i],'cbDefn'): i -= 1
def breakLines(self, width): """ Returns a broken line structure. There are two cases
8d23a394d71e94269f4f4a0be1e036155775a4c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/8d23a394d71e94269f4f4a0be1e036155775a4c8/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 898, 5763, 12, 2890, 16, 1835, 4672, 3536, 2860, 279, 12933, 980, 3695, 18, 6149, 854, 2795, 6088, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 898, 5763, 12, 2890, 16, 1835, 4672, 3536, 2860, 279, 12933, 980, 3695, 18, 6149, 854, 2795, 6088, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __init__(self, fd, size):
def __init__(self, fd, datasize):
def __init__(self, fd, size): self.fd = fd self.length = 0 # length of all decompressed data self.length2 = size self.enddata = "" # remember last 8 bytes for crc/length check self.pos = 0 self.data = "" if self.fd.read(3) != "\037\213\010": print "Not a gzipped file" sys.exit(0) # flag (1 byte), modification time (4 b...
ad4f89af913d4c98e3df65eed839fd44235193aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/ad4f89af913d4c98e3df65eed839fd44235193aa/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5194, 16, 5386, 554, 4672, 365, 18, 8313, 273, 5194, 365, 18, 2469, 273, 374, 468, 769, 434, 777, 443, 15385, 501, 365, 18, 2469, 22, 273, 963, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5194, 16, 5386, 554, 4672, 365, 18, 8313, 273, 5194, 365, 18, 2469, 273, 374, 468, 769, 434, 777, 443, 15385, 501, 365, 18, 2469, 22, 273, 963, 365, 18...
properties.last_modified_by = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text).text
last_modified_by_node = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text) if last_modified_by_node is not None: properties.last_modified_by = last_modified_by_node.text else: properties.last_modified_by = ''
def read_properties_core(xml_source): properties = DocumentProperties() root = fromstring(text = xml_source) creator_node = root.find(QName(NAMESPACES['dc'], 'creator').text) if creator_node is not None: properties.creator = creator_node.text else: properties.creator = '' properties.last_modified_by = root.find(QN...
d24bb2c7ecca1177e34c3df76aeb73e1d14a9baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1351/d24bb2c7ecca1177e34c3df76aeb73e1d14a9baf/workbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4738, 67, 3644, 12, 2902, 67, 3168, 4672, 225, 1790, 273, 4319, 2297, 1435, 225, 1365, 273, 21376, 12, 955, 273, 2025, 67, 3168, 13, 225, 11784, 67, 2159, 273, 1365, 18, 4720,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 67, 4738, 67, 3644, 12, 2902, 67, 3168, 4672, 225, 1790, 273, 4319, 2297, 1435, 225, 1365, 273, 21376, 12, 955, 273, 2025, 67, 3168, 13, 225, 11784, 67, 2159, 273, 1365, 18, 4720,...
if url.startswith(self.index_url):
if url.startswith(self.index_url) and getattr(f,'code',None)!=404:
def process_url(self, url, retrieve=False): """Evaluate a URL as a possible download, and maybe retrieve it""" url = fix_sf_url(url) if url in self.scanned_urls and not retrieve: return self.scanned_urls[url] = True if not URL_SCHEME(url): self.process_filename(url) return else: dists = list(distros_for_url(url)) if di...
ac7808e631535975e29298f7b41c38a6de3b26e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/ac7808e631535975e29298f7b41c38a6de3b26e3/package_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 718, 12, 2890, 16, 880, 16, 4614, 33, 8381, 4672, 3536, 15369, 279, 1976, 487, 279, 3323, 4224, 16, 471, 6944, 4614, 518, 8395, 880, 273, 2917, 67, 21668, 67, 718, 12, 718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 67, 718, 12, 2890, 16, 880, 16, 4614, 33, 8381, 4672, 3536, 15369, 279, 1976, 487, 279, 3323, 4224, 16, 471, 6944, 4614, 518, 8395, 880, 273, 2917, 67, 21668, 67, 718, 12, 718, ...
self.log_request(self.code, os.fstat(f.fileno())[6])
def handle_data(self): """ Prepare response per incoming GET request. """ path = self.translate_path(self.path)
bc395d1a178d058008c9361c4025ca1641598630 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/bc395d1a178d058008c9361c4025ca1641598630/testwebserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 892, 12, 2890, 4672, 3536, 7730, 766, 1534, 6935, 4978, 590, 18, 3536, 589, 273, 365, 18, 13929, 67, 803, 12, 2890, 18, 803, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 892, 12, 2890, 4672, 3536, 7730, 766, 1534, 6935, 4978, 590, 18, 3536, 589, 273, 365, 18, 13929, 67, 803, 12, 2890, 18, 803, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
elif param.has_key('task') and param['task'].lower() == 'geometryoptimization':
elif param.has_key('task') and (param['task'].lower() == 'geometryoptimization' or param['task'].lower() == 'geometryoptimisation'):
def CastepOutputReader(castep_file, cluster=None, abort=True, save_params=False): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" if type(castep_file) == type(''): castep_file = open(castep_file,'r') castep_file = iter(castep_file) p...
ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19782, 881, 1447, 2514, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 16, 1923, 67, 2010, 33, 8381, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19782, 881, 1447, 2514, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 16, 1923, 67, 2010, 33, 8381, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 7...
wx.minical.CAL_SHOW_SURROUNDING_WEEKS)
wx.minical.CAL_SHOW_SURROUNDING_WEEKS | wx.NO_BORDER)
def wxSynchronizeWidget(self): self.SetWindowStyle(wx.minical.CAL_SUNDAY_FIRST | wx.minical.CAL_SHOW_SURROUNDING_WEEKS)
af1257351c231bb33cff6c3f31c19e3365cefb5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/af1257351c231bb33cff6c3f31c19e3365cefb5b/CalendarBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 19298, 554, 4609, 12, 2890, 4672, 365, 18, 694, 3829, 2885, 12, 27226, 18, 1154, 1706, 18, 7913, 67, 55, 5240, 5255, 67, 15354, 571, 7075, 18, 1154, 1706, 18, 7913, 67, 16677, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 19298, 554, 4609, 12, 2890, 4672, 365, 18, 694, 3829, 2885, 12, 27226, 18, 1154, 1706, 18, 7913, 67, 55, 5240, 5255, 67, 15354, 571, 7075, 18, 1154, 1706, 18, 7913, 67, 16677, 67...
if self.tree.headPointer is not None and\ self.parser.phase == self.parser.phases["inHead"]:
if self.tree.headPointer is not None and self.parser.phase == self.parser.phases["inHead"]:
def startTagNoScript(self, name, attributes): # XXX Need to decide whether to implement the scripting disabled case. if self.tree.headPointer is not None and\ self.parser.phase == self.parser.phases["inHead"]: element = self.tree.createElement(name, attributes) self.appendToHead(element) self.tree.openElements.append(e...
c87327168843837498b252e5a0a20991a3f4ad93 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/c87327168843837498b252e5a0a20991a3f4ad93/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2279, 3651, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 12324, 358, 16288, 2856, 358, 2348, 326, 2728, 310, 5673, 648, 18, 309, 365, 18, 3413, 18, 1978, 4926, 353, 486, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2279, 3651, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 12324, 358, 16288, 2856, 358, 2348, 326, 2728, 310, 5673, 648, 18, 309, 365, 18, 3413, 18, 1978, 4926, 353, 486, 5...
for t, name in enum(self):
for t, name in self.enum():
def g6(self, Nbins=200, nbDiameters=4.5, force=False): """ Calculate g6 and g for each time step and return the time average output is (r,g6,g) """ if not force: for t, name in enum(self,ext='g6'): if not os.path.exists(name): force=True break if force: for t, name in enum(self): subprocess.check_call(map(str, ['g6', n...
f6b41338b974c6729411daaeac37e1cd5466224c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3150/f6b41338b974c6729411daaeac37e1cd5466224c/experiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 26, 12, 2890, 16, 423, 11862, 33, 6976, 16, 4264, 14521, 301, 1032, 33, 24, 18, 25, 16, 2944, 33, 8381, 4672, 3536, 9029, 314, 26, 471, 314, 364, 1517, 813, 2235, 471, 327, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 314, 26, 12, 2890, 16, 423, 11862, 33, 6976, 16, 4264, 14521, 301, 1032, 33, 24, 18, 25, 16, 2944, 33, 8381, 4672, 3536, 9029, 314, 26, 471, 314, 364, 1517, 813, 2235, 471, 327, 326,...
def tb_4(obj, event, *args, **kargs):
def tb_4(obj, it, *args, **kargs):
def tb_4(obj, event, *args, **kargs): print "toolbar-item: test 4"
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, 8739, 67, 24, 12, 2603, 16, 518, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 1172, 315, 18849, 17, 1726, 30, 1842, 1059, 6, 225, 2, 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, 0, 0, 0, 0, 0, 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, 8739, 67, 24, 12, 2603, 16, 518, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 1172, 315, 18849, 17, 1726, 30, 1842, 1059, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
nSpaces = len(words)-1
nSpaces = len(words)+sum([_nbspCount(w) for w in words])-1
def _justifyDrawParaLine( tx, offset, extraspace, words, last=0): setXPos(tx,offset) text = join(words) if last: #last one, left align tx._textOut(text,1) else: nSpaces = len(words)-1 if nSpaces: tx.setWordSpace(extraspace / float(nSpaces)) tx._textOut(text,1) tx.setWordSpace(0) else: tx._textOut(text,1) setXPos(tx,-o...
1d8b18412b3bc48e2589998cbefdbcd958ab4b19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/1d8b18412b3bc48e2589998cbefdbcd958ab4b19/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3732, 1164, 6493, 23529, 1670, 12, 2229, 16, 1384, 16, 11875, 909, 16, 4511, 16, 1142, 33, 20, 4672, 23733, 1616, 12, 978, 16, 3348, 13, 977, 225, 273, 1233, 12, 3753, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3732, 1164, 6493, 23529, 1670, 12, 2229, 16, 1384, 16, 11875, 909, 16, 4511, 16, 1142, 33, 20, 4672, 23733, 1616, 12, 978, 16, 3348, 13, 977, 225, 273, 1233, 12, 3753, 13, 309, ...
u_iso = atm_desc["u_iso"]
def lsq_fit_segment(self, frag_id1, frag_id2): """Performs a LSQ fit of TLS parameters for the protein segment starting with fragment index ifrag_start to (and including) the fragment ifrag_end. """ ## all return values here fit_info = {} ## calculate the start/end indexes of the start fragment ## and end fragment so ...
e84d51aa8f483309e902b29a0f740a21562abad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/e84d51aa8f483309e902b29a0f740a21562abad5/tlsmd_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7180, 85, 67, 7216, 67, 9273, 12, 2890, 16, 10111, 67, 350, 21, 16, 10111, 67, 350, 22, 4672, 3536, 9409, 279, 29204, 53, 4845, 434, 8098, 1472, 364, 326, 14314, 3267, 5023, 598, 5481,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7180, 85, 67, 7216, 67, 9273, 12, 2890, 16, 10111, 67, 350, 21, 16, 10111, 67, 350, 22, 4672, 3536, 9409, 279, 29204, 53, 4845, 434, 8098, 1472, 364, 326, 14314, 3267, 5023, 598, 5481,...
this = apply(_quickfix.new_ContraTrader, args)
this = _quickfix.new_ContraTrader(*args)
def __init__(self, *args): this = apply(_quickfix.new_ContraTrader, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 442, 2033, 1609, 765, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 442, 2033, 1609, 765, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True, env=child_env)
pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, env=child_env)
def exec_pg_command_pipe(name, *args): prog = find_pg_tool(name) if not prog: raise Exception('Couldn\'t find %s' % name) if os.name == "nt": cmd = '"' + prog + '" ' + ' '.join(args) else: cmd = prog + ' ' + ' '.join(args) # if db_password is set in configuration we should pass # an environment variable PGPASSWORD to ...
eebea2d71da2083c06a0c60e0f06b986f94d7a03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/eebea2d71da2083c06a0c60e0f06b986f94d7a03/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 8365, 67, 3076, 67, 14772, 12, 529, 16, 380, 1968, 4672, 11243, 273, 1104, 67, 8365, 67, 6738, 12, 529, 13, 309, 486, 11243, 30, 1002, 1185, 2668, 16342, 3730, 88, 1104, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1196, 67, 8365, 67, 3076, 67, 14772, 12, 529, 16, 380, 1968, 4672, 11243, 273, 1104, 67, 8365, 67, 6738, 12, 529, 13, 309, 486, 11243, 30, 1002, 1185, 2668, 16342, 3730, 88, 1104, 738,...
if (x + w > self.image.ncols):
if (x + w >= self.width):
def PaintArea(self, x, y, w, h, check=1): dc = wxPaintDC(self) dc.SetLogicalFunction(wxCOPY) origin = [a * self.scroll_amount for a in self.GetViewStart()] origin_scaled = [a / self.scaling for a in origin] size_scaled = [a / self.scaling for a in self.GetSizeTuple()] if check: if ((x + w < origin_scaled[0]) and (y + h...
6eb1cae57ca1773babed2c1c4d12cf475259fce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/6eb1cae57ca1773babed2c1c4d12cf475259fce5/gamera_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30001, 5484, 12, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 16, 866, 33, 21, 4672, 6744, 273, 7075, 12699, 5528, 12, 2890, 13, 6744, 18, 694, 17955, 2083, 12, 91, 14626, 16505, 13, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30001, 5484, 12, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 16, 866, 33, 21, 4672, 6744, 273, 7075, 12699, 5528, 12, 2890, 13, 6744, 18, 694, 17955, 2083, 12, 91, 14626, 16505, 13, 40...
class Module(py.test.collect.Module): def __init__(self, *args, **kwargs): self.request = init_test_request() super(Module, self).__init__(*args, **kwargs) def run(self, *args, **kwargs): if coverage is not None: coverage_modules.update(getattr(self.obj, 'coverage_modules', [])) return super(Module, self).run(*args, *...
def restore(self): """ Restore previous request.cfg Set old keys to old values and delete new keys. """ for key, value in self.old.items(): setattr(self.request.cfg, key, value) for key in self.new: delattr(self.request.cfg, key)
c3f555754eae7a659f5e367ea32fa72b53d00a98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/c3f555754eae7a659f5e367ea32fa72b53d00a98/conftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 12, 2890, 4672, 3536, 11197, 2416, 590, 18, 7066, 225, 1000, 1592, 1311, 358, 1592, 924, 471, 1430, 394, 1311, 18, 3536, 364, 498, 16, 460, 316, 365, 18, 1673, 18, 3319, 13332, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5217, 12, 2890, 4672, 3536, 11197, 2416, 590, 18, 7066, 225, 1000, 1592, 1311, 358, 1592, 924, 471, 1430, 394, 1311, 18, 3536, 364, 498, 16, 460, 316, 365, 18, 1673, 18, 3319, 13332, 9...
codeout.write(indent, 'if type(%s) != DictType:' % argsarg)
codeout.write(indent, 'if type(%s) != __h.types.DictType:' % argsarg)
def genCode(self, indent, codeout, tagreg, tag): DTCompilerUtil.tagDebug(indent, codeout, tag) #args=DTUtil.tagCall(tag, ['name', ('cache', 'no'), # ('defer', -1), ('__args__', None)], # kwcol='kw') args=DTUtil.tagCall(tag, ['name', ('cache', 'no'), ('__args__', None)], kwcol...
71e8420da73cbedbe4fee03e952d1cbc35121d22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/71e8420da73cbedbe4fee03e952d1cbc35121d22/ComponentTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 1085, 12, 2890, 16, 3504, 16, 981, 659, 16, 1047, 1574, 16, 1047, 4672, 10696, 9213, 1304, 18, 2692, 2829, 12, 9355, 16, 981, 659, 16, 1047, 13, 468, 1968, 33, 9081, 1304, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1085, 12, 2890, 16, 3504, 16, 981, 659, 16, 1047, 1574, 16, 1047, 4672, 10696, 9213, 1304, 18, 2692, 2829, 12, 9355, 16, 981, 659, 16, 1047, 13, 468, 1968, 33, 9081, 1304, 18, ...
cmd = 'rfcp %s %s' % (src_turl, dest_fpath)
cmd = 'rfcp \'%s\' %s' % (src_turl, dest_fpath)
def make_copycmd(protocol, vo, timeout, src_surl, dest_surl): ''' routine for composing copy command according to the requested protocol. '''
452d13c5a54e44de0a9a5f14fd0dfc5f3a7795d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/452d13c5a54e44de0a9a5f14fd0dfc5f3a7795d5/fs-copy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3530, 4172, 12, 8373, 16, 19993, 16, 2021, 16, 1705, 67, 87, 718, 16, 1570, 67, 87, 718, 4672, 9163, 12245, 364, 532, 24014, 1610, 1296, 4888, 358, 326, 3764, 1771, 18, 9163,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3530, 4172, 12, 8373, 16, 19993, 16, 2021, 16, 1705, 67, 87, 718, 16, 1570, 67, 87, 718, 4672, 9163, 12245, 364, 532, 24014, 1610, 1296, 4888, 358, 326, 3764, 1771, 18, 9163,...
ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort()
expected = sorted(['__init__.py', '__init__.pyc', 'bar.py', 'bar.pyc'])
def test_legacy_paths(self): # Ensure that with the proper switch, compileall leaves legacy # pyc/pyo files, and no __pycache__ directory. retcode = subprocess.call( (sys.executable, '-m', 'compileall', '-b', '-q', self.pkgdir)) self.assertEqual(retcode, 0) # Verify the __pycache__ directory contents. cachedir = os.pat...
1463a3f8334b3279587af84d1134c559105f366a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/1463a3f8334b3279587af84d1134c559105f366a/test_compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17386, 67, 4481, 12, 2890, 4672, 468, 7693, 716, 598, 326, 5338, 1620, 16, 4074, 454, 15559, 8866, 468, 2395, 71, 19, 2074, 83, 1390, 16, 471, 1158, 1001, 2074, 2493, 972, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17386, 67, 4481, 12, 2890, 4672, 468, 7693, 716, 598, 326, 5338, 1620, 16, 4074, 454, 15559, 8866, 468, 2395, 71, 19, 2074, 83, 1390, 16, 471, 1158, 1001, 2074, 2493, 972, 18...
import sys
def test_main(verbose=None): import sys from test import test_sets test_classes = ( TestSet, TestSetSubclass, TestFrozenSet, TestFrozenSetSubclass, TestSetOfSets, TestExceptionPropagation, TestBasicOpsEmpty, TestBasicOpsSingleton, TestBasicOpsTuple, TestBasicOpsTriple, TestBinaryOps, TestUpdateOps, TestMutate, TestSubs...
c47e01d02021253dd9f8fd4ced6eb663436431bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c47e01d02021253dd9f8fd4ced6eb663436431bb/test_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 7036, 4672, 628, 1842, 1930, 1842, 67, 4424, 1842, 67, 4701, 273, 261, 7766, 694, 16, 7766, 694, 1676, 1106, 16, 7766, 42, 9808, 694, 16, 7766, 42, 9808,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 12, 11369, 33, 7036, 4672, 628, 1842, 1930, 1842, 67, 4424, 1842, 67, 4701, 273, 261, 7766, 694, 16, 7766, 694, 1676, 1106, 16, 7766, 42, 9808, 694, 16, 7766, 42, 9808,...
if thing.verbosity() > 80: progress("Heavy predicate succeeds")
if thing.verbosity() > 80: progress("Heavy predicate succeeds")
def tryHeavy(self, queue, bindings): """Deal with heavy built-in functions.""" con, pred, subj, obj = self.quad try: self.state = 10 # Assume can't resolve if self.neededFor[SUBJ] == []: if self.neededFor[OBJ] == []: # Binary operators? result = pred.evaluate2(subj, obj, bindings[:]) if result: if thing.verbosity() >...
9014f1b29ec001a58490a448dc6782aa1860acf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/9014f1b29ec001a58490a448dc6782aa1860acf4/llyn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 225, 775, 5256, 23935, 12, 2890, 16, 2389, 16, 7394, 4672, 3536, 758, 287, 598, 3904, 23935, 6650, 17, 267, 4186, 12123, 356, 16, 3479, 16, 15333, 16, 1081, 273, 365, 18, 21733, 775, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 775, 5256, 23935, 12, 2890, 16, 2389, 16, 7394, 4672, 3536, 758, 287, 598, 3904, 23935, 6650, 17, 267, 4186, 12123, 356, 16, 3479, 16, 15333, 16, 1081, 273, 365, 18, 21733, 775, 3...
except Exception as e:
except Exception, e:
def _open(self, bt, mode=None): try: self._swapfile.file = self._fs.file self._swapfile.open(mode) except Exception as e: self._notify_err(e) return
0774ce41d1cae4112fe49e2b57f6cec28ee30e95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/0774ce41d1cae4112fe49e2b57f6cec28ee30e95/openfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 12, 2890, 16, 10921, 16, 1965, 33, 7036, 4672, 775, 30, 365, 6315, 22270, 768, 18, 768, 273, 365, 6315, 2556, 18, 768, 365, 6315, 22270, 768, 18, 3190, 12, 3188, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 12, 2890, 16, 10921, 16, 1965, 33, 7036, 4672, 775, 30, 365, 6315, 22270, 768, 18, 768, 273, 365, 6315, 2556, 18, 768, 365, 6315, 22270, 768, 18, 3190, 12, 3188, 13, 1335, ...
if boundingBox and not boundingBox.contains(points.boundingBox()): print "polygon out of range:", points
if boundingBox and \ not boundingBox.contains(points.boundingBox()):
def addFlowLinesToMap(edges, map, boundingBox = None): """addFlowLinesToMap(edges, map) This function expects `edges` to be a list of SubPixelWatersheds.edge() return values and adds edges for each flowline. The labels of the resulting edges will be valid indices into the `edges` sequence for the corresponding source...
0a9c192f15ab472571e836acc52ccf96ffe29de5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10394/0a9c192f15ab472571e836acc52ccf96ffe29de5/maputils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 5249, 5763, 18392, 12, 8746, 16, 852, 16, 23044, 273, 599, 4672, 3536, 1289, 5249, 5763, 18392, 12, 8746, 16, 852, 13, 225, 1220, 445, 10999, 1375, 8746, 68, 358, 506, 279, 666, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 5249, 5763, 18392, 12, 8746, 16, 852, 16, 23044, 273, 599, 4672, 3536, 1289, 5249, 5763, 18392, 12, 8746, 16, 852, 13, 225, 1220, 445, 10999, 1375, 8746, 68, 358, 506, 279, 666, 4...
adj = self.scrolled_window.get_vadjustment() adj.set_value(adj.upper - adj.page_size - 804)
def add_status(self, name, icon, text): """Display text on screen, with name and icon.
cf145576124317d5aa0857a26ce52b5ae83d1f0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7190/cf145576124317d5aa0857a26ce52b5ae83d1f0d/chat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2327, 12, 2890, 16, 508, 16, 4126, 16, 977, 4672, 3536, 4236, 977, 603, 5518, 16, 598, 508, 471, 4126, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2327, 12, 2890, 16, 508, 16, 4126, 16, 977, 4672, 3536, 4236, 977, 603, 5518, 16, 598, 508, 471, 4126, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
installDate = self.cursor.fetchone()[0]
installDate = result['installdate']
def register(self, publicKey, dept, version, rhnid, sid): """Workstation requests registration. Check DB and register host as appropiate. On success 0 is returned, otherwise a non-zero error code is returned.""" # ok..we have no data for the client lets make sure our DB looks ok if self.isRegistered() != None: # Wha...
0ed9564790b5795dcae4d13bed3f836e0439e4d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5056/0ed9564790b5795dcae4d13bed3f836e0439e4d1/apiServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 12085, 16, 443, 337, 16, 1177, 16, 6259, 31030, 16, 7348, 4672, 3536, 2421, 17894, 3285, 7914, 18, 225, 2073, 2383, 471, 1744, 1479, 487, 5145, 3840, 18, 225, 2755, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1744, 12, 2890, 16, 12085, 16, 443, 337, 16, 1177, 16, 6259, 31030, 16, 7348, 4672, 3536, 2421, 17894, 3285, 7914, 18, 225, 2073, 2383, 471, 1744, 1479, 487, 5145, 3840, 18, 225, 2755, ...
for i, value in enumerate(s):
for value, i in s: print "inserting severity ", value, " ", i
def setSeverityList(self, s): """Remove all severities, set them to `s`""" if self.hasTickets(): raise Exception("Will not modify database with existing tickets!") c = self.db().cursor() c.execute("""DELETE FROM enum WHERE type='severity'""") for i, value in enumerate(s): c.execute("""INSERT INTO enum (type, name, val...
c5dcfdcbc56f3ce4c50bebf6511e29a385448c48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c5dcfdcbc56f3ce4c50bebf6511e29a385448c48/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21630, 682, 12, 2890, 16, 272, 4672, 3536, 3288, 777, 6963, 1961, 16, 444, 2182, 358, 1375, 87, 68, 8395, 309, 365, 18, 5332, 6264, 2413, 13332, 1002, 1185, 2932, 13670, 486, 5612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 21630, 682, 12, 2890, 16, 272, 4672, 3536, 3288, 777, 6963, 1961, 16, 444, 2182, 358, 1375, 87, 68, 8395, 309, 365, 18, 5332, 6264, 2413, 13332, 1002, 1185, 2932, 13670, 486, 5612, ...
out.write('-- %s\n\n' % '\n-- '.join(description.splitlines())) out.write(sql)
lines = description.encode('utf-8').splitlines() out.write('-- %s\n\n' % '\n-- '.join(lines)) out.write(sql.encode('utf-8'))
def _send_sql(self, req, id, title, description, sql): req.perm.require('REPORT_SQL_VIEW')
db821fa511212e846fba67360571ab84cc2891df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/db821fa511212e846fba67360571ab84cc2891df/report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 4669, 12, 2890, 16, 1111, 16, 612, 16, 2077, 16, 2477, 16, 1847, 4672, 1111, 18, 12160, 18, 6528, 2668, 22710, 67, 3997, 67, 12145, 6134, 2, 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, 0, 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, 4661, 67, 4669, 12, 2890, 16, 1111, 16, 612, 16, 2077, 16, 2477, 16, 1847, 4672, 1111, 18, 12160, 18, 6528, 2668, 22710, 67, 3997, 67, 12145, 6134, 2, -100, -100, -100, -100, -100...
@type warnings: C{list} of C{ParseError}
@type warnings: C{list} of L{ParseError}
def _tokenize(str, warnings): """ Split a given formatted docstring into an ordered list of C{Token}s, according to the epytext markup rules. @param str: The epytext string @type str: C{String} @param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragrap...
0cc72bd3422be83752480f57dbecac32d991815f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/0cc72bd3422be83752480f57dbecac32d991815f/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2316, 554, 12, 701, 16, 5599, 4672, 3536, 5385, 279, 864, 4955, 14525, 1368, 392, 5901, 666, 434, 385, 95, 1345, 97, 87, 16, 4888, 358, 326, 425, 2074, 955, 9813, 2931, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2316, 554, 12, 701, 16, 5599, 4672, 3536, 5385, 279, 864, 4955, 14525, 1368, 392, 5901, 666, 434, 385, 95, 1345, 97, 87, 16, 4888, 358, 326, 425, 2074, 955, 9813, 2931, 18, 225, ...
self.update_tag = None
def __init__(self): global loop self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) self.screen_locker = urwid.Filler(urwid.Text(('important',language['scanning_stand_by']), align='center')) self.no_wlan = urwid.Filler(urwid.Text(('important',langu...
91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2552, 2798, 365, 18, 1467, 273, 5915, 18, 588, 67, 6842, 67, 3870, 1435, 468, 670, 438, 2074, 5518, 12532, 310, 716, 1846, 848, 1404, 741, 6967, 2724, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 2552, 2798, 365, 18, 1467, 273, 5915, 18, 588, 67, 6842, 67, 3870, 1435, 468, 670, 438, 2074, 5518, 12532, 310, 716, 1846, 848, 1404, 741, 6967, 2724, ...
smoothing_group = 127
smoothing_group = 1
def vertex_reference(n, nv): if (n < 0): return n + nv return n - 1
506ffd826c047f4e70fbd1f0ecec7687474f34bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2274/506ffd826c047f4e70fbd1f0ecec7687474f34bd/Obj2DatTex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5253, 67, 6180, 12, 82, 16, 8779, 4672, 309, 261, 82, 411, 374, 4672, 327, 290, 397, 8779, 327, 290, 300, 404, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5253, 67, 6180, 12, 82, 16, 8779, 4672, 309, 261, 82, 411, 374, 4672, 327, 290, 397, 8779, 327, 290, 300, 404, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"""CreateTable(table, columns) - Create a new table in the database
"""CreateTable(table, columns) - Create a new table in the database.
def CreateTable(self, table, columns): """CreateTable(table, columns) - Create a new table in the database raises TableDBError if it already exists or for other DB errors. """ assert isinstance(columns, ListType) txn = None try: # checking sanity of the table and column names here on # table creation will prevent probl...
2f402c360391b04790d2fa168370966eb65ae848 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2f402c360391b04790d2fa168370966eb65ae848/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1388, 12, 2890, 16, 1014, 16, 2168, 4672, 3536, 1684, 1388, 12, 2121, 16, 2168, 13, 300, 1788, 279, 394, 1014, 316, 326, 2063, 18, 225, 14183, 3555, 2290, 668, 309, 518, 1818, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1788, 1388, 12, 2890, 16, 1014, 16, 2168, 4672, 3536, 1684, 1388, 12, 2121, 16, 2168, 13, 300, 1788, 279, 394, 1014, 316, 326, 2063, 18, 225, 14183, 3555, 2290, 668, 309, 518, 1818, 17...
html.header("Not Authorized") if type(req.user) == str: login_text = "logged in as <b>%s</b>" % req.user else: login_text = "not logged in" html.write("<h1 class=error>You are not authorized</h1>\n") html.write("<div class=error>Sorry. You are %s and not " "authorized to use check_mk's web pages. If you think this is a...
html.header("Not Authorized") if type(req.user) == str: login_text = "logged in as <b>%s</b>" % req.user else: login_text = "not logged in" html.write("<h1 class=error>You are not authorized</h1>\n") html.write("<div class=error>Sorry. You are %s and not " "authorized to use check_mk's web pages. If you think this is...
def handler(req): req.content_type = "text/html" req.header_sent = False # req.uriinfo = html.uriinfo(req) # Die Datei main.py wird mit beliebigen Namen aufgerufen, die # alle auf .py enden, und die es garnicht geben muss! req.myfile = req.uri.split("/")[-1][:-3] # Verzweigen je nach Name der Seite, 'main' ist Defa...
1fac7489ba61f03e99c44c9ad924e9c7656a70c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/1fac7489ba61f03e99c44c9ad924e9c7656a70c5/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 3658, 4672, 1111, 18, 1745, 67, 723, 273, 315, 955, 19, 2620, 6, 1111, 18, 3374, 67, 7569, 273, 1083, 225, 468, 1111, 18, 1650, 1376, 273, 1729, 18, 1650, 1376, 12, 3658, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1838, 12, 3658, 4672, 1111, 18, 1745, 67, 723, 273, 315, 955, 19, 2620, 6, 1111, 18, 3374, 67, 7569, 273, 1083, 225, 468, 1111, 18, 1650, 1376, 273, 1729, 18, 1650, 1376, 12, 3658, 1...
if modargs: mf.import_hook(scriptfile) else: mf.load_file(scriptfile)
mf.load_file(scriptfile)
def main(): # overridable context prefix = None # settable with -p option exec_prefix = None # settable with -P option extensions = [] exclude = [] # settable with -x option addn_link = [] # settable with -l, but only honored under Windows. path = sys.p...
4cf8f18bfe4d1d159b02bfb990b4923ba04e7df2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4cf8f18bfe4d1d159b02bfb990b4923ba04e7df2/freeze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5713, 27621, 819, 1633, 273, 599, 15604, 468, 444, 2121, 598, 300, 84, 1456, 1196, 67, 3239, 273, 599, 5375, 468, 444, 2121, 598, 300, 52, 1456, 4418, 273, 5378, 4433, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5713, 27621, 819, 1633, 273, 599, 15604, 468, 444, 2121, 598, 300, 84, 1456, 1196, 67, 3239, 273, 599, 5375, 468, 444, 2121, 598, 300, 52, 1456, 4418, 273, 5378, 4433, ...
title = COLLAPSE_RE(' ', title.strip())
title = COLLAPSE_RE.sub(' ', title.strip())
def _toc_from_spine(self, opf): self.toc = toc = TOC() titles = [] headers = [] for item in self.spine: if not item.linear: continue html = item.data title = ''.join(xpath(html, '/h:html/h:head/h:title/text()')) title = COLLAPSE_RE(' ', title.strip()) if title: titles.append(title) headers.append('(unlabled)') for tag ...
f524968ce263965500648526102b3c5a43d0038e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f524968ce263965500648526102b3c5a43d0038e/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1391, 67, 2080, 67, 1752, 558, 12, 2890, 16, 1061, 74, 4672, 365, 18, 1391, 273, 17919, 273, 8493, 39, 1435, 14693, 273, 5378, 1607, 273, 5378, 364, 761, 316, 365, 18, 1752, 558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1391, 67, 2080, 67, 1752, 558, 12, 2890, 16, 1061, 74, 4672, 365, 18, 1391, 273, 17919, 273, 8493, 39, 1435, 14693, 273, 5378, 1607, 273, 5378, 364, 761, 316, 365, 18, 1752, 558, ...
log.error('Could not resolve SIP SRV record for domain "%s"' % addr)
log.warn('Could not resolve SIP SRV record for domain "%s", attempting A record lookup' % addr) return reactor.resolve(addr).addCallback(lambda host: (host, port)).addErrback(self._eb_no_dns, addr) def _eb_no_dns(self, failure, addr): failure.trap(DNSNameError, DNSQueryRefusedError) log.error('Could not resolve A reco...
def _eb_no_srv(self, failure, addr): failure.trap(DNSNameError, DNSQueryRefusedError) log.error('Could not resolve SIP SRV record for domain "%s"' % addr)
8c4798c3b3b84175963bbb646491c36c68173acf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/8c4798c3b3b84175963bbb646491c36c68173acf/relay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24008, 67, 2135, 67, 20818, 12, 2890, 16, 5166, 16, 3091, 4672, 5166, 18, 27170, 12, 11602, 461, 668, 16, 8858, 1138, 1957, 3668, 668, 13, 613, 18, 1636, 2668, 4445, 486, 2245, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24008, 67, 2135, 67, 20818, 12, 2890, 16, 5166, 16, 3091, 4672, 5166, 18, 27170, 12, 11602, 461, 668, 16, 8858, 1138, 1957, 3668, 668, 13, 613, 18, 1636, 2668, 4445, 486, 2245, 34...
def cb_out_rewind(self, args):
def cb_out_rewind(self, *args):
def cb_out_rewind(self, args): if not self.ocheck(): return self.vout.rewind() self.oshow()
89a8f9532953b87e4128e8ce87609893e92d59eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/89a8f9532953b87e4128e8ce87609893e92d59eb/Vedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 659, 67, 266, 10094, 12, 2890, 16, 380, 1968, 4672, 309, 486, 365, 18, 83, 1893, 13332, 327, 365, 18, 90, 659, 18, 266, 10094, 1435, 365, 18, 538, 13606, 1435, 2, 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, 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, 2875, 67, 659, 67, 266, 10094, 12, 2890, 16, 380, 1968, 4672, 309, 486, 365, 18, 83, 1893, 13332, 327, 365, 18, 90, 659, 18, 266, 10094, 1435, 365, 18, 538, 13606, 1435, 2, -100, -10...
try: 1/0 except: 1/0
try: 1./0 except: 1./0
def f(p): try: 1/0 except: 1/0
bb86314d227aa1b695b7c968a2cdf42146cacf29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/bb86314d227aa1b695b7c968a2cdf42146cacf29/test_profilehooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 84, 4672, 775, 30, 404, 19, 20, 1335, 30, 404, 19, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 84, 4672, 775, 30, 404, 19, 20, 1335, 30, 404, 19, 20, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def testObsoleteMultiarchTobsoletes_noarchForDependency(self):
def testObsoleteMultiarchTonoarchForDependency(self):
def testObsoleteMultiarchTobsoletes_noarchForDependency(self): p = self.pkgs res, msg = self.runOperation(['install', 'superzippy'], [p.installed_i386, p.installed_x86_64], [p.obsoletes_noarch, p.requires_obsoletes]) self.assert_(res==2, msg) if testbase.new_behavior: self.assertResult((p.obsoletes_noarch, p.requires_o...
5a3b0127690262e2a8d55bf150d354fae0cc927f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/5a3b0127690262e2a8d55bf150d354fae0cc927f/operationstests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 27637, 19513, 5002, 991, 56, 265, 83, 991, 1290, 7787, 12, 2890, 4672, 293, 273, 365, 18, 25376, 400, 16, 1234, 273, 365, 18, 2681, 2988, 12, 3292, 5425, 2187, 296, 9565, 4450, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 27637, 19513, 5002, 991, 56, 265, 83, 991, 1290, 7787, 12, 2890, 4672, 293, 273, 365, 18, 25376, 400, 16, 1234, 273, 365, 18, 2681, 2988, 12, 3292, 5425, 2187, 296, 9565, 4450, 2...
np = lambda *f: norm(self.tempdir, *f)
def test_glob_nested_directory(self): eq = self.assertSequencesEqual_noorder np = lambda *f: norm(self.tempdir, *f) if os.path.normcase("abCD") == "abCD": # case-sensitive filesystem eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF')]) else: # case insensitive filesystem eq(self.glob('a', 'bcd', 'E*'), [self....
204f33fc4e37986f56b2fd5b0c486f6912c711ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/204f33fc4e37986f56b2fd5b0c486f6912c711ac/test_glob.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10581, 67, 12985, 67, 5149, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 21710, 5812, 67, 2135, 1019, 309, 1140, 18, 803, 18, 7959, 3593, 2932, 378, 10160, 7923, 422, 315, 378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10581, 67, 12985, 67, 5149, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 21710, 5812, 67, 2135, 1019, 309, 1140, 18, 803, 18, 7959, 3593, 2932, 378, 10160, 7923, 422, 315, 378, ...
print "* rev som:",reverse_array_cp(som1) print "* rev so :",reverse_array_cp(som1[0])
print "* rev som:", reverse_array_cp(som1) print "* rev so :", reverse_array_cp(som1[0])
def reverse_array_cp(obj): """ This function reverses the y and var_y tuples of all the SOs in a SOM or an individual SO. This is assuming that there was a previous transformation on the x-axis of the SO or SOM. Parameters: ---------- -> obj is the SOM or SO that needs to have its y and var_y tuples reversed Return: ...
a278ff8066df4288bf6ed4cee908d5ef308251ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/a278ff8066df4288bf6ed4cee908d5ef308251ff/hlr_reverse_array_cp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4219, 67, 1126, 67, 4057, 12, 2603, 4672, 3536, 1220, 445, 19795, 281, 326, 677, 471, 569, 67, 93, 10384, 434, 777, 326, 7460, 87, 316, 279, 348, 1872, 578, 392, 7327, 7460, 18, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4219, 67, 1126, 67, 4057, 12, 2603, 4672, 3536, 1220, 445, 19795, 281, 326, 677, 471, 569, 67, 93, 10384, 434, 777, 326, 7460, 87, 316, 279, 348, 1872, 578, 392, 7327, 7460, 18, 1220, ...
label='Scan &Incoming Email Messages',
label='&Scan &Incoming Email Messages',
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_WXPREFERENCESDLG, name='', parent=prnt, pos=wxPoint(523, 301), size=wxSize(419, 351), style=wxDEFAULT_DIALOG_STYLE, title='ClamWin Preferences') self._init_utils() self.SetClientSize(wxSize(411, 324)) self.SetAutoLayout(False) s...
ced0911957faf8b1fa6a8ca1040dbad5f3b217f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3644/ced0911957faf8b1fa6a8ca1040dbad5f3b217f2/wxDialogPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 59, 60, 3670, 10830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 59, 60, 3670, 10830, ...
self.pp.end()
self.pp.end(suffix=self.suffix)
def __exit__(self, type, value, traceback): self.pp.end() if type is StopIteration: return True
08966e33a63aeb5e305c57b77efd0697dc6d511d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2063/08966e33a63aeb5e305c57b77efd0697dc6d511d/prettyprinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8593, 972, 12, 2890, 16, 618, 16, 460, 16, 10820, 4672, 365, 18, 11858, 18, 409, 12, 8477, 33, 2890, 18, 8477, 13, 309, 618, 353, 16179, 30, 327, 1053, 2, 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, 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, 8593, 972, 12, 2890, 16, 618, 16, 460, 16, 10820, 4672, 365, 18, 11858, 18, 409, 12, 8477, 33, 2890, 18, 8477, 13, 309, 618, 353, 16179, 30, 327, 1053, 2, -100, -100, -100, -10...
VmsMake.write("link /executable=cm3.exe ") for a in Objects: VmsMake.write(a + " ") VmsMake.write("\n")
VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.mo\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.io\n") VmsMake.write("$ link /executable=cm3.exe vmslink/options\n")
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ...
0aaa1f5072814c2e412f3bde57c60fe3a1a72786 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/0aaa1f5072814c2e412f3bde57c60fe3a1a72786/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
ts.get_available_actions(self.req,
self._ts_get_available_actions(ts,
def test_available_actions_no_perms(self): ts = TicketSystem(self.env) self.req.perm = perm.PermissionCache(self.env) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'new'})) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'assigned'})) self.assertEqual(['leave'], ts....
4b1c974fc51a3689f934bd513f21feadc4fe0a2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/4b1c974fc51a3689f934bd513f21feadc4fe0a2a/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5699, 67, 4905, 67, 2135, 67, 15969, 12, 2890, 4672, 3742, 273, 22023, 3163, 12, 2890, 18, 3074, 13, 365, 18, 3658, 18, 12160, 273, 4641, 18, 5041, 1649, 12, 2890, 18, 3074, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5699, 67, 4905, 67, 2135, 67, 15969, 12, 2890, 4672, 3742, 273, 22023, 3163, 12, 2890, 18, 3074, 13, 365, 18, 3658, 18, 12160, 273, 4641, 18, 5041, 1649, 12, 2890, 18, 3074, ...
def __init__(self, elem, parent=None): self.parent = parent
def __init__(self, elem, parent=None, index=0):
def __init__(self, elem, parent=None): self.parent = parent if elem.tag != 'Layer': raise ValueError('%s should be a Layer' % (elem,)) for key in ('Name', 'Title'): val = elem.find(key) if val is not None: setattr(self, key.lower(), val.text.strip()) else: setattr(self, key.lower(), 'unnamed_layer') self.id=self.name #...
638cf24328c5cdda953724f5aa47ca607deeb77d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/638cf24328c5cdda953724f5aa47ca607deeb77d/wms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3659, 16, 982, 33, 7036, 16, 770, 33, 20, 4672, 309, 3659, 18, 2692, 480, 296, 4576, 4278, 1002, 2068, 29909, 87, 1410, 506, 279, 12112, 11, 738, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3659, 16, 982, 33, 7036, 16, 770, 33, 20, 4672, 309, 3659, 18, 2692, 480, 296, 4576, 4278, 1002, 2068, 29909, 87, 1410, 506, 279, 12112, 11, 738, 261, ...
pixbuf = pixbuf.scale_simple(scale_w, scale_h, gtk.gdk.INTERP_BILINEAR) gobject.idle_add(self.image.set_from_pixbuf, pixbuf)
thr = threading.Thread( target=self.__scale_async, args=(pixbuf, scale_w, scale_h)) thr.setDaemon(True) thr.start() else: self.image.set_from_pixbuf(pixbuf) def __scale_async(self, pixbuf, w, h): pixbuf = pixbuf.scale_simple(w, h, gtk.gdk.INTERP_BILINEAR) gobject.idle_add(self.image.set_from_pixbuf, pixbuf)
def __scale_pixbuf(self, *data): if not self.current_pixbuf: return
cbf4721e646898ffb269b94d5b0b6d9b390d9802 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/cbf4721e646898ffb269b94d5b0b6d9b390d9802/albumart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5864, 67, 14861, 4385, 12, 2890, 16, 380, 892, 4672, 309, 486, 365, 18, 2972, 67, 14861, 4385, 30, 327, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5864, 67, 14861, 4385, 12, 2890, 16, 380, 892, 4672, 309, 486, 365, 18, 2972, 67, 14861, 4385, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
hist[maxbin]=0 frac=frac+(maxbin/len(pos))
hist[maxpos]=0 frac=frac+(float(maxbin)/float(len(pos)))
def getinjpar(inj,parnum): if parnum==0: return inj.mchirp if parnum==1: return inj.eta if parnum==2: return inj.get_end() if parnum==3: return inj.phi0 if parnum==4: return inj.distance if parnum==5: return inj.longitude if parnum==6: return inj.latitude if parnum==7: return inj.polarization if parnum==8: return inj.i...
33519ea48f8ccd5716372f3219410b44ab5f50ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/33519ea48f8ccd5716372f3219410b44ab5f50ca/OddsPostProc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 267, 78, 1065, 12, 267, 78, 16, 1065, 2107, 4672, 309, 779, 2107, 631, 20, 30, 327, 316, 78, 18, 81, 343, 481, 84, 309, 779, 2107, 631, 21, 30, 327, 316, 78, 18, 1066, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 267, 78, 1065, 12, 267, 78, 16, 1065, 2107, 4672, 309, 779, 2107, 631, 20, 30, 327, 316, 78, 18, 81, 343, 481, 84, 309, 779, 2107, 631, 21, 30, 327, 316, 78, 18, 1066, 309, ...
ignore_files=[])
ignore_files=[], emit_imports=0, emit_footer=0) enum_generator.generate( DISCRECORDING2_HDRS, 'build/codegen/_DiscRecording2_Enum.inc', ignore_files=[], emit_imports=0, emit_footer=0, emit_header=0) enum_generator.generate( DISCRECORDING3_HDRS, 'build/codegen/_DiscRecording3_Enum.inc', ignore_files=[], emit_imports=0, ...
fd.write('typedef void* PYOBJC_VOIDPTR;\n')
cf6bd0822a967ae34ef4c558ae6f07f121d98747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/cf6bd0822a967ae34ef4c558ae6f07f121d98747/cocoa_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5194, 18, 2626, 2668, 723, 536, 918, 14, 12191, 24547, 39, 67, 58, 12945, 1856, 54, 9747, 82, 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,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5194, 18, 2626, 2668, 723, 536, 918, 14, 12191, 24547, 39, 67, 58, 12945, 1856, 54, 9747, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
log.warning('now', all_var.value.parse_repr)
def append_to_all(name, parent_docs, lineno): all_var = lookup_name('__all__', parent_docs) error = None if all_var is None or all_var.value in (None, UNKNOWN): error = "variable __all__ not found." else: try: # Make sure we can parse the __all__ value. parse_string_list(all_var.value.toktree, True) # Add the new nam...
28945a0417e5d6eee61135a230f70a8de3ed89ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11420/28945a0417e5d6eee61135a230f70a8de3ed89ed/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 869, 67, 454, 12, 529, 16, 982, 67, 8532, 16, 7586, 4672, 777, 67, 1401, 273, 3689, 67, 529, 2668, 972, 454, 972, 2187, 982, 67, 8532, 13, 225, 555, 273, 599, 309, 777, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 714, 67, 869, 67, 454, 12, 529, 16, 982, 67, 8532, 16, 7586, 4672, 777, 67, 1401, 273, 3689, 67, 529, 2668, 972, 454, 972, 2187, 982, 67, 8532, 13, 225, 555, 273, 599, 309, 777, 67...
self.assertEqual(func.next(), ('es', pathname))
actual = func.next() expect = ('es', fakepath) self.assertEqual(actual, expect, "Expected '%s' but got '%s'" % (expect, actual)) FileUtilities.globex = old_globex
def test_yield(pathname, regex): """Replacement for globex()""" yield pathname
afcce7d64e806b40a186a38225a4a2e8ff6bd5bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/afcce7d64e806b40a186a38225a4a2e8ff6bd5bd/Unix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23604, 12, 28336, 16, 3936, 4672, 3536, 15201, 364, 4715, 338, 1435, 8395, 2824, 9806, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23604, 12, 28336, 16, 3936, 4672, 3536, 15201, 364, 4715, 338, 1435, 8395, 2824, 9806, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not match: load(loc, ia) print "finished"
if not match: load(loc, ia) write_log(ia, when, "loaded") start = row.updated secs = time() - t_start mins = secs / 60 print "finished %d took mins" % mins if mins < 30: print 'waiting' sleep(60 * 30 - secs)
def write_edition(loc, edition): add_lang(edition) q = build_query(loc, edition) authors = [] for a in q.get('authors', []): if 'key' in a: authors.append({'key': a['key']}) else: try: ret = ol.new(a, comment='new author') except: print a raise print 'ret:', ret assert isinstance(ret, basestring) authors.append({'key':...
1b1415b95c69879526d00e20ecc42894fbc1d05f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/1b1415b95c69879526d00e20ecc42894fbc1d05f/load_scribe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 329, 608, 12, 1829, 16, 28432, 4672, 527, 67, 4936, 12, 329, 608, 13, 1043, 273, 1361, 67, 2271, 12, 1829, 16, 28432, 13, 14494, 273, 5378, 364, 279, 316, 1043, 18, 588, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 329, 608, 12, 1829, 16, 28432, 4672, 527, 67, 4936, 12, 329, 608, 13, 1043, 273, 1361, 67, 2271, 12, 1829, 16, 28432, 13, 14494, 273, 5378, 364, 279, 316, 1043, 18, 588, 26...
global template if template == None:
global template, _pid if os.name == 'posix' and _pid and _pid != os.getpid(): template = None if template is None:
def gettempprefix(): global template if template == None: if os.name == 'posix': template = '@' + `os.getpid()` + '.' elif os.name == 'nt': template = '~' + `os.getpid()` + '-' elif os.name == 'mac': template = 'Python-Tmp-' else: template = 'tmp' # XXX might choose a better one return template
b0e5718643f807af590e16ebb8d3eb401a327ca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b0e5718643f807af590e16ebb8d3eb401a327ca3/tempfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5814, 3239, 13332, 2552, 1542, 16, 389, 6610, 309, 1140, 18, 529, 422, 296, 24463, 11, 471, 389, 6610, 471, 389, 6610, 480, 1140, 18, 588, 6610, 13332, 225, 1542, 273, 599, 309, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 5814, 3239, 13332, 2552, 1542, 16, 389, 6610, 309, 1140, 18, 529, 422, 296, 24463, 11, 471, 389, 6610, 471, 389, 6610, 480, 1140, 18, 588, 6610, 13332, 225, 1542, 273, 599, 309, 1...
Use the `dot` command to render this graph, using the output
Use the ``dot`` command to render this graph, using the output
def render(self, language='gif'): """ Use the `dot` command to render this graph, using the output format `language`. Return the result as a string, or `None` if the rendering failed. """ try: result, err = run_subprocess([DOT_COMMAND, '-T%s' % language], self.to_dotfile()) # Decode into unicode, if necessary. if lang...
a30cefa7e4b8396a34ef5836d8d306e7107e2af0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a30cefa7e4b8396a34ef5836d8d306e7107e2af0/dotgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 2653, 2218, 13905, 11, 4672, 3536, 2672, 326, 12176, 9811, 10335, 1296, 358, 1743, 333, 2667, 16, 1450, 326, 876, 740, 1375, 4923, 8338, 225, 2000, 326, 563, 487, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 2653, 2218, 13905, 11, 4672, 3536, 2672, 326, 12176, 9811, 10335, 1296, 358, 1743, 333, 2667, 16, 1450, 326, 876, 740, 1375, 4923, 8338, 225, 2000, 326, 563, 487, 279...
return u', '.join(map(smart_str, value))
return ', '.join(map(smart_str, value))
def resolve(self, value): bits = self.path.split(".")
2505f2b4c7572e4c38568341fa3e82e74ca5c128 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/2505f2b4c7572e4c38568341fa3e82e74ca5c128/indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 460, 4672, 4125, 273, 365, 18, 803, 18, 4939, 2932, 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, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 460, 4672, 4125, 273, 365, 18, 803, 18, 4939, 2932, 1199, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
del sys.path[0]
os.chdir(cwd) sys.path = opath
def getModuleObjects(folder, rootName, typ): "Get a list of all function objects defined *somewhere* in a package." folders = [folder] + subFoldersOfFolder(folder) objects = [] for f in folders: sys.path.insert(0, f) os.chdir(f) pattern = os.path.join('*.py') prefix = f[string.find(f, rootName):] prefix = string.repl...
576576f597862a970dbfcc99dfaa951bc8dfe7d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/576576f597862a970dbfcc99dfaa951bc8dfe7d4/test_docstrings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11251, 4710, 12, 5609, 16, 1365, 461, 16, 3815, 4672, 315, 967, 279, 666, 434, 777, 445, 2184, 2553, 380, 87, 362, 359, 14852, 14, 316, 279, 2181, 1199, 225, 9907, 273, 306, 5609, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11251, 4710, 12, 5609, 16, 1365, 461, 16, 3815, 4672, 315, 967, 279, 666, 434, 777, 445, 2184, 2553, 380, 87, 362, 359, 14852, 14, 316, 279, 2181, 1199, 225, 9907, 273, 306, 5609, 65, ...
@param vars: alternative param=value pairs with suggested substitutors
@param minLen: minimal length of string o to be counted as path @type minLen: int @param absolute: normalize file name [1] @type absolute: 1|0 @param resolveLinks: resolve symbolic links [0] @type resolveLinks: 1|0 @param maxSub: maximal number of substitutions [1] @type maxSub: int @param vars: additional param=va...
def set_path( self, fname, minLen=3, **vars ): """ Set a new path and try to identify environment variables that could substitute parts of it. If vars is given, env. variables are ignored. @param fname: relative or absolute file name @type fname: str @param vars: alternative param=value pairs with suggested substitut...
3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 803, 12, 365, 16, 5299, 16, 1131, 2891, 33, 23, 16, 2826, 4699, 262, 30, 3536, 1000, 279, 394, 589, 471, 775, 358, 9786, 3330, 3152, 716, 3377, 14811, 2140, 434, 518, 18, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 803, 12, 365, 16, 5299, 16, 1131, 2891, 33, 23, 16, 2826, 4699, 262, 30, 3536, 1000, 279, 394, 589, 471, 775, 358, 9786, 3330, 3152, 716, 3377, 14811, 2140, 434, 518, 18, 97...
taskMgr.add(task, self.taskName("scroll"))
def __incButtonDown(self, event): assert self.notify.debugStateCall(self) task = Task(self.__scrollByTask) task.delayTime = (1.0 / self.scrollSpeed) task.prevTime = 0.0 task.delta = 1 self.scrollBy(task.delta) taskMgr.add(task, self.taskName("scroll"))
f9890a4f678ea170111f1c22ec2556d448162528 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/f9890a4f678ea170111f1c22ec2556d448162528/DirectScrolledList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9523, 3616, 4164, 12, 2890, 16, 871, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 1562, 273, 3837, 12, 2890, 16186, 12033, 858, 2174, 13, 1562, 18, 10790, 950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9523, 3616, 4164, 12, 2890, 16, 871, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 1562, 273, 3837, 12, 2890, 16186, 12033, 858, 2174, 13, 1562, 18, 10790, 950, ...
language = node.get_attribute('lang')
language = str(node.get_attribute('lang'))
def decode(cls, node): schema = cls.schema property = cls() for node in node.get_elements(): name = node.name # Decode the value if name in schema: type, default = schema[name] if issubclass(type, ComplexType): value = type.decode(node) else: value = unicode(node.children) value = value.encode('utf8') try: value = type...
8f921bc29f1709b6e374ed6fc434ad37f288a593 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8f921bc29f1709b6e374ed6fc434ad37f288a593/Schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 6429, 16, 756, 4672, 1963, 273, 2028, 18, 4821, 1272, 273, 2028, 1435, 364, 756, 316, 756, 18, 588, 67, 6274, 13332, 508, 273, 756, 18, 529, 468, 6209, 326, 460, 309, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 6429, 16, 756, 4672, 1963, 273, 2028, 18, 4821, 1272, 273, 2028, 1435, 364, 756, 316, 756, 18, 588, 67, 6274, 13332, 508, 273, 756, 18, 529, 468, 6209, 326, 460, 309, 508, ...
cu.execute("""DELETE FROM Permissions WHERE userGroupId=? AND labelId=? AND itemId=?""", userGroupId, labelId, itemId) self.db.commit()
stmt = """DELETE FROM Permissions WHERE userGroupId=? AND (labelId=? OR (labelId IS NULL AND ? IS NULL)) AND (itemId=? OR (itemId IS NULL AND ? IS NULL))""" cu.execute(stmt, userGroupId, labelId, labelId, itemId, itemId) self.db.commit()
def deletePermission(self, userGroupId, labelId, itemId): cu = self.db.cursor() cu.execute("""DELETE FROM Permissions WHERE userGroupId=? AND labelId=? AND itemId=?""", userGroupId, labelId, itemId) self.db.commit()
816f547ab63e7a089aa6ecbbad71e9baac7c773b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/816f547ab63e7a089aa6ecbbad71e9baac7c773b/netauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 5041, 12, 2890, 16, 729, 8722, 16, 1433, 548, 16, 18424, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 225, 15985, 18, 8837, 2932, 3660, 6460, 4571, 15684, 4852, 729, 8722, 1728...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 5041, 12, 2890, 16, 729, 8722, 16, 1433, 548, 16, 18424, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 225, 15985, 18, 8837, 2932, 3660, 6460, 4571, 15684, 4852, 729, 8722, 1728...
print (path, garbage)
def retrieve(self, url, filename=None): url = unwrap(url) if self.tempcache and self.tempcache.has_key(url): return self.tempcache[url] type, url1 = splittype(url) if not filename and (not type or type == 'file'): try: fp = self.open_local_file(url1) hdrs = fp.info() del fp return url2pathname(splithost(url1)[1]), hdrs...
99bec1b49fade0be3214a194a0828127c35c34dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/99bec1b49fade0be3214a194a0828127c35c34dd/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, ...
gluLookAt( ow/2.0, oh/2.0, oh/1.1566, ow / 2.0, oh / 2.0, 0, 0.0, 1.0, 0.0
gluLookAt( vw/2.0, vh/2.0, vh/1.1566, vw/2.0, vh/2.0, 0, 0.0, 1.0, 0.0
def set_projection(self): '''Sets a 3D projection mantaining the aspect ratio of the original window size'''
2ed31204cbecc187b0fcd9ac7eb3df86e8893a3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/2ed31204cbecc187b0fcd9ac7eb3df86e8893a3a/director.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 19183, 12, 2890, 4672, 9163, 2785, 279, 890, 40, 8106, 20414, 3280, 326, 9648, 7169, 434, 326, 2282, 2742, 963, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 19183, 12, 2890, 4672, 9163, 2785, 279, 890, 40, 8106, 20414, 3280, 326, 9648, 7169, 434, 326, 2282, 2742, 963, 26418, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
request = urllib2.Request(url, xml, headers)
request = urllib2.Request(url, '', headers)
def _process_record(self, header, element):
9ce336e01972e5cf42b8934d10d0a1c026f93121 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14691/9ce336e01972e5cf42b8934d10d0a1c026f93121/fedora.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 3366, 12, 2890, 16, 1446, 16, 930, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 3366, 12, 2890, 16, 1446, 16, 930, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for name, (byDefault, explicit) in self.newGroupList.iteritems():
for (name, (byDefault, explicit, childDefaults)) \ in self.newGroupList.iteritems():
def iterNewGroupList(self): for name, (byDefault, explicit) in self.newGroupList.iteritems(): yield name, byDefault, explicit
74a07587cebc9b61ae9ea7fec2d4845bd485e0f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/74a07587cebc9b61ae9ea7fec2d4845bd485e0f0/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 1908, 1114, 682, 12, 2890, 4672, 364, 261, 529, 16, 261, 1637, 1868, 16, 5515, 16, 1151, 7019, 3719, 521, 316, 365, 18, 2704, 1114, 682, 18, 2165, 3319, 13332, 2824, 508, 16, 635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 1908, 1114, 682, 12, 2890, 4672, 364, 261, 529, 16, 261, 1637, 1868, 16, 5515, 16, 1151, 7019, 3719, 521, 316, 365, 18, 2704, 1114, 682, 18, 2165, 3319, 13332, 2824, 508, 16, 635...
if metahandles.has_key(n): m = metahandles[n][0] else:
if metahandles.has_key(n): m = metahandles[n][0] else:
def start(): # don't mess with certain classes of nodes if mirror mypvfsnodes = pvfsnodes if options["mirror"] == "remote-mount" or \ options["mirror"] == "meta-mirror": mypvfsnodes = [x for x in mypvfsnodes if x not in ionodes] if options["mirror"] == "remote-mount": mypvfsnodes = [x for x in mypvfsnodes if x not in ...
9ac094c424de1142f8f62377c0610dccd1363cb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/9ac094c424de1142f8f62377c0610dccd1363cb4/perf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 13332, 468, 2727, 1404, 12755, 598, 8626, 3318, 434, 2199, 309, 15593, 312, 879, 90, 2556, 4690, 273, 9770, 2556, 4690, 225, 309, 702, 9614, 27197, 11929, 422, 315, 7222, 17, 4778, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 13332, 468, 2727, 1404, 12755, 598, 8626, 3318, 434, 2199, 309, 15593, 312, 879, 90, 2556, 4690, 273, 9770, 2556, 4690, 225, 309, 702, 9614, 27197, 11929, 422, 315, 7222, 17, 4778, ...
"l (=%s) must be an iterable of %s integers" %(l, n)) compositions = [l]
"arg (=%s) must be an iterable of %s integers" %(arg, n)) compositions = [arg]
def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain.
564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 328, 33, 7036, 16, 11012, 1530, 33, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 328, 33, 7036, 16, 11012, 1530, 33, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, ...
m_width = size[ 2 ] - size[ 0 ] m_height = size[ 3 ] - size[ 1 ]
try: m_width = size[ 2 ] - size[ 0 ] m_height = size[ 3 ] - size[ 1 ] except: m_width = r.width m_height = r.height
def return_formatedtext( self, sel_list ): """ receives a list of indexex of elements to be used and returns a array with XML_FormatText ready to print (with its elements x, y, width and height already calculated) """ x, y = 0, 0 item = self.infoitem
4eeccde8e715e3848d141b118b26dc1f8c7a74fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4eeccde8e715e3848d141b118b26dc1f8c7a74fc/info_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 67, 687, 690, 955, 12, 365, 16, 357, 67, 1098, 262, 30, 3536, 17024, 279, 666, 434, 770, 338, 434, 2186, 358, 506, 1399, 471, 1135, 279, 526, 598, 3167, 67, 1630, 1528, 5695, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 327, 67, 687, 690, 955, 12, 365, 16, 357, 67, 1098, 262, 30, 3536, 17024, 279, 666, 434, 770, 338, 434, 2186, 358, 506, 1399, 471, 1135, 279, 526, 598, 3167, 67, 1630, 1528, 5695, 35...
assert(original)
def _archive_dir(mailbox_name, final_archive_name, type): """Archive a 'maildir' or 'MH' style mailbox - used by archive_mailbox()""" assert(mailbox_name) assert(final_archive_name) assert(type) original = None archive = None stats = Stats(mailbox_name, final_archive_name) delete_queue = [] if type == "maildir": origi...
c0f0ad33d781def6aaf028ff99f368b87ed0e1f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1746/c0f0ad33d781def6aaf028ff99f368b87ed0e1f7/archivemail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10686, 67, 1214, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 16, 618, 4672, 3536, 7465, 279, 296, 2540, 545, 481, 11, 578, 296, 49, 44, 11, 2154, 14187, 300, 1399, 635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10686, 67, 1214, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 16, 618, 4672, 3536, 7465, 279, 296, 2540, 545, 481, 11, 578, 296, 49, 44, 11, 2154, 14187, 300, 1399, 635...
print("[{1:{0}}/{2:{0}}] {3}".format(
print("[{1:{0}}{2}] {3}".format(
def work(): # A worker thread. try: while True: try: test, args_tuple = next(pending) except StopIteration: output.put((None, None, None, None)) return # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=P...
147fdd098ed939bdfe2e79a9a1e00bbd3418405d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/147fdd098ed939bdfe2e79a9a1e00bbd3418405d/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 1024, 12, 9561, 13, 1335, 16179, 30, 876, 18, 458, 12443, 7036, 16, 599, 16, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 1024, 12, 9561, 13, 1335, 16179, 30, 876, 18, 458, 12443, 7036, 16, 599, 16, 59...
"""Helper function for break/clear parsing -- may be overridden."""
"""Helper function for break/clear parsing -- may be overridden. lookupmodule() translates (possibly incomplete) file or module name into an absolute file name. """ if os.path.isabs(filename) and os.path.exists(filename): return filename f = os.path.join(sys.path[0], filename) if os.path.exists(f) and self.canonic(f...
def lookupmodule(self, filename): """Helper function for break/clear parsing -- may be overridden.""" root, ext = os.path.splitext(filename) if ext == '': filename = filename + '.py' if os.path.isabs(filename): return filename for dirname in sys.path: while os.path.islink(dirname): dirname = os.readlink(dirname) fullna...
25b38c89690e79e8f3bc78245b73017eed07f42e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25b38c89690e79e8f3bc78245b73017eed07f42e/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 2978, 12, 2890, 16, 1544, 4672, 3536, 2276, 445, 364, 898, 19, 8507, 5811, 1493, 2026, 506, 11000, 18, 225, 3689, 2978, 1435, 2162, 815, 261, 917, 8781, 14715, 13, 585, 578, 1605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3689, 2978, 12, 2890, 16, 1544, 4672, 3536, 2276, 445, 364, 898, 19, 8507, 5811, 1493, 2026, 506, 11000, 18, 225, 3689, 2978, 1435, 2162, 815, 261, 917, 8781, 14715, 13, 585, 578, 1605, ...
nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id)])
ucid = self.pool.get('res.users').browse(cr, uid, uid).company_id.id nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id),('company_id','=',ucid)])
def get(self, cr, uid, name, model, res_id=False, context={}): cr.execute('select id from ir_model_fields where name=%s and model=%s', (name, model)) res = cr.fetchone() if res: nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id)]) if nid: d = self.browse(cr, uid, nid[0], context).value return (d...
3bf4d5294d9ceaba1307518e5852ce245f94bf45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/3bf4d5294d9ceaba1307518e5852ce245f94bf45/ir_property.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 938, 16, 400, 67, 350, 33, 8381, 16, 819, 12938, 4672, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 2284, 67, 2821, 1625, 508, 5095...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 938, 16, 400, 67, 350, 33, 8381, 16, 819, 12938, 4672, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 2284, 67, 2821, 1625, 508, 5095...
def fl_set_xyplot_alphaytics(ob, m, s): """ fl_set_xyplot_alphaytics(ob, m, s) """ _fl_set_xyplot_alphaytics(ob, m, s)
def fl_set_xyplot_alphaytics(obj, m, s): """ fl_set_xyplot_alphaytics(obj, m, s) """ _fl_set_xyplot_alphaytics(obj, m, s)
def fl_set_xyplot_alphaytics(ob, m, s): """ fl_set_xyplot_alphaytics(ob, m, s) """ _fl_set_xyplot_alphaytics(ob, m, s)
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1698, 4032, 67, 287, 844, 528, 88, 2102, 12, 2603, 16, 312, 16, 272, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 287, 844, 528, 88, 2102, 12, 2603, 16, 312, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 542, 67, 1698, 4032, 67, 287, 844, 528, 88, 2102, 12, 2603, 16, 312, 16, 272, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 287, 844, 528, 88, 2102, 12, 2603, 16, 312, 1...
`GF(2)`. See help for SR.
`\mathbb{F}_2`. See help for SR.
def __init__(self, n=1, r=1, c=1, e=4, star=False, **kwargs): r""" Small Scale Variants of the AES polynomial system constructor over `GF(2)`. See help for SR. EXAMPLE:: sage: sr = mq.SR(gf2=True) sage: sr SR(1,1,1,4) """ SR_generic.__init__(self, n, r, c, e, star, **kwargs) self._correct_only = kwargs.get("correct_o...
d2531bfd55e8dc010cd9c1e87cc62d2c514562d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2531bfd55e8dc010cd9c1e87cc62d2c514562d4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 9425, 454, 12591, 11487, 4388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 290, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 9425, 454, 12591, 11487, 4388, ...
if not first: self.response.out.write(',"' + b.name + '"\n') else: self.response.out.write('"' + b.name + '"\n') first = False self.response.out.write(']}\n')
q = BenchmarkResult.all() q.ancestor(b) q.order('-__key__') results = q.fetch(10000) m = {} revs = {} for r in results: if r.builder not in m: m[r.builder] = {} m[r.builder][r.num] = r.nsperop revs[r.num] = 0 builders[r.builder] = 0 data[b.name] = m builders = list(builders.keys()) builders.sort() revs = list(revs...
def get(self): q = Benchmark.all() bs = q.fetch(10000)
d5b946f43dd9078baac61400559a67557a9dfc53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6483/d5b946f43dd9078baac61400559a67557a9dfc53/gobuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1043, 273, 21854, 18, 454, 1435, 7081, 273, 1043, 18, 5754, 12, 23899, 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, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1043, 273, 21854, 18, 454, 1435, 7081, 273, 1043, 18, 5754, 12, 23899, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
model.append(["None"]) model.append(["Classic"]) model.append(["Fade"]) model.append(["Spotlight"]) model.append(["Zoom"]) model.append(["Squish"]) model.append(["3D Turn"]) model.append(["3D Spotlight Turn"]) model.append(["Glow"]) model.append(["Custom"])
model.append([_("None")]) model.append([_("Classic")]) model.append([_("Fade")]) model.append([_("Spotlight")]) model.append([_("Zoom")]) model.append([_("Squish")]) model.append([_("3D Turn")]) model.append([_("3D Spotlight Turn")]) model.append([_("Glow")]) model.append([_("Custom")])
def setup_effect(self, group, key, dropdown): self.effects_dd = dropdown model = gtk.ListStore(str) model.append(["None"]) model.append(["Classic"]) model.append(["Fade"]) model.append(["Spotlight"]) model.append(["Zoom"]) model.append(["Squish"]) model.append(["3D Turn"]) model.append(["3D Spotlight Turn"]) model.appe...
ffe263f9ac6a47bc93b6848a46348e19351356c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/ffe263f9ac6a47bc93b6848a46348e19351356c4/awnPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 13867, 12, 2890, 16, 1041, 16, 498, 16, 13972, 4672, 365, 18, 13867, 87, 67, 449, 273, 13972, 938, 273, 22718, 18, 682, 2257, 12, 701, 13, 938, 18, 6923, 3816, 67, 2932, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 67, 13867, 12, 2890, 16, 1041, 16, 498, 16, 13972, 4672, 365, 18, 13867, 87, 67, 449, 273, 13972, 938, 273, 22718, 18, 682, 2257, 12, 701, 13, 938, 18, 6923, 3816, 67, 2932, 70...
self.save(sage.misc.misc.SAGE_TMP + '/test.png',
self.save(DOCTEST_MODE_FILE,
def show(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, axes = None, **args): r""" Show this graphics array using the default viewer.
016a4d7acc0a5c729ac99155cd61974d0e7c23fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/016a4d7acc0a5c729ac99155cd61974d0e7c23fa/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 6515, 273, 599, 16, 2826, 1968, 4672, 436, 8395, 9674, 333, 17313, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 6515, 273, 599, 16, 2826, 1968, 4672, 436, 8395, 9674, 333, 17313, 526, ...
return "\\csch"
""" Returns the LaTeX code for csch. EXAMPLES: sage: latex(csch) \text{csch} """ return r"\text{csch}"
def _latex_(self): return "\\csch"
2cd3c06f5dcc27b88378f192bb53f4e52ab78a79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2cd3c06f5dcc27b88378f192bb53f4e52ab78a79/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 327, 8422, 2143, 343, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 327, 8422, 2143, 343, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
-t: decode string 'Aladdin:open sesame'"""
-t: encode and decode string 'Aladdin:open sesame'"""%sys.argv[0]
def test(): """Small test program""" import sys, getopt try: opts, args = getopt.getopt(sys.argv[1:], 'deut') except getopt.error, msg: sys.stdout = sys.stderr print msg print """usage: basd64 [-d] [-e] [-u] [-t] [file|-] -d, -u: decode -e: encode (default) -t: decode string 'Aladdin:open sesame'""" sys.exit(2) func = ...
4531fb48abb16344cd634a47a4210b40592240cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4531fb48abb16344cd634a47a4210b40592240cd/base64.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 3536, 19187, 1842, 5402, 8395, 1930, 2589, 16, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 323, 322, 6134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 3536, 19187, 1842, 5402, 8395, 1930, 2589, 16, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 323, 322, 6134...
return True return False
has_system = True if not has_system: return False
def prerequisiteMet(self, prerequisites): # TODO: we need to implement a hardware detection here... print "prerequisites:", prerequisites met = True if self.neededTag is None: if prerequisites.has_key("tag"): return False else: if prerequisites.has_key("tag"): if not self.neededTag in prerequisites["tag"]: return False...
a7ebf0a0c2b03f8ffc7244d2b73440be00cb85d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/a7ebf0a0c2b03f8ffc7244d2b73440be00cb85d2/DreamInfoHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30328, 16608, 1137, 12244, 12, 2890, 16, 30328, 16608, 2997, 4672, 468, 2660, 30, 732, 1608, 358, 2348, 279, 16251, 11649, 2674, 2777, 1172, 315, 683, 822, 16608, 2997, 2773, 16, 30328, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30328, 16608, 1137, 12244, 12, 2890, 16, 30328, 16608, 2997, 4672, 468, 2660, 30, 732, 1608, 358, 2348, 279, 16251, 11649, 2674, 2777, 1172, 315, 683, 822, 16608, 2997, 2773, 16, 30328, 16...
for child in self.childs:
for child in self.children:
def __setattr__(self, name, value): super(Singleton, self).__setattr__(name, value) if name in ('init', 'update', 'demo'): tools.config[name][self.name] = 1 for child in self.childs: setattr(child, name, value) if name == 'depth': for child in self.childs: setattr(child, name, value + 1)
aa70e5588a3ce204d7ec88cdfe822b32c8d23485 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/aa70e5588a3ce204d7ec88cdfe822b32c8d23485/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 2240, 12, 19571, 16, 365, 2934, 972, 542, 1747, 972, 12, 529, 16, 460, 13, 309, 508, 316, 7707, 2738, 2187, 296, 2725, 2187, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 2240, 12, 19571, 16, 365, 2934, 972, 542, 1747, 972, 12, 529, 16, 460, 13, 309, 508, 316, 7707, 2738, 2187, 296, 2725, 2187, 2...
sys_prefix = sys.prefix
sys_prefix = os.path.normpath (sys.prefix)
def replace_sys_prefix (self, config_attr, fallback_postfix, use_exec=0): """Attempts to glean a simple pattern from an installation directory available as a 'sysconfig' attribute: if the directory name starts with the "system prefix" (the one hard-coded in the Makefile and compiled into Python), then replace it with t...
88733f0f28ea664c3d72252269218fbb6db54daf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/88733f0f28ea664c3d72252269218fbb6db54daf/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 9499, 67, 3239, 261, 2890, 16, 642, 67, 1747, 16, 5922, 67, 2767, 904, 16, 999, 67, 4177, 33, 20, 4672, 3536, 10113, 358, 314, 298, 304, 279, 4143, 1936, 628, 392, 13193, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 67, 9499, 67, 3239, 261, 2890, 16, 642, 67, 1747, 16, 5922, 67, 2767, 904, 16, 999, 67, 4177, 33, 20, 4672, 3536, 10113, 358, 314, 298, 304, 279, 4143, 1936, 628, 392, 13193, 1...