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 |
|---|---|---|---|---|---|---|
child_root = self.root_directory is not None and \ self.root_directory or self.directory return self.__class__(full, root_directory=child_root, | return self.__class__(full, root_directory=self.root_directory, | def __call__(self, environ, start_response): path_info = environ.get('PATH_INFO', '') if not path_info: return self.add_slash(environ, start_response) if path_info == '/': # @@: This should obviously be configurable filename = 'index.html' else: filename = request.path_info_pop(environ) full = os.path.normcase(os.path.... | 7984286e7dac147f479b2fe183cfe845cc621cfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/7984286e7dac147f479b2fe183cfe845cc621cfb/urlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
589,
67,
1376,
273,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
309,
486,
589,
67,
1376,
30,
327,
365,
18,
1289,
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,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
589,
67,
1376,
273,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
309,
486,
589,
67,
1376,
30,
327,
365,
18,
1289,
6... |
request.setResponseCode(http.MOVED_PERMANENTLY) | request.setResponseCode(http.TEMPORARY_REDIRECT) | def configWidget(self, request): # displaying the widget path = request.postpath if path: obj = self.app for elem in path: if elem: # '' doesn't count obj = obj.getStaticEntity(elem) if obj is None: request.setResponseCode(http.MOVED_PERMANENTLY) request.setHeader('location', request.prePathURL()) return... | 3c35c04f37e70487c55eccda713e5067ff4397db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3c35c04f37e70487c55eccda713e5067ff4397db/web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
642,
4609,
12,
2890,
16,
590,
4672,
468,
23620,
326,
3604,
589,
273,
590,
18,
2767,
803,
309,
589,
30,
1081,
273,
365,
18,
2910,
364,
3659,
316,
589,
30,
309,
3659,
30,
7734,
468,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4609,
12,
2890,
16,
590,
4672,
468,
23620,
326,
3604,
589,
273,
590,
18,
2767,
803,
309,
589,
30,
1081,
273,
365,
18,
2910,
364,
3659,
316,
589,
30,
309,
3659,
30,
7734,
468,
87... |
self.editor = weakref.ref(editor) | self.editor = weakref.ref(editor) | def show(self, editor): self.editor = weakref.ref(editor) self.fill_actions() editor.request_transient_for.emit(self.window) self.window.present() | 97e48fe37f3d792fabd0f9148ef2bcf4044cbade /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/97e48fe37f3d792fabd0f9148ef2bcf4044cbade/shortcuts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
4858,
4672,
365,
18,
9177,
273,
16046,
1734,
18,
1734,
12,
9177,
13,
365,
18,
5935,
67,
4905,
1435,
4858,
18,
2293,
67,
22670,
67,
1884,
18,
18356,
12,
2890,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
4858,
4672,
365,
18,
9177,
273,
16046,
1734,
18,
1734,
12,
9177,
13,
365,
18,
5935,
67,
4905,
1435,
4858,
18,
2293,
67,
22670,
67,
1884,
18,
18356,
12,
2890,
18,
... |
footertext += ' PDF generated at: %s' % strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime()) p = Paragraph(formatter.cleanText(footertext), text_style(mode='footer')) | footertext.append('PDF generated at: %s' % strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime())) p = Paragraph('<br/>'.join([formatter.cleanText(line) for line in footertext]), text_style(mode='footer')) | def beforeDrawPage(self,canvas,doc): canvas.setFont(serif_font,8) canvas.saveState() if pdfstyles.show_title_page_footer: canvas.line(footer_margin_hor, footer_margin_vert, page_width - footer_margin_hor, footer_margin_vert ) footertext = _(titlepagefooter) if pdfstyles.show_creation_date: footertext += ' PDF gene... | e453d6fb882ac1c84e8df94139399a9e64b27451 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/e453d6fb882ac1c84e8df94139399a9e64b27451/pagetemplates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
6493,
1964,
12,
2890,
16,
15424,
16,
2434,
4672,
5953,
18,
542,
5711,
12,
550,
430,
67,
5776,
16,
28,
13,
5953,
18,
5688,
1119,
1435,
309,
8169,
10218,
18,
4500,
67,
2649,
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,
1865,
6493,
1964,
12,
2890,
16,
15424,
16,
2434,
4672,
5953,
18,
542,
5711,
12,
550,
430,
67,
5776,
16,
28,
13,
5953,
18,
5688,
1119,
1435,
309,
8169,
10218,
18,
4500,
67,
2649,
67,
... |
n = self._convert_other(n) if n._isinfinity() or n.adjusted() > 8: return context._raise_error(InvalidOperation, 'x ** INF') ans = self._check_nans(n, context) if ans: return ans if not n._isinfinity() and not n._isinteger(): | if self._is_special or n._is_special or n.adjusted() > 8: if n._isinfinity() or n.adjusted() > 8: return context._raise_error(InvalidOperation, 'x ** INF') ans = self._check_nans(n, context) if ans: return ans if not n._isinteger(): | def __pow__(self, n, modulo = None, context=None): """Return self ** n (mod modulo) | 55342e783760513207a56d5a31fa49e579a96cd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/55342e783760513207a56d5a31fa49e579a96cd3/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
290,
16,
26109,
273,
599,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
290,
261,
1711,
26109,
13,
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,
0,
0,
0,
0,
0,
0,
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,
23509,
972,
12,
2890,
16,
290,
16,
26109,
273,
599,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
290,
261,
1711,
26109,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
checksum = verify_checksum(local_file, checksums) if checksum: actsize = size if actsize == 0: actsize = os.stat(local_file).st_size if actsize != 0: if handler != None: handler(1, actsize, actsize) return local_file else: print _("Checksum failed, retrying download of") + " %s." % os.path.basename(local_file) | if filecheck(local_file, checksums, size, handler): return local_file | def download_file_urls(urllist, local_file, size=0, checksums={}, force = False, handler = None, segmented = SEGMENTED, chunksums = {}, chunk_size = None): ''' Download a file. First parameter, file to download, URL or file path to download from Second parameter, file path to save to Third parameter, optional, expected... | e80d7a3e15473362950460609f4ebc6ff6269f95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/e80d7a3e15473362950460609f4ebc6ff6269f95/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
768,
67,
10518,
12,
718,
1098,
16,
1191,
67,
768,
16,
963,
33,
20,
16,
26829,
28793,
2944,
273,
1083,
16,
1838,
273,
599,
16,
3267,
329,
273,
26167,
16196,
6404,
16,
2441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4224,
67,
768,
67,
10518,
12,
718,
1098,
16,
1191,
67,
768,
16,
963,
33,
20,
16,
26829,
28793,
2944,
273,
1083,
16,
1838,
273,
599,
16,
3267,
329,
273,
26167,
16196,
6404,
16,
2441,
... |
self.PHOTO_TBL = ConfObj.get(section,'photo_tbl') self.PHOTO_TBLSQ = ConfObj.get(section,'photo_tblsq') self.NEWS_TBL = ConfObj.get(section,'news_tbl') self.NEWS_TBLSQ = ConfObj.get(section,'news_tblsq') self.SITE = ConfObj.get(section,'site') | self.PHOTO_TBL = ConfObj.get(SECTION,'photo_tbl') self.PHOTO_TBLSQ = ConfObj.get(SECTION,'photo_tblsq') self.NEWS_TBL = ConfObj.get(SECTION,'news_tbl') self.NEWS_TBLSQ = ConfObj.get(SECTION,'news_tblsq') self.SITE = ConfObj.get(SECTION,'site') | def read_conf(self, ConfObj): ''' Getting config options for this handler ''' | 37379418d3aa651b06384abc8e25bed6648e4e46 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/37379418d3aa651b06384abc8e25bed6648e4e46/NewsHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
9163,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.myException.msg = self.errmsg | def __init__(self, ws=" \t\r\n", min=1, max=0, exact=0): super(White,self).__init__() self.matchWhite = ws self.setWhitespaceChars( "".join([c for c in self.whiteChars if c not in self.matchWhite]) ) #~ self.leaveWhitespace() self.name = ("".join([White.whiteStrs[c] for c in self.matchWhite])) self.mayReturnEmpty = Tru... | ae3f3e7a55d584a1b43fc3b7c7b375f3a27e073e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12364/ae3f3e7a55d584a1b43fc3b7c7b375f3a27e073e/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4945,
1546,
521,
88,
64,
86,
64,
82,
3113,
1131,
33,
21,
16,
943,
33,
20,
16,
5565,
33,
20,
4672,
2240,
12,
13407,
16,
2890,
2934,
972,
2738,
972,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4945,
1546,
521,
88,
64,
86,
64,
82,
3113,
1131,
33,
21,
16,
943,
33,
20,
16,
5565,
33,
20,
4672,
2240,
12,
13407,
16,
2890,
2934,
972,
2738,
972,
14... | |
view = False | def check_group(node): if node.get('groups'): groups = node.get('groups').split(',') access_pool = self.pool.get('ir.model.access') can_see = any(access_pool.check_groups(cr, user, group) for group in groups) if not can_see: node.set('invisible', '1') if 'attrs' in node.attrib: del(node.attrib['attrs']) #avoid making f... | 99608428f8798699de8a678ed91f2ea221f5030b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/99608428f8798699de8a678ed91f2ea221f5030b/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1655,
12,
2159,
4672,
309,
756,
18,
588,
2668,
4650,
11,
4672,
3252,
273,
756,
18,
588,
2668,
4650,
16063,
4939,
12,
2187,
6134,
2006,
67,
6011,
273,
365,
18,
6011,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
1655,
12,
2159,
4672,
309,
756,
18,
588,
2668,
4650,
11,
4672,
3252,
273,
756,
18,
588,
2668,
4650,
16063,
4939,
12,
2187,
6134,
2006,
67,
6011,
273,
365,
18,
6011,
18,
588,
... | |
name = head[len(path)+1:] | if path.endswith( '/' ) : name = head[len(path):] else : name = head[len(path) + 1:] | def refresh( self ) : # remember any old defaultVersions defaultVersions = {} for k, v in self.__classes.items() : defaultVersions[k] = v.get( "defaultVersion", None ) # __classes is a dictionary mapping from a class name # to information for that class in the following form # { # "versions" : [], # a list containin... | 1202f5c39c14970e30aa190ea83abc7c15acd210 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/1202f5c39c14970e30aa190ea83abc7c15acd210/ClassLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
365,
262,
294,
225,
468,
11586,
1281,
1592,
805,
5940,
805,
5940,
273,
2618,
364,
417,
16,
331,
316,
365,
16186,
4701,
18,
3319,
1435,
294,
805,
5940,
63,
79,
65,
273,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
12,
365,
262,
294,
225,
468,
11586,
1281,
1592,
805,
5940,
805,
5940,
273,
2618,
364,
417,
16,
331,
316,
365,
16186,
4701,
18,
3319,
1435,
294,
805,
5940,
63,
79,
65,
273,
331,
... |
if __debug__: print "stop colorizing" | if DEBUG: print "stop colorizing" | def notify_range(self, index1, index2=None): self.tag_add("TODO", index1, index2) if self.after_id: if __debug__: print "colorizing already scheduled" return if self.colorizing: self.stop_colorizing = 1 if __debug__: print "stop colorizing" if self.allow_colorizing: if __debug__: print "schedule colorizing" self.after_... | 96348e6d241363b9e73c5d75af2b60a10b08b93e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/96348e6d241363b9e73c5d75af2b60a10b08b93e/ColorDelegator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
3676,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
365,
18,
2692,
67,
1289,
2932,
6241,
3113,
770,
21,
16,
770,
22,
13,
309,
365,
18,
5205,
67,
350,
30,
309,
1001,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5066,
67,
3676,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
365,
18,
2692,
67,
1289,
2932,
6241,
3113,
770,
21,
16,
770,
22,
13,
309,
365,
18,
5205,
67,
350,
30,
309,
1001,... |
if n_fail: return TEST_FAILURE | if n_fail: return TEST_FAILURE | def run_test(self): # A single test should have a single cookie jar self.tor_cookie_jar = cookielib.MozillaCookieJar() self.cookie_jar = cookielib.MozillaCookieJar() self.headers = copy.copy(firefox_headers) self.tests_run += 1 | 66eda46415e31c1e17a158bdfb92fc82dc56f58c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/66eda46415e31c1e17a158bdfb92fc82dc56f58c/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
2890,
4672,
468,
432,
2202,
1842,
1410,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
2890,
4672,
468,
432,
2202,
1842,
1410,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
14... |
def GenLimits(self,filename,client): fname = 'limits.conf' | def gen_limits(self, entry, metadata): | def GenLimits(self,filename,client): fname = 'limits.conf' static = self.repository.entries["static.limits.conf"].data superusers = self.repository.entries["superusers"].data.split() useraccess = self.repository.entries["useraccess"].data users = [x[0] for x in useraccess if x[1] == client] | 14c2f6cb0ff21279e938c2c4d84fdacf1eb61280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/14c2f6cb0ff21279e938c2c4d84fdacf1eb61280/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
14270,
12,
2890,
16,
1241,
16,
1982,
4672,
760,
273,
365,
18,
9071,
18,
8219,
9614,
3845,
18,
14270,
18,
3923,
6,
8009,
892,
2240,
5577,
273,
365,
18,
9071,
18,
8219,
9614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
14270,
12,
2890,
16,
1241,
16,
1982,
4672,
760,
273,
365,
18,
9071,
18,
8219,
9614,
3845,
18,
14270,
18,
3923,
6,
8009,
892,
2240,
5577,
273,
365,
18,
9071,
18,
8219,
9614,
... |
"default_server_buff_size":int(frame.frameContent),"to_server_buff":buff} | "default_server_buff_size":int(frame.frameContent),"to_server_buff":[]} | def newconn(socket, frame): # INIT SERVER # TODO handle the -1 connbuff size option if frame.frameMesgType == INIT_SERVER: print "Connected to new server: "+frame.frameMACAddress # declare a new buffer to store data from clients to the server buff = [] # setup the main server data structure server[frame.frameMACAd... | 1e267b4ee87b89ef2ed59bca32de64d9bb119be5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/1e267b4ee87b89ef2ed59bca32de64d9bb119be5/forwarder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4646,
12,
7814,
16,
2623,
4672,
225,
468,
12584,
15061,
468,
2660,
1640,
326,
300,
21,
1487,
20664,
963,
1456,
309,
2623,
18,
3789,
49,
281,
75,
559,
422,
12584,
67,
4370,
30,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4646,
12,
7814,
16,
2623,
4672,
225,
468,
12584,
15061,
468,
2660,
1640,
326,
300,
21,
1487,
20664,
963,
1456,
309,
2623,
18,
3789,
49,
281,
75,
559,
422,
12584,
67,
4370,
30,
225... |
self.body.append('%% %s \n' % node.astext().replace('\n', '\n% ')) | self.body.append('%% %s\n' % node.astext().replace('\n', '\n% ')) | def visit_comment(self, node): # Escape end of line by a new comment start in comment text. self.body.append('%% %s \n' % node.astext().replace('\n', '\n% ')) raise nodes.SkipNode | 154dc4d87959c79abd8ffef47b243db2006c3527 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/154dc4d87959c79abd8ffef47b243db2006c3527/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3469,
12,
2890,
16,
756,
4672,
468,
18025,
679,
434,
980,
635,
279,
394,
2879,
787,
316,
2879,
977,
18,
365,
18,
3432,
18,
6923,
2668,
11438,
738,
87,
64,
82,
11,
738,
756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3469,
12,
2890,
16,
756,
4672,
468,
18025,
679,
434,
980,
635,
279,
394,
2879,
787,
316,
2879,
977,
18,
365,
18,
3432,
18,
6923,
2668,
11438,
738,
87,
64,
82,
11,
738,
756,... |
rv = u"".join(self.queue[:i]) self.queue = self.queue[i:] | rv = u"".join([ self.queue.popleft() for c in range(i) ]) | def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in characters or EOF. characters can be any container that supports the in method being called on it. """ | e59f8e67926398c5e4b75acbcce4e9410bc02e00 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/e59f8e67926398c5e4b75acbcce4e9410bc02e00/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
... |
return app(environ, start_response) | environ_copy = environ.copy() return app(environ_copy, start_response) | def __call__(self, environ, start_response): if self.template: template = self.remote_uri_template remote_uri = template % environ else: remote_uri = self.remote_uri | 4ebdd63b862a6019fc6fcba56a0c2af003fe7389 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12795/4ebdd63b862a6019fc6fcba56a0c2af003fe7389/wsgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
3202,
30,
1542,
273,
365,
18,
7222,
67,
1650,
67,
3202,
2632,
67,
1650,
273,
1542,
738,
5473,
469,
30,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
3202,
30,
1542,
273,
365,
18,
7222,
67,
1650,
67,
3202,
2632,
67,
1650,
273,
1542,
738,
5473,
469,
30,
263... |
'\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\n\\newcommand{\\ZZ}{\\Bold{Z}}\n\\newcommand{\\RR}{\\Bold{R}}\n\\newcommand{\\CC}{\\Bold{C}}\n\\newcommand{\\QQ}{\\Bold{Q}}\n\\newcommand{... | '\\documentclass{article}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\\oddsidemargin 0.0in\n\\evensidemargin 0.0in\n\\textwidth 6.45in\n\\topmargin 0.0in\n\\headheight 0.0in\n\\headsep 0.0in\n\\textheight 9.0in\n\n\n\\newcommand{\\Z... | def _latex_file_(objects, title='SAGE', debug=False, \ sep='', tiny=False, math_left='\\[', math_right='\\]', extra_preamble=''): r"""nodetex Produce a string to be used as a LaTeX file, containing a representation of each object in objects. INPUT: - ``objects`` - list (or object) - ``title`` - string (default: 'S... | bef4a646c66a878c2dbbea16f979428e22e92ca9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/bef4a646c66a878c2dbbea16f979428e22e92ca9/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,... |
globals().update( locals() ) self.log.writeln('local namespace is pushed into global ') | globals().update( locals() ) self.log.writeln('local namespace is pushed into global ') | def localBlast( self, seqFile, db, method='blastp', resultOut=None, e=0.01, **kw ): """ Performa a local blast search (requires that the blast binaries and databases are installed localy). Uses Bio.Blast.NCBIStandalone.blastall (Biopython) for the search. @param seqFile: file name with search sequence in FASTA format ... | 192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
38,
2722,
12,
365,
16,
3833,
812,
16,
1319,
16,
707,
2218,
30901,
84,
2187,
563,
1182,
33,
7036,
16,
425,
33,
20,
18,
1611,
16,
2826,
9987,
262,
30,
3536,
11217,
69,
279,
1191,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1191,
38,
2722,
12,
365,
16,
3833,
812,
16,
1319,
16,
707,
2218,
30901,
84,
2187,
563,
1182,
33,
7036,
16,
425,
33,
20,
18,
1611,
16,
2826,
9987,
262,
30,
3536,
11217,
69,
279,
1191,... |
sage: L.taylor_series(series_prec=3) -1.28158145691931e-23 + (7.26268290635587e-24)*z + 0.759316500288427*z^2 + O(z^3) | sage: L.taylor_series(series_prec=3)[2:] 0.759316500288427*z^2 + O(z^3) | def taylor_series(self, a=1, prec=53, series_prec=6, var='z'): """ Return the Taylor series of this $L$-series about $a$ to the given precision (in bits) and the number of terms. | 3424613c23dce0e2eb8d619c39bbeed043ca864d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3424613c23dce0e2eb8d619c39bbeed043ca864d/lseries_ell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
67,
10222,
12,
2890,
16,
279,
33,
21,
16,
13382,
33,
8643,
16,
4166,
67,
4036,
33,
26,
16,
569,
2218,
94,
11,
4672,
3536,
2000,
326,
399,
528,
80,
280,
4166,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
528,
80,
280,
67,
10222,
12,
2890,
16,
279,
33,
21,
16,
13382,
33,
8643,
16,
4166,
67,
4036,
33,
26,
16,
569,
2218,
94,
11,
4672,
3536,
2000,
326,
399,
528,
80,
280,
4166,
434... |
self._modname = _getModName() | try: self._modname = _getModName() except: pass | def __init__(self, klass = None, superClasses = (), dict = {}): self._modname = _getModName() self._klass = klass self._superClasses = superClasses self._dict = dict | 3f0ef5f39c16c6bef42329e24a4e3d4f7f328039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/3f0ef5f39c16c6bef42329e24a4e3d4f7f328039/static.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7352,
273,
599,
16,
2240,
4818,
273,
1832,
16,
2065,
273,
2618,
4672,
775,
30,
365,
6315,
1711,
529,
273,
389,
588,
1739,
461,
1435,
1335,
30,
1342,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7352,
273,
599,
16,
2240,
4818,
273,
1832,
16,
2065,
273,
2618,
4672,
775,
30,
365,
6315,
1711,
529,
273,
389,
588,
1739,
461,
1435,
1335,
30,
1342,
365,... |
else: if submission['pending']: reference = submission['reference'] else: | if not submission['pending']: | def tmpl_yoursubmissions(self, ln, order, doctypes, submissions): """ Displays the list of the user's submissions. | 6d185ff7c7519929a2829d5830f7b917f21f75ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/6d185ff7c7519929a2829d5830f7b917f21f75ae/websubmit_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
18,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
mTxtBuffer.create_tag('title', weight=pango.WEIGHT_BOLD, scale=pango.SCALE_X_LARGE, justification=pango.ALIGN_RIGHT) | mTxtBuffer.create_tag('title', weight=pango.WEIGHT_BOLD, scale=pango.SCALE_X_LARGE) | def __init__(self, title): """ Constructor """ global mDlg, mTxtBuffer | 9e618598232991145803d5d69d699a4f1da609f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1737/9e618598232991145803d5d69d699a4f1da609f7/help.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
4672,
3536,
11417,
3536,
2552,
312,
40,
23623,
16,
312,
21811,
1892,
2,
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,
1001,
2738,
972,
12,
2890,
16,
2077,
4672,
3536,
11417,
3536,
2552,
312,
40,
23623,
16,
312,
21811,
1892,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def default_duplicate_moves(self, cursor, user, data, context=None): return self.default_domain_moves(cursor, user, data, context=context) def default_domain_moves(self, cursor, user, data, context=None): | def default_duplicate_moves(self, cursor, user, context=None): return self.default_domain_moves(cursor, user, context=context) def default_domain_moves(self, cursor, user, context=None): | def default_duplicate_moves(self, cursor, user, data, context=None): return self.default_domain_moves(cursor, user, data, context=context) | 03eaa5e2837899d086f20d53b46eaf946a8b7100 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9276/03eaa5e2837899d086f20d53b46eaf946a8b7100/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
17342,
67,
81,
10829,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
33,
7036,
4672,
327,
365,
18,
1886,
67,
4308,
67,
81,
10829,
12,
9216,
16,
729,
16,
501,
16,
819,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
17342,
67,
81,
10829,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
33,
7036,
4672,
327,
365,
18,
1886,
67,
4308,
67,
81,
10829,
12,
9216,
16,
729,
16,
501,
16,
819,
33,
... |
translated.append(word) | translated.append(word.capitalize()) | def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Ignore leading stop words # Optionally convert leading numbers to strings from calibre.ebooks.metadata import title_sort # Strip stop words title_words = title_sort(title).split() translated = [] | 1c7d7ae2d5c34447fc6cb6fbcc751a1c1fefc2fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/1c7d7ae2d5c34447fc6cb6fbcc751a1c1fefc2fb/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4416,
4247,
12,
2890,
16,
2077,
4672,
468,
4037,
326,
3214,
2077,
358,
279,
533,
10631,
364,
9602,
18,
468,
8049,
7676,
2132,
4511,
468,
20720,
1765,
7676,
5600,
358,
2064,
628,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4416,
4247,
12,
2890,
16,
2077,
4672,
468,
4037,
326,
3214,
2077,
358,
279,
533,
10631,
364,
9602,
18,
468,
8049,
7676,
2132,
4511,
468,
20720,
1765,
7676,
5600,
358,
2064,
628,
26... |
editR = re.compile(r'<li class=".*?">\((?:\w*|<a[^<]*</a>)\)\s\((?:\w*|<a[^<]*</a>)\).*?<a href=".*?([0-9]*)" title=".*?">([^<]*)</a> <span class=\'history-user\'><a [^>]*?>([^<]*?)</a>.*?</span></span>(?: <span class="minor">m</span>|)(?: <span class="history-size">.*?</span>|)(?: <span class=[\'"]comment[\'"]>\((?:<s... | editR = re.compile(r'<li class=".*?">\((?:\w*|<a[^<]*</a>)\)\s\((?:\w*|<a[^<]*</a>)\).*?<a href=".*?([0-9]*)" title=".*?">([^<]*)</a> <span class=\'history-user\'><a [^>]*?>([^<]*?)</a>.*?</span></span>(?: <span class="minor">.*?</span>|)(?: <span class="history-size">.*?</span>|)(?: <span class=[\'"]comment[\'"]>\((?:... | def getVersionHistory(self, forceReload=False, reverseOrder=False, getAll=False, revCount=500): """Load the version history page and return history information. | 8a343194e2640c62fdd50a8d416e094ac80b39d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/8a343194e2640c62fdd50a8d416e094ac80b39d1/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8343,
5623,
12,
2890,
16,
2944,
13013,
33,
8381,
16,
4219,
2448,
33,
8381,
16,
5514,
33,
8381,
16,
5588,
1380,
33,
12483,
4672,
3536,
2563,
326,
1177,
4927,
1363,
471,
327,
4927,
1779,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8343,
5623,
12,
2890,
16,
2944,
13013,
33,
8381,
16,
4219,
2448,
33,
8381,
16,
5514,
33,
8381,
16,
5588,
1380,
33,
12483,
4672,
3536,
2563,
326,
1177,
4927,
1363,
471,
327,
4927,
1779,
... |
cty.c_int], | cty.c_int], | def fl_set_cursor_color(name, fg, bg): """ fl_set_cursor_color(name, fg, bg) """ _fl_set_cursor_color(name, fg, bg) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
9216,
67,
3266,
12,
529,
16,
10186,
16,
7611,
4672,
3536,
1183,
67,
542,
67,
9216,
67,
3266,
12,
529,
16,
10186,
16,
7611,
13,
3536,
225,
389,
2242,
67,
542,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
9216,
67,
3266,
12,
529,
16,
10186,
16,
7611,
4672,
3536,
1183,
67,
542,
67,
9216,
67,
3266,
12,
529,
16,
10186,
16,
7611,
13,
3536,
225,
389,
2242,
67,
542,
67,
... |
return (self.implicit_inline(text[:match.start()], lineno) | return (self.text(text[:match.start()]) | def implicit_inline(self, text, lineno): """ Check each of the patterns in `self.implicit` for a match, and dispatch to the stored method for the pattern. Recursively check the text before and after the match. """ if not text: return [] for pattern, dispatch in self.implicit: match = pattern.search(text) if match: try... | 018a79821ccb1056404d43dbe32e444d1a0e03c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/018a79821ccb1056404d43dbe32e444d1a0e03c1/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10592,
67,
10047,
12,
2890,
16,
977,
16,
7586,
4672,
3536,
2073,
1517,
434,
326,
6884,
316,
1375,
2890,
18,
24357,
68,
364,
279,
845,
16,
471,
3435,
358,
326,
4041,
707,
364,
326,
1936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10592,
67,
10047,
12,
2890,
16,
977,
16,
7586,
4672,
3536,
2073,
1517,
434,
326,
6884,
316,
1375,
2890,
18,
24357,
68,
364,
279,
845,
16,
471,
3435,
358,
326,
4041,
707,
364,
326,
1936... |
swClause += "Member(\"VO-cms-%s\", other.GlueHostApplicationSoftwareRunTimeEnvironment) " % swVersion if swVersion != self.applicationVersions[-1]: | swClause += "Member(\"VO-cms-%s\", other.GlueHostApplicationSoftwareRunTimeEnvironment) " % swVersion if swVersion != self.applicationVersions[-1]: | def createJDL(self, cladfilename,UserJDLRequirementsFile): """ _createJDL_ create the scheduler JDL combining the user specified bit of the JDL """ | 4f23c946ba7a35a3bee24a285747f0b31364dc6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/4f23c946ba7a35a3bee24a285747f0b31364dc6d/GLITESubmitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
46,
8914,
12,
2890,
16,
927,
361,
3459,
16,
1299,
46,
8914,
15465,
812,
4672,
3536,
389,
2640,
46,
8914,
67,
225,
752,
326,
8129,
804,
8914,
29189,
326,
729,
1269,
2831,
434,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
46,
8914,
12,
2890,
16,
927,
361,
3459,
16,
1299,
46,
8914,
15465,
812,
4672,
3536,
389,
2640,
46,
8914,
67,
225,
752,
326,
8129,
804,
8914,
29189,
326,
729,
1269,
2831,
434,
326,... |
aname = eval(attach, {'object':obj, 'time':time}) | aname = eval(report_xml.attachment, {'object':obj, 'time':time}) | def __init__(self, *args, **argv): for key,arg in argv.items(): setattr(self, key, arg) | c064bfdbae00b223f514309a7d1e0736380879ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c064bfdbae00b223f514309a7d1e0736380879ac/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
19485,
4672,
364,
498,
16,
3175,
316,
5261,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
1501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
19485,
4672,
364,
498,
16,
3175,
316,
5261,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
1501,
13,
2,
-100,
-100,
-100,
-100,
-100,... |
type = _PyV8.JSDebugEvent.BeforeCompile def __init__(self, event): self.event = event | type = _PyV8.JSDebugEvent.BeforeCompile def __init__(self, event): JSDebug.CompileEvent.__init__(self, event) | def __str__(self): return str(self.script) | e97e2da011ba59cc383c483b663ec0b903d229a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/e97e2da011ba59cc383c483b663ec0b903d229a2/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
609,
12,
2890,
18,
4263,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
701,
972,
12,
2890,
4672,
327,
609,
12,
2890,
18,
4263,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.file_hash, self.file_size)) | self.file_hash, self.file_sha256, self.file_size)) | def Reply(self, handler, send_content=True, post_data=None): """Return (using StringResponse) an XML reply to ForcedUpdate clients.""" | 48d7d8bb7f55a8005c5d056eb0da515c337b455c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/48d7d8bb7f55a8005c5d056eb0da515c337b455c/cros_image_to_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16202,
12,
2890,
16,
1838,
16,
1366,
67,
1745,
33,
5510,
16,
1603,
67,
892,
33,
7036,
4672,
3536,
990,
261,
9940,
514,
1064,
13,
392,
3167,
4332,
358,
2457,
3263,
1891,
7712,
12123,
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,
16202,
12,
2890,
16,
1838,
16,
1366,
67,
1745,
33,
5510,
16,
1603,
67,
892,
33,
7036,
4672,
3536,
990,
261,
9940,
514,
1064,
13,
392,
3167,
4332,
358,
2457,
3263,
1891,
7712,
12123,
2,... |
global wordsizes, pagesizes, dangerous, paranoid_pool_check | global wordsizes, pagesizes, dangerous, paranoid_pool_check, system_default_hpage_size | def main(): global wordsizes, pagesizes, dangerous, paranoid_pool_check testsets = set() env_override = {"QUIET_TEST": "1", "HUGETLBFS_MOUNTS": "", "HUGETLB_ELFMAP": None, "HUGETLB_MORECORE": None} env_defaults = {"HUGETLB_VERBOSE": "0"} dangerous = 0 paranoid_pool_check = False try: opts, args = getopt.getopt(sys.arg... | c5f56f187505f039ebb692a615fefe766830b210 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3715/c5f56f187505f039ebb692a615fefe766830b210/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
4511,
3128,
16,
4689,
3128,
16,
27308,
1481,
16,
779,
304,
839,
67,
6011,
67,
1893,
16,
2619,
67,
1886,
67,
76,
2433,
67,
1467,
1842,
4424,
273,
444,
1435,
1550,
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,
2774,
13332,
2552,
4511,
3128,
16,
4689,
3128,
16,
27308,
1481,
16,
779,
304,
839,
67,
6011,
67,
1893,
16,
2619,
67,
1886,
67,
76,
2433,
67,
1467,
1842,
4424,
273,
444,
1435,
1550,
67,... |
d=utils.getProcessValue(exe, ['-c', 'import sys;sys.exit(1)']) d.addCallback(self.saveValue) ttl = time.time() + 5 while self.value is None and time.time() < ttl: reactor.iterate(0.01) self.failIf(self.value is None, "timeout") self.assertEquals(self.value, 1) | scriptFile = self.makeSourceFile( "import sys\n" "sys.exit(1)\n") | def testValue(self): exe = sys.executable d=utils.getProcessValue(exe, ['-c', 'import sys;sys.exit(1)']) d.addCallback(self.saveValue) ttl = time.time() + 5 while self.value is None and time.time() < ttl: reactor.iterate(0.01) self.failIf(self.value is None, "timeout") self.assertEquals(self.value, 1) | fc28c9bd0f6a10a7f4d537cd072f9e6efd72fd81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/fc28c9bd0f6a10a7f4d537cd072f9e6efd72fd81/test_iutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
620,
12,
2890,
4672,
15073,
273,
2589,
18,
17751,
302,
33,
5471,
18,
588,
2227,
620,
12,
14880,
16,
10228,
17,
71,
2187,
296,
5666,
2589,
31,
9499,
18,
8593,
12,
21,
2506,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
620,
12,
2890,
4672,
15073,
273,
2589,
18,
17751,
302,
33,
5471,
18,
588,
2227,
620,
12,
14880,
16,
10228,
17,
71,
2187,
296,
5666,
2589,
31,
9499,
18,
8593,
12,
21,
2506,
5717,
... |
print 'TRAPPED', what | def trapit(what): print 'TRAPPED', what what.trap(juice.UnhandledRemoteJuiceError) | e56dcf564dc442d95c85eb44f592b6672bad21ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/e56dcf564dc442d95c85eb44f592b6672bad21ad/test_q2q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23034,
305,
12,
23770,
4672,
4121,
18,
27170,
12,
78,
89,
1812,
18,
26952,
5169,
46,
89,
1812,
668,
13,
2,
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,
23034,
305,
12,
23770,
4672,
4121,
18,
27170,
12,
78,
89,
1812,
18,
26952,
5169,
46,
89,
1812,
668,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if currimg_location != 0 or currimg_orientation != 0: | if regenerate_prev_preload_img == True: | def img_in_list_next(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) currimg_location = self.location currimg_orientation = self.orientation if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_i... | 80bd8b120d791a7c2ba16ac790e82ce97ab073e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/80bd8b120d791a7c2ba16ac790e82ce97ab073e3/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3774,
67,
267,
67,
1098,
67,
4285,
12,
2890,
16,
1301,
4672,
309,
365,
18,
2069,
4369,
13606,
67,
3188,
422,
1053,
471,
1301,
480,
315,
1049,
6877,
314,
1612,
18,
3168,
67,
4479,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3774,
67,
267,
67,
1098,
67,
4285,
12,
2890,
16,
1301,
4672,
309,
365,
18,
2069,
4369,
13606,
67,
3188,
422,
1053,
471,
1301,
480,
315,
1049,
6877,
314,
1612,
18,
3168,
67,
4479,
12,
... |
this = apply(_quickfix.new_AllocPositionEffect, args) | this = _quickfix.new_AllocPositionEffect(*args) | def __init__(self, *args): this = apply(_quickfix.new_AllocPositionEffect, 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,
8763,
2555,
12477,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
2555,
12477,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
other = self._convert_other(other) ans = self._check_nans(other, context) if ans: return ans | def __mul__(self, other, context=None): """Return self * other. | 1a63da64df2af26e1f050749c19281f1de9084fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a63da64df2af26e1f050749c19281f1de9084fa/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
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,... | [
1,
1,
1,
1,
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,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
'staff': v.status==STAFF, | 'administrateur': v.status>COACH, | def liste_utilisateurs(request, **kwargs): """ View: list of users coached or administered by visitor. Returns a table of : - group - login - last name - first name - language and other fields related to status of visitor (admin or coach). Sortable on any field(s), filters on group and language.""" # v = utilisateur ... | 5622003147f995391ac97c1031fcc18f24ef8d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11552/5622003147f995391ac97c1031fcc18f24ef8d30/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31614,
67,
1367,
24954,
87,
12,
2293,
16,
2826,
4333,
4672,
3536,
4441,
30,
666,
434,
3677,
1825,
2004,
578,
3981,
1249,
329,
635,
8000,
18,
225,
2860,
279,
1014,
434,
294,
300,
1041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31614,
67,
1367,
24954,
87,
12,
2293,
16,
2826,
4333,
4672,
3536,
4441,
30,
666,
434,
3677,
1825,
2004,
578,
3981,
1249,
329,
635,
8000,
18,
225,
2860,
279,
1014,
434,
294,
300,
1041,
... |
lcov_command = "utils/lcov/lcov -c -d . -o " info_file | lcov_command = "utils/lcov/lcov -c -d . -o " + info_file lcov_command += " --source-dirs=" + os.getcwd () lcov_command += ":" + os.path.join (os.getcwd (), variant.build_root, 'include') | def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = ... | 65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11037,
261,
2890,
4672,
1550,
273,
7518,
1435,
365,
18,
4507,
67,
1711,
67,
1425,
261,
3074,
13,
4946,
273,
1550,
3292,
6743,
3546,
276,
5279,
273,
1550,
18,
1717,
334,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11037,
261,
2890,
4672,
1550,
273,
7518,
1435,
365,
18,
4507,
67,
1711,
67,
1425,
261,
3074,
13,
4946,
273,
1550,
3292,
6743,
3546,
276,
5279,
273,
1550,
18,
1717,
334,
261,
... |
for k, v in req.headers.items(): | for k, v in req.headers.iteritems(): | def do_open(self, http_class, req): host = req.get_host() if not host: raise URLError('no host given') | 4a475db0fc3dcf0df82a9a200f2e376b30c16cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4a475db0fc3dcf0df82a9a200f2e376b30c16cf4/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3190,
12,
2890,
16,
1062,
67,
1106,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
309,
486,
1479,
30,
1002,
1976,
668,
2668,
2135,
1479,
864,
6134,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3190,
12,
2890,
16,
1062,
67,
1106,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
309,
486,
1479,
30,
1002,
1976,
668,
2668,
2135,
1479,
864,
6134,
2,
-100,
-100,
... |
self.randint=random.randomint(0,50) self.significant = unit.getJumpPoint(randint) if (self.significant.isNull ()): self.significant =VS.getPlayer() | localdestination=self.significant.getName() self.adjsys=go_somewhere_significant(self.you,0,500) VS.IOmessage (0,"bounty mission",self.mplay,"You must destroy the %s unit in this system." % (self.newship)) self.obj=VS.addObjective("Destroy the %s unit" % (self.newship)) if (runaway): VS.IOmessage (3,"bounty mission",se... | def loop (self): isSig=0 enemy=VS.Unit() if (self.you.isNull()): self.Lose (1) return if (self.arrived==3): enemy=self.enemy if (not self.istarget): curun=VS.getUnit(curiter) if (enemy): if (curun==enemy): enemy.setTarget(you) curiter+=1 if (you.isNull()): Lose(1) return if (enemy.isNull()): Win(you,1) return elif (sel... | 01c74a005f05deeef344e87dd9b3307384539eb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/01c74a005f05deeef344e87dd9b3307384539eb6/bounty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
570,
351,
93,
33,
14640,
18,
2802,
1435,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
570,
351,
93,
33,
14640,
18,
2802,
1435,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
26... |
main() | main(sys.argv[1:]) | def main(): app = App() app.MainLoop() | de61a32ba86556190e884def657cad76bf6b59d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/de61a32ba86556190e884def657cad76bf6b59d7/wxviewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
595,
273,
4677,
1435,
595,
18,
6376,
6452,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
595,
273,
4677,
1435,
595,
18,
6376,
6452,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if aq_base(accessed) is aq_base(container): raise Unauthorized, name return 0 | raise Unauthorized, name | def validate(self, accessed, container, name, value, *args): if aq_base(accessed) is aq_base(container): raise Unauthorized, name return 0 | 3e1072c98505121089b41cddfa4af4a4fe2de277 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3e1072c98505121089b41cddfa4af4a4fe2de277/testTraverse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
15539,
16,
1478,
16,
508,
16,
460,
16,
380,
1968,
4672,
309,
279,
85,
67,
1969,
12,
1077,
3692,
13,
353,
279,
85,
67,
1969,
12,
3782,
4672,
1002,
15799,
16,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
12,
2890,
16,
15539,
16,
1478,
16,
508,
16,
460,
16,
380,
1968,
4672,
309,
279,
85,
67,
1969,
12,
1077,
3692,
13,
353,
279,
85,
67,
1969,
12,
3782,
4672,
1002,
15799,
16,
508,
... |
raise ValueError, 'Disallowed suboject type: %s' % type_name | raise ValueError, 'Disallowed subobject type: %s' % type_name | def invokeFactory( self , type_name , id , RESPONSE=None , *args , **kw ): ''' Invokes the portal_types tool. ''' pt = getToolByName( self, 'portal_types' ) myType = pt.getTypeInfo(self) | 08237969d22c2d7e91af4f53d47617c5bc8ce9f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/08237969d22c2d7e91af4f53d47617c5bc8ce9f4/PortalFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
1733,
12,
365,
269,
618,
67,
529,
269,
612,
269,
20645,
33,
7036,
269,
380,
1968,
269,
2826,
9987,
262,
30,
9163,
22737,
326,
11899,
67,
2352,
5226,
18,
9163,
5818,
273,
336,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
1733,
12,
365,
269,
618,
67,
529,
269,
612,
269,
20645,
33,
7036,
269,
380,
1968,
269,
2826,
9987,
262,
30,
9163,
22737,
326,
11899,
67,
2352,
5226,
18,
9163,
5818,
273,
336,
636... |
('importing_3000_event_calendar', ' | ('importing_3000_event_calendar', ' | def __init__(self): self._app_path = os.getcwd() self._options = { 'tbox_data': '.', # raw .perf files 'html_data': '.', # where to output generated .html 'perf_data': '.', # where to store processed data 'verbose': False, 'debug': False, 'cleanup': False, # remove .perf files when processed 'c... | 529018113dc78215bd476acf6fba265caad9be59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/529018113dc78215bd476acf6fba265caad9be59/perf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
2910,
67,
803,
273,
1140,
18,
588,
11089,
1435,
365,
6315,
2116,
225,
273,
288,
296,
88,
2147,
67,
892,
4278,
225,
2611,
16,
565,
468,
1831,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
2910,
67,
803,
273,
1140,
18,
588,
11089,
1435,
365,
6315,
2116,
225,
273,
288,
296,
88,
2147,
67,
892,
4278,
225,
2611,
16,
565,
468,
1831,... |
def get_coll_sons(coll, type='r'): "Returns a list of sons (first-level descendants) of type 'type' for collection 'coll'." | def get_coll_sons(coll, type='r', public_only=1): """Return a list of sons (first-level descendants) of type 'type' for collection 'coll'. If public_only, then return only non-restricted son collections. """ | def get_coll_sons(coll, type='r'): "Returns a list of sons (first-level descendants) of type 'type' for collection 'coll'." coll_sons = [] query = "SELECT c.name FROM collection AS c "\ "LEFT JOIN collection_collection AS cc ON c.id=cc.id_son "\ "LEFT JOIN collection AS ccc ON ccc.id=cc.id_dad "\ "WHERE cc.type='%s' AN... | 5a6b2c9f17ea6124b0e34ecd2fae45f2658892c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/5a6b2c9f17ea6124b0e34ecd2fae45f2658892c4/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12910,
67,
816,
87,
12,
12910,
16,
618,
2218,
86,
2187,
1071,
67,
3700,
33,
21,
4672,
3536,
990,
279,
666,
434,
272,
7008,
261,
3645,
17,
2815,
18039,
13,
434,
618,
296,
723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12910,
67,
816,
87,
12,
12910,
16,
618,
2218,
86,
2187,
1071,
67,
3700,
33,
21,
4672,
3536,
990,
279,
666,
434,
272,
7008,
261,
3645,
17,
2815,
18039,
13,
434,
618,
296,
723... |
print "failed to rpm match %s"%(pkg.attrib['file']) | print "failed to rpm match %s" % (pkg.get('file')) | def Index(self): XMLFileBacked.Index(self) self.packages = {} for location in self.entries: for pkg in location.getchildren(): if pkg.attrib.has_key("file"): m = self.rpm.match(pkg.attrib['file']) if not m: print "failed to rpm match %s"%(pkg.attrib['file']) continue self.packages[m.group('name')] = m.groupdict() self.... | fe4c4bba4671f11b3b2de9aa66c29987971e4fe1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/fe4c4bba4671f11b3b2de9aa66c29987971e4fe1/pkgmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3340,
12,
2890,
4672,
3167,
812,
2711,
329,
18,
1016,
12,
2890,
13,
365,
18,
10308,
273,
2618,
364,
2117,
316,
365,
18,
8219,
30,
364,
3475,
316,
2117,
18,
588,
5906,
13332,
309,
3475,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3340,
12,
2890,
4672,
3167,
812,
2711,
329,
18,
1016,
12,
2890,
13,
365,
18,
10308,
273,
2618,
364,
2117,
316,
365,
18,
8219,
30,
364,
3475,
316,
2117,
18,
588,
5906,
13332,
309,
3475,... |
p[0] = p[1] | if p[1][0] == '$': try: p[0] = p.parser.aliases[p[1]] except KeyError: raise pywbem.CIMError(pywbem.CIM_ERR_FAILED, 'Unknown alias: ' + p[0]) else: p[0] = p[1] | def p_referenceInitializer(p): """referenceInitializer : objectHandle | aliasIdentifier """ p[0] = p[1] | b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7/mof_compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
6180,
14729,
12,
84,
4672,
3536,
6180,
14729,
294,
733,
3259,
571,
2308,
3004,
3536,
309,
293,
63,
21,
6362,
20,
65,
422,
3365,
4278,
775,
30,
293,
63,
20,
65,
273,
293,
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,
293,
67,
6180,
14729,
12,
84,
4672,
3536,
6180,
14729,
294,
733,
3259,
571,
2308,
3004,
3536,
309,
293,
63,
21,
6362,
20,
65,
422,
3365,
4278,
775,
30,
293,
63,
20,
65,
273,
293,
18,... |
pv11 = FakePackage('perl-version', '1', '1', '0', 'i386') pv11.addRequires('perl', 'GE', ('0', '0', '0')) pv11.addRequires('perl', 'EQ', ('0', '1', '1')) | pvi11 = FakePackage('perl-version', '1', '1', '0', 'i386') pvi11.addRequires('perl', 'GE', ('0', '0', '0')) pvi11.addRequires('perl', 'EQ', ('0', '1', '1')) pvr11 = FakePackage('perl-version', '1', '1', '0', 'i386') pvr11.addRequires('perl', 'GE', ('0', '0', '0')) pvr11.addRequires('perl', 'EQ', ('0', '1', '1')) | def testUpdateMultiRequiresVersions2(self): p11 = FakePackage('perl', '1', '1', '0', 'i386') p12 = FakePackage('perl', '1', '2', '0', 'i386') | 6a23ca8e00877ebb3ae8ffc0444acb278bcf940b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/6a23ca8e00877ebb3ae8ffc0444acb278bcf940b/simpleupdatetests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1891,
5002,
21671,
5940,
22,
12,
2890,
4672,
293,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
293,
2138,
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,
1842,
1891,
5002,
21671,
5940,
22,
12,
2890,
4672,
293,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
293,
2138,
27... |
return self(self.hecke_operator(f.qexp(), m)) | return self(self.hecke_operator(f.q_expansion(), m)) | def hecke_operator(self, f, m): r""" Given an element `f` and an integer `m`, calculates the Hecke operator `T_m` acting on `f`. | 3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
... |
text = node.astext().replace('-','\-') | text = node.astext() text = text.replace('\\','\\e') text = text.replace('-','\-') | def visit_Text(self, node): text = node.astext().replace('-','\-') text = text.replace("'","\\'") self.body.append(text) | a67bff9facb946f69f60f7acf89f43d92a27bb99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/a67bff9facb946f69f60f7acf89f43d92a27bb99/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1528,
12,
2890,
16,
756,
4672,
977,
273,
756,
18,
689,
408,
1435,
977,
273,
977,
18,
2079,
2668,
1695,
17023,
1695,
73,
6134,
977,
273,
977,
18,
2079,
2668,
17,
2187,
8314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1528,
12,
2890,
16,
756,
4672,
977,
273,
756,
18,
689,
408,
1435,
977,
273,
977,
18,
2079,
2668,
1695,
17023,
1695,
73,
6134,
977,
273,
977,
18,
2079,
2668,
17,
2187,
8314,
... |
if __name__ == '__main__': unittest.main(defaultTest='suite') else: | def test_main(): | def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestMessageAPI)) suite.addTest(unittest.makeSuite(TestEncoders)) suite.addTest(unittest.makeSuite(TestLongHeaders)) suite.addTest(unittest.makeSuite(TestFromMangling)) suite.addTest(unittest.makeSuite(TestMIMEAudio)) suite.addTest(unittest.makeS... | 78f0dd3397f77df3b4b3d13c686a33af14a70af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78f0dd3397f77df3b4b3d13c686a33af14a70af8/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
4873,
3813,
18,
6540,
13587,
12,
4709,
1079,
2557,
3719,
11371,
18,
1289,
4709,
12,
4873,
3813,
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,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
4873,
3813,
18,
6540,
13587,
12,
4709,
1079,
2557,
3719,
11371,
18,
1289,
4709,
12,
4873,
3813,
18,
... |
sm_w_bias = local_softmax_with_bias.transform(sm) | sm_w_bias = local_softmax_with_bias.transform(sm.owner) | def local_advanced_indexing_crossentropy_onehot(node): log = None sm = None # First case: log(softmax(x))[rows, labels] if isinstance(node.op, tensor.AdvancedSubtensor): try: log, rows, labels = node.inputs except: pass if log and log.owner and log.owner.op == tensor.log: sm = log.owner.inputs[0] # Second case: log(so... | b72de01187dc2e253cab806d461ad3e1c73aa00f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/b72de01187dc2e253cab806d461ad3e1c73aa00f/nnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
27080,
67,
1615,
310,
67,
14653,
21937,
67,
476,
15224,
12,
2159,
4672,
613,
273,
599,
3029,
273,
599,
468,
5783,
648,
30,
613,
12,
9269,
1896,
12,
92,
3719,
63,
3870,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
27080,
67,
1615,
310,
67,
14653,
21937,
67,
476,
15224,
12,
2159,
4672,
613,
273,
599,
3029,
273,
599,
468,
5783,
648,
30,
613,
12,
9269,
1896,
12,
92,
3719,
63,
3870,
16,
... |
print "buildappbundle creates an application bundle" print "Usage:" print " buildappbundle [options] executable" print "Options:" print " --output o Output file; default executable with .app appended, short -o" print " --link Symlink the executable (default: copy), short -l" print " --plist file Plist fi... | print __doc__ | def usage(): print "buildappbundle creates an application bundle" print "Usage:" print " buildappbundle [options] executable" print "Options:" print " --output o Output file; default executable with .app appended, short -o" print " --link Symlink the executable (default: copy), short -l" print " --plist f... | 9ba26874386b82d533ac595d6e8c747aea05b491 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9ba26874386b82d533ac595d6e8c747aea05b491/buildappbundle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1001,
2434,
972,
2589,
18,
8593,
12,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
4084,
13332,
1172,
1001,
2434,
972,
2589,
18,
8593,
12,
21,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fileList.append(dir+'/'+fname) | fileList.append(dir+'/'+os.path.basename(fname)) | def findFilesByMetadata(self,metaDict,credDict): """ Find Files satisfying the given metadata """ result = self.findDirectoriesByMetadata(metaDict,credDict) if not result['OK']: return result dirList = result['Value'] fileList = [] result = self.listDirectory(dirList,credDict) if not result['OK']: return result for ... | a73a85d5810652ff6c774d5692eb03af31979b51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/a73a85d5810652ff6c774d5692eb03af31979b51/DirectoryMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2697,
858,
2277,
12,
2890,
16,
3901,
5014,
16,
20610,
5014,
4672,
3536,
4163,
6471,
9281,
14946,
326,
864,
1982,
3536,
225,
563,
273,
365,
18,
4720,
13071,
858,
2277,
12,
3901,
501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2697,
858,
2277,
12,
2890,
16,
3901,
5014,
16,
20610,
5014,
4672,
3536,
4163,
6471,
9281,
14946,
326,
864,
1982,
3536,
225,
563,
273,
365,
18,
4720,
13071,
858,
2277,
12,
3901,
501... |
defines_classes = False for doc in self.valdocs: if isinstance(doc, ClassDoc): defines_classes = True; break | defines_classes = len(self.class_list) > 0 | def write_trees(self, out): """ Write an HTML page containing the module and class hierarchies to the given streams. @param public: The output stream for the public version of the page. @param private: The output stream for the private version of the page. """ # Header material. self.write_header(out, 'Trees') self.wri... | 28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17204,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1605,
471,
667,
366,
5148,
606,
358,
326,
864,
8205,
18,
632,
891,
1071,
30,
1021,
876,
1407,
364,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17204,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1605,
471,
667,
366,
5148,
606,
358,
326,
864,
8205,
18,
632,
891,
1071,
30,
1021,
876,
1407,
364,
326... |
UriEnumElement.__init__(self, tag='transparency', | UriEnumElement.__init__(self, tag='transparency', | def __init__(self, extension_elements=None, extension_attributes=None, text=None): UriEnumElement.__init__(self, tag='transparency', enum_map=Transparency.transparency_enum, extension_elements=extension_elements, extension_attributes=extension_attributes, text=text) | 6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
10693,
3572,
1046,
16186,
2738,
972,
12,
2890,
16,
1047,
2218,
2338,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
10693,
3572,
1046,
16186,
2738,
972,
12,
2890,
16,
1047,
2218,
2338,
182... |
if len(self.peers[peer_permid]) == 3: | if len(self.peers[peer_permid]) > 2: | def updatePeerPref(self, peer_permid): peerprefs = [] for p in self.pref_db.getPrefList(peer_permid): peerprefs.append(hash(p)) peerprefs.sort() peerprefs = array('l', peerprefs) if len(self.peers[peer_permid]) == 3: self.peers[peer_permid][2] = peerprefs elif len(self.peers[peer_permid]) == 2: self.peers[peer_permid]... | 11ea952386413345e23238ec9328fff04bf27cec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/11ea952386413345e23238ec9328fff04bf27cec/buddycast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6813,
23218,
12,
2890,
16,
4261,
67,
12160,
350,
4672,
4261,
1484,
2556,
273,
5378,
364,
293,
316,
365,
18,
25724,
67,
1966,
18,
588,
23218,
682,
12,
12210,
67,
12160,
350,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6813,
23218,
12,
2890,
16,
4261,
67,
12160,
350,
4672,
4261,
1484,
2556,
273,
5378,
364,
293,
316,
365,
18,
25724,
67,
1966,
18,
588,
23218,
682,
12,
12210,
67,
12160,
350,
4672,
... |
self.log.info( 'Reference %s for TaskQueueID %s' % ( glite_id, taskQueueID ) ) | self.log.info( 'Reference %s for TaskQueue %s' % ( glite_id, taskQueueID ) ) | def parseJobSubmitStdout(self, proxy, cmd, taskQueueID): """ Parse Job Submit stdout to return pilot reference """ start = time.time() self.log.verbose( 'Executing Job Submit for TaskQueueID:', taskQueueID ) | 6271afc9c4bbb66e2201ad46655c110521589002 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6271afc9c4bbb66e2201ad46655c110521589002/TaskQueueDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2278,
11620,
27334,
12,
2890,
16,
2889,
16,
1797,
16,
1562,
3183,
734,
4672,
3536,
2884,
3956,
17320,
3909,
358,
327,
293,
22797,
2114,
3536,
787,
273,
813,
18,
957,
1435,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2278,
11620,
27334,
12,
2890,
16,
2889,
16,
1797,
16,
1562,
3183,
734,
4672,
3536,
2884,
3956,
17320,
3909,
358,
327,
293,
22797,
2114,
3536,
787,
273,
813,
18,
957,
1435,
365,
18,... |
write_message('argv=%s' % argv, verbose=9) write_message('_options=%s' % _options, verbose=9) write_message('_task_params=%s' % _task_params, verbose=9) | write_message('argv=%s' % (argv, ), verbose=9) write_message('_options=%s' % (_options, ), verbose=9) write_message('_task_params=%s' % (_task_params, ), verbose=9) | def task_init( authorization_action="", authorization_msg="", description="", help_specific_usage="", version=__revision__, specific_params=("", []), task_stop_helper_fnc=None, task_submit_elaborate_specific_parameter_fnc=None, task_submit_check_options_fnc=None, task_run_fnc=None): """ Initialize a BibTask. @param aut... | 59e2916c2f1eae13a9e6baba21e42d58381074ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/59e2916c2f1eae13a9e6baba21e42d58381074ab/bibtask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
67,
2738,
12,
6093,
67,
1128,
1546,
3113,
6093,
67,
3576,
1546,
3113,
2477,
1546,
3113,
2809,
67,
12524,
67,
9167,
1546,
3113,
1177,
33,
972,
13057,
972,
16,
2923,
67,
2010,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
12,
6093,
67,
1128,
1546,
3113,
6093,
67,
3576,
1546,
3113,
2477,
1546,
3113,
2809,
67,
12524,
67,
9167,
1546,
3113,
1177,
33,
972,
13057,
972,
16,
2923,
67,
2010,
33,
... |
e.height = getint(h) e.keycode = getint(k) try: e.state = getint(s) except ValueError: e.state = s e.time = getint(t) e.width = getint(w) e.x = getint(x) e.y = getint(y) | e.height = getint_event(h) e.keycode = getint_event(k) e.state = getint_event(s) e.time = getint_event(t) e.width = getint_event(w) e.x = getint_event(x) e.y = getint_event(y) | def _substitute(self, *args): """Internal function.""" if len(args) != len(self._subst_format): return args getboolean = self.tk.getboolean getint = int nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args # Missing: (a, c, d, m, o, v, B, R) e = Event() e.serial = getint(nsign) e.num = getint(b) try: e.fo... | 043bbc7da387f613f3ce60c20063e2a29baff372 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/043bbc7da387f613f3ce60c20063e2a29baff372/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
12,
2890,
16,
380,
1968,
4672,
3536,
3061,
445,
12123,
309,
562,
12,
1968,
13,
480,
562,
12,
2890,
6315,
1717,
334,
67,
2139,
4672,
327,
833,
336,
6494,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
12,
2890,
16,
380,
1968,
4672,
3536,
3061,
445,
12123,
309,
562,
12,
1968,
13,
480,
562,
12,
2890,
6315,
1717,
334,
67,
2139,
4672,
327,
833,
336,
6494,
273,
365,
18,... |
transaction.get().note('Update "%s" on Naaya site "%s"' % | transaction.note('Update "%s" on Naaya site "%s"' % | def update(self, portal, do_dry_run): self._setup_logger() | c0e2ecdfd459bf95d1f9458f04b4413e7cbb7a26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/c0e2ecdfd459bf95d1f9458f04b4413e7cbb7a26/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
11899,
16,
741,
67,
25011,
67,
2681,
4672,
365,
6315,
8401,
67,
4901,
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,
... | [
1,
1,
1,
1,
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,
1089,
12,
2890,
16,
11899,
16,
741,
67,
25011,
67,
2681,
4672,
365,
6315,
8401,
67,
4901,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
dprint("No top level BufferFrames found!") | dprint("No top level Peppy frames found!") | def getTopFrame(self): frame = self.GetTopWindow() if not isinstance(frame, BufferFrame): # FIXME: can this ever happen? dprint("Top window not a BufferFrame!") for frame in wx.GetTopLevelWindows(): if isinstance(frame, BufferFrame): return frame dprint("No top level BufferFrames found!") return frame | 13dd876a66bf59a2d21987ccf64e24a367ed067f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/13dd876a66bf59a2d21987ccf64e24a367ed067f/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
3219,
12,
2890,
4672,
2623,
273,
365,
18,
967,
3401,
3829,
1435,
309,
486,
1549,
12,
3789,
16,
3525,
3219,
4672,
468,
9852,
30,
848,
333,
14103,
5865,
35,
302,
1188,
2932,
3401,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13729,
3219,
12,
2890,
4672,
2623,
273,
365,
18,
967,
3401,
3829,
1435,
309,
486,
1549,
12,
3789,
16,
3525,
3219,
4672,
468,
9852,
30,
848,
333,
14103,
5865,
35,
302,
1188,
2932,
3401,
... |
children = [dom_to_html(c) for c in tree.childNodes] | children = [self._dom_to_html(c) for c in tree.childNodes] | def get_index_items(self, tree, base, dict=None): if dict == None: dict = {} if isinstance(tree, _Text): return dict elif tree.tagName != 'index': for child in tree.childNodes: self.get_index_items(child, base, dict) else: children = [dom_to_html(c) for c in tree.childNodes] key = ''.join(children).lower().strip() if ... | c953b2de7aa23b0dce9a80366ed13af227c1f7f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/c953b2de7aa23b0dce9a80366ed13af227c1f7f3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
3319,
12,
2890,
16,
2151,
16,
1026,
16,
2065,
33,
7036,
4672,
309,
2065,
422,
599,
30,
2065,
273,
2618,
225,
309,
1549,
12,
3413,
16,
389,
1528,
4672,
327,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
3319,
12,
2890,
16,
2151,
16,
1026,
16,
2065,
33,
7036,
4672,
309,
2065,
422,
599,
30,
2065,
273,
2618,
225,
309,
1549,
12,
3413,
16,
389,
1528,
4672,
327,
2065,
1... |
self.assy.w.statusBar.message("<span style=\"color: | msg = "<span style=\"color: self.assy.w.statusBar.message(msg) | def saveMovie(self, moviefile, filesize): filePath = os.path.dirname(os.path.abspath(sys.argv[0])) program = filePath + '/../bin/simulator' args = [program, '-f' + str(self.nframes), '-t' + str(self.temp), '-i' + str(self.stepsper), str(self.fileform), '-o' + moviefile, self.assy.filename] basename = os.path.basenam... | de0b74280ba97f2f540e3b505a70615043ac120f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/de0b74280ba97f2f540e3b505a70615043ac120f/runSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
16727,
13120,
12,
2890,
16,
21360,
768,
16,
14104,
4672,
225,
4612,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
9499,
18,
19485,
63,
20,
22643,
5402,
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,
1923,
16727,
13120,
12,
2890,
16,
21360,
768,
16,
14104,
4672,
225,
4612,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
9499,
18,
19485,
63,
20,
22643,
5402,
273,... |
print 'FAILED 1' | def load_extra_configuration(self, slaves_dir): slave_xml_file = os.path.join(slaves_dir, self.slavename + '.xml') if not os.path.exists(slave_xml_file): return try: cfg = ET.parse(slave_xml_file) except: # parse error return | fd2e5a03acd78fd20b4108f22ca2442709dfcaac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/fd2e5a03acd78fd20b4108f22ca2442709dfcaac/bot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
7763,
67,
7025,
12,
2890,
16,
30403,
67,
1214,
4672,
11735,
67,
2902,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2069,
6606,
67,
1214,
16,
365,
18,
2069,
842,
1069,
397,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
7763,
67,
7025,
12,
2890,
16,
30403,
67,
1214,
4672,
11735,
67,
2902,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2069,
6606,
67,
1214,
16,
365,
18,
2069,
842,
1069,
397,
24... | |
return res def load_using_args(): import sys cfg = TinuResult() try: cfg.load_file(sys.argv[1]) except IndexError: sys.stderr.write("Usage: %s <filename>\n" % sys.argv[0]) sys.exit(-1) return cfg | load_using_args().save_backend(backend) | def _(*args): res.append(' '.join(map(str, args))) | f809f388ba16b0d594155c0b3703be8316710995 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13126/f809f388ba16b0d594155c0b3703be8316710995/sqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30857,
1968,
4672,
400,
18,
6923,
2668,
2418,
5701,
12,
1458,
12,
701,
16,
833,
20349,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30857,
1968,
4672,
400,
18,
6923,
2668,
2418,
5701,
12,
1458,
12,
701,
16,
833,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
plane. For perspective projection, (x,y) on this plane is different than that on the plane | plane. For perspective projection, (x, y) on this plane is different than that on the plane | def project_2d_noeyeball(self, pt): """ Bruce: Project a point into our plane (ignoring eyeball). Warning: arbitrary origin! Huaicai 4/20/05: This is just to project pt into a 2d coordinate system (self.right, self.up) on a plane through pt and parallel to the screen plane. For perspective projection, (x,y) on this pl... | be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
22,
72,
67,
2135,
402,
73,
19067,
12,
2890,
16,
5818,
4672,
3536,
605,
86,
3965,
30,
5420,
279,
1634,
1368,
3134,
11017,
261,
724,
6053,
16098,
19067,
2934,
9728,
30,
11078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1984,
67,
22,
72,
67,
2135,
402,
73,
19067,
12,
2890,
16,
5818,
4672,
3536,
605,
86,
3965,
30,
5420,
279,
1634,
1368,
3134,
11017,
261,
724,
6053,
16098,
19067,
2934,
9728,
30,
11078,
... |
video_len = len(chapter.picts)*5 | video_len = self.__count_picts_in_chapter(chapter)*5 | def __check_sound(self, chapter): chapter.wav_name_in = os.path.join(chapter.mpeg_dir, chapter.esc_name+"-in.wav") chapter.props.wav_name = os.path.join(chapter.mpeg_dir, chapter.esc_name+".wav") wav_cmd = "madplay '%s' --output=wave:'%s'" join_wav = "qwavjoin -o '%s' '%s'" cut_wav = "qwavcut -d -B %ds '%s'" mp2_cmd = ... | 197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
29671,
12,
2890,
16,
23580,
4672,
23580,
18,
24801,
67,
529,
67,
267,
273,
1140,
18,
803,
18,
5701,
12,
31254,
18,
19951,
67,
1214,
16,
23580,
18,
742,
67,
529,
9078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
29671,
12,
2890,
16,
23580,
4672,
23580,
18,
24801,
67,
529,
67,
267,
273,
1140,
18,
803,
18,
5701,
12,
31254,
18,
19951,
67,
1214,
16,
23580,
18,
742,
67,
529,
9078,
... |
import win32api, win32con, win32process launcher = win32_launcher | import win32api, win32con, win32process launcher = win32_launcher | def win32_launcher(commandline): startupInfo = win32process.STARTUPINFO() startupInfo.dwFlags = win32process.DETACHED_PROCESS | win32process.STARTF_USESHOWWINDOW startupInfo.wShowWindow = win32con.SW_HIDE hProcess, hThread, dwProcessId, dwThreadId = \ win32process.CreateProcess(None, commandline, None, None, 0, 0, None... | cb21993c059a29db03180285e4c1a09e1235d9a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/cb21993c059a29db03180285e4c1a09e1235d9a2/converter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1578,
67,
20738,
264,
12,
3076,
1369,
4672,
11850,
966,
273,
5657,
1578,
2567,
18,
7570,
3079,
5923,
1435,
11850,
966,
18,
22512,
5094,
273,
5657,
1578,
2567,
18,
40,
31370,
15023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5657,
1578,
67,
20738,
264,
12,
3076,
1369,
4672,
11850,
966,
273,
5657,
1578,
2567,
18,
7570,
3079,
5923,
1435,
11850,
966,
18,
22512,
5094,
273,
5657,
1578,
2567,
18,
40,
31370,
15023,
... |
self.base = uri if self.base[0]=='/': self.base = self.base[1:] | def __init__(self, uri): | c221161293001bc4d2c6c94dbffefd063d83c329 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/c221161293001bc4d2c6c94dbffefd063d83c329/URLParse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
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,
1001,
2738,
972,
12,
2890,
16,
2003,
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... | |
assert iter(it) is it | test.assert_(iter(it) is it) | def compare_generic_iter(make_it,match): """Utility to compare a generic 2.1/2.2+ iterator with an iterable If running under Python 2.2+, this tests the iterator using iter()/next(), as well as __getitem__. 'make_it' must be a function returning a fresh iterator to be tested (since this may test the iterator twice)."... | 6b166c3d9f550f5f5f0c2f88df2f8951fe0fa2d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6b166c3d9f550f5f5f0c2f88df2f8951fe0fa2d3/test_wsgiref.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
13540,
67,
2165,
12,
6540,
67,
305,
16,
1916,
4672,
3536,
6497,
358,
3400,
279,
5210,
576,
18,
21,
19,
22,
18,
22,
15,
2775,
598,
392,
6087,
225,
971,
3549,
3613,
6600,
576... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3400,
67,
13540,
67,
2165,
12,
6540,
67,
305,
16,
1916,
4672,
3536,
6497,
358,
3400,
279,
5210,
576,
18,
21,
19,
22,
18,
22,
15,
2775,
598,
392,
6087,
225,
971,
3549,
3613,
6600,
576... |
if i==0 and type(f) != list: | if i == 0 and type(f) != list: | def load(self): CM = self.COMPMAP CF = self.COMPFLAGS Pkg = RPMPackage Prv = RPMProvides NPrv = RPMNameProvides PreReq = RPMPreRequires Req = RPMRequires Obs = RPMObsoletes Cnf = RPMConflicts prog = iface.getProgress(self._cache) for h, offset in self.getHeaders(prog): if h[1106]: # RPMTAG_SOURCEPACKAGE continue arch =... | d383b28f0eb391187f0d9a46f6abdb2d3bc54f4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/d383b28f0eb391187f0d9a46f6abdb2d3bc54f4a/header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
15871,
273,
365,
18,
10057,
8352,
6123,
273,
365,
18,
10057,
17836,
453,
14931,
273,
534,
12728,
2261,
2301,
90,
273,
534,
12728,
17727,
423,
2050,
90,
273,
534,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
15871,
273,
365,
18,
10057,
8352,
6123,
273,
365,
18,
10057,
17836,
453,
14931,
273,
534,
12728,
2261,
2301,
90,
273,
534,
12728,
17727,
423,
2050,
90,
273,
534,
12... |
new_keysyms.append('') | unicode_char = '' if unicode_char == u'\x00': unicode_char = '' new_keysyms.append(unicode_char) | def get_keymap_table(): keymap = {} keymap_table = cmd_keymap_table() re_line = re.compile(r'0x\w+') for line in keymap_table.split('\n')[1:]: if len(line) > 0: keycode = re.search(r'\s+(\d+).*', line) if keycode: new_keysyms = [] keycode = int(keycode.group(1)) keysyms = re_line.findall(line) # When you press only o... | e8245fe51ea61f1764c2053166427459a0c9f3ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4183/e8245fe51ea61f1764c2053166427459a0c9f3ad/modmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
1458,
67,
2121,
13332,
498,
1458,
273,
2618,
225,
498,
1458,
67,
2121,
273,
1797,
67,
856,
1458,
67,
2121,
1435,
225,
283,
67,
1369,
273,
283,
18,
11100,
12,
86,
11,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
856,
1458,
67,
2121,
13332,
498,
1458,
273,
2618,
225,
498,
1458,
67,
2121,
273,
1797,
67,
856,
1458,
67,
2121,
1435,
225,
283,
67,
1369,
273,
283,
18,
11100,
12,
86,
11,
20... |
for i in range(0,4): for j in range(0,4): lin[k*4+j,k*4+i]= l[(i-j)%4] ** (2**j) | for i in range(0, 4): for j in range(0, 4): lin[k*4+j, k*4+i] = l[(i-j)%4] ** (2**j) | def lin_matrix(self, length = None): """ Return the Lin matrix. | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
273,
599,
4672,
3536,
2000,
326,
27865,
3148,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
273,
599,
4672,
3536,
2000,
326,
27865,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.cpu = self.sensor(case[0], case[1], self.hotstack) | self.case = self.sensor(case[0], case[1], self.hotstack) | def __init__(self, cpu='temp3', case='temp2' , ram='MemTotal'): IdleBarPlugin.__init__(self) self.hotstack = 0 self.case = None if isinstance (cpu,types.StringType): self.cpu = self.sensor(cpu, '@', self.hotstack) else: self.cpu = self.sensor(cpu[0], cpu[1], self.hotstack) if case: if isinstance (case,types.StringT... | 953ae8df92661bcbc5d580f7cd283c946001766a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/953ae8df92661bcbc5d580f7cd283c946001766a/system.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8326,
2218,
5814,
23,
2187,
648,
2218,
5814,
22,
11,
269,
24975,
2218,
3545,
5269,
11,
4672,
28156,
5190,
3773,
16186,
2738,
972,
12,
2890,
13,
282,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8326,
2218,
5814,
23,
2187,
648,
2218,
5814,
22,
11,
269,
24975,
2218,
3545,
5269,
11,
4672,
28156,
5190,
3773,
16186,
2738,
972,
12,
2890,
13,
282,
365,
... |
options, arg=getopt.getopt(args, 'ad:f:') | options, arg=getopt.getopt(args, 'ahd:f:') if not options: err_exit(usage_msg) | def main(args): usage_msg="""Usage: python testrunner.py [options] If run without options, testrunner will run all test suites found in all subdirectories of the current working directory. options: -a Run all tests found in all subdirectories of the current working directory. This is the default if no options are ... | b26ccc00e07a9e28efae6443a91327ceedcfb9fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b26ccc00e07a9e28efae6443a91327ceedcfb9fe/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
225,
4084,
67,
3576,
1546,
3660,
5357,
30,
5790,
268,
281,
313,
318,
1224,
18,
2074,
306,
2116,
65,
225,
971,
1086,
2887,
702,
16,
268,
281,
313,
318,
1224,
903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
4672,
225,
4084,
67,
3576,
1546,
3660,
5357,
30,
5790,
268,
281,
313,
318,
1224,
18,
2074,
306,
2116,
65,
225,
971,
1086,
2887,
702,
16,
268,
281,
313,
318,
1224,
903,
... |
['sage/rings/complex_number.pyx'], libraries = ['mpfr', 'gmp']) | ['sage/rings/complex_number.pyx'], libraries = ['mpfr', 'gmp']) | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | c82811cc0b935d826f6cfba833e4406f8eb9ed19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c82811cc0b935d826f6cfba833e4406f8eb9ed19/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
bmark.CreateTestsFromFile('%s/data/alexa-top-10000-global.txt' % NB_SOURCE) | bmark.updateStatus = self.updateStatus self.updateStatus('Creating test records using %s' % self.select_mode) if self.imported_records: bmark.CreateTests(self.imported_records, select_mode=self.select_mode) else: bmark.CreateTestsFromFile('%s/data/alexa-top-10000-global.txt' % NB_SOURCE, select_mode=self.select_mode) | def benchmarkThread(self): pool = NSAutoreleasePool.alloc().init() self.spinner.startAnimation_(self) self.updateStatus('Preparing benchmark') self.nameservers.FindAndRemoveUndesirables() bmark = benchmark.Benchmark(self.nameservers, test_count=self.options.test_count, run_count=self.options.run_count, status_callback=... | 2efff298c0e3e5887eb2e75f30d510cdabf74f23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/2efff298c0e3e5887eb2e75f30d510cdabf74f23/controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14128,
3830,
12,
2890,
4672,
2845,
273,
423,
5233,
322,
479,
2508,
2864,
18,
9853,
7675,
2738,
1435,
365,
18,
1752,
7872,
18,
1937,
10816,
67,
12,
2890,
13,
365,
18,
2725,
1482,
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,
14128,
3830,
12,
2890,
4672,
2845,
273,
423,
5233,
322,
479,
2508,
2864,
18,
9853,
7675,
2738,
1435,
365,
18,
1752,
7872,
18,
1937,
10816,
67,
12,
2890,
13,
365,
18,
2725,
1482,
2668,
... |
args=args[len(groups[0])-1:].lstrip() groups=groups[0].split(',') groups=[conv.group.account.getGroup(group.lstrip(' | args = args[len(groups[0])-1:].lstrip() acct = conv.group.account groups = groups[0].split(',') groups = [acct.getGroup(group.lstrip(' | def irccmd_join(self, args, conv): groups=args.split() | f5f4c4cc763305a9c877458f820e84ec3bc8fd3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/f5f4c4cc763305a9c877458f820e84ec3bc8fd3d/ajazz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
952,
1264,
67,
5701,
12,
2890,
16,
833,
16,
6292,
4672,
3252,
33,
1968,
18,
4939,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9482,
952,
1264,
67,
5701,
12,
2890,
16,
833,
16,
6292,
4672,
3252,
33,
1968,
18,
4939,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def clear(*args): return apply(_quickfix.NullLog_clear, args) def backup(*args): return apply(_quickfix.NullLog_backup, args) def onIncoming(*args): return apply(_quickfix.NullLog_onIncoming, args) def onOutgoing(*args): return apply(_quickfix.NullLog_onOutgoing, args) def onEvent(*args): return apply(_quickfix.NullLog... | def clear(*args): return _quickfix.NullLog_clear(*args) def backup(*args): return _quickfix.NullLog_backup(*args) def onIncoming(*args): return _quickfix.NullLog_onIncoming(*args) def onOutgoing(*args): return _quickfix.NullLog_onOutgoing(*args) def onEvent(*args): return _quickfix.NullLog_onEvent(*args) def __init__(s... | def clear(*args): return apply(_quickfix.NullLog_clear, args) | 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,
2424,
30857,
1968,
4672,
327,
2230,
24899,
19525,
904,
18,
2041,
1343,
67,
8507,
16,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
30857,
1968,
4672,
327,
2230,
24899,
19525,
904,
18,
2041,
1343,
67,
8507,
16,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return S_OK('Can not get the request execution order') | return S_OK( 'Can not get the request execution order' ) | def executeRequest(self): ################################################ # Get a request from request DB res = self.RequestDBClient.getRequest('register') if not res['OK']: gLogger.info("RegistrationAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']: gLogger.info("RegistrationAg... | 991ec8b0394b656ec2c67f7fb0b500c383f8babd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/991ec8b0394b656ec2c67f7fb0b500c383f8babd/RegistrationAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
400,
273,
365,
18,
691,
2290,
1227,
18,
588,
691,
2668,
4861,
6134,
309,
486,
400,
3292,
3141,
3546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
400,
273,
365,
18,
691,
2290,
1227,
18,
588,
691,
2668,
4861,
6134,
309,
486,
400,
3292,
3141,
3546,
... |
if type(attr) in (ClassType, TypeType): | if type(attr) in (ClassType, TypeType) and \ attr.__name__ == name: | def __setup(self): """Setup the module sub-tree.""" # Detect packages if hasattr(self.__module, '__file__') and \ (self.__module.__file__.endswith('__init__.py') or self.__module.__file__.endswith('__init__.pyc')): dir = os.path.split(self.__module.__file__)[0] for file in os.listdir(dir): if file in IGNORE_FILES: cont... | 51c7fa392387f1a9833f865052b8cf72ef0210de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/51c7fa392387f1a9833f865052b8cf72ef0210de/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8401,
12,
2890,
4672,
3536,
7365,
326,
1605,
720,
17,
3413,
12123,
468,
13796,
5907,
309,
3859,
12,
2890,
16186,
2978,
16,
4940,
768,
972,
6134,
471,
521,
261,
2890,
16186,
2978,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8401,
12,
2890,
4672,
3536,
7365,
326,
1605,
720,
17,
3413,
12123,
468,
13796,
5907,
309,
3859,
12,
2890,
16186,
2978,
16,
4940,
768,
972,
6134,
471,
521,
261,
2890,
16186,
2978,
1... |
new = self.o.selatom.molecule.copy(None) | new = self.o.selatom.molecule.copy(None) | def setHotSpot(self): """if called on a singlet, make that singlet the hotspot for the molecule. (if there's only one, it's automatically the hotspot) """ if self.o.selatom and self.o.selatom.element == Singlet: self.o.selatom.molecule.hotspot = self.o.selatom new = self.o.selatom.molecule.copy(None) new.move(-new.cen... | 8f5d5b3814fbc29f18c022b0ff494ab349927e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8f5d5b3814fbc29f18c022b0ff494ab349927e2b/depositMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
25270,
17292,
12,
2890,
4672,
3536,
430,
2566,
603,
279,
4864,
1810,
16,
1221,
716,
4864,
1810,
326,
12811,
19032,
364,
326,
13661,
18,
225,
261,
430,
1915,
1807,
1338,
1245,
16,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25270,
17292,
12,
2890,
4672,
3536,
430,
2566,
603,
279,
4864,
1810,
16,
1221,
716,
4864,
1810,
326,
12811,
19032,
364,
326,
13661,
18,
225,
261,
430,
1915,
1807,
1338,
1245,
16,
51... |
exclsync.acquire() try: exclsync.wait() finally: exclsync.release() | exclsync.wait() | def _AcquireExclusive(): if not self.sl.acquire(shared=0): return | 51e3bb9294fc333e07af4f26257738e4caa6e99e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/51e3bb9294fc333e07af4f26257738e4caa6e99e/ganeti.locking_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
27761,
17075,
13332,
309,
486,
365,
18,
2069,
18,
1077,
1039,
12,
11574,
33,
20,
4672,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
27761,
17075,
13332,
309,
486,
365,
18,
2069,
18,
1077,
1039,
12,
11574,
33,
20,
4672,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
realname = '' | realname = '' | def doMode(self, irc, msg): channel = msg.args[0] if irc.isChannel(channel) and msg.args[1:]: self.doLog(irc, channel, '*** %s sets mode: %s %s\n' % (msg.nick or msg.prefix, msg.args[1], ' '.join(msg.args[2:]))) modes = ircutils.separateModes(msg.args[1:]) for param in modes: realname = '' mode = param[0] mask = '' com... | 5fa4c7ce4dd3a2ea0d10c18f9af5849161052ae5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3106/5fa4c7ce4dd3a2ea0d10c18f9af5849161052ae5/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2309,
12,
2890,
16,
277,
1310,
16,
1234,
4672,
1904,
273,
1234,
18,
1968,
63,
20,
65,
309,
277,
1310,
18,
291,
2909,
12,
4327,
13,
471,
1234,
18,
1968,
63,
21,
30,
14542,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2309,
12,
2890,
16,
277,
1310,
16,
1234,
4672,
1904,
273,
1234,
18,
1968,
63,
20,
65,
309,
277,
1310,
18,
291,
2909,
12,
4327,
13,
471,
1234,
18,
1968,
63,
21,
30,
14542,
365,
... |
packageRootFolder = self.packageRootFolder try: d = dirname(packageRootFolder) os.chdir(packageRootFolder) base = basename(packageRootFolder) + ".pax" archPath = join(d, self.resourceFolder, base) cmd = "pax -w -f %s %s" % (archPath, ".") res = os.system(cmd) cmd = "gzip %s" % archPath res = os.system(cmd) except: ... | os.chdir(self.sourceFolder) base = basename(self.packageInfo["Title"]) + ".pax" self.archPath = join(self.packageResourceFolder, base) cmd = "pax -w -f %s %s" % (self.archPath, ".") res = os.system(cmd) cmd = "gzip %s" % self.archPath res = os.system(cmd) | def _addArchive(self): "Write .pax.gz file, a compressed archive using pax/gzip." | 997429a5f47037de601ff9bd7d4bd4b538927106 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/997429a5f47037de601ff9bd7d4bd4b538927106/buildpkg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
7465,
12,
2890,
4672,
315,
3067,
263,
84,
651,
18,
9764,
585,
16,
279,
8968,
5052,
1450,
293,
651,
19,
17380,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
7465,
12,
2890,
4672,
315,
3067,
263,
84,
651,
18,
9764,
585,
16,
279,
8968,
5052,
1450,
293,
651,
19,
17380,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
j = j + 1 i = i + 1 | index = index + 1 code = code + 1 | def _update_keymap(self, first_keycode, count): | 93d9e1c62184d5179390d856efad4fb140da9994 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1732/93d9e1c62184d5179390d856efad4fb140da9994/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
856,
1458,
12,
2890,
16,
1122,
67,
856,
710,
16,
1056,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
856,
1458,
12,
2890,
16,
1122,
67,
856,
710,
16,
1056,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return 0 return 1 | return False return True | def check_room( item, pos ): # check valid item if not item.hastag( 'carpentry_type' ): return 0 name = item.gettag( 'carpentry_type' ) if not deeds.haskey( name ): return 0 dir = deeds[ name ][ 1 ] items = deeds[ name ][ 2: ] if not items: return 0 num_item = len( items ) if not num_item: return 0 # check the spots r... | f9665c46d91ee48a0931cc8fc760b9852ee4a43f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f9665c46d91ee48a0931cc8fc760b9852ee4a43f/carpentry_deed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13924,
12,
761,
16,
949,
262,
30,
468,
866,
923,
761,
309,
486,
761,
18,
76,
689,
346,
12,
296,
9815,
1907,
698,
67,
723,
11,
262,
30,
327,
374,
508,
273,
761,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
13924,
12,
761,
16,
949,
262,
30,
468,
866,
923,
761,
309,
486,
761,
18,
76,
689,
346,
12,
296,
9815,
1907,
698,
67,
723,
11,
262,
30,
327,
374,
508,
273,
761,
18,
588,
... |
DebugPrint(0, "Badly formed XML in " + xmlFilename + ": UserIdentity block has multiple ReportableVOName nodes - uploading anyway") | [jobIdType, jobId] = FindBestJobId(userIdentityNode.parentNode, namespace, prefix) DebugPrint(0, "Warning: UserIdentity block has multiple ", "ReportableVOName nodes in " + jobIdType + " " + jobId) | def CheckAndExtendUserIdentity(xmlDoc, userIdentityNode, namespace, prefix): "Check the contents of the UserIdentity block and extend if necessary" # LocalUserId LocalUserIdNodes = userIdentityNode.getElementsByTagNameNS(namespace, 'LocalUserId') if len(LocalUserIdNodes) != 1 or not \ (LocalUserIdNodes[0].firstChild a... | 82362dc0c1d2f5f0727670c6ff01b444853b1602 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/82362dc0c1d2f5f0727670c6ff01b444853b1602/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
... |
self.assertRaises(TypeError, self.raise__init__1) self.assertRaises(TypeError, self.raise__init__2) self.assertRaises(ValueError, self.raise__init__3) | def test__init__3(self): '''DictStore: test __init__ and createFromData - error handling''' #TODO: meaningfull errors - current tests all fail in ArrayStore self.assertRaises(TypeError, self.raise__init__1) self.assertRaises(TypeError, self.raise__init__2) self.assertRaises(ValueError, self.raise__init__3) self.assertR... | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
972,
2738,
972,
23,
12,
2890,
4672,
9163,
5014,
2257,
30,
1842,
1001,
2738,
972,
471,
9492,
751,
300,
555,
5057,
26418,
468,
6241,
30,
12256,
2854,
1334,
300,
783,
7434,
777,
2321,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
972,
2738,
972,
23,
12,
2890,
4672,
9163,
5014,
2257,
30,
1842,
1001,
2738,
972,
471,
9492,
751,
300,
555,
5057,
26418,
468,
6241,
30,
12256,
2854,
1334,
300,
783,
7434,
777,
2321,... | |
show_proposals(view, get_iter_at_cursor(view.get_buffer()), contexts) | show_proposals(view, get_iter_at_cursor(view.get_buffer()), matches.keys()) | def expand_snippet(view, contexts, matches): if not matches: return False elif len(matches) == 1: snippets = find_all_snippets(contexts, matches[0]) if not snippets: return False if len(snippets) == 1: insert_snippet(view, get_iter_at_cursor(view.get_buffer()), snippets[0]) return True show_proposals(view, get_iter_a... | 26933a85771c8cceb710a2c2d0f15717e0bb54e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/26933a85771c8cceb710a2c2d0f15717e0bb54e1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
25788,
12,
1945,
16,
5781,
16,
1885,
4672,
309,
486,
1885,
30,
327,
1083,
1327,
562,
12,
8436,
13,
422,
404,
30,
24613,
273,
1104,
67,
454,
67,
8134,
16664,
12,
18332,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
25788,
12,
1945,
16,
5781,
16,
1885,
4672,
309,
486,
1885,
30,
327,
1083,
1327,
562,
12,
8436,
13,
422,
404,
30,
24613,
273,
1104,
67,
454,
67,
8134,
16664,
12,
18332,
16,
... |
return fetch | return fetch.keys() | def findincoming(self, remote, base=None, heads=None): m = self.changelog.nodemap search = [] fetch = [] seen = {} seenbranch = {} if base == None: base = {} | 4c84f5b46af788d6ffe65b1684f37753635888a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4c84f5b46af788d6ffe65b1684f37753635888a0/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
31033,
12,
2890,
16,
2632,
16,
1026,
33,
7036,
16,
22742,
33,
7036,
4672,
312,
273,
365,
18,
24083,
12970,
18,
2159,
1458,
1623,
273,
5378,
2158,
273,
5378,
5881,
273,
2618,
5881,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
31033,
12,
2890,
16,
2632,
16,
1026,
33,
7036,
16,
22742,
33,
7036,
4672,
312,
273,
365,
18,
24083,
12970,
18,
2159,
1458,
1623,
273,
5378,
2158,
273,
5378,
5881,
273,
2618,
5881,
... |
if sys.platform=='win32': | if sys.platform=='win32' and config.console_encoding == 'cp850': | def handleArgs(): """Handle standard command line arguments, return the rest as a list. Takes the commandline arguments, converts them to Unicode, processes all global parameters such as -lang or -log. Returns a list of all arguments that are not global. This makes sure that global arguments are applied first, regardl... | 7f242e30808c59b7228a6855b1add3a12506869f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7f242e30808c59b7228a6855b1add3a12506869f/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
2615,
13332,
3536,
3259,
4529,
1296,
980,
1775,
16,
327,
326,
3127,
487,
279,
666,
18,
225,
23004,
326,
28305,
1775,
16,
7759,
2182,
358,
9633,
16,
8488,
777,
2552,
1472,
4123,
487... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2615,
13332,
3536,
3259,
4529,
1296,
980,
1775,
16,
327,
326,
3127,
487,
279,
666,
18,
225,
23004,
326,
28305,
1775,
16,
7759,
2182,
358,
9633,
16,
8488,
777,
2552,
1472,
4123,
487... |
if self._ticket: self.add_header('Authorization', 'Basic %s' % self._ticket) | if self._auth: self.add_header('Authorization', 'Basic %s' % self._auth) | def __init__(self, *args, **kwargs): self._method = kwargs.pop('method', 'GET') self._ticket = kwargs.pop('ticket', None) assert self._method in ['GET', 'POST', 'PUT', 'DELETE'] urllib2.Request.__init__(self, *args, **kwargs) if self._ticket: # The strip is very important and took 6 hours of my life to fix. self.add_he... | 8d0171682262bad5b80c787206c898c457577733 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4571/8d0171682262bad5b80c787206c898c457577733/cmis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
6315,
2039,
273,
1205,
18,
5120,
2668,
2039,
2187,
296,
3264,
6134,
365,
6315,
16282,
273,
1205,
18,
5120,
2668,
1628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
16,
2826,
4333,
4672,
365,
6315,
2039,
273,
1205,
18,
5120,
2668,
2039,
2187,
296,
3264,
6134,
365,
6315,
16282,
273,
1205,
18,
5120,
2668,
1628... |
self._short_opts = [] self._long_opts = [] | def _set_opt_strings (self, opts): self._short_opts = [] self._long_opts = [] for opt in opts: if len(opt) < 2: raise OptionError( "invalid option string %r: " "must be at least two characters long" % opt, self) elif len(opt) == 2: if not (opt[0] == "-" and opt[1] != "-"): raise OptionError( "invalid short option strin... | 05fbfbcaa14cc9093790f5eb3ae75558f3fdb250 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/05fbfbcaa14cc9093790f5eb3ae75558f3fdb250/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
3838,
67,
10219,
261,
2890,
16,
1500,
4672,
364,
2153,
316,
1500,
30,
309,
562,
12,
3838,
13,
411,
576,
30,
1002,
2698,
668,
12,
315,
5387,
1456,
533,
738,
86,
30,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3838,
67,
10219,
261,
2890,
16,
1500,
4672,
364,
2153,
316,
1500,
30,
309,
562,
12,
3838,
13,
411,
576,
30,
1002,
2698,
668,
12,
315,
5387,
1456,
533,
738,
86,
30,
315,... | |
paramopt = False | paramopt = "No" | def gen_docs(doc, dir, templatedir): try: bodyfile = open(templatedir + "/header.html", "r") bodydata = bodyfile.read() bodyfile.close() intfile = open(templatedir + "/interface.html", "r") intdata = intfile.read() intfile.close() menufile = open(templatedir + "/menu.html", "r") menudata = menufile.read() menufile.clo... | 1601fb373835146f38e0b9516b7bb7bd41eddfaa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7247/1601fb373835146f38e0b9516b7bb7bd41eddfaa/sedoctool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
8532,
12,
2434,
16,
1577,
16,
13988,
690,
481,
4672,
225,
775,
30,
1417,
768,
273,
1696,
12,
27380,
690,
481,
397,
2206,
3374,
18,
2620,
3113,
315,
86,
7923,
1417,
892,
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,
3157,
67,
8532,
12,
2434,
16,
1577,
16,
13988,
690,
481,
4672,
225,
775,
30,
1417,
768,
273,
1696,
12,
27380,
690,
481,
397,
2206,
3374,
18,
2620,
3113,
315,
86,
7923,
1417,
892,
273,
... |
print "%d %d %d" % (len (data), len (cdata), len (bdata)) EXEDATA = """ eNrtfQt4U9eV7pEl28IIJIJNlMRJlCBaN3JcE5uMiYDK2HJMsI1s2TIkDsbYMrLwK9IRj4akENkT DhvlMU06aW/bSZp2pnMnM5OZ5jY0bYONSQzkwcMp0JJpIO1NZQyEJATMU/df+2z5BalnvszMN/f7 fPi29jl7r7X2WmuvvdbaW0em9P6nJK0kSTqUWEyStknq5ZDGv46iTL31tanSK5PeuW2bpuSd2yp9 TUFLe6BtVaCuxVJf... | print "%d %d" % (len (data), len (bdata)) EXEDATA = """\ TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA4AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v ZGUuDQ0KJAAAAAAAAADq0pWMrrP7366z+9+us/vf1a/336+z+98tr/XfrLP731GT/9+ss/vfzKzo 36az+9+us/rf9rP7366z+9+js/vfUZP... | def get_exe_bytes (self): import zlib, base64 return zlib.decompress (base64.decodestring (EXEDATA)) | 485dbaf1a2f675601619bb4d577c072654460eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/485dbaf1a2f675601619bb4d577c072654460eec/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
24220,
16,
1026,
1105,
327,
24220,
18,
323,
14706,
261,
1969,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
24220,
16,
1026,
1105,
327,
24220,
18,
323,
14706,
261,
1969,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
3719,
2,
-100,
-100,
-100... |
while len(self._children) < self._maxSpare: | while len(self._children) < self._minSpare: | def run(self, sock): """ The main loop. Pass a socket that is ready to accept() client connections. Return value will be True or False indiciating whether or not the loop was exited due to SIGHUP. """ # Set up signal handlers. self._keepGoing = True self._hupReceived = False self._installSignalHandlers() | 012f34a4dad6589d8b43f234e07d508fb80ef1a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7624/012f34a4dad6589d8b43f234e07d508fb80ef1a2/preforkserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
7313,
4672,
3536,
1021,
2774,
2798,
18,
10311,
279,
2987,
716,
353,
5695,
358,
2791,
1435,
1004,
5921,
18,
2000,
460,
903,
506,
1053,
578,
1083,
4541,
22906,
2856,
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,
1086,
12,
2890,
16,
7313,
4672,
3536,
1021,
2774,
2798,
18,
10311,
279,
2987,
716,
353,
5695,
358,
2791,
1435,
1004,
5921,
18,
2000,
460,
903,
506,
1053,
578,
1083,
4541,
22906,
2856,
57... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.