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 |
|---|---|---|---|---|---|---|
self.minimumSpaceField.setIntValue_(config.get(prefs.PRESERVE_X_GB_FREE)) | self.minimumSpaceField.setFloatValue_(config.get(prefs.PRESERVE_X_GB_FREE)) | def awakeFromNib(self): preserve = config.get(prefs.PRESERVE_DISK_SPACE) self.preserveSpaceCheckBox.setState_(preserve and NSOnState or NSOffState) self.minimumSpaceField.setEnabled_(preserve) self.minimumSpaceField.setIntValue_(config.get(prefs.PRESERVE_X_GB_FREE)) itemTag = int(config.get(prefs.EXPIRE_AFTER_X_DAYS) *... | 8c31b3391c426430e5304bbf721cf7fd2f4033b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/8c31b3391c426430e5304bbf721cf7fd2f4033b4/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1690,
911,
1265,
50,
495,
12,
2890,
4672,
9420,
273,
642,
18,
588,
12,
1484,
2556,
18,
3670,
2123,
3412,
67,
2565,
11129,
67,
6616,
13,
365,
18,
27297,
3819,
19174,
18,
542,
1119,
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,
1690,
911,
1265,
50,
495,
12,
2890,
4672,
9420,
273,
642,
18,
588,
12,
1484,
2556,
18,
3670,
2123,
3412,
67,
2565,
11129,
67,
6616,
13,
365,
18,
27297,
3819,
19174,
18,
542,
1119,
67,
... |
'There is no Python module or object named "%s".' % path) | 'No Python documentation found for %s.' % repr(path)) | def do_GET(self): path = self.path if path[-5:] == '.html': path = path[:-5] if path[:1] == '/': path = path[1:] if path and path != '.': try: p, x = locate(path) except DocImportError, value: self.send_document(path, html.escape( 'problem with %s - %s' % (value.filename, value.args))) return if x: self.send_document(d... | 66efbc74811f153a02728942adbbfc549bf10398 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66efbc74811f153a02728942adbbfc549bf10398/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3264,
12,
2890,
4672,
589,
273,
365,
18,
803,
309,
589,
18919,
25,
26894,
422,
2418,
2620,
4278,
589,
273,
589,
10531,
17,
25,
65,
309,
589,
10531,
21,
65,
422,
2023,
30,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
3264,
12,
2890,
4672,
589,
273,
365,
18,
803,
309,
589,
18919,
25,
26894,
422,
2418,
2620,
4278,
589,
273,
589,
10531,
17,
25,
65,
309,
589,
10531,
21,
65,
422,
2023,
30,
58... |
super(Population, self).__init__(logname="Population",*args) | super(Population, self).__init__(parser,progress,loglevel,logname) | def __init__(self,*args): | 1cd209e411f742a480b2b696e61bc5ece7a6801d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/1cd209e411f742a480b2b696e61bc5ece7a6801d/population.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
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,
... |
"""Generator a text representation of a message. | """Generates a text representation of a message. | def _handle_message(self, msg): s = StringIO() g = self.clone(s) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart. Extract that object, stringify it, and # write it out. # Except, it turns out, when it's ... | 67da6fc328476b3b3d19b1e8a5424497fe41a9ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/67da6fc328476b3b3d19b1e8a5424497fe41a9ce/generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
2150,
12,
2890,
16,
1234,
4672,
272,
273,
15777,
1435,
314,
273,
365,
18,
14056,
12,
87,
13,
468,
1021,
2385,
434,
279,
883,
19,
16784,
24532,
1087,
1410,
506,
279,
1026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
67,
2150,
12,
2890,
16,
1234,
4672,
272,
273,
15777,
1435,
314,
273,
365,
18,
14056,
12,
87,
13,
468,
1021,
2385,
434,
279,
883,
19,
16784,
24532,
1087,
1410,
506,
279,
1026... |
except IOError, etree.expatbuilder.expat.ExpatError: | except IOError, etree.XMLSyntaxError: | field_def = objmodel._columns[field_name] | 8deb66a4f15a2da7e8acc96a0b590f83964d3609 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/8deb66a4f15a2da7e8acc96a0b590f83964d3609/translate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
652,
67,
536,
273,
1081,
2284,
6315,
5112,
63,
1518,
67,
529,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
652,
67,
536,
273,
1081,
2284,
6315,
5112,
63,
1518,
67,
529,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for type, url in proxies.items(): | for type, url in proxies.iteritems(): | def __init__(self, proxies=None): if proxies is None: proxies = getproxies() assert hasattr(proxies, 'has_key'), "proxies must be a mapping" self.proxies = proxies for type, url in proxies.items(): setattr(self, '%s_open' % type, lambda r, proxy=url, type=type, meth=self.proxy_open: \ meth(r, proxy, type)) | df4cdd4f10a3f78eed655c6e26a5b3ff75e96705 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/df4cdd4f10a3f78eed655c6e26a5b3ff75e96705/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13263,
33,
7036,
4672,
309,
13263,
353,
599,
30,
13263,
273,
336,
20314,
606,
1435,
1815,
3859,
12,
20314,
606,
16,
296,
5332,
67,
856,
19899,
315,
20314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13263,
33,
7036,
4672,
309,
13263,
353,
599,
30,
13263,
273,
336,
20314,
606,
1435,
1815,
3859,
12,
20314,
606,
16,
296,
5332,
67,
856,
19899,
315,
20314,
... |
except: | except MIPSolverException: | def edge_coloring(g, value_only=False, vizing=False, hex_colors=False, log=0): r""" Properly colors the edges of a graph. See the URL http://en.wikipedia.org/wiki/Edge_coloring for further details on edge coloring. INPUT: - ``g`` -- a graph. - ``value_only`` -- (default: ``False``): - When set to ``True``, only the... | d7fc2c3e81e90f2878d6fd0d6533272249dc35dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d7fc2c3e81e90f2878d6fd0d6533272249dc35dd/graph_coloring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3591,
67,
3266,
310,
12,
75,
16,
460,
67,
3700,
33,
8381,
16,
331,
6894,
33,
8381,
16,
3827,
67,
9724,
33,
8381,
16,
613,
33,
20,
4672,
436,
8395,
1186,
457,
715,
5740,
326,
5231,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3591,
67,
3266,
310,
12,
75,
16,
460,
67,
3700,
33,
8381,
16,
331,
6894,
33,
8381,
16,
3827,
67,
9724,
33,
8381,
16,
613,
33,
20,
4672,
436,
8395,
1186,
457,
715,
5740,
326,
5231,
... |
thumbList+="%s," % starttime | thumbList.append(str(starttime)) | def createVideoChapters(itemnum, numofchapters, lengthofvideo, getthumbnails): """Returns numofchapters chapter marks even spaced through a certain time period""" # if there are user defined thumb images already available use them infoDOM = xml.dom.minidom.parse(os.path.join(getItemTempPath(itemnum),"info.xml")) thumb... | 63d3cc2b92e2603f06c88c580763487dd17aad9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/63d3cc2b92e2603f06c88c580763487dd17aad9e/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10083,
782,
1657,
414,
12,
1726,
2107,
16,
818,
792,
343,
1657,
414,
16,
769,
792,
9115,
16,
336,
14904,
87,
4672,
3536,
1356,
818,
792,
343,
1657,
414,
23580,
13999,
5456,
3476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10083,
782,
1657,
414,
12,
1726,
2107,
16,
818,
792,
343,
1657,
414,
16,
769,
792,
9115,
16,
336,
14904,
87,
4672,
3536,
1356,
818,
792,
343,
1657,
414,
23580,
13999,
5456,
3476,
... |
m,s = divmod( duration/1000000000, 60) h,m = divmod(m,60) self.server.av_transport_server.set_variable(self.server.connection_manager_server.lookup_avt_id(self.current_connection_id), 'CurrentTrackDuration', '%02d:%02d:%02d' % (h,m,s)) self.server.av_transport_server.set_variable(self.server.connection_manager_server.l... | formatted = self._format_time(duration) av_transport.set_variable(conn_id, 'CurrentTrackDuration', formatted) av_transport.set_variable(conn_id, 'CurrentMediaDuration', formatted) | def update( self,message=None): _, current,_ = self.player.get_state() self.debug("update current %r" % current) """ if current == gst.STATE_NULL: return if current not in (gst.STATE_PLAYING, gst.STATE_PAUSED, gst.STATE_READY): print "I'm out" return """ if current == gst.STATE_PLAYING: state = 'playing' self.server.av... | 56a690641745e5de48e43c2d6f0dd10f24a0e22c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/56a690641745e5de48e43c2d6f0dd10f24a0e22c/gstreamer_renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
16,
2150,
33,
7036,
4672,
389,
16,
783,
16,
67,
273,
365,
18,
14872,
18,
588,
67,
2019,
1435,
365,
18,
4148,
2932,
2725,
783,
738,
86,
6,
738,
783,
13,
3536,
309,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
365,
16,
2150,
33,
7036,
4672,
389,
16,
783,
16,
67,
273,
365,
18,
14872,
18,
588,
67,
2019,
1435,
365,
18,
4148,
2932,
2725,
783,
738,
86,
6,
738,
783,
13,
3536,
309,
78... |
self.write_line('<%s%s>' % (tag_name, attrs)) | self.write_line(u'<%s%s>' % (tag_name, attrs)) | def _open_tag(self, tag_name, attributes=None): if attributes is None: attributes = [] attrs = collect_attributes( tag_name, attributes, self._indent, self._indent_char, len(tag_name) + 2) self.write_line('<%s%s>' % (tag_name, attrs)) | 805ed9f5150d8d202700d4be67af9d7068d8db5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/805ed9f5150d8d202700d4be67af9d7068d8db5b/xmlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
2692,
12,
2890,
16,
1047,
67,
529,
16,
1677,
33,
7036,
4672,
309,
1677,
353,
599,
30,
1677,
273,
5378,
3422,
273,
3274,
67,
4350,
12,
1047,
67,
529,
16,
1677,
16,
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,
389,
3190,
67,
2692,
12,
2890,
16,
1047,
67,
529,
16,
1677,
33,
7036,
4672,
309,
1677,
353,
599,
30,
1677,
273,
5378,
3422,
273,
3274,
67,
4350,
12,
1047,
67,
529,
16,
1677,
16,
365,... |
this = apply(_quickfix.new_RepurchaseTerm, args) | this = _quickfix.new_RepurchaseTerm(*args) | def __init__(self, *args): this = apply(_quickfix.new_RepurchaseTerm, 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,
426,
12688,
12104,
4065,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
426,
12688,
12104,
4065,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... |
for field in xmlRec.XmlData: print field, | Gratia.DebugPrint(debug_level, string.join(" ", xmlRec.XmlData)) | def printRecord(self): print "=================================" for key in self.__sgeFields__: print key, ":", self.sgeRecord[key] print "=================================" | eea703b754cd5b945361f0e02b5711010e4f89a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/eea703b754cd5b945361f0e02b5711010e4f89a5/sge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2115,
12,
2890,
4672,
1172,
315,
4428,
1546,
364,
498,
316,
365,
16186,
87,
908,
2314,
972,
30,
1172,
498,
16,
6153,
16,
365,
18,
87,
908,
2115,
63,
856,
65,
1172,
315,
4428,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2115,
12,
2890,
4672,
1172,
315,
4428,
1546,
364,
498,
316,
365,
16186,
87,
908,
2314,
972,
30,
1172,
498,
16,
6153,
16,
365,
18,
87,
908,
2115,
63,
856,
65,
1172,
315,
4428,
1... |
def getContainerByIdGen(self, id): | def getContainerByIdGen(self, id, **kwArgs): | def getContainerByIdGen(self, id): # return a generator to look up a container return self._id2ref[id].getContainerGen() | 4d3cbde89edfcfbe5f0fc64c8086cca04dd6be75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/4d3cbde89edfcfbe5f0fc64c8086cca04dd6be75/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9272,
5132,
7642,
12,
2890,
16,
612,
16,
2826,
9987,
2615,
4672,
468,
327,
279,
4456,
358,
2324,
731,
279,
1478,
327,
365,
6315,
350,
22,
1734,
63,
350,
8009,
588,
2170,
7642,
1435,
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,
9272,
5132,
7642,
12,
2890,
16,
612,
16,
2826,
9987,
2615,
4672,
468,
327,
279,
4456,
358,
2324,
731,
279,
1478,
327,
365,
6315,
350,
22,
1734,
63,
350,
8009,
588,
2170,
7642,
1435,
2,... |
VERSION = match.group(1)+"."+match.group(2)+"."+match.group(3) break f.close() except: pass | incname = match.group(1) include.append(incname) sfile.close() CXXINCLUDECACHE[path] = [date, include] return include def CxxFindSource(name, ipath): for dir in ipath: if (dir == "."): full = name else: full = dir + "/" + name if filedate(full) > 0: return full return 0 def CxxFindHeader(srcfile, i... | def SetDifference(add, sub): set = {} for x in add: set[x]=1 for x in sub: if (set.has_key(x)): del set[x] return set.keys() | 8f86705296f973090fc3f2bedce1bf0e6e54e9f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/8f86705296f973090fc3f2bedce1bf0e6e54e9f6/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
16220,
12,
1289,
16,
720,
4672,
444,
273,
2618,
364,
619,
316,
527,
30,
444,
63,
92,
65,
33,
21,
364,
619,
316,
720,
30,
309,
261,
542,
18,
5332,
67,
856,
12,
92,
3719,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
16220,
12,
1289,
16,
720,
4672,
444,
273,
2618,
364,
619,
316,
527,
30,
444,
63,
92,
65,
33,
21,
364,
619,
316,
720,
30,
309,
261,
542,
18,
5332,
67,
856,
12,
92,
3719,
30,
... |
sage: cmp(type(SR(3)), type(Mod(2,5))) | sage: cmp(type(SR(3)), type(Mod(2,5))) | def __cmp__(self, right): """ Compares self and right. | 2b6ad56bcf2516ea032c64349bb279c9ac313cda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2b6ad56bcf2516ea032c64349bb279c9ac313cda/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5427,
4807,
365,
471,
2145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5427,
4807,
365,
471,
2145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): | def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)'), mc=re.compile(r'(</?(.*?)>)')): | def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): ''' Determine the context of this page from the URL: | e4a893248de986ae5d4217a5ba5af3d10b8f9b01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e4a893248de986ae5d4217a5ba5af3d10b8f9b01/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
2472,
12,
2890,
16,
302,
266,
33,
266,
18,
11100,
12,
86,
11,
19042,
72,
7941,
4713,
72,
29169,
3631,
6108,
33,
266,
18,
11100,
12,
86,
11,
12,
1757,
35,
21110,
34,
2506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
2472,
12,
2890,
16,
302,
266,
33,
266,
18,
11100,
12,
86,
11,
19042,
72,
7941,
4713,
72,
29169,
3631,
6108,
33,
266,
18,
11100,
12,
86,
11,
12,
1757,
35,
21110,
34,
2506,
... |
''' adapted from ASE/dacapo.py def GetEnsembleCoefficients(self): self.Calculate() E = self.GetPotentialEnergy() xc = self.GetNetCDFEntry('EnsembleXCEnergies') Exc = xc[0] exc_c = self.GetNetCDFEntry('EvaluateCorrelationEnergy') exc_e = self.GetNetCDFEntry('EvaluateExchangeEnergy') exc = exc_c + exc_e if self.GetXCFun... | def get_ensemble_coefficients(self): ''' adapted from ASE/dacapo.py def GetEnsembleCoefficients(self): self.Calculate() E = self.GetPotentialEnergy() xc = self.GetNetCDFEntry('EnsembleXCEnergies') Exc = xc[0] exc_c = self.GetNetCDFEntry('EvaluateCorrelationEnergy') exc_e = self.GetNetCDFEntry('EvaluateExchangeEnergy')... | ca8cf15074267967822633632ebd17fab026f445 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/ca8cf15074267967822633632ebd17fab026f445/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
25137,
298,
67,
8075,
12344,
12,
2890,
4672,
9163,
28345,
628,
432,
1090,
19,
72,
1077,
438,
83,
18,
2074,
1652,
968,
664,
10045,
4249,
73,
12344,
12,
2890,
4672,
365,
18,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25137,
298,
67,
8075,
12344,
12,
2890,
4672,
9163,
28345,
628,
432,
1090,
19,
72,
1077,
438,
83,
18,
2074,
1652,
968,
664,
10045,
4249,
73,
12344,
12,
2890,
4672,
365,
18,
869... | |
assert _usertag and _usertag!="users" | assert _usertag | def getDQ2Locations(self,se_name): ''' Provides the triplet: LFC, site and srm path from input se''' lfcstrings=getLFCmap() outputlocation={} default_site="CERN-PROD_SCRATCHDISK" job=self._getParent() app=job.application # first of all, check that _usertag is set properly: try: assert _usertag and _usertag!="users" ex... | 44eacc491236ac3372907dd704f4453f8acf2569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/44eacc491236ac3372907dd704f4453f8acf2569/AthenaMCDatasets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
53,
22,
10985,
12,
2890,
16,
307,
67,
529,
4672,
9163,
28805,
326,
6882,
1469,
30,
511,
4488,
16,
2834,
471,
272,
8864,
589,
628,
810,
695,
26418,
328,
7142,
10219,
33,
588,
48,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2343,
53,
22,
10985,
12,
2890,
16,
307,
67,
529,
4672,
9163,
28805,
326,
6882,
1469,
30,
511,
4488,
16,
2834,
471,
272,
8864,
589,
628,
810,
695,
26418,
328,
7142,
10219,
33,
588,
48,
... |
if len(string.lstrip(data)) < (len(data) - 4): nextnode.data = "\n\n\n" + string.lstrip(data) | s = data.lstrip() if len(s) < (len(data) - 4): nextnode.data = "\n\n\n" + s | def create_module_info(doc, section): # Heavy. node = extract_first_element(section, "modulesynopsis") if node is None: return set_tagName(node, "synopsis") lastchild = node.childNodes[-1] if lastchild.nodeType == TEXT \ and lastchild.data[-1:] == ".": lastchild.data = lastchild.data[:-1] modauthor = extract_first_elem... | 3c171d1b9f1420a6bbce02f1511ffb6b621863ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c171d1b9f1420a6bbce02f1511ffb6b621863ef/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2978,
67,
1376,
12,
2434,
16,
2442,
4672,
468,
8264,
23935,
18,
756,
273,
2608,
67,
3645,
67,
2956,
12,
3464,
16,
315,
6400,
878,
29522,
7923,
309,
756,
353,
599,
30,
327,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2978,
67,
1376,
12,
2434,
16,
2442,
4672,
468,
8264,
23935,
18,
756,
273,
2608,
67,
3645,
67,
2956,
12,
3464,
16,
315,
6400,
878,
29522,
7923,
309,
756,
353,
599,
30,
327,
4... |
if len(content)!=1 or type(content[0]) is not StringType: | if len(content)!=1 or type(content[0]) not in (StringType, UnicodeType): | def compile_bullet(self, attdict, content, extra, program): from types import StringType ### eventually should allow things like images and graphics in bullets too XXXX if len(content)!=1 or type(content[0]) is not StringType: raise ValueError, "content for bullet must be a single string" text = content[0] self.do_bull... | 041e2d265f4d145658b08edc02ff501d425029d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/041e2d265f4d145658b08edc02ff501d425029d6/para.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
70,
19994,
12,
2890,
16,
2403,
1576,
16,
913,
16,
2870,
16,
5402,
4672,
628,
1953,
1930,
31570,
11849,
18011,
1410,
1699,
9198,
3007,
4602,
471,
17313,
316,
324,
420,
2413,
488... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
70,
19994,
12,
2890,
16,
2403,
1576,
16,
913,
16,
2870,
16,
5402,
4672,
628,
1953,
1930,
31570,
11849,
18011,
1410,
1699,
9198,
3007,
4602,
471,
17313,
316,
324,
420,
2413,
488... |
def __init__(self, bufsize=2**16 ): self._bufsize=bufsize XMLReader.__init__( self ) def parse(self, source): self.prepareParser(source) inf=open( source ) buffer = inf.read(self._bufsize) | def __init__(self, bufsize=2**16): self._bufsize = bufsize XMLReader.__init__(self) def _parseOpenFile(self, source): buffer = source.read(self._bufsize) | def __init__(self, bufsize=2**16 ): self._bufsize=bufsize XMLReader.__init__( self ) | 2d5c793d9ed451a19712d06fbd40696db101927d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2d5c793d9ed451a19712d06fbd40696db101927d/xmlreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1681,
1467,
33,
22,
636,
2313,
262,
30,
365,
6315,
4385,
1467,
33,
4385,
1467,
3167,
2514,
16186,
2738,
972,
12,
365,
262,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1681,
1467,
33,
22,
636,
2313,
262,
30,
365,
6315,
4385,
1467,
33,
4385,
1467,
3167,
2514,
16186,
2738,
972,
12,
365,
262,
225,
2,
-100,
-100,
-100,
-100... |
self.message = errorMessage | self._message = errorMessage | def __init__(self, errorCode, errorMessage, lang = ''): Exception.__init__(self) self.code = errorCode self.message = errorMessage self.lang = lang | 3ba0d358d3d5f21a353c730f2b80f8d0f54bc0f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12595/3ba0d358d3d5f21a353c730f2b80f8d0f54bc0f7/filetransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12079,
16,
9324,
16,
3303,
273,
875,
4672,
1185,
16186,
2738,
972,
12,
2890,
13,
365,
18,
710,
273,
12079,
365,
6315,
2150,
273,
9324,
365,
18,
4936,
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,
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,
12079,
16,
9324,
16,
3303,
273,
875,
4672,
1185,
16186,
2738,
972,
12,
2890,
13,
365,
18,
710,
273,
12079,
365,
6315,
2150,
273,
9324,
365,
18,
4936,
273... |
self._debug(NIGHTMARE, "characters", `data`) | def characters (self, data): """characters""" self._debug(NIGHTMARE, "characters", `data`) return self._data(data) | 2235a065dd104f9a4252037ab7cb36681acd5b89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/2235a065dd104f9a4252037ab7cb36681acd5b89/HtmlParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3949,
261,
2890,
16,
501,
4672,
3536,
20558,
8395,
225,
327,
365,
6315,
892,
12,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
3949,
261,
2890,
16,
501,
4672,
3536,
20558,
8395,
225,
327,
365,
6315,
892,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
self.body.append(self.comment(self.document_start)) | self.body.append(self.comment(self.document_start).lstrip()) | def visit_document(self, node): self.body.append(self.comment(self.document_start)) # writing header is postboned self.header_written = 0 | fc46c05a5cf700f0b1164ddb4babcd95ccddd35e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/fc46c05a5cf700f0b1164ddb4babcd95ccddd35e/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
5457,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
3469,
12,
2890,
18,
5457,
67,
1937,
2934,
80,
6406,
10756,
468,
7410,
1446,
353,
1603,
70,
8184,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
5457,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
3469,
12,
2890,
18,
5457,
67,
1937,
2934,
80,
6406,
10756,
468,
7410,
1446,
353,
1603,
70,
8184,
365,
... |
a score=3656.000000 | a score=3656.0 | def test_write_with_synteny(): reader = maf.Reader( StringIO( test_maf_2 ), parse_e_rows=True ) a = reader.next() val = StringIO() writer = maf.Writer( val, { 'scoring':'foobar' } ) writer.write( a ) actual = val.getvalue() expected = """##maf version=1 scoring=foobar | 4c24676dc20d908a9c928c06f4d8af132675903b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2104/4c24676dc20d908a9c928c06f4d8af132675903b/maf_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
67,
1918,
67,
9009,
496,
275,
93,
13332,
2949,
273,
312,
1727,
18,
2514,
12,
15777,
12,
1842,
67,
81,
1727,
67,
22,
262,
16,
1109,
67,
73,
67,
3870,
33,
5510,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
67,
1918,
67,
9009,
496,
275,
93,
13332,
2949,
273,
312,
1727,
18,
2514,
12,
15777,
12,
1842,
67,
81,
1727,
67,
22,
262,
16,
1109,
67,
73,
67,
3870,
33,
5510,
262,
... |
class UITestView: | class UITestView(object): | def VerifyValues(self, type, name, **keys): """ Check the accounts settings @type type : string @param type : the type of account you want to check (IMAP,SMTP,WebDAV,POP) @type name : string @param name : the name of the account to check @param keys : key:value pairs """ if type == "SMTP": iter = Mail.SMTPAccount.iterI... | f931a5723901da16934d2fe9febbd78c2c1b6fd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f931a5723901da16934d2fe9febbd78c2c1b6fd4/QAUITestAppLib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
1972,
12,
2890,
16,
618,
16,
508,
16,
2826,
2452,
4672,
3536,
2073,
326,
9484,
1947,
632,
723,
618,
294,
533,
632,
891,
618,
294,
326,
618,
434,
2236,
1846,
2545,
358,
866,
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,
8553,
1972,
12,
2890,
16,
618,
16,
508,
16,
2826,
2452,
4672,
3536,
2073,
326,
9484,
1947,
632,
723,
618,
294,
533,
632,
891,
618,
294,
326,
618,
434,
2236,
1846,
2545,
358,
866,
261,
... |
def __init__(self, device, baud=3000000): self.serial = serial.Serial(device, baud, timeout=2) self._rxBuffer = [] self._escBuffer = '' | def writeBytes(addr, data): spime.memWrite(port, 0x10, data) command('W', 0x10, addr, len(data)) | def __init__(self, device, baud=3000000): self.serial = serial.Serial(device, baud, timeout=2) self._rxBuffer = [] self._escBuffer = '' | 0554d466ac4ce5d624b54862fc0c6a2e0dc6ca60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6757/0554d466ac4ce5d624b54862fc0c6a2e0dc6ca60/arm7mon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2346,
16,
9846,
1100,
33,
23,
9449,
4672,
365,
18,
8818,
273,
2734,
18,
6342,
12,
5964,
16,
9846,
1100,
16,
2021,
33,
22,
13,
365,
6315,
20122,
1892,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2346,
16,
9846,
1100,
33,
23,
9449,
4672,
365,
18,
8818,
273,
2734,
18,
6342,
12,
5964,
16,
9846,
1100,
16,
2021,
33,
22,
13,
365,
6315,
20122,
1892,
2... |
raise PatchError(_("Unable to find %s or %s for patching\n" % (afile, bfile))) | raise PatchError(_("unable to find %s or %s for patching") % (afile, bfile)) | def pathstrip(path, count=1): pathlen = len(path) i = 0 if count == 0: return path.rstrip() while count > 0: i = path.find(os.sep, i) if i == -1: raise PatchError("Unable to strip away %d dirs from %s" % (count, path)) i += 1 # consume '//' in the path while i < pathlen - 1 and path[i] == os.sep: i += 1 count -= 1 retu... | 252c8d85581f2987e5c62ae7983c3003cc9e5438 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/252c8d85581f2987e5c62ae7983c3003cc9e5438/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
803,
16,
1056,
33,
21,
4672,
589,
1897,
273,
562,
12,
803,
13,
277,
273,
374,
309,
1056,
422,
374,
30,
327,
589,
18,
86,
6406,
1435,
1323,
1056,
405,
374,
30,
277,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
803,
16,
1056,
33,
21,
4672,
589,
1897,
273,
562,
12,
803,
13,
277,
273,
374,
309,
1056,
422,
374,
30,
327,
589,
18,
86,
6406,
1435,
1323,
1056,
405,
374,
30,
277,
2... |
' >%s</a></p>' % (toc_url, toc_url, doc_url, label)) | ' >%s</a><br />' % (toc_url, toc_url, doc_url, label)) | def write_toc_section(self, out, name, docs, fullname=True): if not docs: return | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1391,
67,
3464,
12,
2890,
16,
596,
16,
508,
16,
3270,
16,
13321,
33,
5510,
4672,
309,
486,
3270,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1391,
67,
3464,
12,
2890,
16,
596,
16,
508,
16,
3270,
16,
13321,
33,
5510,
4672,
309,
486,
3270,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
security.declareProtected(CMFCorePermissions.View, 'wrapped') | security.declareProtected(permissions.View, 'wrapped') | def copy(self, factory=None): """Returns a deep copy of this Schema. """ if factory is None: factory = self.__class__ c = factory() for field in self.fields(): c.addField(field.copy()) # Need to be smarter when joining layers # and internal props c._props.update(self._props) layers = {} for k, v in self.registeredLayer... | 209dd0431121be615174f562fcf89fd6fae6c083 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/209dd0431121be615174f562fcf89fd6fae6c083/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
3272,
33,
7036,
4672,
3536,
1356,
279,
4608,
1610,
434,
333,
4611,
18,
3536,
309,
3272,
353,
599,
30,
3272,
273,
365,
16186,
1106,
972,
276,
273,
3272,
1435,
364,
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,
1610,
12,
2890,
16,
3272,
33,
7036,
4672,
3536,
1356,
279,
4608,
1610,
434,
333,
4611,
18,
3536,
309,
3272,
353,
599,
30,
3272,
273,
365,
16186,
1106,
972,
276,
273,
3272,
1435,
364,
6... |
gcompris.sound.play_ogg("melody/son1") | gcompris.sound.play_ogg(sound_struct['sound']) self.tried(sound_struct) | def son1_item_event(self, widget, event=None): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: gcompris.sound.play_ogg("melody/son1") return gtk.FALSE | d0b9a61ff7e201727e6e488e54d1db34d86881e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/d0b9a61ff7e201727e6e488e54d1db34d86881e4/melody.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18882,
21,
67,
1726,
67,
2575,
12,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
309,
871,
18,
5391,
422,
404,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18882,
21,
67,
1726,
67,
2575,
12,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
309,
871,
18,
5391,
422,
404,
30,
... |
hashBytes = stringToBytes(sha.sha(bytes).digest()) | hashBytes = stringToBytes(sha1(bytes).digest()) | def hashAndSign(self, bytes): """Hash and sign the passed-in bytes. | 0104d485864276b9e853b6994a5c58369d5cc6c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/0104d485864276b9e853b6994a5c58369d5cc6c9/RSAKey.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
1876,
2766,
12,
2890,
16,
1731,
4672,
3536,
2310,
471,
1573,
326,
2275,
17,
267,
1731,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
1876,
2766,
12,
2890,
16,
1731,
4672,
3536,
2310,
471,
1573,
326,
2275,
17,
267,
1731,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return elif len(new_episodes) == 1: title = _('gPodder has found %s') % (_('one new episode:'),) else: title = _('gPodder has found %s') % (_('%i new episodes:') % len(new_episodes)) message = self.tray_icon.format_episode_list(new_episodes) if gl.config.auto_download_when_minimized: message += '\n<i>(%s...)</i>' % _... | else: if len(new_episodes) == 1: title = _('gPodder has found %s') % (_('one new episode:'),) else: title = _('gPodder has found %s') % (_('%i new episodes:') % len(new_episodes)) message = self.tray_icon.format_episode_list([e.title for e in new_episodes]) if gl.config.auto_download_when_minimized: message += '\n<i>... | def update_feed_cache_finish_callback(self, channels=None, notify_no_new_episodes=False, select_url_afterwards=None): | 84347eeaeaf0d4bda7ce196913b09fad272d4615 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/84347eeaeaf0d4bda7ce196913b09fad272d4615/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7848,
67,
2493,
67,
13749,
67,
3394,
12,
2890,
16,
5750,
33,
7036,
16,
5066,
67,
2135,
67,
2704,
67,
881,
27134,
33,
8381,
16,
2027,
67,
718,
67,
5205,
6397,
33,
7036,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7848,
67,
2493,
67,
13749,
67,
3394,
12,
2890,
16,
5750,
33,
7036,
16,
5066,
67,
2135,
67,
2704,
67,
881,
27134,
33,
8381,
16,
2027,
67,
718,
67,
5205,
6397,
33,
7036,
4672... |
if self.terminalProtocol.receiving>=0: self.set_prompt(self.terminalProtocol.ps_init[0], True) return self._receive() | old_pn = self.terminalProtocol.pn if self.terminalProtocol.pn == 1: self.terminalProtocol.cursorToBOL() self.terminalProtocol.pn = 0 try: self.terminalProtocol.drawInputLine() return self._receive() finally: self.terminalProtocol.cursorToBOL() self.terminalProtocol.pn = old_pn | def recv(self): if self.terminalProtocol.receiving>=0: self.set_prompt(self.terminalProtocol.ps_init[0], True) return self._receive() | 95154775e42ac733d1d39dc1ff04dd1451f82f4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/95154775e42ac733d1d39dc1ff04dd1451f82f4e/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
4672,
309,
365,
18,
15979,
5752,
18,
8606,
9288,
34,
33,
20,
30,
365,
18,
542,
67,
13325,
12,
2890,
18,
15979,
5752,
18,
1121,
67,
2738,
63,
20,
6487,
1053,
13,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
4672,
309,
365,
18,
15979,
5752,
18,
8606,
9288,
34,
33,
20,
30,
365,
18,
542,
67,
13325,
12,
2890,
18,
15979,
5752,
18,
1121,
67,
2738,
63,
20,
6487,
1053,
13,
327,... |
dict_append(info, **atlas) | info = atlas | def calc_info(self): lib_dirs = self.get_lib_dirs() include_dirs = self.get_include_dirs() | 5e3b7826da1bb357993e68d8af77480fced1f4fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5e3b7826da1bb357993e68d8af77480fced1f4fb/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
1376,
12,
2890,
4672,
2561,
67,
8291,
273,
365,
18,
588,
67,
2941,
67,
8291,
1435,
2341,
67,
8291,
273,
365,
18,
588,
67,
6702,
67,
8291,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
67,
1376,
12,
2890,
4672,
2561,
67,
8291,
273,
365,
18,
588,
67,
2941,
67,
8291,
1435,
2341,
67,
8291,
273,
365,
18,
588,
67,
6702,
67,
8291,
1435,
2,
-100,
-100,
-100,
-100,
-... |
if timeString is None: | if timeString is None and not hideTime: | def Draw (self, grid, dc, rect, (item, attributeName), isInSelection=False): """ Draw the date & time, somewhat in the style that Apple Mail does: Date left justified, time right justified. """ item = RecurrenceDialog.getProxy(u'ui', item, createNew=False) | d86bba90b060ddd061a87e3b172294e3e886f6ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d86bba90b060ddd061a87e3b172294e3e886f6ab/AttributeEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
261,
2890,
16,
3068,
16,
6744,
16,
4917,
16,
261,
1726,
16,
9734,
3631,
8048,
6233,
33,
8381,
4672,
3536,
10184,
326,
1509,
473,
813,
16,
18016,
11304,
316,
326,
2154,
716,
1716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10184,
261,
2890,
16,
3068,
16,
6744,
16,
4917,
16,
261,
1726,
16,
9734,
3631,
8048,
6233,
33,
8381,
4672,
3536,
10184,
326,
1509,
473,
813,
16,
18016,
11304,
316,
326,
2154,
716,
1716,
... |
return "\\csch^{-1}" | """ Returns the LaTeX code for arccsch. EXAMPLES: sage: latex(arccsch) \text{csch}^{-1} """ return r"\text{csch}^{-1}" | def _latex_(self): return "\\csch^{-1}" | f3b9011adeb0121efdc646ee82c26baf37453a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f3b9011adeb0121efdc646ee82c26baf37453a14/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
327,
8422,
2143,
343,
66,
95,
17,
21,
1532,
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,
26264,
67,
12,
2890,
4672,
327,
8422,
2143,
343,
66,
95,
17,
21,
1532,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
rot_matrix = N.dot(T, R1); rot_matrix = N.dot(rot_matrix, R2); rot_matrix = N.dot(rot_matrix, R3); | rot_matrix = NP.dot(T, R1); rot_matrix = NP.dot(rot_matrix, R2); rot_matrix = NP.dot(rot_matrix, R3); | def build_rotate_matrix(img_data_parms): """ rot_matrix = reg.build_rotate_matrix(img_data_parms) takes the 6 element vector (3 angles, 3 translations) and build the 4x4 mapping matrix Parameters ....... img_data_parms : {nd_array} this is the current (6-dim) array with 3 angles and 3 translations. Returns ....... r... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20342,
67,
5667,
12,
6081,
67,
892,
67,
29927,
4672,
3536,
4168,
67,
5667,
273,
960,
18,
3510,
67,
20342,
67,
5667,
12,
6081,
67,
892,
67,
29927,
13,
225,
5530,
326,
1666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
67,
20342,
67,
5667,
12,
6081,
67,
892,
67,
29927,
4672,
3536,
4168,
67,
5667,
273,
960,
18,
3510,
67,
20342,
67,
5667,
12,
6081,
67,
892,
67,
29927,
13,
225,
5530,
326,
1666,
... |
__pattern__ = r"http://[\w\.]*?rapidshare.com/(?:files/(?P<id>\d*?)/(?P<name>.+)| | __pattern__ = r"http://[\w\.]*?rapidshare.com/(?:files/(?P<id>\d*?)/(?P<name>[^?]+)| | def getInfo(urls): ids = "" names = "" p = re.compile(RapidshareCom.__pattern__) for url in urls: r = p.search(url) if r.group("name"): ids+= ","+r.group("id") names+= ","+r.group("name") elif r.group("name_new"): ids+= ","+r.group("id_new") names+= ","+r.group("name_new") url = "http://api.rapidshare.com/cgi-bin/... | 89cfdaedbcf26a5a13195587ffc91f44552e5d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/89cfdaedbcf26a5a13195587ffc91f44552e5d10/RapidshareCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
10518,
4672,
225,
3258,
273,
1408,
1257,
273,
1408,
225,
293,
273,
283,
18,
11100,
12,
54,
438,
350,
14419,
799,
16186,
4951,
972,
13,
225,
364,
880,
316,
6903,
30,
436,
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,
17142,
12,
10518,
4672,
225,
3258,
273,
1408,
1257,
273,
1408,
225,
293,
273,
283,
18,
11100,
12,
54,
438,
350,
14419,
799,
16186,
4951,
972,
13,
225,
364,
880,
316,
6903,
30,
436,
273... |
logging.exception(e) | log.exception(e) | def main(retParams): # drop unprivleged to parse args, etc. # uidManager saves current real uid/gid which are unpriviledged (callers) # due to suid helper, our current effective uid is 0 uidManager = mock.uid.uidManager(os.getuid(), os.getgid()) uidManager._becomeUser(os.getuid(), os.getgid()) del(os.environ["HOME"... | 521025b767f54c75c55ea088d6ae305210cfbcaf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/521025b767f54c75c55ea088d6ae305210cfbcaf/mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1349,
1370,
4672,
468,
3640,
640,
11365,
1935,
329,
358,
1109,
833,
16,
5527,
18,
468,
282,
4555,
1318,
14649,
783,
2863,
4555,
19,
15780,
1492,
854,
640,
11365,
1411,
2423,
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,
2774,
12,
1349,
1370,
4672,
468,
3640,
640,
11365,
1935,
329,
358,
1109,
833,
16,
5527,
18,
468,
282,
4555,
1318,
14649,
783,
2863,
4555,
19,
15780,
1492,
854,
640,
11365,
1411,
2423,
26... |
accelerate_while_key_pressed(player, K_UP, (0, -0.2), 5) | accelerate_while_key_pressed(player, K_UP, (0, -10), 5) | def main(): clock = events.dispatcher('Clock') keyboard = events.dispatcher('Keyboard') frame_time = 0.02 pygame.init() screen = pygame.display.set_mode((1000, 600)) tick_event = pygame.event.Event(TICK) player = components.entity('Player', clock, keyboard, location=components.location((0, 0), (100, 200)), motion=comp... | fb856d4a6aa39fa78c632f6966376b3d215afc7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/fb856d4a6aa39fa78c632f6966376b3d215afc7b/project_viking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7268,
273,
2641,
18,
18495,
2668,
14027,
6134,
16263,
273,
2641,
18,
18495,
2668,
17872,
6134,
2623,
67,
957,
273,
374,
18,
3103,
2395,
13957,
18,
2738,
1435,
5518,
273,
2395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7268,
273,
2641,
18,
18495,
2668,
14027,
6134,
16263,
273,
2641,
18,
18495,
2668,
17872,
6134,
2623,
67,
957,
273,
374,
18,
3103,
2395,
13957,
18,
2738,
1435,
5518,
273,
2395,... |
waste = self.rfile.read(1) | if not self.rfile.read(1): break | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scrip... | e2f18377ff21c0e3217d561c8509e6816ecb362d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e2f18377ff21c0e3217d561c8509e6816ecb362d/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... |
self.assertEqual(-(017777777777), -2147483647) | if platform_long_is_32_bits: self.assertEqual(-(017777777777), -2147483647) else: self.assertEqual(-(0777777777777777777777), -9223372036854775807) | def test_oct_baseline(self): # Baseline tests self.assertEqual(00, 0) self.assertEqual(020, 16) self.assertEqual(017777777777, 2147483647) # Ditto with a minus sign and parentheses self.assertEqual(-(00), 0) self.assertEqual(-(020), -16) self.assertEqual(-(017777777777), -2147483647) # Ditto with a minus sign and NO pa... | 9b3db2c2c77b9dc37cb1cf9e9135dfe7bfec4d7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9b3db2c2c77b9dc37cb1cf9e9135dfe7bfec4d7c/test_hexoct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13410,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
713,
16,
374,
13,
365,
18,
11231,
5812,
12,
3103,
20,
16,
2872,
13,
365,
18,
11231,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13410,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
713,
16,
374,
13,
365,
18,
11231,
5812,
12,
3103,
20,
16,
2872,
13,
365,
18,
11231,
5... |
hbox1 = gtk.HBox(spacing=10) hbox1.pack_start(gtk.Label(_L('Name')), False, False) hbox1.pack_start(self._plot_name, False, True) hbox2 = gtk.HBox(spacing=10) hbox2.pack_start(gtk.Label(_L('Clear')), False, False) hbox2.pack_start(self._clear_check, False, True) hbox3 = gtk.HBox(spacing=10) hbox3.pack_start(gtk.Label(... | self._ofs_entry = gtk.Entry() self._traceofs_entry = gtk.Entry() vbox1 = gui.pack_vbox([ gui.pack_hbox([ gtk.Label(_L('Name')), self._plot_name], False, False), gui.pack_hbox([ gtk.Label(_L('Clear')), self._clear_check], False, False), gui.pack_hbox([ gtk.Label(_L('Style')), self._plot_style], False, False), gui.pack_... | def __init__(self): qtwindow.QTWindow.__init__(self, 'data', _L('Data Browser')) self.connect("delete-event", self._delete_event_cb) | 8935522e8ec507931ce9d0737d4837329b8b1363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/8935522e8ec507931ce9d0737d4837329b8b1363/data_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
25672,
5668,
18,
53,
56,
3829,
16186,
2738,
972,
12,
2890,
16,
296,
892,
2187,
389,
48,
2668,
751,
15408,
26112,
365,
18,
3612,
2932,
3733,
17,
2575,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
25672,
5668,
18,
53,
56,
3829,
16186,
2738,
972,
12,
2890,
16,
296,
892,
2187,
389,
48,
2668,
751,
15408,
26112,
365,
18,
3612,
2932,
3733,
17,
2575,
3... |
ALGORITHM: Uses Pari function \emph{idealstar} | ALGORITHM: Uses Pari function ``idealstar`` | def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | e462b4d226d7b8f741f48ed1e071494aa5463b8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e462b4d226d7b8f741f48ed1e071494aa5463b8a/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
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,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... |
Each of the choice arrays should have the same shape as the index array. | Choice arrays. The index array and all of the choices should be broadcastable to the same shape. | def choose(a, choices, out=None, mode='raise'): """Use an index array to construct a new array from a set of choices. Given an array of integers in {0, 1, ..., n-1} and a set of n choice arrays, this function will create a new array that merges each of the choice arrays. Where a value in `a` is i, then the new array ... | 2634ce0819396e55c8ba0e3014c1c22cb722ddac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/2634ce0819396e55c8ba0e3014c1c22cb722ddac/fromnumeric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
12,
69,
16,
7246,
16,
596,
33,
7036,
16,
1965,
2218,
11628,
11,
4672,
3536,
3727,
392,
770,
526,
358,
4872,
279,
394,
526,
628,
279,
444,
434,
7246,
18,
225,
16803,
392,
526,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
12,
69,
16,
7246,
16,
596,
33,
7036,
16,
1965,
2218,
11628,
11,
4672,
3536,
3727,
392,
770,
526,
358,
4872,
279,
394,
526,
628,
279,
444,
434,
7246,
18,
225,
16803,
392,
526,
4... |
allevents.append(core.write_event(get_fileno(r), callback, arg=w)) | allevents.append(core.write_event(get_fileno(w), callback, arg=w)) | def callback(ev, evtype): if evtype & core.EV_READ: current.switch(([ev.arg], [], [])) elif evtype & core.EV_WRITE: current.switch(([], [ev.arg], [])) else: current.switch(([], [], [])) | 11e1f3f86a1f802f3381b37edb0fddda24ea1822 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/11e1f3f86a1f802f3381b37edb0fddda24ea1822/select.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
14965,
16,
2113,
723,
4672,
309,
2113,
723,
473,
2922,
18,
24427,
67,
6949,
30,
783,
18,
9610,
12,
3816,
14965,
18,
3175,
6487,
5378,
16,
5378,
3719,
1327,
2113,
723,
473,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
12,
14965,
16,
2113,
723,
4672,
309,
2113,
723,
473,
2922,
18,
24427,
67,
6949,
30,
783,
18,
9610,
12,
3816,
14965,
18,
3175,
6487,
5378,
16,
5378,
3719,
1327,
2113,
723,
473,
29... |
command = inp + ' sfquantile pclip=' + str(pclip) if verb: print(command) clip = getoutput( command ) | if have_subprocess: if verb: print_cmd(verb, cmd, arg, inp, None) clip=subprocess.Popen([cmd,arg],stdin=finp,stdout=subprocess.PIPE).communicate()[0] else: command = assemble_cmd(cmd, arg, inp, None) if verb: print command clip = getoutput( command ) | def main(argv=sys.argv): success = 0 error = 1 par = rsf.Par(argv) inp = par.string('inp') out = par.string('out') if inp == None or out == None: sys.stderr.write(__doc__) return error verb = par.bool('verb', False) pclip = par.float('pclip',99) if pclip <0 or pclip>100: sys.stderr.write('pclip must be between 0... | b3554cf2c1327499364082fbe0e829cec5c6c26f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3143/b3554cf2c1327499364082fbe0e829cec5c6c26f/pclip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
9499,
18,
19485,
4672,
225,
2216,
273,
374,
555,
282,
273,
404,
779,
273,
3597,
74,
18,
1553,
12,
19485,
13,
225,
12789,
273,
779,
18,
1080,
2668,
31647,
6134,
596... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19485,
33,
9499,
18,
19485,
4672,
225,
2216,
273,
374,
555,
282,
273,
404,
779,
273,
3597,
74,
18,
1553,
12,
19485,
13,
225,
12789,
273,
779,
18,
1080,
2668,
31647,
6134,
596... |
self._storage[code.co_code] = source | self._storage[id(code)] = source | def register(self, code, source): self._storage[code.co_code] = source # register code objects of wrapped functions too. for var in code.co_consts: if isinstance(var, CodeType): self._storage[var.co_code] = source | 42162a7bf1d3bd6cd4c01abd546db2e1ad2d96fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/42162a7bf1d3bd6cd4c01abd546db2e1ad2d96fc/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
981,
16,
1084,
4672,
365,
6315,
5697,
63,
350,
12,
710,
25887,
273,
1084,
468,
1744,
981,
2184,
434,
5805,
4186,
4885,
18,
364,
569,
316,
981,
18,
2894,
67,
10248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
981,
16,
1084,
4672,
365,
6315,
5697,
63,
350,
12,
710,
25887,
273,
1084,
468,
1744,
981,
2184,
434,
5805,
4186,
4885,
18,
364,
569,
316,
981,
18,
2894,
67,
10248,
... |
Loading "/home/wstein/.sage//temp/one/.../a.m" | Loading ".../.sage//temp/.../a.m" | def load(self, filename): """ Load the file with given filename using the 'load' command in the MAGMA shell. | 0f49ce8ef2c5cc832f61d3e5e09c4b17878f433f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0f49ce8ef2c5cc832f61d3e5e09c4b17878f433f/magma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
1544,
4672,
3536,
4444,
326,
585,
598,
864,
1544,
1450,
326,
296,
945,
11,
1296,
316,
326,
490,
1781,
5535,
5972,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
1544,
4672,
3536,
4444,
326,
585,
598,
864,
1544,
1450,
326,
296,
945,
11,
1296,
316,
326,
490,
1781,
5535,
5972,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cond = self.__buildCondition(condDict, older, newer, timeStamp) | cond = self.__buildCondition( condDict, older, newer, timeStamp ) | def countJobs(self, condDict, older=None, newer=None, timeStamp='LastUpdateTime'): """ Get the number of jobs matching conditions specified by condDict and time limits """ self.log.debug ( 'JobDB.countJobs: counting Jobs' ) cond = self.__buildCondition(condDict, older, newer, timeStamp) cmd = ' SELECT count(JobID) from... | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
7276,
12,
2890,
16,
6941,
5014,
16,
12156,
33,
7036,
16,
16069,
33,
7036,
16,
18198,
2218,
3024,
1891,
950,
11,
4672,
3536,
968,
326,
1300,
434,
6550,
3607,
4636,
1269,
635,
6941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1056,
7276,
12,
2890,
16,
6941,
5014,
16,
12156,
33,
7036,
16,
16069,
33,
7036,
16,
18198,
2218,
3024,
1891,
950,
11,
4672,
3536,
968,
326,
1300,
434,
6550,
3607,
4636,
1269,
635,
6941,
... |
li | li | def cleanup(page): """ remove unwanted sections of the page. Uses pyquery. """ document = pq(page) #If you want to remove any other section, just add the class or id of the section below with comma seperated unwanted_sections_list=""" div#jump-to-nav, div.top, div#column-one, div#siteNotice, div#purl, div#head,div#foot... | 5ed842fe50b8f5117571e202ef9076caa38cb8bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14704/5ed842fe50b8f5117571e202ef9076caa38cb8bb/wiki2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
2433,
4672,
3536,
1206,
30264,
7178,
434,
326,
1363,
18,
14854,
2395,
2271,
18,
3536,
1668,
273,
14619,
12,
2433,
13,
468,
2047,
1846,
2545,
358,
1206,
1281,
1308,
2442,
16,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6686,
12,
2433,
4672,
3536,
1206,
30264,
7178,
434,
326,
1363,
18,
14854,
2395,
2271,
18,
3536,
1668,
273,
14619,
12,
2433,
13,
468,
2047,
1846,
2545,
358,
1206,
1281,
1308,
2442,
16,
25... |
'host' : XendNode.instance().uuid, | def host_metrics_get_record(self, _, ref): return xen_api_success({ 'uuid' : ref, 'host' : XendNode.instance().uuid, 'memory_total' : self._host_metrics_get_memory_total(), 'memory_free' : self._host_metrics_get_memory_free(), }) | ea227c18fa5fd018f3d60a77f507f8ca1b3cf9ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/ea227c18fa5fd018f3d60a77f507f8ca1b3cf9ba/XendAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1479,
67,
9597,
67,
588,
67,
3366,
12,
2890,
16,
389,
16,
1278,
4672,
327,
23048,
67,
2425,
67,
4768,
12590,
296,
7080,
11,
540,
294,
1278,
16,
296,
7858,
67,
4963,
11,
294,
365,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1479,
67,
9597,
67,
588,
67,
3366,
12,
2890,
16,
389,
16,
1278,
4672,
327,
23048,
67,
2425,
67,
4768,
12590,
296,
7080,
11,
540,
294,
1278,
16,
296,
7858,
67,
4963,
11,
294,
365,
631... | |
cmd.extend(shlex.split(self.importerArgs)) | cmd.extend(shlex.split(self.importArgs)) | def importFile(self, fileName, exName): """ Import file or directory using 'bin/omero importer' This method is solely responsible for logging the user in, attempting (possibly multiply) an import, logging and throwing an exception if necessary. """ | 9a2b1cc9b9118479713f64d7f9b2935c483589d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/9a2b1cc9b9118479713f64d7f9b2935c483589d8/fsDropBoxMonitorClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
812,
12,
2890,
16,
3968,
16,
431,
461,
4672,
3536,
6164,
585,
578,
1867,
1450,
296,
4757,
19,
362,
2439,
15198,
11,
1220,
707,
353,
3704,
2357,
14549,
364,
2907,
326,
729,
316,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
812,
12,
2890,
16,
3968,
16,
431,
461,
4672,
3536,
6164,
585,
578,
1867,
1450,
296,
4757,
19,
362,
2439,
15198,
11,
1220,
707,
353,
3704,
2357,
14549,
364,
2907,
326,
729,
316,
1... |
""" | r""" | def gen_legendre_P(n,m,x): """ Returns the generalized (or associated) Legendre function of the first kind for integers n > -1, m > -1. The awkward code for when m is odd and > 1 results from the fact that Maxima is happy with, for example, (1 - t^2)^3/2, but SAGE is not. For these cases the function is computed from... | b5134d6598410d7687ed531c5908683fd3511b5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b5134d6598410d7687ed531c5908683fd3511b5b/orthogonal_polys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
16292,
266,
67,
52,
12,
82,
16,
81,
16,
92,
4672,
436,
8395,
2860,
326,
7470,
1235,
261,
280,
3627,
13,
17167,
409,
266,
445,
434,
326,
1122,
3846,
364,
12321,
290,
405,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
16292,
266,
67,
52,
12,
82,
16,
81,
16,
92,
4672,
436,
8395,
2860,
326,
7470,
1235,
261,
280,
3627,
13,
17167,
409,
266,
445,
434,
326,
1122,
3846,
364,
12321,
290,
405,
30... |
if not self.databuf: print '** socket: no data!' print '** recv: got ', len(self.databuf) | def recv(self, bufsize, flags=0): if flags: raise my_error, 'recv flags not yet supported on mac' if not self.databuf: try: self.databuf, urg, mark = self.stream.Rcv(0) if not self.databuf: print '** socket: no data!' print '** recv: got ', len(self.databuf) except mactcp.error, arg: if arg[0] != MACTCP.connectionClosi... | f90a113176df262aa7d495a57bdc0d09c8ac09bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f90a113176df262aa7d495a57bdc0d09c8ac09bb/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
1681,
1467,
16,
2943,
33,
20,
4672,
309,
2943,
30,
1002,
3399,
67,
1636,
16,
296,
18334,
2943,
486,
4671,
3260,
603,
5318,
11,
309,
486,
365,
18,
3404,
378,
696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10665,
12,
2890,
16,
1681,
1467,
16,
2943,
33,
20,
4672,
309,
2943,
30,
1002,
3399,
67,
1636,
16,
296,
18334,
2943,
486,
4671,
3260,
603,
5318,
11,
309,
486,
365,
18,
3404,
378,
696,
... | |
result[bom.id] += map(lambda x: x.id, bom2.bom_lines) print "name",name print "arg",arg print "result",result | result[bom.id] += map(lambda x: x.id, bom2.bom_lines) | def _child_compute(self, cr, uid, ids, name, arg, context={}): """ @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID of mrp.production object @param name: @param arg: | e3cd823031c382369be6fdc654dc96aea91a478c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e3cd823031c382369be6fdc654dc96aea91a478c/mrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3536,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3624,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3536,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
334... |
return K(answer.lift(), prec - answer.valuation()) | return K(answer) | def height(P, check=True): if P.is_finite_order(): return K(0) if check: assert P.curve() == E, "the point P must lie on the curve " \ "from which the height function was created" | b4c17f72cfffe6d3d64fa3f70fa8d12616c7a62d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b4c17f72cfffe6d3d64fa3f70fa8d12616c7a62d/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2072,
12,
52,
16,
866,
33,
5510,
4672,
309,
453,
18,
291,
67,
9551,
67,
1019,
13332,
327,
1475,
12,
20,
13,
309,
866,
30,
1815,
453,
18,
16683,
1435,
422,
512,
16,
315,
5787,
1634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2072,
12,
52,
16,
866,
33,
5510,
4672,
309,
453,
18,
291,
67,
9551,
67,
1019,
13332,
327,
1475,
12,
20,
13,
309,
866,
30,
1815,
453,
18,
16683,
1435,
422,
512,
16,
315,
5787,
1634,
... |
line = packet.datain.read (size) | if (self.verbose): print ('Next packet') line = packet.fromClient (size) | def handle (self): """ This is where the action starts. """ self.server.controller.updateProgressInfo ('Idle.', 2) # create a packet structure packet = IIS () packet.datain = self.rfile packet.dataout = self.wfile # decode the header size = struct.calcsize ('8h') line = packet.datain.read (size) n = len (line) if (n ... | eb163fa149dbd928a3fa7b9842edc6170373d658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/eb163fa149dbd928a3fa7b9842edc6170373d658/RequestHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
261,
2890,
4672,
3536,
1220,
353,
1625,
326,
1301,
2542,
18,
3536,
365,
18,
3567,
18,
5723,
18,
2725,
5491,
966,
7707,
13834,
1093,
16,
576,
13,
225,
468,
752,
279,
4414,
3695,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
261,
2890,
4672,
3536,
1220,
353,
1625,
326,
1301,
2542,
18,
3536,
365,
18,
3567,
18,
5723,
18,
2725,
5491,
966,
7707,
13834,
1093,
16,
576,
13,
225,
468,
752,
279,
4414,
3695,
4... |
tail = len(self.body) > LIMIT and '...' or '' | tail = len(self.body) > LIMIT and '...' or '' | def summary(self): LIMIT = 50 tail = len(self.body) > LIMIT and '...' or '' return self.body[:LIMIT] + tail | c114aab6e3ffead3d3b362276b8bf3ebb9e69661 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12938/c114aab6e3ffead3d3b362276b8bf3ebb9e69661/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4916,
12,
2890,
4672,
13319,
273,
6437,
5798,
273,
562,
12,
2890,
18,
3432,
13,
405,
13319,
471,
20243,
578,
875,
327,
365,
18,
3432,
10531,
8283,
65,
397,
5798,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4916,
12,
2890,
4672,
13319,
273,
6437,
5798,
273,
562,
12,
2890,
18,
3432,
13,
405,
13319,
471,
20243,
578,
875,
327,
365,
18,
3432,
10531,
8283,
65,
397,
5798,
2,
-100,
-100,
-100,
-... |
logger.critical(u'''Creating an instance caused an error for one of: MythDBConn or MythVideo, error(%s) | logger.critical(u'''Creating an instance caused an error for one of: MythDB or MythVideo, error(%s) | def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr) | 1343c41ccf0843d1fd2aca238fd7164a00e09ba4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/1343c41ccf0843d1fd2aca238fd7164a00e09ba4/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
9586,
7756,
1496,
1045,
358,
326,
1407,
8395,
327,
3869,
12,
2890,
18,
659,
16,
1604,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
9586,
7756,
1496,
1045,
358,
326,
1407,
8395,
327,
3869,
12,
2890,
18,
659,
16,
1604,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
glyphs_to_append=("_2561", "_1025") initialcount=179 | glyphs_to_append=("_2561", "_1025", "_0075", "_0076", "_0078", "_0080") initialcount=189 | def initialize_glyphs(): global initial_glyphs, initialcount, count for number in initial_glyphs: toto="_00%02d" % int(number) initial_glyphs.insert(0,toto) initial_glyphs.remove(number) if font_name=="gregorio": glyphs_to_append=("_1025", "_2561") initialcount=178 elif font_name=="parmesan": glyphs_to_append=("_1025",... | 4b001d16d1fd8d460d56aa89c56eaff58440c9ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7096/4b001d16d1fd8d460d56aa89c56eaff58440c9ed/squarize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
19426,
87,
13332,
2552,
2172,
67,
19426,
87,
16,
2172,
1883,
16,
1056,
364,
1300,
316,
2172,
67,
19426,
87,
30,
268,
6302,
1546,
67,
713,
9,
3103,
72,
6,
738,
509,
12,
2696... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
67,
19426,
87,
13332,
2552,
2172,
67,
19426,
87,
16,
2172,
1883,
16,
1056,
364,
1300,
316,
2172,
67,
19426,
87,
30,
268,
6302,
1546,
67,
713,
9,
3103,
72,
6,
738,
509,
12,
2696... |
'_topdir %s/%s' % (os.getcwd(), rpm_base),]) | '_topdir %s/%s' % (os.getcwd(), self.rpm_base),]) | def run (self): | ba0c406df5613e0bb0538b6dc43268e63fc8db5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ba0c406df5613e0bb0538b6dc43268e63fc8db5a/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return text.rjust(vimformat.TEXT_WIDTH) | return text.rjust(vimformat.TEXT_WIDTH) + "\n" | def handleLink(link, width): text = '*' + GetText(link.childNodes) + '*' return text.rjust(vimformat.TEXT_WIDTH) | 3d0fffdb9fbce8d86076159a7d2a35ee8ad4c456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6145/3d0fffdb9fbce8d86076159a7d2a35ee8ad4c456/vimxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
2098,
12,
1232,
16,
1835,
4672,
977,
273,
5306,
397,
968,
1528,
12,
1232,
18,
3624,
3205,
13,
397,
5306,
225,
327,
977,
18,
86,
3732,
12,
90,
381,
2139,
18,
5151,
67,
10023,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
2098,
12,
1232,
16,
1835,
4672,
977,
273,
5306,
397,
968,
1528,
12,
1232,
18,
3624,
3205,
13,
397,
5306,
225,
327,
977,
18,
86,
3732,
12,
90,
381,
2139,
18,
5151,
67,
10023,
13... |
filtered += wc.filter.applyfilter(wc.filter.FILTER_RESPONSE_MODIFY, "", 'finish', attrs) | filtered += wc.filter.applyfilter( wc.filter.STAGE_RESPONSE_MODIFY, "", 'finish', attrs) | def _main (): """USAGE: test/run.sh test/filterfile.py <config dir> <.html file>""" if len(sys.argv)!=3: print _main.__doc__ sys.exit(1) confdir = sys.argv[1] fname = sys.argv[2] if fname=="-": f = sys.stdin else: f = file(fname) logfile = os.path.join(confdir, "logging.conf") wc.initlog(logfile, wc.Name, filelogs=Fals... | 678ba849fbf388983e9878b8f7f0379239e5ab00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/678ba849fbf388983e9878b8f7f0379239e5ab00/filterfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
1832,
30,
3536,
29550,
30,
1842,
19,
2681,
18,
674,
1842,
19,
2188,
768,
18,
2074,
411,
1425,
1577,
34,
411,
18,
2620,
585,
2984,
3660,
309,
562,
12,
9499,
18,
19485,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
1832,
30,
3536,
29550,
30,
1842,
19,
2681,
18,
674,
1842,
19,
2188,
768,
18,
2074,
411,
1425,
1577,
34,
411,
18,
2620,
585,
2984,
3660,
309,
562,
12,
9499,
18,
19485,
13,
... |
if cur > total: total = cur | if current > total: total = current | def GetExportProgress(self): """ Returns tuple with number of seconds done, and number of total seconds. """ if self.IsExporting: try: #total = self.mainpipeline.query_duration(gst.FORMAT_TIME)[0] total = self.GetProjectLength() * gst.SECOND cur = self.mainpipeline.query_position(gst.FORMAT_TIME)[0] except gst.QueryErr... | e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
6144,
5491,
12,
2890,
4672,
3536,
2860,
3193,
598,
1300,
434,
3974,
2731,
16,
471,
1300,
434,
2078,
3974,
18,
3536,
309,
365,
18,
2520,
6144,
310,
30,
775,
30,
468,
4963,
273,
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,
968,
6144,
5491,
12,
2890,
4672,
3536,
2860,
3193,
598,
1300,
434,
3974,
2731,
16,
471,
1300,
434,
2078,
3974,
18,
3536,
309,
365,
18,
2520,
6144,
310,
30,
775,
30,
468,
4963,
273,
365... |
self.write_text(choice.name, val.font, content, x=x0 + hskip, y=y0 + vskip + val.height, width=val.width, height=-1, | self.write_text(choice.name, val.font, content, x=x0, y=y0 + val.height, width=val.width, height=-1, | def update_content(self): """ update the listing area """ | 89d3a48576954c634545f1e0e240fa334f6245a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/89d3a48576954c634545f1e0e240fa334f6245a2/listing_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
parts = node['parts'] | def html_visit_inheritance_diagram(self, node): """ Output the graph for HTML. This will insert a PNG with clickable image map. """ graph = node['graph'] parts = node['parts'] graph_hash = get_graph_hash(node) name = 'inheritance%s' % graph_hash # Create a mapping from fully-qualified class names to URLs. urls = {} ... | b90ca05941e1fd53e0d69ced376e466dab659f67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/b90ca05941e1fd53e0d69ced376e466dab659f67/inheritance_diagram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
11658,
67,
6018,
1359,
67,
12264,
1940,
12,
2890,
16,
756,
4672,
3536,
3633,
326,
2667,
364,
3982,
18,
225,
1220,
903,
2243,
279,
22476,
598,
4682,
429,
1316,
852,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
11658,
67,
6018,
1359,
67,
12264,
1940,
12,
2890,
16,
756,
4672,
3536,
3633,
326,
2667,
364,
3982,
18,
225,
1220,
903,
2243,
279,
22476,
598,
4682,
429,
1316,
852,
18,
3536,
... | |
sys.argv[0] = "/foo/bar/baz.py" parser = OptionParser("usage: %prog ...", version="%prog 1.2") expected_usage = "usage: baz.py ...\n" self.assertUsage(parser, expected_usage) self.assertVersion(parser, "baz.py 1.2") self.assertHelp(parser, expected_usage + "\n" + "options:\n" " --version show program's version numbe... | save_argv = sys.argv[:] try: sys.argv[0] = "/foo/bar/baz.py" parser = OptionParser("usage: %prog ...", version="%prog 1.2") expected_usage = "usage: baz.py ...\n" self.assertUsage(parser, expected_usage) self.assertVersion(parser, "baz.py 1.2") self.assertHelp(parser, expected_usage + "\n" + "options:\n" " --version ... | def test_default_progname(self): # Make sure that program name taken from sys.argv[0] by default. sys.argv[0] = "/foo/bar/baz.py" parser = OptionParser("usage: %prog ...", version="%prog 1.2") expected_usage = "usage: baz.py ...\n" self.assertUsage(parser, expected_usage) self.assertVersion(parser, "baz.py 1.2") self.a... | 54b934e963d7972f62c3625b723cb51a21647124 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54b934e963d7972f62c3625b723cb51a21647124/test_optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
14654,
529,
12,
2890,
4672,
468,
4344,
3071,
716,
5402,
508,
9830,
628,
2589,
18,
19485,
63,
20,
65,
635,
805,
18,
2589,
18,
19485,
63,
20,
65,
273,
2206,
11351,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
14654,
529,
12,
2890,
4672,
468,
4344,
3071,
716,
5402,
508,
9830,
628,
2589,
18,
19485,
63,
20,
65,
635,
805,
18,
2589,
18,
19485,
63,
20,
65,
273,
2206,
11351,
... |
def plugin_toggled(self, renderer, _path): renderer.set_active(not renderer.get_active()) | def plugin_toggled(self, renderer, path, user_data): model, column = user_data model[path][column] = not model[path][column] return | def plugin_toggled(self, renderer, _path): renderer.set_active(not renderer.get_active()) | 5c439d0e2f2a15cd484c856e850d4ef1ac7dd331 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/5c439d0e2f2a15cd484c856e850d4ef1ac7dd331/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1909,
67,
88,
23972,
1259,
12,
2890,
16,
5690,
16,
589,
16,
729,
67,
892,
4672,
938,
16,
1057,
273,
729,
67,
892,
938,
63,
803,
6362,
2827,
65,
273,
486,
938,
63,
803,
6362,
2827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1909,
67,
88,
23972,
1259,
12,
2890,
16,
5690,
16,
589,
16,
729,
67,
892,
4672,
938,
16,
1057,
273,
729,
67,
892,
938,
63,
803,
6362,
2827,
65,
273,
486,
938,
63,
803,
6362,
2827,
... |
@param count true iff it should count number of times each line is executed @param trace true iff it should print out each line that is being counted @param countfuncs true iff it should just output a list of (filename, modulename, funcname,) for functions that were called at least once; This overrides `count' and `tr... | @param count true iff it should count number of times each line is executed @param trace true iff it should print out each line that is being counted @param countfuncs true iff it should just output a list of (filename, modulename, funcname,) for functions that were called at least once; This overrides `count' and `tr... | def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None): """ @param count true iff it should count number of times each line is executed @param trace true iff it should print out each line that is being counted @param countfuncs true iff it should just output a list o... | 1255e8bca5f975b133653db2e2f74b0d4cb7a9da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1255e8bca5f975b133653db2e2f74b0d4cb7a9da/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
35... |
if not os.access(path,os.W_OK): | if not is_writable(path): | def default_dir(): """ Return a default location to store compiled files and catalogs. XX is the Python version number in all paths listed below On windows, the default location is the temporary directory returned by gettempdir()/pythonXX. On Unix, ~/.pythonXX_compiled is the default location. If it doesn't exist, i... | ef494feebe6224fb56ba36961b60d609f74551ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/ef494feebe6224fb56ba36961b60d609f74551ee/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
1214,
13332,
3536,
2000,
279,
805,
2117,
358,
1707,
7743,
1390,
471,
26455,
18,
225,
1139,
60,
353,
326,
6600,
1177,
1300,
316,
777,
2953,
12889,
5712,
2755,
9965,
16,
326,
805,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
1214,
13332,
3536,
2000,
279,
805,
2117,
358,
1707,
7743,
1390,
471,
26455,
18,
225,
1139,
60,
353,
326,
6600,
1177,
1300,
316,
777,
2953,
12889,
5712,
2755,
9965,
16,
326,
805,... |
mean_value = (min(a) + max(a))/2.0 | mirror = min(a) + max(a) | def run(args): run_mode = args.pop(0) assert run_mode in run_modes filename = args.pop(0) data = Gwyddion.dump.read(filename) dfield = data['/0/data'] a = dfield['data'] n = len(a) mean_value = (min(a) + max(a))/2.0 for i in range(n): a[i] = mean_value - a[i] Gwyddion.dump.write(data, filename) | 8f37642fabc20f699593dea61a3116914c8e4e19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6176/8f37642fabc20f699593dea61a3116914c8e4e19/invert_python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1968,
4672,
1086,
67,
3188,
273,
833,
18,
5120,
12,
20,
13,
1815,
1086,
67,
3188,
316,
1086,
67,
19282,
225,
1544,
273,
833,
18,
5120,
12,
20,
13,
501,
273,
611,
91,
93,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
4672,
1086,
67,
3188,
273,
833,
18,
5120,
12,
20,
13,
1815,
1086,
67,
3188,
316,
1086,
67,
19282,
225,
1544,
273,
833,
18,
5120,
12,
20,
13,
501,
273,
611,
91,
93,
... |
self.assertEquals(f1.result(timeout=1), 42) | self.assertEquals(f1.result(timeout=5), 42) | def notification(): time.sleep(0.1) with f1._condition: f1._state = FINISHED f1._result = 42 f1._condition.notify_all() | e8a84fa6a17b77fedbffac4d58eb93b64b079c29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4870/e8a84fa6a17b77fedbffac4d58eb93b64b079c29/test_futures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3851,
13332,
813,
18,
19607,
12,
20,
18,
21,
13,
598,
284,
21,
6315,
4175,
30,
284,
21,
6315,
2019,
273,
25768,
2056,
284,
21,
6315,
2088,
273,
14856,
284,
21,
6315,
4175,
18,
12336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3851,
13332,
813,
18,
19607,
12,
20,
18,
21,
13,
598,
284,
21,
6315,
4175,
30,
284,
21,
6315,
2019,
273,
25768,
2056,
284,
21,
6315,
2088,
273,
14856,
284,
21,
6315,
4175,
18,
12336,
... |
except AttributeError: conf.fatal("Add options(opt): opt.load('compiler_cc')") | except AttributeError: conf.fatal("Add options(opt): opt.load('compiler_c')") | def configure(conf): """ for each compiler for the platform, try to configure the compiler in theory the tools should raise a configuration error if the compiler pretends to be something it is not (setting CC=icc and trying to configure gcc) """ try: test_for_compiler = conf.options.check_c_compiler except AttributeErr... | 3c491454eecb627d964393942090c586883ff004 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/3c491454eecb627d964393942090c586883ff004/compiler_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
3923,
4672,
3536,
364,
1517,
5274,
364,
326,
4072,
16,
775,
358,
5068,
326,
5274,
316,
326,
630,
326,
8513,
1410,
1002,
279,
1664,
555,
309,
326,
5274,
675,
88,
5839,
358,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
12,
3923,
4672,
3536,
364,
1517,
5274,
364,
326,
4072,
16,
775,
358,
5068,
326,
5274,
316,
326,
630,
326,
8513,
1410,
1002,
279,
1664,
555,
309,
326,
5274,
675,
88,
5839,
358,
50... |
libraries, extradirs, extraexportsymbols) | libraries, extradirs, extraexportsymbols, outputdir) | def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload"): if architecture == "all": # For the time being we generate two project files. Not as nice as # a single multitarget project, but easier... | 579f673323af12f7aa8ee186776b73f9976097f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/579f673323af12f7aa8ee186776b73f9976097f9/genpluginprojects.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4094,
4406,
12,
991,
18123,
16,
1605,
16,
1984,
33,
7036,
16,
1984,
1214,
33,
7036,
16,
5550,
22850,
6487,
1084,
8291,
22850,
6487,
14732,
22850,
6487,
7582,
361,
10539,
22850,
6487,... |
def ZpFM(p, prec = 20, print_mode = None, halt = 40, check=True): | def ZpFM(p, prec = twenty, print_mode = None, halt = forty, check=True): | def ZpFM(p, prec = 20, print_mode = None, halt = 40, check=True): return Zp(p=p, prec=prec, print_mode=print_mode, halt=halt, check=check, type = 'fixed-mod') | 52b1691f211d5745f1620cd0a7f20ac04ca573c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/52b1691f211d5745f1620cd0a7f20ac04ca573c9/factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2285,
84,
42,
49,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2285,
84,
12,
84,
33,
84,
16,
13382,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2285,
84,
42,
49,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2285,
84,
12,
84,
33,
84,
16,
13382,... |
if fileInfo: | if S_ISREG(entry.filemode): | def __getDirectoryContents(self,path): """ Returns a dictionary containing all of the contents of a directory. This includes the metadata associated to files (replicas, size, guid, status) and the subdirectories found. """ # First check that the directory exists, this res = self.exists(path) if not res['OK']: return re... | cff124c80101a729006f0324d8648c6b90cbff8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/cff124c80101a729006f0324d8648c6b90cbff8a/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2853,
6323,
12,
2890,
16,
803,
4672,
3536,
2860,
279,
3880,
4191,
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
2853,
6323,
12,
2890,
16,
803,
4672,
3536,
2860,
279,
3880,
4191,
777,
434,
326,
2939,
434,
279,
1867,
18,
1220,
6104,
326,
1982,
3627,
358,
1390,
261,
266,
10528,
16,
963,
... |
"""open_vistrail_from_zip_xml(filename) -> Vistrail""" zipfname = os.path.basename(filename) name_in_archive = zipfname if len(zipfname) > 3: dot = zipfname.rfind('.') name_in_archive = zipfname[:dot] xmlfname = os.path.join(core.system.temporary_directory(),name_in_archive) | """open_vistrail_from_zip_xml(filename) -> Vistrail Open a vistrail from a zip compressed format. It expects that the file inside archive has name vistrail """ name_in_archive = 'vistrail' (file_, xmlfname) = tempfile.mkstemp(suffix='.xml') | def open_vistrail_from_zip_xml(filename): """open_vistrail_from_zip_xml(filename) -> Vistrail""" # will assume that the file inside has the same name without .vt zipfname = os.path.basename(filename) name_in_archive = zipfname if len(zipfname) > 3: dot = zipfname.rfind('.') name_in_archive = zipfname[:dot] xmlfname = o... | d2e792d72bd9ef0551682768f3b59ab7ada66fae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/d2e792d72bd9ef0551682768f3b59ab7ada66fae/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
4672,
3536,
3190,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
13,
317,
776,
3337,
671,
8395,
468,
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,
1696,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
4672,
3536,
3190,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
13,
317,
776,
3337,
671,
8395,
468,
903,... |
<name>%d/%d/%d.png</name> | <name>%d/%d/%d.%s</name> | def generate_kml( **args ): """ Template for the tile kml. Returns filled string. Expected variables: zoom, ix, iy, rpixel, tilesize, tileformat, south, west, xsize, ysize, maxzoom """ zoom, ix, iy, rpixel = args['zoom'], args['ix'], args['iy'], args['rpixel'] maxzoom, tilesize = args['maxzoom'], args['tilesize'] sout... | 76fa2f42b72b0363b7511f1567746078baebe8c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/76fa2f42b72b0363b7511f1567746078baebe8c8/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
79,
781,
12,
2826,
1968,
262,
30,
3536,
5035,
364,
326,
4769,
417,
781,
18,
2860,
6300,
533,
18,
13219,
3152,
30,
7182,
16,
8288,
16,
23466,
16,
8715,
3556,
16,
12568,
554,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
79,
781,
12,
2826,
1968,
262,
30,
3536,
5035,
364,
326,
4769,
417,
781,
18,
2860,
6300,
533,
18,
13219,
3152,
30,
7182,
16,
8288,
16,
23466,
16,
8715,
3556,
16,
12568,
554,
... |
key, val = filter(None, map(text, item.find_all('td'))) info[keys[key]] = val | values = filter(None, map(text, item.find_all('td'))) middle = len(values) / 2 fields = [keys[key] if key in spanmap else key for key in values[:middle]] info.update(zip(fields, values[middle:])) | def parse_albumpage(page): album_soup = parse_html.SoupWrapper(parse_html.parse(page)) artist_group = album_soup.find_all('td', 'artist') info = {} for item in artist_group: key = item.find('span').all_text().strip() if key in keys: if callable(keys[key]): info.update(keys[key](item)) else: key, val = filter(None, map(... | 6cc7bd8ff99f60f0e8c9d9fadef063e1ca8db850 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/6cc7bd8ff99f60f0e8c9d9fadef063e1ca8db850/amg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
25090,
2433,
12,
2433,
4672,
14844,
67,
2048,
416,
273,
1109,
67,
2620,
18,
27069,
3611,
12,
2670,
67,
2620,
18,
2670,
12,
2433,
3719,
15469,
67,
1655,
273,
14844,
67,
2048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
25090,
2433,
12,
2433,
4672,
14844,
67,
2048,
416,
273,
1109,
67,
2620,
18,
27069,
3611,
12,
2670,
67,
2620,
18,
2670,
12,
2433,
3719,
15469,
67,
1655,
273,
14844,
67,
2048,
... |
if entity.entity_type.source != 'osm': | if entity.source.module_name != 'molly.providers.apps.maps.osm': | def handle_GET(cls, request, context, type_slug, id): entity = context['entity'] if entity.entity_type.source != 'osm': raise Http404 | 10ea9b227156c90def0c058559d2eb86af439411 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/10ea9b227156c90def0c058559d2eb86af439411/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3264,
12,
6429,
16,
590,
16,
819,
16,
618,
67,
6436,
16,
612,
4672,
1522,
273,
819,
3292,
1096,
3546,
309,
1522,
18,
3168,
18,
2978,
67,
529,
480,
296,
21260,
715,
18,
1752... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
67,
3264,
12,
6429,
16,
590,
16,
819,
16,
618,
67,
6436,
16,
612,
4672,
1522,
273,
819,
3292,
1096,
3546,
309,
1522,
18,
3168,
18,
2978,
67,
529,
480,
296,
21260,
715,
18,
1752... |
self.dprint('dir=%s pattern=%s' % (uridir, pattern)) | self.dprint(u'dir=%s pattern=%s' % (uridir, pattern)) | def completePath(self, text, uri, path): paths = [] if '/' in path: if path.endswith('/'): # It's already a directory uridir = uri pattern = '' else: # The stuff after the last slash is the pattern to match uridir, pattern = path.rsplit('/', 1) uridir = vfs.get_dirname(uri) elif path == '.': # Needed to handle protocol... | e93c2da781a8338895f3837819d7baa7fe6f0c78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/e93c2da781a8338895f3837819d7baa7fe6f0c78/mainmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
743,
12,
2890,
16,
977,
16,
2003,
16,
589,
4672,
2953,
273,
5378,
309,
2023,
316,
589,
30,
309,
589,
18,
5839,
1918,
2668,
2473,
4672,
468,
2597,
1807,
1818,
279,
1867,
8896,
350... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3912,
743,
12,
2890,
16,
977,
16,
2003,
16,
589,
4672,
2953,
273,
5378,
309,
2023,
316,
589,
30,
309,
589,
18,
5839,
1918,
2668,
2473,
4672,
468,
2597,
1807,
1818,
279,
1867,
8896,
350... |
for ((pid, address), bp) in self.__pageBP.itervalues(): | for ((pid, address), bp) in self.__pageBP.iteritems(): | def get_all_page_breakpoints(self): """ @rtype: list of tuple( int, L{PageBreakpoint} ) @return: All page breakpoints as a list of tuples (pid, bp). """ | 6c990afd5a2ab711f191645e14c3a19d8842347b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6c990afd5a2ab711f191645e14c3a19d8842347b/breakpoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
2433,
67,
8820,
4139,
12,
2890,
4672,
3536,
632,
86,
723,
30,
225,
666,
434,
3193,
12,
509,
16,
511,
95,
1964,
20552,
97,
262,
632,
2463,
30,
4826,
1363,
23416,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
2433,
67,
8820,
4139,
12,
2890,
4672,
3536,
632,
86,
723,
30,
225,
666,
434,
3193,
12,
509,
16,
511,
95,
1964,
20552,
97,
262,
632,
2463,
30,
4826,
1363,
23416,
487... |
elif x == roster.first_player: | elif x.prev == None: | def AddPlayer(self, playerID, firstName, lastName, bats, throws, team): p = cw_player_create(playerID, lastName, firstName, bats, throws) | fc03920ae847e01b1f56268350f454a95027ab67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10056/fc03920ae847e01b1f56268350f454a95027ab67/scorebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
12148,
12,
2890,
16,
7291,
734,
16,
22033,
16,
23439,
16,
324,
2323,
16,
1216,
16,
5927,
4672,
293,
273,
14098,
67,
14872,
67,
2640,
12,
14872,
734,
16,
23439,
16,
22033,
16,
324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1436,
12148,
12,
2890,
16,
7291,
734,
16,
22033,
16,
23439,
16,
324,
2323,
16,
1216,
16,
5927,
4672,
293,
273,
14098,
67,
14872,
67,
2640,
12,
14872,
734,
16,
23439,
16,
22033,
16,
324... |
self.lastModified = lastModified[-1] | if lastModified: self.lastModified = lastModified[-1] | def _get(self, previousView=None, updateCallback=None): | 368a9416e794563e4f9a7fb7c9aa2bb2a5d59092 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/368a9416e794563e4f9a7fb7c9aa2bb2a5d59092/Sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
12,
2890,
16,
2416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
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,
... | [
1,
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,
588,
12,
2890,
16,
2416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
r, g, b = helpers.hsv_to_rgb(h, s, v) self.set_color_rgb(r, g, b) | rgb = helpers.hsv_to_rgb(h, s, v) self.set_color_rgb(rgb) | def set_color_hsv(self, hsv): if not self.change_notification: return if hsv == self.last_known_color_hsv: return self.last_known_color_hsv = hsv h, s, v = hsv while h > 1.0: h -= 1.0 while h < 0.0: h += 1.0 if s > 1.0: s = 1.0 if s < 0.0: s = 0.0 if v > 1.0: v = 1.0 if v < 0.0: v = 0.0 r, g, b = helpers.hsv_to_rgb(h,... | 2e0e45cb89043b73344120fcaf1790d1b8e86604 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/2e0e45cb89043b73344120fcaf1790d1b8e86604/colorselectionwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3266,
67,
4487,
90,
12,
2890,
16,
30785,
4672,
309,
486,
365,
18,
3427,
67,
9927,
30,
327,
309,
30785,
422,
365,
18,
2722,
67,
2994,
67,
3266,
67,
4487,
90,
30,
327,
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,
444,
67,
3266,
67,
4487,
90,
12,
2890,
16,
30785,
4672,
309,
486,
365,
18,
3427,
67,
9927,
30,
327,
309,
30785,
422,
365,
18,
2722,
67,
2994,
67,
3266,
67,
4487,
90,
30,
327,
365,
... |
if verbose: print "generating JPG file %s" % repr(filename) | if verbose: print "generating JPG file %s" % filename | def save(self, formats=None, verbose=None, fnRoot=None): "Saves copies of self in desired location and formats" ext = '' fnroot = os.path.join(getattr(self,'outDir','.'), fnRoot or (getattr(self,'fileNamePattern',(self.__class__.__name__+'%03d')) % getattr(self,'chartId',0))) | 164c65c54f5935d247b468cadaa7e21a37eb7697 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/164c65c54f5935d247b468cadaa7e21a37eb7697/shapes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
6449,
33,
7036,
16,
3988,
33,
7036,
16,
2295,
2375,
33,
7036,
4672,
315,
13370,
13200,
434,
365,
316,
6049,
2117,
471,
6449,
6,
1110,
273,
875,
2295,
3085,
273,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
6449,
33,
7036,
16,
3988,
33,
7036,
16,
2295,
2375,
33,
7036,
4672,
315,
13370,
13200,
434,
365,
316,
6049,
2117,
471,
6449,
6,
1110,
273,
875,
2295,
3085,
273,
114... |
"Predicate for inclusion in the writable for select()" | """Predicate for inclusion in the writable for select().""" | def writable(self): "Predicate for inclusion in the writable for select()" return self.producer_fifo or (not self.connected) | 367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
12,
2890,
4672,
3536,
8634,
364,
26485,
316,
326,
9691,
364,
2027,
1435,
12123,
327,
365,
18,
11776,
2750,
67,
74,
20299,
578,
261,
902,
365,
18,
8537,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
12,
2890,
4672,
3536,
8634,
364,
26485,
316,
326,
9691,
364,
2027,
1435,
12123,
327,
365,
18,
11776,
2750,
67,
74,
20299,
578,
261,
902,
365,
18,
8537,
13,
2,
-100,
-100,
-100,
-... |
fileName = ifo + '-TRIGBANK_FOLLOWUP_' + str(ckey.event_id) + ".xml.gz" | fileName = ifo + '-TRIGBANK_FOLLOWUP_' + str(int(ckey.event_id)) + ".xml.gz" | def generateXMLfile(ckey,ifo,outputPath=None,table_type='pre-bank-veto'): if outputPath: try: os.mkdir(outputPath) except: pass xmldoc = ligolw.Document() xmldoc.appendChild(ligolw.LIGO_LW()) trig = getattr(ckey,ifo) # BEFORE WE MAKE A NEW TABLE FIGURE OUT WHAT COLUMNS ARE VALID !!! valid_columns = trig.__slots__ col... | bbfb9d5951b943975f4b18b4cf9f16aff1996eaa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/bbfb9d5951b943975f4b18b4cf9f16aff1996eaa/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4201,
768,
12,
363,
402,
16,
20299,
16,
2844,
743,
33,
7036,
16,
2121,
67,
723,
2218,
1484,
17,
10546,
17,
90,
11453,
11,
4672,
225,
309,
19566,
30,
775,
30,
1140,
18,
26686,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4201,
768,
12,
363,
402,
16,
20299,
16,
2844,
743,
33,
7036,
16,
2121,
67,
723,
2218,
1484,
17,
10546,
17,
90,
11453,
11,
4672,
225,
309,
19566,
30,
775,
30,
1140,
18,
26686,
1... |
g = open( "plugins/" + plugin_name + "/" + new_file_name + ext, "w" ) print "Creating " + "plugins/" + plugin_name + "/" + new_file_name + ext + " file" | g = open( plugin["output_dir"]+"/" + plugin_name + "/" + new_file_name + ext, "w" ) print "Creating " + plugin["output_dir"]+ "/" + plugin_name + "/" + new_file_name + ext + " file" | def make_file( template_dir, plugin_name, replacement_str, filename, new_file_name="", to_lower_case=False ): if not os.path.isdir('templates'): print "Error. There is not templates dir" sys.exit(3) try: f = open( "templates/" + template_dir + "/" + filename , 'r' ) except IOError: return new_file = f.read() f.close i... | 0bb9b8d1224012a3effeb47a46aa7c17b9bcedb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/0bb9b8d1224012a3effeb47a46aa7c17b9bcedb7/TemplatedPluginsGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
768,
12,
1542,
67,
1214,
16,
1909,
67,
529,
16,
6060,
67,
701,
16,
1544,
16,
394,
67,
768,
67,
529,
1546,
3113,
358,
67,
8167,
67,
3593,
33,
8381,
262,
30,
309,
486,
1140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
768,
12,
1542,
67,
1214,
16,
1909,
67,
529,
16,
6060,
67,
701,
16,
1544,
16,
394,
67,
768,
67,
529,
1546,
3113,
358,
67,
8167,
67,
3593,
33,
8381,
262,
30,
309,
486,
1140... |
raise TracError('Attachment %s does not exist.' % (self.title), 'Invalid Attachment') | raise ResourceNotFound("Attachment '%s' does not exist." % self.title, 'Invalid Attachment') | def _fetch(self, filename, db=None): if not db: db = self.env.get_db_cnx() cursor = db.cursor() cursor.execute("SELECT filename,description,size,time,author,ipnr " "FROM attachment WHERE type=%s AND id=%s " "AND filename=%s ORDER BY time", (self.parent_realm, unicode(self.parent_id), filename)) row = cursor.fetchone() ... | 57b71088ef03c4154ec62328071f2d6bd8794ddf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/57b71088ef03c4154ec62328071f2d6bd8794ddf/attachment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
12,
2890,
16,
1544,
16,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
3347,
273,
1319,
18,
9216,
1435,
3347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5754,
12,
2890,
16,
1544,
16,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
3347,
273,
1319,
18,
9216,
1435,
3347,
... |
def cmd_build(config, options, args): | def cmd_build(config, args): '''Build generated files''' if args: print 'Usage: %prog build' return | def cmd_build(config, options, args): builder = Builder(config) builder.build() | aecba37572ec3baab7f1e846b19e09650600ccc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3114/aecba37572ec3baab7f1e846b19e09650600ccc2/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3510,
12,
1425,
16,
833,
4672,
9163,
3116,
4374,
1390,
26418,
225,
309,
833,
30,
1172,
296,
5357,
30,
738,
14654,
1361,
11,
327,
225,
2089,
273,
5008,
12,
1425,
13,
2089,
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,
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,
1797,
67,
3510,
12,
1425,
16,
833,
4672,
9163,
3116,
4374,
1390,
26418,
225,
309,
833,
30,
1172,
296,
5357,
30,
738,
14654,
1361,
11,
327,
225,
2089,
273,
5008,
12,
1425,
13,
2089,
18,... |
if num > 1000: return comma_format(int(num)) | if num > 1000: return comma_format(int(num)) try: floats = int(max(2-max(numpy.floor(numpy.log(abs(num)+1e-3)/log(10)),0),0)) except: floats=2 format = "%." + str(floats) + "f" if type(num) == types.TupleType: return format % float(num[0]) else: | def pretty_float( num ): if num > 1000: return comma_format(int(num)) try: floats = int(max(2-max(floor(log(abs(num)+1e-3)/log(10)),0),0)) except: floats=2 format = "%." + str(floats) + "f" if type(num) == types.TupleType: return format % float(num[0]) else: try: retval = format % float(num) except: raise Exception("... | d12a24d14c272a59a1adb2fbe6b24f8968b0de71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d12a24d14c272a59a1adb2fbe6b24f8968b0de71/GraphUtilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
67,
5659,
12,
818,
262,
30,
225,
309,
818,
405,
4336,
30,
327,
8716,
67,
2139,
12,
474,
12,
2107,
3719,
225,
775,
30,
19172,
273,
509,
12,
1896,
12,
22,
17,
1896,
12,
15974,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7517,
67,
5659,
12,
818,
262,
30,
225,
309,
818,
405,
4336,
30,
327,
8716,
67,
2139,
12,
474,
12,
2107,
3719,
225,
775,
30,
19172,
273,
509,
12,
1896,
12,
22,
17,
1896,
12,
15974,
... |
gamethread.delayed(0.5, usermsg.hudhint, (userid, HudHintText)) | gamethread.delayed(0.5, usermsg.hudhint, (event_var['userid'], HudHintText)) | def gg_levelup(event_var): global list_leaderNames # Check for a winner first if int(event_var['old_level']) == getTotalLevels(): es.event('initialize', 'gg_win') es.event('setint', 'gg_win', 'userid', event_var['userid']) es.event('setint', 'gg_win', 'loser', event_var['victim']) es.event('setstring', 'gg_win', 'steam... | 8c9c543192c66d5208fc987aa94050f8ae1ea454 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/8c9c543192c66d5208fc987aa94050f8ae1ea454/gungame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29758,
67,
2815,
416,
12,
2575,
67,
1401,
4672,
2552,
666,
67,
27863,
1557,
468,
2073,
364,
279,
5657,
1224,
1122,
309,
509,
12,
2575,
67,
1401,
3292,
1673,
67,
2815,
19486,
422,
12831,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29758,
67,
2815,
416,
12,
2575,
67,
1401,
4672,
2552,
666,
67,
27863,
1557,
468,
2073,
364,
279,
5657,
1224,
1122,
309,
509,
12,
2575,
67,
1401,
3292,
1673,
67,
2815,
19486,
422,
12831,
... |
gLogger.error("Failed to determine whether FTS request terminal",res['Message']) | gLogger.error( "Failed to determine whether FTS request terminal", res['Message'] ) | def monitorTransfer(self,ftsReqDict): """ Monitors transfer obtained from TransferDB """ | 75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251/FTSMonitorAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
5912,
12,
2890,
16,
1222,
87,
6113,
5014,
4672,
3536,
9041,
13704,
7412,
225,
12700,
628,
12279,
2290,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6438,
5912,
12,
2890,
16,
1222,
87,
6113,
5014,
4672,
3536,
9041,
13704,
7412,
225,
12700,
628,
12279,
2290,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (req): | if req: | def format(bfo, style): """ Prints a link to BibEdit, if authorization is granted @param style the CSS style to be applied to the link. """ from invenio.config import weburl from invenio.access_control_engine import acc_authorize_action out = "" uid = bfo.uid req = bfo.rec if uid is not None: if (req): (auth_code, a... | 780fbe64d099f6991dfda50e4c3d2d0d84f5afff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/780fbe64d099f6991dfda50e4c3d2d0d84f5afff/bfe_edit_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
70,
617,
16,
2154,
4672,
3536,
3038,
87,
279,
1692,
358,
605,
495,
4666,
16,
309,
6093,
353,
17578,
225,
632,
891,
2154,
326,
6765,
2154,
358,
506,
6754,
358,
326,
1692,
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,
740,
12,
70,
617,
16,
2154,
4672,
3536,
3038,
87,
279,
1692,
358,
605,
495,
4666,
16,
309,
6093,
353,
17578,
225,
632,
891,
2154,
326,
6765,
2154,
358,
506,
6754,
358,
326,
1692,
18,
... |
12. To calculate the kernel of the ensuing map $\mathbb{Z}^m \to (\mathbb{Z}/24\mathbb{Z})^n$ we lift it arbitrarily to an integer | 12. To calculate the kernel of the ensuing map $\ZZ^m \to (\ZZ/24\ZZ)^n$ we lift it arbitrarily to an integer | def basis(self, reduce=True): r""" Produce a basis for the free abelian group of eta-products of level N (under multiplication), attempting to find basis vectors of the smallest possible degree. | 0c130fed7b356e022134568630e483428d00fec2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c130fed7b356e022134568630e483428d00fec2/etaproducts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
16,
5459,
33,
5510,
4672,
436,
8395,
23278,
279,
10853,
364,
326,
4843,
1223,
292,
2779,
1041,
434,
14251,
17,
18736,
434,
1801,
423,
261,
9341,
23066,
3631,
15600,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
16,
5459,
33,
5510,
4672,
436,
8395,
23278,
279,
10853,
364,
326,
4843,
1223,
292,
2779,
1041,
434,
14251,
17,
18736,
434,
1801,
423,
261,
9341,
23066,
3631,
15600,
358,
... |
RemoteImplicitWaitTest.driver = webdriver.connect('firefox') | RemoteImplicitWaitTest.driver = webdriver.connect("remote", browser_name="firefox", platform="ANY") | def setup_module(module): webserver = SimpleWebServer() webserver.start() RemoteImplicitWaitTest.webserver = webserver RemoteImplicitWaitTest.driver = webdriver.connect('firefox') | f19e86a4f641b28af0f182ec180813019ab517d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/f19e86a4f641b28af0f182ec180813019ab517d7/test_remote_implicit_waits.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
12,
2978,
4672,
732,
2266,
502,
273,
4477,
4079,
2081,
1435,
732,
2266,
502,
18,
1937,
1435,
6304,
15787,
5480,
4709,
18,
1814,
2266,
502,
273,
732,
2266,
502,
6304,
1578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
12,
2978,
4672,
732,
2266,
502,
273,
4477,
4079,
2081,
1435,
732,
2266,
502,
18,
1937,
1435,
6304,
15787,
5480,
4709,
18,
1814,
2266,
502,
273,
732,
2266,
502,
6304,
1578... |
glob_settings.widgetGeometry('ssys_admin/GroupManager',dlg) | glob_settings.widgetGeometry('ssys_admin/CreateGroup',dlg) | def execCreateGroup(conn): dlg = WidgetDialog() dlg.setCaption(qApp.translate("CreateGroupWdg","Create Group")) creategroup = CreateGroupWdg(conn) dlg.setWidget(creategroup,True,qApp.translate("CreateUserWdg","Group information")) glob_settings.widgetGeometry('ssys_admin/GroupManager',dlg) dlg.exec_loop() glob_settings... | 2ba500597d23954c66b0df641b6da3515d9fb695 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2487/2ba500597d23954c66b0df641b6da3515d9fb695/launcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
1684,
1114,
12,
4646,
4672,
25840,
273,
11103,
6353,
1435,
25840,
18,
542,
21158,
12,
85,
3371,
18,
13929,
2932,
1684,
1114,
59,
72,
75,
15937,
1684,
3756,
6,
3719,
752,
1655,
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,
1196,
1684,
1114,
12,
4646,
4672,
25840,
273,
11103,
6353,
1435,
25840,
18,
542,
21158,
12,
85,
3371,
18,
13929,
2932,
1684,
1114,
59,
72,
75,
15937,
1684,
3756,
6,
3719,
752,
1655,
273,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.