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
str = string.join(items, '; ') + ';' return str
return '; '.join(items) + ';'
def _formatStyle(self, include=''): str = '' include = string.split(include) keys = self.style.keys() if include: #2.1-safe version of the line below follows: #keys = filter(lambda k: k in include, keys) tmp = [] for word in keys: if word in include: tmp.append(word) keys = tmp
37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03/renderSVG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 2885, 12, 2890, 16, 2341, 2218, 11, 4672, 609, 273, 875, 2341, 273, 533, 18, 4939, 12, 6702, 13, 1311, 273, 365, 18, 4060, 18, 2452, 1435, 309, 2341, 30, 468, 22, 18, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2139, 2885, 12, 2890, 16, 2341, 2218, 11, 4672, 609, 273, 875, 2341, 273, 533, 18, 4939, 12, 6702, 13, 1311, 273, 365, 18, 4060, 18, 2452, 1435, 309, 2341, 30, 468, 22, 18, 21, ...
True)
True, {})
def tagInputIfNeeded(inputFile): inputTagName = os.path.basename(inputFile) if not tagExists('local', inputTagName): debugPrint(lambda : 'Tagging input file: ' + inputFile) taskName = tagData('localhost', 'local', inputTagName, os.path.dirname(inputFile), [inputFile], False, False, False, True) blockOnTaskAndFail('loca...
11df4ec1976153b8ced832d1265c02b3ed772421 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5741/11df4ec1976153b8ced832d1265c02b3ed772421/clovr_blastall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 1210, 18299, 12, 2630, 812, 4672, 810, 8520, 273, 1140, 18, 803, 18, 13909, 12, 2630, 812, 13, 309, 486, 1047, 4002, 2668, 3729, 2187, 810, 8520, 4672, 1198, 5108, 12, 14661, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1047, 1210, 18299, 12, 2630, 812, 4672, 810, 8520, 273, 1140, 18, 803, 18, 13909, 12, 2630, 812, 13, 309, 486, 1047, 4002, 2668, 3729, 2187, 810, 8520, 4672, 1198, 5108, 12, 14661, 294, ...
_do_under(0, t_off, tx)
_do_under(0, t_off+leftIndent, tx)
def drawPara(self,debug=0): """Draws a paragraph according to the given style. Returns the final y position at the bottom. Not safe for paragraphs without spaces e.g. Japanese; wrapping algorithm will go infinite."""
6c7e147d9130dacadd2fe093bd3e271add7cebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/6c7e147d9130dacadd2fe093bd3e271add7cebe3/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 23529, 12, 2890, 16, 4148, 33, 20, 4672, 3536, 25113, 279, 10190, 4888, 358, 326, 864, 2154, 18, 2860, 326, 727, 677, 1754, 622, 326, 5469, 18, 2288, 4183, 364, 24552, 2887, 7292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 23529, 12, 2890, 16, 4148, 33, 20, 4672, 3536, 25113, 279, 10190, 4888, 358, 326, 864, 2154, 18, 2860, 326, 727, 677, 1754, 622, 326, 5469, 18, 2288, 4183, 364, 24552, 2887, 7292, ...
os.system('tar xzf ../data/pulse2-image-sample.tar.gz -C /var/lib/pulse2/imaging/masters/' + self.IMAGE_UUID) result = SERVER.imageDone('00:11:22:33:44:ff', self.IMAGE_UUID)
os.system('tar xzf ../data/pulse2-image-sample.tar.gz -C /var/lib/pulse2/imaging/masters/' + IMAGE_UUID) result = SERVER.imageDone('00:11:22:33:44:ff', IMAGE_UUID)
def test_08imageDone(self): """ Tell that the image is done """ # Put a sample image os.system('tar xzf ../data/pulse2-image-sample.tar.gz -C /var/lib/pulse2/imaging/masters/' + self.IMAGE_UUID) result = SERVER.imageDone('00:11:22:33:44:ff', self.IMAGE_UUID) self.assertTrue(result)
5e412cde7890a3771c1d8c828ef609be4080f173 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/5e412cde7890a3771c1d8c828ef609be4080f173/pserver-imaging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6840, 2730, 7387, 12, 2890, 4672, 3536, 29860, 716, 326, 1316, 353, 2731, 3536, 468, 4399, 279, 3296, 1316, 1140, 18, 4299, 2668, 11718, 31850, 74, 6116, 19, 892, 19, 84, 24667...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6840, 2730, 7387, 12, 2890, 4672, 3536, 29860, 716, 326, 1316, 353, 2731, 3536, 468, 4399, 279, 3296, 1316, 1140, 18, 4299, 2668, 11718, 31850, 74, 6116, 19, 892, 19, 84, 24667...
This is an IIntegration.
This is an ``IIntegration``.
def createWorkItem(participant, process_definition_identifier, application): """Create a work for the given participant
112a3d53b65c13be2d65524c017987be931dc35b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9066/112a3d53b65c13be2d65524c017987be931dc35b/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 25553, 12, 2680, 14265, 16, 1207, 67, 6907, 67, 5644, 16, 2521, 4672, 3536, 1684, 279, 1440, 364, 326, 864, 14188, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 25553, 12, 2680, 14265, 16, 1207, 67, 6907, 67, 5644, 16, 2521, 4672, 3536, 1684, 279, 1440, 364, 326, 864, 14188, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
info['browser_href.old'] = self.env.href.browser(base_path, base_rev)
info['browser_href.old'] = self.env.href.browser(base_path, rev=base_rev)
def render_html(self, req, repos, chgset, diff_options): """HTML version"""
8433a395827d5216e9ecfb77e66bd1e6bfb87305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/8433a395827d5216e9ecfb77e66bd1e6bfb87305/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 2620, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4870, 1177, 8395, 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, 1743, 67, 2620, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4870, 1177, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertRaises(UnknownFileError, cmd.run)
self.assertRaises((UnknownFileError, CompileError), cmd.run)
def test_optional_extension(self):
c5a67d7cee057744164422a806e5164894647072 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c5a67d7cee057744164422a806e5164894647072/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10444, 67, 6447, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10444, 67, 6447, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ValueError, "BCH codes does not exist with the given input."
raise ValueError, "BCH codes does not exist with the given input."
def BCHCode(n,delta,F,b=0): r""" A 'Bose-Chaudhuri-Hockenghem code' (or BCH code for short) is the largest possible cyclic code of length n over field F=GF(q), whose generator polynomial has zeros (which contain the set) $Z = \{a^{b},a^{b+1}, ..., a^{b+delta-2}\}$, where a is a primitive $n^{th}$ root of unity in the s...
20170ed427652eca5f638c9a08553fce978a471e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/20170ed427652eca5f638c9a08553fce978a471e/code_constructions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 1792, 1085, 12, 82, 16, 9878, 16, 42, 16, 70, 33, 20, 4672, 436, 8395, 432, 296, 38, 2584, 17, 782, 24901, 76, 1650, 17, 44, 975, 275, 17680, 351, 981, 11, 261, 280, 605, 1792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 1792, 1085, 12, 82, 16, 9878, 16, 42, 16, 70, 33, 20, 4672, 436, 8395, 432, 296, 38, 2584, 17, 782, 24901, 76, 1650, 17, 44, 975, 275, 17680, 351, 981, 11, 261, 280, 605, 1792...
self.defaultFont = QFont(self.font())
self.defaultFont = QFont(self.font())
def __init__(self, parent = None, name = None):
c25263540add024396d4bcf7631292f1fd2d50bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c25263540add024396d4bcf7631292f1fd2d50bb/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 508, 273, 599, 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, ...
[ 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, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 508, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return img
return img
def getImageAsFile(self, img=None, scale=None): """Get the img as file like object """ if img is None: f = self.getField('image') img = f.getScale(self, scale) # img.data contains the image as string or Pdata chain data = None if isinstance(img, OFSImage): data = str(img.data) elif isinstance(img, Pdata): data = str(im...
05e7fbc058dbe4e597e6e6bb6e6334458d5dfd81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11956/05e7fbc058dbe4e597e6e6bb6e6334458d5dfd81/imagetransform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10567, 1463, 812, 12, 2890, 16, 3774, 33, 7036, 16, 3159, 33, 7036, 4672, 3536, 967, 326, 3774, 487, 585, 3007, 733, 3536, 309, 3774, 353, 599, 30, 284, 273, 365, 18, 588, 974, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10567, 1463, 812, 12, 2890, 16, 3774, 33, 7036, 16, 3159, 33, 7036, 4672, 3536, 967, 326, 3774, 487, 585, 3007, 733, 3536, 309, 3774, 353, 599, 30, 284, 273, 365, 18, 588, 974, 2668, ...
print query, print 'report=' in query print not report_id in query
def _render_view(self, req, db, id): """Retrieve the report results and pre-process them for rendering."""
5e383cb0ab6d4dd98fc23585a40fa627c708c4b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/5e383cb0ab6d4dd98fc23585a40fa627c708c4b7/report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 5767, 326, 2605, 1686, 471, 675, 17, 2567, 2182, 364, 9782, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 5767, 326, 2605, 1686, 471, 675, 17, 2567, 2182, 364, 9782, 12123, 2, -100, -100, -100, -100, -100, -100, -100, ...
sage: number_of_partitions(5, algorithm='bobber')
sage: number_of_partitions(5, algorithm='bober')
def number_of_partitions(n,k=None, algorithm='gap'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'gap') 'gap...
c3468fcccefd299591e4d20bc48f143396a05974 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c3468fcccefd299591e4d20bc48f143396a05974/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 14048, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 14048, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493,...
write("%d = "%index)
write("%d = " % (index + start_index))
def handle_array(entry): length = entry[1] element = entry[2] newItems = [] write("[\n") indent() value = read_value(length) for index in xrange(value): write("%d = "%index) value = handle_element(element) write("\n") newItems.append(value) dedent() write("]") return newItems
78d4d7fefc14a1bc325a3ad295f03e21dfda170f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/78d4d7fefc14a1bc325a3ad295f03e21dfda170f/coff-dump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1126, 12, 4099, 4672, 769, 273, 1241, 63, 21, 65, 930, 273, 1241, 63, 22, 65, 225, 394, 3126, 273, 5378, 225, 1045, 2932, 7438, 82, 7923, 3504, 1435, 225, 460, 273, 855, 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, 1640, 67, 1126, 12, 4099, 4672, 769, 273, 1241, 63, 21, 65, 930, 273, 1241, 63, 22, 65, 225, 394, 3126, 273, 5378, 225, 1045, 2932, 7438, 82, 7923, 3504, 1435, 225, 460, 273, 855, 67...
"the standard `logging` module instead")
"the standard `logging` module instead", PendingDeprecationWarning, stacklevel=2)
def notifyChannel(self, name, level, msg): warnings.warn("notifyChannel API shouldn't be used anymore, please use " "the standard `logging` module instead") from service.web_services import common
d373cb4f4fca2ff7a84c5da2f5d0a0d871bf8240 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d373cb4f4fca2ff7a84c5da2f5d0a0d871bf8240/netsvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 2909, 12, 2890, 16, 508, 16, 1801, 16, 1234, 4672, 5599, 18, 8935, 2932, 12336, 2909, 1491, 12044, 1404, 506, 1399, 16828, 16, 9582, 999, 315, 315, 5787, 4529, 1375, 11167, 68, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 2909, 12, 2890, 16, 508, 16, 1801, 16, 1234, 4672, 5599, 18, 8935, 2932, 12336, 2909, 1491, 12044, 1404, 506, 1399, 16828, 16, 9582, 999, 315, 315, 5787, 4529, 1375, 11167, 68, 160...
self.assertEqual(STRING_RGX.sub('', "'yo\\'yo\\"), '')
self.assertEqual(STRING_RGX.sub('', r"'yo\'yo\''"), '')
def test_known_values_8(self): self.assertEqual(STRING_RGX.sub('', "'yo\\'yo\\"), '')
037076855b9415e022bb196d33edeb4310a31884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/928/037076855b9415e022bb196d33edeb4310a31884/test_format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2994, 67, 2372, 67, 28, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 5804, 67, 19380, 60, 18, 1717, 2668, 2187, 436, 5187, 93, 83, 3730, 93, 83, 3730, 4970, 3631, 28707, 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, 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, 2994, 67, 2372, 67, 28, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 5804, 67, 19380, 60, 18, 1717, 2668, 2187, 436, 5187, 93, 83, 3730, 93, 83, 3730, 4970, 3631, 28707, 225, ...
self.__Token = self.__CurrentLine[StartPos, self.CurrentOffsetWithinLine]
self.__Token = self.__CurrentLine()[StartPos : self.CurrentOffsetWithinLine]
def __GetNextToken(self): self.__SkipWhiteSpace() if self.__EndOfFile(): return False
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 9399, 12, 2890, 4672, 365, 16186, 6368, 23108, 1435, 309, 365, 16186, 23358, 812, 13332, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 9399, 12, 2890, 4672, 365, 16186, 6368, 23108, 1435, 309, 365, 16186, 23358, 812, 13332, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
add_db_options('component', cursor, 'SELECT name FROM component ORDER BY name', constraints, 'query.options.') add_db_options('milestone', cursor, 'SELECT name FROM milestone ORDER BY name', constraints, 'query.options.') add_db_options('version', cursor, 'SELECT name FROM version ORDER BY name', constraints, 'query.op...
add_db_options('component', constraints, 'query.options.', cursor, 'SELECT name FROM component ORDER BY name', ) add_db_options('milestone', constraints, 'query.options.', cursor, 'SELECT name FROM milestone ORDER BY name') add_db_options('version', constraints, 'query.options.', cursor, 'SELECT name FROM version ORDER...
def add_db_options(field, db, sql, constraints, prefix): cursor.execute(sql) options = [] while 1: row = cursor.fetchone() if not row: break if row[0]: options.append({'name': row[0]}) add_options(field, options, constraints, prefix)
880aa9ff4e6fbb362a2b26298b12a57c57c572dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/880aa9ff4e6fbb362a2b26298b12a57c57c572dd/Query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1966, 67, 2116, 12, 1518, 16, 1319, 16, 1847, 16, 6237, 16, 1633, 4672, 3347, 18, 8837, 12, 4669, 13, 702, 273, 5378, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 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, 527, 67, 1966, 67, 2116, 12, 1518, 16, 1319, 16, 1847, 16, 6237, 16, 1633, 4672, 3347, 18, 8837, 12, 4669, 13, 702, 273, 5378, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 30...
migrate_tags = get_vistrails_configuration().check("migrateTags")
should_migrate_tags = get_vistrails_configuration().check("migrateTags")
def flush_delayed_actions(self): start_version = self.current_version desc_key = Action.ANNOTATION_DESCRIPTION added_upgrade = False migrate_tags = get_vistrails_configuration().check("migrateTags") for action in self._delayed_actions: self.vistrail.add_action(action, start_version, self.current_session) # HACK to popu...
9c49285269ca706c8d38d0119e48b4cba5aa5d75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/9c49285269ca706c8d38d0119e48b4cba5aa5d75/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 67, 10790, 329, 67, 4905, 12, 2890, 4672, 787, 67, 1589, 273, 365, 18, 2972, 67, 1589, 3044, 67, 856, 273, 4382, 18, 24922, 67, 15911, 3096, 67, 15097, 273, 1083, 1410, 67, 22083...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3663, 67, 10790, 329, 67, 4905, 12, 2890, 4672, 787, 67, 1589, 273, 365, 18, 2972, 67, 1589, 3044, 67, 856, 273, 4382, 18, 24922, 67, 15911, 3096, 67, 15097, 273, 1083, 1410, 67, 22083...
def seek(self): raise IOError, 'Random access not allowed in gzip files' def tell(self): raise IOError, 'I won\'t tell() you for gzip files'
def flush(self): self.fileobj.flush()
98d14dd84f6e46c405af5aec627ad23d1da115cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/98d14dd84f6e46c405af5aec627ad23d1da115cb/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 768, 2603, 18, 11330, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 3663, 12, 2890, 4672, 365, 18, 768, 2603, 18, 11330, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""Fragment objects are a basic unit for organizing small groups of Atoms. Amino acid residues are fragments, as well as nucleic acids and other small molecules. In terms of a PDB file, they are all the atoms from a unique residue in a chain. Fragments have the following attributes:
"""Fragment objects are a basic unit for organizing small groups of Atoms. Amino acid residues are fragments, as well as nucleic acids and other small molecules. In terms of a PDB file, they are all the atoms from a unique residue in a chain. Fragments have the following attributes:
def set_chain_id(self, chain_id): """Sets a new ID for the Chain, updating the chain_id for all objects in the Structure hierarchy. """ ## check for conflicting chain_id in the structure if self.model is not None: chk_chain = self.model.get_chain(chain_id) if chk_chain is not None or chk_chain != self: raise ChainOverw...
a181eacbeb3c68b8f7caba918a821d3f3e6c50f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/a181eacbeb3c68b8f7caba918a821d3f3e6c50f6/Structure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5639, 67, 350, 12, 2890, 16, 2687, 67, 350, 4672, 3536, 2785, 279, 394, 1599, 364, 326, 7824, 16, 9702, 326, 2687, 67, 350, 364, 777, 2184, 316, 326, 13348, 9360, 18, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5639, 67, 350, 12, 2890, 16, 2687, 67, 350, 4672, 3536, 2785, 279, 394, 1599, 364, 326, 7824, 16, 9702, 326, 2687, 67, 350, 364, 777, 2184, 316, 326, 13348, 9360, 18, 3536, ...
ai("a = (")
ai("if 1:") ai("if 1:\n") ai("if 1:\n pass\n if 1:\n pass\n else:") ai("if 1:\n pass\n if 1:\n pass\n else:\n") ai("if 1:\n pass\n if 1:\n pass\n else:\n pass") ai("def x():") ai("def x():\n") ai("def x():\n\n") ai("def x():\n pass") ai("def x():\n pass\n ") ai("def x():\n pass\n ") ai("\n\ndef x():\n pass")...
ai("def x():\n")
de9a0d3158df0278d83754740f33276f780cef90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/de9a0d3158df0278d83754740f33276f780cef90/test_codeop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14679, 2932, 536, 619, 1435, 5581, 82, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14679, 2932, 536, 619, 1435, 5581, 82, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if good.has(name, oid): if not data:
if data: if deleted.has(name, oid):
def gc(conf, days=1, conf2=None): db = ZODB.config.databaseFromFile(open(conf)) if conf2 is None: db2 = db else: logger.info("Using secondary configuration, %s, for analysis", conf2) db2 = ZODB.config.databaseFromFile(open(conf2)) if set(db.databases) != set(db2.databases): raise ValueError("primary and secondary datab...
710f636d20110b254b274c75d4a5a9d62854e89a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5364/710f636d20110b254b274c75d4a5a9d62854e89a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8859, 12, 3923, 16, 4681, 33, 21, 16, 2195, 22, 33, 7036, 4672, 1319, 273, 2285, 19786, 18, 1425, 18, 6231, 13087, 12, 3190, 12, 3923, 3719, 309, 2195, 22, 353, 599, 30, 1319, 22, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8859, 12, 3923, 16, 4681, 33, 21, 16, 2195, 22, 33, 7036, 4672, 1319, 273, 2285, 19786, 18, 1425, 18, 6231, 13087, 12, 3190, 12, 3923, 3719, 309, 2195, 22, 353, 599, 30, 1319, 22, 27...
return eligible, preferred_versions
return eligible
def _filterProviders(providers, item, cfgData, dataCache): """ Take a list of providers and filter/reorder according to the environment variables and previous build results """ eligible = [] preferred_versions = {} # The order of providers depends on the order of the files on the disk # up to here. Sort pkg_pn to make...
3d2fa443ab7237256a2f59947e4536e4200a2cec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/3d2fa443ab7237256a2f59947e4536e4200a2cec/providers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 10672, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, 1686, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2188, 10672, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, 1686, ...
else: return self.default
if not self.default: default_adapter = component.queryAdapter(instance, IFieldDefaultProvider, name=self.__name__) if default_adapter is not None: return default_adapter() return self.default
def getDefault(self, instance): """Return the default value to be used for initializing this field""" dm = self.default_method if dm: if type(dm) is StringType and shasattr(instance, dm): method = getattr(instance, dm) return method() elif callable(dm): return dm() else: raise ValueError('%s.default_method is neither a...
6bf0b4d803f7a6c42f16af81053d806d99f67096 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/6bf0b4d803f7a6c42f16af81053d806d99f67096/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 12, 2890, 16, 791, 4672, 3536, 990, 326, 805, 460, 358, 506, 1399, 364, 22584, 333, 652, 8395, 9113, 273, 365, 18, 1886, 67, 2039, 309, 9113, 30, 309, 618, 12, 10956, 13, 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, 4829, 12, 2890, 16, 791, 4672, 3536, 990, 326, 805, 460, 358, 506, 1399, 364, 22584, 333, 652, 8395, 9113, 273, 365, 18, 1886, 67, 2039, 309, 9113, 30, 309, 618, 12, 10956, 13, 353, ...
its leg.
its leg. The optional boolean parameter flat provides the option of returning a flat list.
def leg_lengths(self, flat=False): """ Returns a tableau of shape p with each box filled in with its leg.
d2bea0c9898d10512ce54569c87e5b09be4cdba6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d2bea0c9898d10512ce54569c87e5b09be4cdba6/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4553, 67, 14907, 12, 2890, 16, 3569, 33, 8381, 4672, 3536, 2860, 279, 1014, 8377, 434, 2179, 293, 598, 1517, 3919, 6300, 316, 598, 2097, 4553, 18, 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, 4553, 67, 14907, 12, 2890, 16, 3569, 33, 8381, 4672, 3536, 2860, 279, 1014, 8377, 434, 2179, 293, 598, 1517, 3919, 6300, 316, 598, 2097, 4553, 18, 2, -100, -100, -100, -100, -100, -100, ...
def copyFileIfExists(source, target): if os.path.exists(source): copyFile(source, target)
import svn
def copyFileIfExists(source, target): if os.path.exists(source): copyFile(source, target)
eae32ce680b5f9da9be171e86f095dfbb0f933ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7101/eae32ce680b5f9da9be171e86f095dfbb0f933ac/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1930, 5893, 82, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1930, 5893, 82, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
sage: latex(r(2))
sage: latex(r(2))
def _latex_(self): r""" Return LaTeX representation of this R object.
f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2000, 21072, 21575, 60, 4335, 434, 333, 534, 733, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2000, 21072, 21575, 60, 4335, 434, 333, 534, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
tests = [Signed_TestCase, Unsigned_TestCase, Tuple_TestCase]
tests = [Signed_TestCase, Unsigned_TestCase, Tuple_TestCase, Keywords_TestCase]
def test_main(): tests = [Signed_TestCase, Unsigned_TestCase, Tuple_TestCase] try: from _testcapi import getargs_L, getargs_K except ImportError: pass # PY_LONG_LONG not available else: tests.append(LongLong_TestCase) test_support.run_unittest(*tests)
ea837931cf393aa0373ccfa1849b2a3d6e3cc6ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/ea837931cf393aa0373ccfa1849b2a3d6e3cc6ea/test_getargs2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 12294, 67, 4709, 2449, 16, 1351, 5679, 67, 4709, 2449, 16, 7257, 67, 4709, 2449, 16, 1929, 3753, 67, 4709, 2449, 65, 775, 30, 628, 389, 3813, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 7434, 273, 306, 12294, 67, 4709, 2449, 16, 1351, 5679, 67, 4709, 2449, 16, 7257, 67, 4709, 2449, 16, 1929, 3753, 67, 4709, 2449, 65, 775, 30, 628, 389, 3813, 71,...
blocknum = blocknum + 1
read += len(block) blocknum += 1
def retrieve(self, url, filename=None, reporthook=None, data=None): """retrieve(url) returns (filename, headers) for a local object or (tempfilename, headers) for a remote object.""" url = unwrap(toBytes(url)) if self.tempcache and url in self.tempcache: return self.tempcache[url] type, url1 = splittype(url) if filenam...
570d41356d45636be271cf9c77fce8d837f6f5b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/570d41356d45636be271cf9c77fce8d837f6f5b6/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 16, 2071, 7825, 1184, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 17466, 12, 718, 13, 1135, 261, 3459, 16, 1607, 13, 364, 279, 1191, 733, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 2071, 7825, 1184, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 17466, 12, 718, 13, 1135, 261, 3459, 16, 1607, 13, 364, 279, 1191, 733, 57...
finally:
def main(settingsBot): # Taking the messages inside the function namespace. global netext; global summary; global logbook; global summary2; global report_page; global project_inserted global comment; global bad_pag; global report_text; global random_sign; global whitelist_pg """ 0 1 2 3 4 ...
fe702a33925267aa9a210fa3eabf12799ac83373 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/fe702a33925267aa9a210fa3eabf12799ac83373/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4272, 6522, 4672, 468, 399, 6159, 326, 2743, 4832, 326, 445, 1981, 18, 2552, 2901, 408, 31, 2552, 4916, 31, 2552, 613, 3618, 31, 2552, 4916, 22, 31, 2552, 2605, 67, 2433, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4272, 6522, 4672, 468, 399, 6159, 326, 2743, 4832, 326, 445, 1981, 18, 2552, 2901, 408, 31, 2552, 4916, 31, 2552, 613, 3618, 31, 2552, 4916, 22, 31, 2552, 2605, 67, 2433, 31,...
print ev.kwargs
def test_remote_collect_skip(self, slave): p = slave.testdir.makepyfile(""" import py py.test.skip("hello") """) slave.setup() ev = slave.popevent("collectionstart") assert not ev.kwargs ev = slave.popevent() assert ev.name == "collectreport" rep = unserialize_report(ev.name, ev.kwargs['data']) assert rep.skipped ev = ...
51815940c27a7e1f5b40d716ab3f97b39aaa2fc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1924/51815940c27a7e1f5b40d716ab3f97b39aaa2fc5/test_remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7222, 67, 14676, 67, 7457, 12, 2890, 16, 11735, 4672, 293, 273, 11735, 18, 3813, 1214, 18, 81, 581, 881, 93, 768, 2932, 3660, 1930, 2395, 2395, 18, 3813, 18, 7457, 2932, 2371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7222, 67, 14676, 67, 7457, 12, 2890, 16, 11735, 4672, 293, 273, 11735, 18, 3813, 1214, 18, 81, 581, 881, 93, 768, 2932, 3660, 1930, 2395, 2395, 18, 3813, 18, 7457, 2932, 2371...
self.CheckEditableBlock("EditCalendarStartTime", "start time", dict[field])
self.CheckEditableBlock("EditCalendarStartTime", "start time", value)
def Check_DetailView(self, dict): """ Check expected values by comparation to the data diplayed in the detail view @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) self.SelectItem() ...
5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 67, 6109, 1767, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 924, 635, 532, 20961, 358, 326, 501, 4314, 1601, 329, 316, 326, 7664, 1476, 632, 723, 2065, 294, 3880, 632, 891, 2065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 67, 6109, 1767, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 924, 635, 532, 20961, 358, 326, 501, 4314, 1601, 329, 316, 326, 7664, 1476, 632, 723, 2065, 294, 3880, 632, 891, 2065, ...
printError(pkg, "dbus-unauthorized-service", f)
printError(pkg, "suse-dbus-unauthorized-service", f)
def check(self, pkg): global _services_whitelist global _dbus_system_paths
11cfb60d8f0f6f24e0d3fd2ac4b9e4115128ff39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10341/11cfb60d8f0f6f24e0d3fd2ac4b9e4115128ff39/CheckDBUSServices.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2552, 389, 8387, 67, 20409, 2552, 389, 1966, 407, 67, 4299, 67, 4481, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2552, 389, 8387, 67, 20409, 2552, 389, 1966, 407, 67, 4299, 67, 4481, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.body_prefix = ['\n%%% Body\n']
self.body_prefix = ['\n%%% Body\n\\begin{document}\n']
def __init__(self, document): nodes.NodeVisitor.__init__(self, document) self.settings = settings = document.settings self.latex_encoding = self.to_latex_encoding(settings.output_encoding) self.use_latex_toc = settings.use_latex_toc self.use_latex_docinfo = settings.use_latex_docinfo self.use_latex_footnotes = settings...
46a0c8dd14843f2383711724a77c799cd55db324 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/46a0c8dd14843f2383711724a77c799cd55db324/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 365, 18, 26264, 67, 5999, 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, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 365, 18, 26264, 67, 5999, 273, ...
"""
"""
def valid_uri(self, uri): """ Check whether or not it's a good idea to have RabbitVCS do its magic for this URI. Some examples of URI schemes: x-nautilus-desktop:/// # e.g. mounted devices on the desktop """ if not uri.startswith("file://"): return False return True
6268447808016e08552fea26797a7dc725fdd8d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/6268447808016e08552fea26797a7dc725fdd8d3/RabbitVCS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 1650, 12, 2890, 16, 2003, 4672, 3536, 2073, 2856, 578, 486, 518, 1807, 279, 7494, 21463, 358, 1240, 31967, 58, 4596, 741, 2097, 8146, 364, 333, 3699, 18, 10548, 10991, 434, 3699...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 923, 67, 1650, 12, 2890, 16, 2003, 4672, 3536, 2073, 2856, 578, 486, 518, 1807, 279, 7494, 21463, 358, 1240, 31967, 58, 4596, 741, 2097, 8146, 364, 333, 3699, 18, 10548, 10991, 434, 3699...
if type(cmd) in (type(''),type(u'')): oldcmd = DamnUnicode(cmd) while cmd: if cmd[0] == '"': arg = cmd[1:cmd.find('"', 1)] cmd = cmd[2 + len(arg):].strip() else: if cmd.find(' ') != -1: arg = cmd[0:cmd.find(' ')] else: arg = cmd cmd = cmd[len(arg):].strip() finalcmd.append(arg)
if type(cmd) in (type(''), type(u'')): cmd = DamnUnicode(cmd) if DV.os == 'nt': if type(cmd) in (type([]), type(())): tempcmd = [] for i in cmd: tempcmd.append(DamnUnicode(i).encode('windows-1252')) Damnlog('Spawning subprocess on NT:', tempcmd) return subprocess.Popen(tempcmd, shell=shell, creationflags=win32process.C...
def DamnSpawner(cmd, shell=False, stderr=None, stdout=None, stdin=None, cwd=None): finalcmd = [] if cwd is None: cwd = DV.curdir cwd = DamnUnicode(cwd) if type(cmd) in (type(''),type(u'')): oldcmd = DamnUnicode(cmd) while cmd: if cmd[0] == '"': arg = cmd[1:cmd.find('"', 1)] cmd = cmd[2 + len(arg):].strip() else: if cmd...
2e4d33b2a8b84c7e2a1d15176545dae986a39d07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/2e4d33b2a8b84c7e2a1d15176545dae986a39d07/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 301, 82, 3389, 2219, 1224, 12, 4172, 16, 5972, 33, 8381, 16, 4514, 33, 7036, 16, 3909, 33, 7036, 16, 8801, 33, 7036, 16, 7239, 33, 7036, 4672, 727, 4172, 273, 5378, 309, 7239, 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, 463, 301, 82, 3389, 2219, 1224, 12, 4172, 16, 5972, 33, 8381, 16, 4514, 33, 7036, 16, 3909, 33, 7036, 16, 8801, 33, 7036, 16, 7239, 33, 7036, 4672, 727, 4172, 273, 5378, 309, 7239, 3...
while 1: new_basename = os.path.splitext(basename)[0] if basename == new_basename: break else: basename = new_basename return basename
return os.path.splitext(basename)[0]
def ExtractModuleName(infile_path): """Infers the module name from the input file path. The input filename is supposed to be in the form "ModuleName.sigs". This function splits the filename from the extention on that basename of the path and returns that as the module name. Args: infile_path: String holding the path ...
d2fbcbd334df5bbb1727220522d6d9ba744cb77c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/d2fbcbd334df5bbb1727220522d6d9ba744cb77c/generate_stubs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8152, 22542, 12, 267, 768, 67, 803, 4672, 3536, 13149, 414, 326, 1605, 508, 628, 326, 810, 585, 589, 18, 225, 1021, 810, 1544, 353, 18405, 358, 506, 316, 326, 646, 315, 22542, 18, 7340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8152, 22542, 12, 267, 768, 67, 803, 4672, 3536, 13149, 414, 326, 1605, 508, 628, 326, 810, 585, 589, 18, 225, 1021, 810, 1544, 353, 18405, 358, 506, 316, 326, 646, 315, 22542, 18, 7340...
self.auth = dom.getElementsByTagName("auth")[0].childNodes[0].data
self.auth = dom.getElementsByTagName("auth")[0].childNodes[0].data
def authenticate(self): """ Attempt to authenticate to Ampache. Returns True if successful and False if not. This will retry AUTH_MAX_RETRY(=3) times. """ # check for the necessary information if not self.has_credentials(): return False # generate the necessary information for the authentication timestamp = int(time.t...
6e5d7cb6fac763a180b0b3ccfee051ad464902e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11350/6e5d7cb6fac763a180b0b3ccfee051ad464902e3/AmpacheSession.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8929, 12, 2890, 4672, 3536, 12864, 358, 8929, 358, 432, 1291, 807, 18, 225, 2860, 1053, 309, 6873, 471, 1083, 309, 486, 18, 1220, 903, 3300, 12790, 67, 6694, 67, 24240, 12, 33, 23, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8929, 12, 2890, 4672, 3536, 12864, 358, 8929, 358, 432, 1291, 807, 18, 225, 2860, 1053, 309, 6873, 471, 1083, 309, 486, 18, 1220, 903, 3300, 12790, 67, 6694, 67, 24240, 12, 33, 23, 13,...
self.waited = 1
self.waited = "True"
def jsScriptSrc (self, url, language): assert self.state=='parse' ver = 0.0 if language: mo = re.search(r'(?i)javascript(?P<num>\d\.\d)', language) if mo: ver = float(mo.group('num')) debug(HURT_ME_PLENTY, "JS: self.url", self.url) debug(HURT_ME_PLENTY, "JS: url", url) url = urlparse.urljoin(self.url, url) debug(HURT_M...
89b79386924e75b2a16ac8ce4c732a86c3d9ed2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/89b79386924e75b2a16ac8ce4c732a86c3d9ed2d/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 1815, 365, 18, 2019, 18920, 2670, 11, 1924, 273, 374, 18, 20, 309, 2653, 30, 7344, 273, 283, 18, 3072, 12, 86, 11, 3680, 77, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 1815, 365, 18, 2019, 18920, 2670, 11, 1924, 273, 374, 18, 20, 309, 2653, 30, 7344, 273, 283, 18, 3072, 12, 86, 11, 3680, 77, 13,...
else
else:
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 4) else quickfix.CharField.__init__(self, 4, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 97...
version = '0.1.14',
version = '0.2',
def all_files(dir, lstrip): """ Return list of all filenames in the given directory, with lstrip stripped from the left of the filenames. """ X = [] for F in os.listdir(dir): ab = dir+'/'+F if os.path.isfile(ab): X.append((ab).lstrip(lstrip)) elif os.path.isdir(ab): X.extend(all_files(ab, lstrip)) return X
cd74104f5af4ab8417b014f065919b9095980761 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11792/cd74104f5af4ab8417b014f065919b9095980761/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 2354, 12, 1214, 16, 14730, 4672, 3536, 2000, 666, 434, 777, 9066, 316, 326, 864, 1867, 16, 598, 14730, 13300, 628, 326, 2002, 434, 326, 9066, 18, 3536, 1139, 273, 5378, 364, 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, 777, 67, 2354, 12, 1214, 16, 14730, 4672, 3536, 2000, 666, 434, 777, 9066, 316, 326, 864, 1867, 16, 598, 14730, 13300, 628, 326, 2002, 434, 326, 9066, 18, 3536, 1139, 273, 5378, 364, 4...
if flags & select.POLLPRI: obj.handle_expt_event()
except socket.error, e: if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED): obj.handle_error() else: obj.handle_close()
def readwrite(obj, flags): try: if flags & select.POLLIN: obj.handle_read_event() if flags & select.POLLOUT: obj.handle_write_event() if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL): obj.handle_close() if flags & select.POLLPRI: obj.handle_expt_event() except _reraised_exceptions: raise except: obj.handl...
30389241ef0f00a44bebe43ec4516987694988e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/30389241ef0f00a44bebe43ec4516987694988e7/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2626, 12, 2603, 16, 2943, 4672, 775, 30, 309, 2943, 473, 2027, 18, 14232, 20663, 30, 1081, 18, 4110, 67, 896, 67, 2575, 1435, 309, 2943, 473, 2027, 18, 14232, 1502, 1693, 30, 1081...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 12, 2603, 16, 2943, 4672, 775, 30, 309, 2943, 473, 2027, 18, 14232, 20663, 30, 1081, 18, 4110, 67, 896, 67, 2575, 1435, 309, 2943, 473, 2027, 18, 14232, 1502, 1693, 30, 1081...
self.pack_off(self.path)
self.pack_off(self.size)
def make(self): return self.pack_uint(self.code) + \ self.pack_string(self.user) + \ self.pack_string(self.path) + \ self.pack_off(self.path)
6f814f34f8781c6020dff7f64202d5d5c99cefaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8737/6f814f34f8781c6020dff7f64202d5d5c99cefaf/messages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 12, 2890, 4672, 327, 365, 18, 2920, 67, 11890, 12, 2890, 18, 710, 13, 397, 521, 365, 18, 2920, 67, 1080, 12, 2890, 18, 1355, 13, 397, 521, 365, 18, 2920, 67, 1080, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 12, 2890, 4672, 327, 365, 18, 2920, 67, 11890, 12, 2890, 18, 710, 13, 397, 521, 365, 18, 2920, 67, 1080, 12, 2890, 18, 1355, 13, 397, 521, 365, 18, 2920, 67, 1080, 12, 2890, ...
def spawn_link_exception(cls, function, *args, **kwargs): g = cls.spawn(function, *args, **kwargs)
def spawn_link_exception(cls, *args, **kwargs): g = cls.spawn(*args, **kwargs)
def spawn_link_exception(cls, function, *args, **kwargs): g = cls.spawn(function, *args, **kwargs) g.link_exception() return g
e371f455f40e5d9f39dd79a6d3c3b8a42ded92bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/e371f455f40e5d9f39dd79a6d3c3b8a42ded92bb/greenlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 1232, 67, 4064, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 314, 273, 2028, 18, 1752, 9533, 30857, 1968, 16, 2826, 4333, 13, 314, 18, 1232, 67, 4064, 1435, 327, 314, 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, 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, 12560, 67, 1232, 67, 4064, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 314, 273, 2028, 18, 1752, 9533, 30857, 1968, 16, 2826, 4333, 13, 314, 18, 1232, 67, 4064, 1435, 327, 314, 2, ...
raise ExtractError, "special devices not supported by system"
raise ExtractError("special devices not supported by system")
def makedev(self, tarinfo, targetpath): """Make a character or block device called targetpath. """ if not hasattr(os, "mknod") or not hasattr(os, "makedev"): raise ExtractError, "special devices not supported by system"
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5206, 12, 2890, 16, 8232, 1376, 16, 1018, 803, 4672, 3536, 6464, 279, 3351, 578, 1203, 2346, 2566, 1018, 803, 18, 3536, 309, 486, 3859, 12, 538, 16, 315, 24816, 19888, 7923, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5206, 12, 2890, 16, 8232, 1376, 16, 1018, 803, 4672, 3536, 6464, 279, 3351, 578, 1203, 2346, 2566, 1018, 803, 18, 3536, 309, 486, 3859, 12, 538, 16, 315, 24816, 19888, 7923, 578, ...
target[p] = source[i]
res.ll_setitem_fast(p, l.ll_getitem_fast(i))
def ll_inplace_mul(l, factor): length = l.ll_length() if factor < 0: factor = 0 resultlen = length * factor res = l _ll_list_resize(res, resultlen) j = length source = l.ll_items() target = res.ll_items() while j < resultlen: i = 0 while i < length: p = j + i target[p] = source[i] i += 1 j += length return res
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 267, 964, 67, 16411, 12, 80, 16, 5578, 4672, 769, 273, 328, 18, 2906, 67, 2469, 1435, 309, 5578, 411, 374, 30, 5578, 273, 374, 563, 1897, 273, 769, 380, 5578, 400, 273, 328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6579, 67, 267, 964, 67, 16411, 12, 80, 16, 5578, 4672, 769, 273, 328, 18, 2906, 67, 2469, 1435, 309, 5578, 411, 374, 30, 5578, 273, 374, 563, 1897, 273, 769, 380, 5578, 400, 273, 328...
self._context.setLocal(self.name, self.item)
context = self._context_ref() if context is not None: context.setLocal(self.name, self.item)
def next(self): if ZTUtils.Iterator.next(self): self._context.setLocal(self.name, self.item) return 1 return 0
a6cfcc00aeae1e7b7c82981e3652ea62df0b90f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a6cfcc00aeae1e7b7c82981e3652ea62df0b90f9/TALES.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 309, 2285, 56, 1989, 18, 3198, 18, 4285, 12, 2890, 4672, 819, 273, 365, 6315, 2472, 67, 1734, 1435, 309, 819, 353, 486, 599, 30, 819, 18, 542, 2042, 12, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 309, 2285, 56, 1989, 18, 3198, 18, 4285, 12, 2890, 4672, 819, 273, 365, 6315, 2472, 67, 1734, 1435, 309, 819, 353, 486, 599, 30, 819, 18, 542, 2042, 12, 2890, 1...
result = diracAdmin.getJobPilotOutput(job)
result = diracAdmin.getJobPilotOutput( job )
def usage(): print 'Usage: %s <JobID> [<JobID>]' %(Script.scriptName) DIRAC.exit(2)
b88356c8571ab409f104405a01e9407cfe8f8ed6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b88356c8571ab409f104405a01e9407cfe8f8ed6/dirac-admin-get-job-pilot-output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 2278, 734, 34, 306, 32, 2278, 734, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 2278, 734, 34, 306, 32, 2278, 734, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, -100, -100, -10...
if "</noinclude>" in s2[firstafter:]:
if "</noinclude>" in s2[firstafter:] and firstafter < 0:
def replaceCategoryLinks(oldtext, new, site = None): """Replace the category links given in the wikitext given in oldtext by the new links given in new. 'new' should be a list of Category objects. """ if site is None: site = getSite() if site == Site('de', 'wikipedia'): raise Error('The PyWikipediaBot is no longer al...
2478b18daa9c17ef1eec4a64ae0eb094462ef106 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/2478b18daa9c17ef1eec4a64ae0eb094462ef106/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 4716, 864, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 4716, 864, 316,...
action.skills[skill] = [minimum, maximum]
try: penalty = hex2dec(subchild.getattribute('penalty','0')) except: console.log(LOG_ERROR, "%s element with invalid max value in menu %s.\n" % (subchild.name, menu.id)) action.skills[skill] = [minimum, maximum, penalty]
itemdef = child.getattribute('definition')
2fed29196e764f322a3e1d3a6ba446c5f0a6a9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2fed29196e764f322a3e1d3a6ba446c5f0a6a9a8/blacksmithing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 761, 536, 273, 1151, 18, 588, 4589, 2668, 6907, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 761, 536, 273, 1151, 18, 588, 4589, 2668, 6907, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
regex_string = r'\b((?<=find)|(?<=and)|(?<=or)|(?<=not))\s*' + old_keyword
regex_string = r'\b(?P<operator>(find|and|or|not)\b[\s\(]*)' + \ old_keyword + r'(?P<end>[\s\(]+|$)'
def _replace_keyword(self, query, old_keyword, new_keyword): """Replaces old keyword in the query with a new keyword"""
9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2079, 67, 11041, 12, 2890, 16, 843, 16, 1592, 67, 11041, 16, 394, 67, 11041, 4672, 3536, 15189, 1592, 4932, 316, 326, 843, 598, 279, 394, 4932, 8395, 2, 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, 2079, 67, 11041, 12, 2890, 16, 843, 16, 1592, 67, 11041, 16, 394, 67, 11041, 4672, 3536, 15189, 1592, 4932, 316, 326, 843, 598, 279, 394, 4932, 8395, 2, -100, -100, -100, -100, -1...
self.attr = m.eval('attributeQuery -ln -n %s %s'%(self.obj,self.attr))
self.attr = cmd.attributeQuery(self.attr,longName=True,node=self.obj)
def __init__( self, attrpath, keyTime=None, keyIdx=None ): #if the attrpath doesn't exist, then just create an empty key instance if not m.eval('objExists "%s";'%(attrpath,)): self.obj = None self.attr = None self.time = None self.value = None self.iw = None self.ow = None self.itt = None self.ott = None self.time = No...
8781a673d03469676f09284ae55510ab6d71bde7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1810/8781a673d03469676f09284ae55510ab6d71bde7/keyUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 1604, 803, 16, 498, 950, 33, 7036, 16, 498, 4223, 33, 7036, 262, 30, 468, 430, 326, 1604, 803, 3302, 1404, 1005, 16, 1508, 2537, 752, 392, 1008, 498, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 1604, 803, 16, 498, 950, 33, 7036, 16, 498, 4223, 33, 7036, 262, 30, 468, 430, 326, 1604, 803, 3302, 1404, 1005, 16, 1508, 2537, 752, 392, 1008, 498, 79...
return HttpResponse(json.encode(resp), mimetype = 'text/plain')
return HttpResponse(str(resp), mimetype = 'text/plain')
def task_filter(request): try: owner = request.POST['Owner'] status = request.POST['Status'] kindid = request.POST['Kind'] filterText = request.POST['FilterText'].strip().lower() # Max results per page maxPerPage = int(request.POST['Limit']) # page # to return targetPage = int(request.POST['Page']) except KeyError, e: ...
08e77067dd177b699676d0d1381eb2114a5bf235 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/08e77067dd177b699676d0d1381eb2114a5bf235/condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 2188, 12, 2293, 4672, 775, 30, 3410, 273, 590, 18, 3798, 3292, 5541, 3546, 1267, 273, 590, 18, 3798, 3292, 1482, 3546, 3846, 350, 273, 590, 18, 3798, 3292, 5677, 3546, 1034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1562, 67, 2188, 12, 2293, 4672, 775, 30, 3410, 273, 590, 18, 3798, 3292, 5541, 3546, 1267, 273, 590, 18, 3798, 3292, 1482, 3546, 3846, 350, 273, 590, 18, 3798, 3292, 5677, 3546, 1034, ...
self.watcherThread.start()
self.watcherThread.CreateThread()
def __init__(self, template): self.bAutoReload = GetEditorOption("Auto Reload", 1) self.bDeclinedReload = 0 # Has the user declined to reload. self.fileStat = None self.bReportedFileNotFound = 0
002f429e05cfb7084f2a7e09f56f9520dbbe7649 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/002f429e05cfb7084f2a7e09f56f9520dbbe7649/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1542, 4672, 365, 18, 70, 4965, 13013, 273, 968, 6946, 1895, 2932, 4965, 23086, 3113, 404, 13, 365, 18, 70, 3456, 1920, 13013, 273, 374, 468, 4393, 326, 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, 1001, 2738, 972, 12, 2890, 16, 1542, 4672, 365, 18, 70, 4965, 13013, 273, 968, 6946, 1895, 2932, 4965, 23086, 3113, 404, 13, 365, 18, 70, 3456, 1920, 13013, 273, 374, 468, 4393, 326, 7...
if worker.thread_id in self.worker_tracker: time_started, info = self.worker_tracker[worker.thread_id]
time_started, info = self.worker_tracker.get(worker.thread_id, (None, None)) if time_started is not None:
def add_task(self, task): """ Add a task to the queue """ self.logger.debug('Added task (%i tasks queued)', self.queue.qsize()) if self.hung_check_period: self.requests_since_last_hung_check += 1 if self.requests_since_last_hung_check > self.hung_check_period: self.requests_since_last_hung_check = 0 self.kill_hung_thre...
8f95e1273c6ac1ca254627ffb5b4cf2ae3a0bdb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/8f95e1273c6ac1ca254627ffb5b4cf2ae3a0bdb1/httpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4146, 12, 2890, 16, 1562, 4672, 3536, 1436, 279, 1562, 358, 326, 2389, 3536, 365, 18, 4901, 18, 4148, 2668, 8602, 1562, 6142, 77, 4592, 12234, 13, 2187, 365, 18, 4000, 18, 85,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4146, 12, 2890, 16, 1562, 4672, 3536, 1436, 279, 1562, 358, 326, 2389, 3536, 365, 18, 4901, 18, 4148, 2668, 8602, 1562, 6142, 77, 4592, 12234, 13, 2187, 365, 18, 4000, 18, 85,...
msg_string = msg.as_string(options.mbox) return msg_string.strip('\n')
return msg
def __build_cover(tmpl, total_nr, msg_id, options): """Build the cover message (series description) to be sent via SMTP """ sender = __get_sender() if options.version: version_str = ' %s' % options.version else: version_str = '' if options.prefix: prefix_str = options.prefix + ' ' else: prefix_str = '' total_nr_str ...
d650d6ed4c969d0d5127544e5236f83e21608ca5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/d650d6ed4c969d0d5127544e5236f83e21608ca5/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 67, 3165, 12, 24717, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 5793, 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, 1001, 3510, 67, 3165, 12, 24717, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 5793, 273, ...
typ, data = self._imap.uid('STORE', msg_list, '+FLAGS', flag_list) else: typ, data = self.store(msg_list, cmd, flag_list)
typ, data = self._imap.uid('STORE', msg_list, cmd, flag_list) else: typ, data = self._imap.store(msg_list, cmd, flag_list)
def _store(self, cmd, messages, flags): '''Worker functions for flag manipulation functions
85410ed715e4d58f7449b28c7d003bfab4608e73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9352/85410ed715e4d58f7449b28c7d003bfab4608e73/imapclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2233, 12, 2890, 16, 1797, 16, 2743, 16, 2943, 4672, 9163, 6671, 4186, 364, 2982, 27029, 4186, 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, 389, 2233, 12, 2890, 16, 1797, 16, 2743, 16, 2943, 4672, 9163, 6671, 4186, 364, 2982, 27029, 4186, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.getOption('PinyinApostropheFunction')(self, precedingEntity, entity):
if apostropheFunction(precedingEntity, entity):
def compose(self, readingEntities): """ Composes the given list of basic entities to a string. Applies an apostrophe between syllables if needed using default implementation L{aeoApostropheRule()}.
0032d8af16679bbf2cea1b7da283239b9cde0068 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/0032d8af16679bbf2cea1b7da283239b9cde0068/operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11458, 12, 2890, 16, 6453, 8108, 4672, 3536, 1286, 10522, 326, 864, 666, 434, 5337, 5140, 358, 279, 533, 18, 1716, 5259, 392, 513, 669, 1764, 580, 3086, 18832, 1538, 309, 3577, 1450, 805...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11458, 12, 2890, 16, 6453, 8108, 4672, 3536, 1286, 10522, 326, 864, 666, 434, 5337, 5140, 358, 279, 533, 18, 1716, 5259, 392, 513, 669, 1764, 580, 3086, 18832, 1538, 309, 3577, 1450, 805...
name = re.sub('(.)', r'\1\-', var.name()) str += name.replace('_', r'\_') + ' & '
str += self._text_to_latex(var.name(), 1, 1) + ' & ' if var.descr() or var.has_value(): str += '\\raggedright ' if var.has_value(): str += '\\textbf{Value:} \n' if var.descr(): str += self._pprint_var_value(var, 40) else: str += self._pprint_var_value(var, 90) if var.descr(): str += '\n\n'
def _var_list(self, variables, heading='Variables', seclevel=1): variables = self._filtersort_vars(variables) if len(variables) == 0: return '' str = self._start_of(heading) str += ' '+self._section(heading, seclevel)
718e913e37bd564ee3425ab6734ad7a7748f8a8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/718e913e37bd564ee3425ab6734ad7a7748f8a8a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 1098, 12, 2890, 16, 3152, 16, 11053, 2218, 6158, 2187, 1428, 2815, 33, 21, 4672, 3152, 273, 365, 6315, 2188, 3804, 67, 4699, 12, 7528, 13, 309, 562, 12, 7528, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1401, 67, 1098, 12, 2890, 16, 3152, 16, 11053, 2218, 6158, 2187, 1428, 2815, 33, 21, 4672, 3152, 273, 365, 6315, 2188, 3804, 67, 4699, 12, 7528, 13, 309, 562, 12, 7528, 13, 422, ...
screen.fill((120, 50, 50), pygame.Rect(0, 0, player1.hitpoints * 2, 10)) screen.fill((120, 50, 50), pygame.Rect(1000 - player2.hitpoints * 2, 0, player2.hitpoints * 2, 10))
screen.fill((120, 50, 50), pygame.Rect(0, 10, player1.hitpoints * 2, 10)) screen.fill((120, 50, 50), pygame.Rect(1000 - player2.hitpoints * 2, 10, player2.hitpoints * 2, 10))
def main(): clock = events.dispatcher('Clock') keyboard = events.dispatcher('Keyboard') pygame.init() screen = pygame.display.set_mode((1000, 600)) tick_event = pygame.event.Event(TICK) datadir = find_datadir() player1 = create_viking(datadir, clock, keyboard, K_a, K_d, K_w, K_j) player2 = create_viking(datadir, clock...
908436b7a4b343bf9640611d4cf7a63b56f6f6a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/908436b7a4b343bf9640611d4cf7a63b56f6f6a4/project_viking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 7268, 273, 2641, 18, 18495, 2668, 14027, 6134, 16263, 273, 2641, 18, 18495, 2668, 17872, 6134, 2395, 13957, 18, 2738, 1435, 5518, 273, 2395, 13957, 18, 5417, 18, 542, 67, 3188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7268, 273, 2641, 18, 18495, 2668, 14027, 6134, 16263, 273, 2641, 18, 18495, 2668, 17872, 6134, 2395, 13957, 18, 2738, 1435, 5518, 273, 2395, 13957, 18, 5417, 18, 542, 67, 3188...
labelSaveTitle=Label(frameSave,text='Autosave Preference')
def CreatePageGeneral(self): #tkVars self.winWidth=StringVar(self) self.winHeight=StringVar(self) self.paraWidth=StringVar(self) self.startupEdit=IntVar(self) self.autoSave=IntVar(self) self.encoding=StringVar(self) self.userHelpBrowser=BooleanVar(self) self.helpBrowser=StringVar(self) #widget creation #body frame=self...
ed15565253c2cb817c68ed89e22c7a6c7707ab66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/ed15565253c2cb817c68ed89e22c7a6c7707ab66/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 12580, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 8082, 2384, 33, 780, 1537, 12, 2890, 13, 365, 18, 8082, 2686, 33, 780, 1537, 12, 2890, 13, 365, 18, 25072, 2384, 33, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 12580, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 8082, 2384, 33, 780, 1537, 12, 2890, 13, 365, 18, 8082, 2686, 33, 780, 1537, 12, 2890, 13, 365, 18, 25072, 2384, 33, 780, ...
self.ready = True
def _parse_request(self): # HTTP/1.1 connections are persistent by default. If a client # requests a page, then idles (leaves the connection open), # then rfile.readline() will raise socket.error("timed out"). # Note that it does this based on the value given to settimeout(), # and doesn't need the client to request or...
6612fe4c4515164198f5cd35a07324ae0faa722b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/82/6612fe4c4515164198f5cd35a07324ae0faa722b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2293, 12, 2890, 4672, 468, 2239, 19, 21, 18, 21, 5921, 854, 9195, 635, 805, 18, 971, 279, 1004, 468, 3285, 279, 1363, 16, 1508, 612, 1040, 261, 298, 6606, 326, 1459, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2293, 12, 2890, 4672, 468, 2239, 19, 21, 18, 21, 5921, 854, 9195, 635, 805, 18, 971, 279, 1004, 468, 3285, 279, 1363, 16, 1508, 612, 1040, 261, 298, 6606, 326, 1459, 1...
this = apply(_quickfix.new_CustOrderCapacity, args)
this = _quickfix.new_CustOrderCapacity(*args)
def __init__(self, *args): this = apply(_quickfix.new_CustOrderCapacity, 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, 39, 641, 2448, 7437, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 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, 39, 641, 2448, 7437, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 3...
qBgNode = stfu_pipe.fuQscanNode(dag,qscanBgJob,cp,opts,time,ifo,p_nodes=[dHoftNode],"ht","bg")
qBgNode = stfu_pipe.fuQscanNode(dag,qscanBgJob,cp,opts,time,ifo,p_nodes=[dHoftNode],type="ht",variety="bg")
def get_times(): # determine the start time : 00:00:00 UTC from the day before # and the end time, 00:00:00 UTC the current day gps = xlal.date.LIGOTimeGPS(gpstime.GpsSecondsFromPyUTC(time.time())) end_gps = int(date.utc_midnight(gps)) start_gps = end_gps - 86400 print "Start time : "+str(start_gps)+" End Time : "...
18d35550cfa2994a670eec5d6aa1b970066bbd31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/18d35550cfa2994a670eec5d6aa1b970066bbd31/wscan_background.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8293, 13332, 225, 468, 4199, 326, 787, 813, 294, 9631, 30, 713, 30, 713, 9951, 628, 326, 2548, 1865, 468, 471, 326, 679, 813, 16, 9631, 30, 713, 30, 713, 9951, 326, 783, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 8293, 13332, 225, 468, 4199, 326, 787, 813, 294, 9631, 30, 713, 30, 713, 9951, 628, 326, 2548, 1865, 468, 471, 326, 679, 813, 16, 9631, 30, 713, 30, 713, 9951, 326, 783, 254...
return self._untagged_response(typ, name)
return self._untagged_response(typ, dat, name)
def fetch(self, message_set, message_parts): """Fetch (parts of) messages.
30d7469fec69eeeae9057b22a126d4a00278147c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30d7469fec69eeeae9057b22a126d4a00278147c/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 12, 2890, 16, 883, 67, 542, 16, 883, 67, 6019, 4672, 3536, 5005, 261, 6019, 434, 13, 2743, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2158, 12, 2890, 16, 883, 67, 542, 16, 883, 67, 6019, 4672, 3536, 5005, 261, 6019, 434, 13, 2743, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
classes = ['xref', domain, '%s-%s' % (domain, role)]
classes = ['xref', domain, '%s-%s' % (domain, role)]
def __call__(self, typ, rawtext, text, lineno, inliner, options={}, content=[]): env = inliner.document.settings.env if not typ: typ = env.config.default_role else: typ = typ.lower() if ':' not in typ: domain, role = '', typ else: domain, role = typ.split(':', 1) classes = ['xref', domain, '%s-%s' % (domain, role)] tex...
6661d7214ccd0a68299c32518c9cd9dd1727d76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/6661d7214ccd0a68299c32518c9cd9dd1727d76a/roles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3815, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 1550, 273, 316, 7511, 264, 18, 5457, 18, 4272, 18, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3815, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 1550, 273, 316, 7511, 264, 18, 5457, 18, 4272, 18, 307...
TEST_F(GLES2DecoderTest, %(name)sInvalidArgs) {
TEST_F(%(test_name)s, %(name)sInvalidArgs) {
def WriteImmediateServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """
0cf346be2eee13b0349e5b4ec789c5a56c28b09c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/0cf346be2eee13b0349e5b4ec789c5a56c28b09c/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 3536, 2, 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, 2598, 22651, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -...
etree.SubElement(root, 'manifest:file-entry', attrib={
SubElement(root, 'manifest:file-entry', attrib={
def create_manifest(self): root = etree.Element('manifest:manifest', attrib=MANIFEST_NAMESPACE_DICT) doc = etree.ElementTree(root) etree.SubElement(root, 'manifest:file-entry', attrib={ 'manifest:media-type': 'application/vnd.oasis.opendocument.text', 'manifest:full-path': '/', }) etree.SubElement(root, 'manifest:file-...
277ba1af817dc725b8179dbbf649a815fdff5939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/277ba1af817dc725b8179dbbf649a815fdff5939/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14357, 12, 2890, 4672, 1365, 273, 12031, 18, 1046, 2668, 14357, 30, 14357, 2187, 5885, 33, 9560, 30050, 67, 11368, 67, 31456, 13, 997, 273, 12031, 18, 1046, 2471, 12, 3085, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14357, 12, 2890, 4672, 1365, 273, 12031, 18, 1046, 2668, 14357, 30, 14357, 2187, 5885, 33, 9560, 30050, 67, 11368, 67, 31456, 13, 997, 273, 12031, 18, 1046, 2471, 12, 3085, 13, ...
return BASIC16[color] elif 16 <= color <= 232:
return BASIC16[xcolor] elif 16 <= xcolor <= 231:
def xterm_to_rgb(color): if color < 16: # basic colors return BASIC16[color] elif 16 <= color <= 232: # color cube color -= 16 return (CUBE_STEPS[(color / 36) % 6], CUBE_STEPS[(color / 6) % 6], CUBE_STEPS[color % 6]) elif 233 <= color <= 253: # gray tone c = 8 + (color - 232) * 0x0A return (c, c, c) else: assert False
202adc9d5049d9aec692ff214e5f3e6e2075be94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10366/202adc9d5049d9aec692ff214e5f3e6e2075be94/xterm256.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 6408, 67, 869, 67, 10948, 12, 3266, 4672, 309, 2036, 411, 2872, 30, 468, 5337, 5740, 327, 28143, 18118, 2313, 63, 92, 3266, 65, 1327, 2872, 1648, 619, 3266, 1648, 576, 6938, 30, 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, 619, 6408, 67, 869, 67, 10948, 12, 3266, 4672, 309, 2036, 411, 2872, 30, 468, 5337, 5740, 327, 28143, 18118, 2313, 63, 92, 3266, 65, 1327, 2872, 1648, 619, 3266, 1648, 576, 6938, 30, 4...
class TestLuSolve(NumpyTestCase):
class TestLUSolve(NumpyTestCase):
def __init__(self, *args, **kw): test_lu.__init__(self, *args, **kw)
ed190d870bbfc8f800477027b23dcafc112a646e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/ed190d870bbfc8f800477027b23dcafc112a646e/test_decomp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 1842, 67, 28832, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 13, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 1842, 67, 28832, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 13, 2, -100, -100, -100, -100, -100, -100, -...
short_sample = "Hello world\n" sample = short_sample + "x"*(20 - len(short_sample))
short_sample = b"Hello world\n" sample = short_sample + b"x"*(20 - len(short_sample))
def test_buffer_api(self): short_sample = "Hello world\n" sample = short_sample + "x"*(20 - len(short_sample)) tfn = tempfile.mktemp() try: # Prepare with open(tfn, "wb") as f: f.write(short_sample) # Test readinto with open(tfn, "rb") as f: b = bytes([ord('x')]*20) n = f.readinto(b) self.assertEqual(n, len(short_sampl...
3bb742e8b97d906669efa32295fe18fc3aa1b32a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3bb742e8b97d906669efa32295fe18fc3aa1b32a/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 67, 2425, 12, 2890, 4672, 3025, 67, 6358, 273, 324, 6, 18601, 9117, 64, 82, 6, 3296, 273, 3025, 67, 6358, 397, 324, 6, 92, 6, 21556, 3462, 300, 562, 12, 6620, 67, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4106, 67, 2425, 12, 2890, 4672, 3025, 67, 6358, 273, 324, 6, 18601, 9117, 64, 82, 6, 3296, 273, 3025, 67, 6358, 397, 324, 6, 92, 6, 21556, 3462, 300, 562, 12, 6620, 67, 6...
if self._config.os == numericOutputType:
if self._config.outputScalarType == numericOutputType:
def configToView(self): self._viewFrame.lowerThresholdText.SetValue("%.2f" % (self._config.lt)) self._viewFrame.upperThresholdText.SetValue("%.2f" % (self._config.ut)) self._viewFrame.replaceInCheckBox.SetValue(self._config.ri) self._viewFrame.replaceInText.SetValue(str(self._config.iv)) self._viewFrame.replaceOutCheck...
1c5dbe5f37c7026fceadab4a3eafdb2cdb2eb9a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/1c5dbe5f37c7026fceadab4a3eafdb2cdb2eb9a9/doubleThreshold.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 774, 1767, 12, 2890, 4672, 365, 6315, 1945, 3219, 18, 8167, 7614, 1528, 18, 694, 620, 27188, 18, 22, 74, 6, 738, 261, 2890, 6315, 1425, 18, 5618, 3719, 365, 6315, 1945, 3219, 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, 642, 774, 1767, 12, 2890, 4672, 365, 6315, 1945, 3219, 18, 8167, 7614, 1528, 18, 694, 620, 27188, 18, 22, 74, 6, 738, 261, 2890, 6315, 1425, 18, 5618, 3719, 365, 6315, 1945, 3219, 18, ...
res.update({'output':self.output})
def __getstate__(self): res = super(logger, self).__getstate__() res.update({'output':self.output}) return res
cfa976a8fbf48ffd321a95a26233801052bfa28a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/cfa976a8fbf48ffd321a95a26233801052bfa28a/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 400, 273, 2240, 12, 4901, 16, 365, 2934, 972, 588, 2019, 972, 1435, 327, 400, 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, 1001, 588, 2019, 972, 12, 2890, 4672, 400, 273, 2240, 12, 4901, 16, 365, 2934, 972, 588, 2019, 972, 1435, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else: return db.cacheExtremeDetail()
def cache_extreme_detail(self, REQUEST=None): """ Returns information about each object in the cache. """ db=self._p_jar.db() detail = db.cacheExtremeDetail() if REQUEST is not None: lst = map(lambda dict: ((dict['conn_no'], dict['oid']), dict), detail) lst.sort() res = [ ' 'and class.', ' for sortkey, dict in lst: ...
def cache_extreme_detail(self): try: db=self._p_jar.db() except: # BoboPOS2 detail=[] rc=sys.getrefcount db=Globals.Bobobase._jar.db for oid, ob in Globals.Bobobase._jar.cache.items(): id=oid
dcd0edcaa04205b5837e8b007af641aa19cf23d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/dcd0edcaa04205b5837e8b007af641aa19cf23d8/CacheManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1247, 67, 408, 2764, 73, 67, 8992, 12, 2890, 4672, 775, 30, 1319, 33, 2890, 6315, 84, 67, 11930, 18, 1966, 1435, 1335, 30, 468, 605, 947, 83, 7057, 22, 7664, 33, 8526, 4519, 33, 9499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1247, 67, 408, 2764, 73, 67, 8992, 12, 2890, 4672, 775, 30, 1319, 33, 2890, 6315, 84, 67, 11930, 18, 1966, 1435, 1335, 30, 468, 605, 947, 83, 7057, 22, 7664, 33, 8526, 4519, 33, 9499...
def _handle_MSRPChatGotMessage(self, msrp_chat, data):
def _NH_MSRPChatGotMessage(self, msrp_chat, data):
def _handle_MSRPChatGotMessage(self, msrp_chat, data): session = self.msrp_chat_mapping.get(msrp_chat, None) if session is not None: self.notification_center.post_notification("SCSessionGotMessage", session, data)
1aa02bcc4900f818907c52a21768d4b2368788e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/1aa02bcc4900f818907c52a21768d4b2368788e2/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 3537, 54, 52, 14163, 15617, 1079, 12, 2890, 16, 4086, 13832, 67, 10880, 16, 501, 4672, 1339, 273, 365, 18, 959, 13832, 67, 10880, 67, 6770, 18, 588, 12, 959, 13832, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 3537, 54, 52, 14163, 15617, 1079, 12, 2890, 16, 4086, 13832, 67, 10880, 16, 501, 4672, 1339, 273, 365, 18, 959, 13832, 67, 10880, 67, 6770, 18, 588, 12, 959, 13832, ...
if not when: when = int(time.time())
when = int(when or time.time())
def save_changes(self, author, comment, when=0, db=None): """ Store ticket changes in the database. The ticket must already exist in the database. """ assert self.exists, 'Cannot update a new ticket'
f60a0c925fe330ec1fa91f1ff4e558274af57c15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f60a0c925fe330ec1fa91f1ff4e558274af57c15/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 16, 2869, 16, 2879, 16, 1347, 33, 20, 16, 1319, 33, 7036, 4672, 3536, 4994, 9322, 3478, 316, 326, 2063, 18, 1021, 9322, 1297, 1818, 1005, 316, 326, 2063, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 16, 2869, 16, 2879, 16, 1347, 33, 20, 16, 1319, 33, 7036, 4672, 3536, 4994, 9322, 3478, 316, 326, 2063, 18, 1021, 9322, 1297, 1818, 1005, 316, 326, 2063, 18, ...
def create_header_files(output_dir, suffix, applications, includes, init_functions):
def create_header_files(output_dir, suffix, applications, includes, init_functions, enabled_modules):
def create_header_files(output_dir, suffix, applications, includes, init_functions): if False == os.path.isdir(output_dir): os.mkdir(output_dir) for current_app in applications.keys(): hdr_file_path = os.path.join(output_dir, current_app + suffix) try: hdr_file = open(hdr_file_path, 'w') try: app_string = 'HIP_' + ...
4342107590df52002402fe29e27a49dcc0211e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6933/4342107590df52002402fe29e27a49dcc0211e4d/process_modules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3374, 67, 2354, 12, 2844, 67, 1214, 16, 3758, 16, 12165, 16, 6104, 16, 1208, 67, 10722, 16, 3696, 67, 6400, 4672, 225, 309, 1083, 422, 1140, 18, 803, 18, 291, 1214, 12, 2844...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3374, 67, 2354, 12, 2844, 67, 1214, 16, 3758, 16, 12165, 16, 6104, 16, 1208, 67, 10722, 16, 3696, 67, 6400, 4672, 225, 309, 1083, 422, 1140, 18, 803, 18, 291, 1214, 12, 2844...
while lines and not lines[0]: lines.pop(0) return string.join(lines, '\n')
return '\n'.join(lines)
def unindent_docstring(docstring): # [xx] copied from inspect. if docstring == '': return '' lines = docstring.expandtabs().split('\n') # Find minimum indentation of any non-blank lines after first line. margin = sys.maxint for line in lines[1:]: content = len(string.lstrip(line)) if content: indent = len(line) - con...
4a85b1c34e0c700cc571072eb493b033af23aa85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4a85b1c34e0c700cc571072eb493b033af23aa85/docstringparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 9355, 67, 24675, 12, 24675, 4672, 468, 306, 5279, 65, 9268, 628, 5334, 18, 225, 309, 14525, 422, 875, 30, 327, 875, 2362, 273, 14525, 18, 12320, 16056, 7675, 4939, 2668, 64, 82, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 9355, 67, 24675, 12, 24675, 4672, 468, 306, 5279, 65, 9268, 628, 5334, 18, 225, 309, 14525, 422, 875, 30, 327, 875, 2362, 273, 14525, 18, 12320, 16056, 7675, 4939, 2668, 64, 82, 6...
def fixTwistedNames(): import twisted.names.dns import socket f1 = twisted.names.dns.DNSDatagramProtocol.writeMessage def writeMessage(*args): try: f1(*args) except socket.error: pass twisted.names.dns.DNSDatagramProtocol.writeMessage = writeMessage from twisted.internet.error import CannotListenError f2 = tw...
def noop(): reactor.callLater(55.0, noop)
20bf9eba7684658dbea89887eb0acfe74ad07926 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12372/20bf9eba7684658dbea89887eb0acfe74ad07926/fix_twisted.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17065, 13332, 19178, 18, 1991, 20607, 12, 2539, 18, 20, 16, 17065, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17065, 13332, 19178, 18, 1991, 20607, 12, 2539, 18, 20, 16, 17065, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not re.search('\*',i): if not os.path.isdir(i): resolvedIS.append(i)
if not re.search( '\*', i ): if not os.path.isdir( i ): resolvedIS.append( i )
def _resolveInputSandbox(self, inputSandbox): """ Internal function.
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 1210, 17881, 12, 2890, 16, 810, 17881, 4672, 3536, 3186, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 389, 10828, 1210, 17881, 12, 2890, 16, 810, 17881, 4672, 3536, 3186, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def test(): """ test method"""
def googlemaps_key(self): """ returns google maps api key for a website"""
def test(): """ test method"""
3e53d56508efdd392bbac99f647608c300a2e5b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6024/3e53d56508efdd392bbac99f647608c300a2e5b0/projectmap_configview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 3536, 1842, 707, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 3536, 1842, 707, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.steady_state = []
def _set_steady_state(self, data): errmsg = 'Soil carbon components should contain: \n'\ ' mass, mass std, acid, acid std, water, water std,\n'\ ' ethanol, ethanol std, non soluble, non soluble std,'\ '\n humus, humus std, size class' self.steady_state = [] for vals in data: ok, obj = self._load_litter_object(vals, err...
bbfcbae9af76ce263b65221ec9ef39d20dbc2975 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1832/bbfcbae9af76ce263b65221ec9ef39d20dbc2975/yasso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 334, 684, 93, 67, 2019, 12, 2890, 16, 501, 4672, 17460, 273, 296, 10225, 330, 28755, 4085, 1410, 912, 30, 521, 82, 8314, 296, 8039, 16, 8039, 2044, 16, 1721, 350, 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, 389, 542, 67, 334, 684, 93, 67, 2019, 12, 2890, 16, 501, 4672, 17460, 273, 296, 10225, 330, 28755, 4085, 1410, 912, 30, 521, 82, 8314, 296, 8039, 16, 8039, 2044, 16, 1721, 350, 16, 1...
os.remove(pdf)
def test0(self): "Test if pythonpoint.pdf can be created from pythonpoint.xml."
884a06ea0bd2021bfc298a93495433a28a717a3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/884a06ea0bd2021bfc298a93495433a28a717a3e/test_tools_pythonpoint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 20, 12, 2890, 4672, 315, 4709, 309, 5790, 1153, 18, 7699, 848, 506, 2522, 628, 5790, 1153, 18, 2902, 1199, 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, 1842, 20, 12, 2890, 4672, 315, 4709, 309, 5790, 1153, 18, 7699, 848, 506, 2522, 628, 5790, 1153, 18, 2902, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.fail()
r = Rect(10, 10, 30, 30) r2 = Rect(30, 30, 15, 10) f = r.fit(r2) self.assertTrue(r2.contains(f)) f2 = r2.fit(r) self.assertTrue(r.contains(f2))
def todo_test_fit(self):
b02b7673750224983acbd2ede1a25a7caa904368 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/b02b7673750224983acbd2ede1a25a7caa904368/rect_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10621, 67, 3813, 67, 7216, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10621, 67, 3813, 67, 7216, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if(mode=='velocity' and nchan==-1): vmin=self.convertvf(str(freqlist[-1])+'Hz',frame,field,restf) vmax=self.convertvf(str(freqlist[0])+'Hz',frame,field,restf) if(width==''): vwidth=qa.sub(qa.quantity(vmax),qa.quantity(self.convertvf(str(freqlist[1])+'Hz',frame,field,restf))) else: vwidth=qa.convert(width,'m/s') vrange=...
def setChannelization(self,mode,spw,field,nchan,start,width,frame,veltype,restf): """ determine appropriate values for channelization parameters when default values are used for mode='velocity' or 'frequency' or 'channel' """ #pdb.set_trace() #if (mode!='frequency' and mode!='velocity') or (nchan!=-1 and start!='' and ...
93b23fce9d48a029a398a23df73f95174e378bb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/93b23fce9d48a029a398a23df73f95174e378bb5/cleanhelper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2909, 1588, 12, 2890, 16, 3188, 16, 1752, 91, 16, 1518, 16, 82, 7472, 16, 1937, 16, 2819, 16, 3789, 16, 941, 723, 16, 8792, 74, 4672, 3536, 4199, 5505, 924, 364, 1904, 1588, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2909, 1588, 12, 2890, 16, 3188, 16, 1752, 91, 16, 1518, 16, 82, 7472, 16, 1937, 16, 2819, 16, 3789, 16, 941, 723, 16, 8792, 74, 4672, 3536, 4199, 5505, 924, 364, 1904, 1588, 147...
self.compiler = new_compiler ( compiler="msvc",
self.compiler = new_compiler (compiler=self.compiler,
def run (self):
bfb7065feea05a3113807ea1be8804f279407a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bfb7065feea05a3113807ea1be8804f279407a94/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
category, combining, bidirectional, mirrored, eastasianwidth
category, combining, bidirectional, mirrored, eastasianwidth, normalizationquickcheck
def makeunicodedata(unicode, trace): dummy = (0, 0, 0, 0, 0) table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) FILE = "Modules/unicodedata_db.h" print "--- Preparing", FILE, "..." # 1) database properties for char in unicode.chars: record = unicode.table[char] if record: # extract database proper...
e988e286b2831382deb7c69b26c74ed185f51696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/e988e286b2831382deb7c69b26c74ed185f51696/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9124, 892, 12, 9124, 16, 2606, 4672, 225, 9609, 273, 261, 20, 16, 374, 16, 374, 16, 374, 16, 374, 13, 1014, 273, 306, 21050, 65, 1247, 273, 288, 20, 30, 9609, 97, 770, 273, 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, 1221, 9124, 892, 12, 9124, 16, 2606, 4672, 225, 9609, 273, 261, 20, 16, 374, 16, 374, 16, 374, 16, 374, 13, 1014, 273, 306, 21050, 65, 1247, 273, 288, 20, 30, 9609, 97, 770, 273, 3...
previous_start = format_date(fromdate - timedelta(days=daysback),
previous_start = format_date(fromdate - timedelta(days=daysback+1),
def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW') data = {}
428480218ca9901dbe3bc812b2eca3de32d5fbf7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/428480218ca9901dbe3bc812b2eca3de32d5fbf7/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 501, 273, 2618, 2, 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, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 501, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pass
print "aIB on %s" % self self.mb.addElementBefore(xml, id) print "back" @deferUntilAfterLoad
def addItemBefore(self, xml, id): pass
fbd444af0fb24176d164815bf82a5f27bbb4c126 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/fbd444af0fb24176d164815bf82a5f27bbb4c126/HTMLDisplay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15009, 4649, 12, 2890, 16, 2025, 16, 612, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15009, 4649, 12, 2890, 16, 2025, 16, 612, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
source_path = os.path.join(tmpdir_sources, package.name, source_filename)
def submit(request): if request.method == 'POST': form = PackageSubmitForm(request.POST, request.FILES) if not form.is_valid(): return render_to_response('aur/submit.html', { 'user': request.user, 'form': form}) import tempfile directory = tempfile.mkdtemp() filename = os.path.join(directory, form.cleaned_data['file']....
a942de6da427c5e3db17c3635da3df5a02bc011c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3268/a942de6da427c5e3db17c3635da3df5a02bc011c/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2293, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 7508, 11620, 1204, 12, 2293, 18, 3798, 16, 590, 18, 12669, 13, 309, 486, 646, 18, 291, 67, 877, 13332, 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, 4879, 12, 2293, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 7508, 11620, 1204, 12, 2293, 18, 3798, 16, 590, 18, 12669, 13, 309, 486, 646, 18, 291, 67, 877, 13332, 327, ...
""" builds a set containing all classes with an explicit superclass """ inhFilename = glob.glob(DUMPDIR + "/*.inheritance")[0] inhFile = open(inhFilename) inhs = set() for inh in inhFile: inhs.add(inh.split(" ")[3].split(".")[0].replace("/",".")) inhFile.close() return inhs
""" builds a set containing all classes with an explicit superclass """ inhFilename = glob.glob(DUMPDIR + "/*.inheritance")[0] inhFile = open(inhFilename) inhs = set() for inh in inhFile: inhs.add(inh.split(" ")[3]) inhFile.close() return inhs
def readInheritances(): """ builds a set containing all classes with an explicit superclass """ inhFilename = glob.glob(DUMPDIR + "/*.inheritance")[0] inhFile = open(inhFilename) inhs = set() for inh in inhFile: inhs.add(inh.split(" ")[3].split(".")[0].replace("/",".")) inhFile.close() return inhs
fdaf036527e7325360dfcf5cae6f68f166b4b064 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1052/fdaf036527e7325360dfcf5cae6f68f166b4b064/fixObjectInheritance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 14216, 6872, 13332, 3536, 10736, 279, 444, 4191, 777, 3318, 598, 392, 5515, 12098, 3536, 316, 76, 5359, 273, 4715, 18, 10581, 12, 40, 23942, 4537, 397, 2206, 11146, 6018, 1359, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14216, 6872, 13332, 3536, 10736, 279, 444, 4191, 777, 3318, 598, 392, 5515, 12098, 3536, 316, 76, 5359, 273, 4715, 18, 10581, 12, 40, 23942, 4537, 397, 2206, 11146, 6018, 1359, 7923, ...
n_cut = partial_line(line, allowed_line_lenght) print >> log, line[:n_cut] line = help_offset+line[n_cut:]
n_cut = partial_line(line, allowed_line_lenght, line_to_appear) if(len(line[:n_cut].strip())==0): print >> log, line[:allowed_line_lenght] line = help_offset+line[allowed_line_lenght:] else: print >> log, line[:n_cut] line = help_offset+line[n_cut:]
def format_string(object, ind, log, scope=False, allowed_line_lenght=80): name = str(object.name).strip() help = str(object.help).strip() if(scope): if(len(" "*ind+name) >= allowed_line_lenght): raise Sorry( "Cannot create doc file: scope is too deep or its name is too long.") fmt = "%s<b>%s</b> <b><FONT color=blue>%s<...
fe5344ca05b9020a2b9a31e2e21730727a2a37ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/fe5344ca05b9020a2b9a31e2e21730727a2a37ab/as_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 1080, 12, 1612, 16, 1547, 16, 613, 16, 2146, 33, 8381, 16, 2935, 67, 1369, 67, 1897, 75, 647, 33, 3672, 4672, 508, 273, 609, 12, 1612, 18, 529, 2934, 6406, 1435, 2809, 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, 740, 67, 1080, 12, 1612, 16, 1547, 16, 613, 16, 2146, 33, 8381, 16, 2935, 67, 1369, 67, 1897, 75, 647, 33, 3672, 4672, 508, 273, 609, 12, 1612, 18, 529, 2934, 6406, 1435, 2809, 273, ...
attrs['last_mod_date'] = time.ctime(os.stat(path)[stat.ST_MTIME])
try: attrs['last_mod_date'] = time.ctime(os.stat(path)[stat.ST_MTIME]) except OSError: continue
def perform_request_format_templates_management(ln=cdslang, checking=0): """ Returns the main management console for format templates @param ln language @param checking the level of checking (0: basic, 1:extensive (time consuming) ) @return the main page for format templates management """ # Reload in case a format ...
e0e4bd772153b97f2bdc8423e07b37cc3a52940d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2763/e0e4bd772153b97f2bdc8423e07b37cc3a52940d/bibformatadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 2139, 67, 8502, 67, 17381, 12, 2370, 33, 4315, 2069, 539, 16, 6728, 33, 20, 4672, 3536, 2860, 326, 2774, 11803, 2983, 364, 740, 5539, 225, 632, 891, 7211, 2653, 632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 2139, 67, 8502, 67, 17381, 12, 2370, 33, 4315, 2069, 539, 16, 6728, 33, 20, 4672, 3536, 2860, 326, 2774, 11803, 2983, 364, 740, 5539, 225, 632, 891, 7211, 2653, 632...
self.saved_dbc_key = c.current(0,0,0)[0]
try: self.saved_dbc_key = c.current(0,0,0)[0] except db.DBError: pass
def _closeCursors(self, save=1): if self.dbc: c = self.dbc self.dbc = None if save: self.saved_dbc_key = c.current(0,0,0)[0] c.close() del c for cref in self._cursor_refs.values(): c = cref() if c is not None: c.close()
a223d2cb29a27ea25632cfe695401a4ced96ca06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a223d2cb29a27ea25632cfe695401a4ced96ca06/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4412, 2408, 87, 1383, 12, 2890, 16, 1923, 33, 21, 4672, 309, 365, 18, 9137, 30, 276, 273, 365, 18, 9137, 365, 18, 9137, 273, 599, 309, 1923, 30, 775, 30, 365, 18, 14077, 67, 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, 389, 4412, 2408, 87, 1383, 12, 2890, 16, 1923, 33, 21, 4672, 309, 365, 18, 9137, 30, 276, 273, 365, 18, 9137, 365, 18, 9137, 273, 599, 309, 1923, 30, 775, 30, 365, 18, 14077, 67, 9...
filename = frame.f_globals.get("__file__", None) if filename is None: filename = frame.f_code.co_filename
(filename, lineno, funcname, context, lineindex,) = inspect.getframeinfo(frame) bname = self.pathtobasename.get(filename) if bname is None: bname = self.pathtobasename.setdefault(filename, os.path.basename(filename))
def trace(self, frame, why, arg): if why == 'line': # something is fishy about getting the file name filename = frame.f_globals.get("__file__", None) if filename is None: filename = frame.f_code.co_filename try: modulename = frame.f_globals["__name__"] except KeyError: # PyRun_String() for example # XXX what to do? mod...
dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 468, 5943, 353, 284, 1468, 93, 2973, 8742, 326, 585, 508, 282, 261, 3459, 16, 7586, 16, 1326, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2606, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 468, 5943, 353, 284, 1468, 93, 2973, 8742, 326, 585, 508, 282, 261, 3459, 16, 7586, 16, 1326, 529...
assert V <= VERSION
assert V <= VERSION, "File is version %d but I don't know about anything beyond %d" % ( V, VERSION )
def __init__( self, f, cache=32): # If cache=None, then everything is allowed to stay in memory, # this is the default behavior. self.f = f M, V, max_size, bin_size, nbins = read_packed( f, ">5I" ) assert M == MAGIC # assert less than assert V <= VERSION self.max_size = max_size self.bin_size = bin_size self.nbins = nb...
769d2a2bf8f7645a185cb04c263da8e3061ef85c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2104/769d2a2bf8f7645a185cb04c263da8e3061ef85c/binned_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 284, 16, 1247, 33, 1578, 4672, 468, 971, 1247, 33, 7036, 16, 1508, 7756, 353, 2935, 358, 23449, 316, 3778, 16, 468, 333, 353, 326, 805, 6885, 18, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 284, 16, 1247, 33, 1578, 4672, 468, 971, 1247, 33, 7036, 16, 1508, 7756, 353, 2935, 358, 23449, 316, 3778, 16, 468, 333, 353, 326, 805, 6885, 18, 365, 1...
if isinstance(fp, file):
if isfile(fp):
def read_array(fp): """ Read an array from an NPY file. Parameters ---------- fp : filelike object If this is not a real file object, then this may take extra memory and time. Returns ------- array : numpy.ndarray The array from the data on disk. Raises ------ ValueError If the data is invalid. """ version = read_m...
906d21e1b3ef6e6cd68847c427c185137a151314 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/906d21e1b3ef6e6cd68847c427c185137a151314/format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1126, 12, 7944, 4672, 3536, 2720, 392, 526, 628, 392, 423, 16235, 585, 18, 225, 7012, 12181, 4253, 294, 661, 292, 2547, 733, 971, 333, 353, 486, 279, 2863, 585, 733, 16, 1508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1126, 12, 7944, 4672, 3536, 2720, 392, 526, 628, 392, 423, 16235, 585, 18, 225, 7012, 12181, 4253, 294, 661, 292, 2547, 733, 971, 333, 353, 486, 279, 2863, 585, 733, 16, 1508,...
def as_field(self): """Returns a field object for this form.""" field = self._converter.clone() field.__class__ = FormAsField field.form = self return field
def as_field(self): """Returns a field object for this form.""" field = self._converter.clone() field.__class__ = FormAsField field.form = self return field
f95105a4e0c240821e86d7b5d2305e9c23ac1b4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/f95105a4e0c240821e86d7b5d2305e9c23ac1b4d/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 67, 1518, 12, 2890, 4672, 3536, 1356, 279, 652, 733, 364, 333, 646, 12123, 652, 273, 365, 6315, 15747, 18, 14056, 1435, 652, 16186, 1106, 972, 273, 2748, 1463, 974, 652, 18, 687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 487, 67, 1518, 12, 2890, 4672, 3536, 1356, 279, 652, 733, 364, 333, 646, 12123, 652, 273, 365, 6315, 15747, 18, 14056, 1435, 652, 16186, 1106, 972, 273, 2748, 1463, 974, 652, 18, 687, ...
if self.priv["tasklist"].has_key("sort_column") and \ self.priv["tasklist"].has_key("sort_order"): if self.priv["tasklist"]["sort_column"] is not None and \ self.priv["tasklist"]["sort_order"] is not None: self.sort_tasklist_rows(self.priv["tasklist"]["sort_column"], \ self.priv["tasklist"]["sort_order"])
if (self.priv["tasklist"].has_key("sort_column") and self.priv["tasklist"].has_key("sort_order")): if (self.priv["tasklist"]["sort_column"] is not None and self.priv["tasklist"]["sort_order"] is not None): self.sort_tasklist_rows( self.priv["tasklist"]["sort_column"], self.priv["tasklist"]["sort_order"])
def refresh_list(self, a=None, toselect=None): #pylint: disable-msg=W0613
451ea29e3924785bc6c6b8648aa6459b292a0db4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/451ea29e3924785bc6c6b8648aa6459b292a0db4/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 1098, 12, 2890, 16, 279, 33, 7036, 16, 358, 4025, 33, 7036, 4672, 468, 2074, 5671, 30, 4056, 17, 3576, 33, 59, 7677, 3437, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 4460, 67, 1098, 12, 2890, 16, 279, 33, 7036, 16, 358, 4025, 33, 7036, 4672, 468, 2074, 5671, 30, 4056, 17, 3576, 33, 59, 7677, 3437, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not content_array[0].startswith('svn: File not found:'): continue
if (content_array[0].startswith('svn: File not found:') or content_array[0].endswith('path not found')): break
def GetCachedFile(filename, max_age=60*60*24*3, use_root=False): """Retrieves a file from the repository and caches it in GetCacheDir() for max_age seconds. use_root: If False, look up the arborescence for the first match, otherwise go directory to the root repository. Note: The cache will be inconsistent if the same...
062a83f206757174b7e007170de76d54448d0367 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/062a83f206757174b7e007170de76d54448d0367/gcl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...