rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def fl_set_button(ob, pushed): """ fl_set_button(ob, pushed) """ _fl_set_button(ob, pushed) _fl_get_button_numb = cfuncproto(so_libforms, "fl_get_button_numb", cty.c_int, [cty.POINTER(FL_OBJECT)], | def fl_set_button(pObject, pushed): """ fl_set_button(pObject, pushed) """ _fl_set_button(pObject, pushed) _fl_get_button_numb = cfuncproto(so_libforms, "fl_get_button_numb", cty.c_int, [cty.POINTER(FL_OBJECT)], | def fl_set_button(ob, pushed): """ fl_set_button(ob, pushed) """ _fl_set_button(ob, pushed) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
5391,
12,
947,
16,
18543,
4672,
3536,
1183,
67,
542,
67,
5391,
12,
947,
16,
18543,
13,
3536,
225,
389,
2242,
67,
542,
67,
5391,
12,
947,
16,
18543,
13,
282,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
542,
67,
5391,
12,
947,
16,
18543,
4672,
3536,
1183,
67,
542,
67,
5391,
12,
947,
16,
18543,
13,
3536,
225,
389,
2242,
67,
542,
67,
5391,
12,
947,
16,
18543,
13,
282,
2,
-... |
def get_all_selected_packages(self, tree_model): | def get_all_selected_packages(self, tree_model, boolean_col = 0,\ name_col = 1): | # def get_all_selected_packages(tree_model): {{{ | e3a2e4486d7a2734be0004681f6488176d4a351e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/e3a2e4486d7a2734be0004681f6488176d4a351e/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
1652,
336,
67,
454,
67,
8109,
67,
10308,
12,
3413,
67,
2284,
4672,
10179,
95,
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,
468,
1652,
336,
67,
454,
67,
8109,
67,
10308,
12,
3413,
67,
2284,
4672,
10179,
95,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
req.write(rating.firstChild.nodeValue) | req.write(trustresult.getElementsByTagName("rating")[0].firstChild.nodeValue) | def query(self, req): if (req.method == "POST" or req.method == "GET"): form = util.FieldStorage(req, 1) strategy = form["strategy"] source = form["source"] sink = form["sink"] if strategy == "": strategy = "Default" opt = self.parse_options(form) options = self.parse_options(form, True) pgpresult = None if self.con... | 17e2120aff20c945e455a940e5092e5d22602ec4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2336/17e2120aff20c945e455a940e5092e5d22602ec4/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1111,
4672,
309,
261,
3658,
18,
2039,
422,
315,
3798,
6,
578,
1111,
18,
2039,
422,
315,
3264,
6,
4672,
646,
273,
1709,
18,
974,
3245,
12,
3658,
16,
404,
13,
6252,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1111,
4672,
309,
261,
3658,
18,
2039,
422,
315,
3798,
6,
578,
1111,
18,
2039,
422,
315,
3264,
6,
4672,
646,
273,
1709,
18,
974,
3245,
12,
3658,
16,
404,
13,
6252,
... |
return ''.join(responseLines) | return ''.join(responseLines), isClosing, timedOut | def readResponse(self, command, args): """Reads the POP3 server's response. Also sets self.isClosing to True if the server closes the socket, which tells found_terminator() to close when the response has been sent. """ isMulti = self.isMultiline(command, args) responseLines = [] isFirstLine = True while True: line = s... | 2c2119a1ca15b490c9dbbaf612e7be0e189c1b7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/2c2119a1ca15b490c9dbbaf612e7be0e189c1b7e/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26694,
12,
2890,
16,
1296,
16,
833,
4672,
3536,
7483,
326,
26839,
23,
1438,
1807,
766,
18,
225,
8080,
1678,
365,
18,
291,
15745,
358,
1053,
309,
326,
1438,
13445,
326,
2987,
16,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26694,
12,
2890,
16,
1296,
16,
833,
4672,
3536,
7483,
326,
26839,
23,
1438,
1807,
766,
18,
225,
8080,
1678,
365,
18,
291,
15745,
358,
1053,
309,
326,
1438,
13445,
326,
2987,
16,
1492,
... |
"""Sets duration as 24 Hours if event is selcted for all day | """Sets duration as 24 Hours if event is selected for all day | def onchange_allday(self, cr, uid, ids, allday, context=None): """Sets duration as 24 Hours if event is selcted for all day @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of calendar event’s IDs. @param allday... | 6de4c3eb3ab87a7de1e048b6e72e54e52d13188b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6de4c3eb3ab87a7de1e048b6e72e54e52d13188b/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
454,
2881,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
777,
2881,
16,
819,
33,
7036,
4672,
3536,
2785,
3734,
487,
4248,
670,
4390,
309,
871,
353,
3170,
364,
777,
2548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
454,
2881,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
777,
2881,
16,
819,
33,
7036,
4672,
3536,
2785,
3734,
487,
4248,
670,
4390,
309,
871,
353,
3170,
364,
777,
2548,
... |
cfg = ConfigParser.SafeConfigParser() try: fp = repo.opener('hgrc', 'r') os.unlink(fp.name) cfg.readfp(fp) except IOError, inst: if inst.errno != errno.ENOENT: raise if not cfg.has_section('paths'): cfg.add_section('paths') cfg.set('paths', 'default', abspath) cfg.write(repo.opener('hgrc', 'w')) | f = repo.opener("hgrc", "w") f.write("[paths]\n") f.write("default = %s\n" % abspath) | def __del__(self): if self.dir_: self.rmtree(self.dir_, True) | efd87da83dbaa5fa82f65b12ccb7b0e84d78512c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/efd87da83dbaa5fa82f65b12ccb7b0e84d78512c/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
18,
1214,
67,
30,
365,
18,
86,
17371,
12,
2890,
18,
1214,
67,
16,
1053,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
18,
1214,
67,
30,
365,
18,
86,
17371,
12,
2890,
18,
1214,
67,
16,
1053,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self.TileColouring(tile, self.IsTileInFoV(x, y)) | return self.TileColouring(tile, emphasis) | def ViewedTile(self, x, y): tile = self.GetDisplayTileInfo(x, y) if tile is not None: return self.TileColouring(tile, self.IsTileInFoV(x, y)) return " " | cf8882d55bb3db5b71d55e3f6b599a2c62299aba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/cf8882d55bb3db5b71d55e3f6b599a2c62299aba/roguelike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4441,
329,
9337,
12,
2890,
16,
619,
16,
677,
4672,
4769,
273,
365,
18,
967,
4236,
9337,
966,
12,
92,
16,
677,
13,
309,
4769,
353,
486,
599,
30,
327,
365,
18,
9337,
26404,
310,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4441,
329,
9337,
12,
2890,
16,
619,
16,
677,
4672,
4769,
273,
365,
18,
967,
4236,
9337,
966,
12,
92,
16,
677,
13,
309,
4769,
353,
486,
599,
30,
327,
365,
18,
9337,
26404,
310,
12,
... |
if monthlyWage <> "": if monthlyWage.strip().isdigit(): if float(monthlyWage) > 5000.00: hourlyWage = float(monthlyWage) / 160.00 else: hourlyWage = float(monthlyWage) else: hourlyWage = 0.00 else: hourlyWage = 0.00 if self.debug == True: print str(round(hourlyWage,2)) return str(round(hourlyWage,2)) | if monthlyWage <> "": if monthlyWage.strip().isdigit(): if float(monthlyWage) > 5000.00: hourlyWage = float(monthlyWage) / 160.00 else: hourlyWage = float(monthlyWage) else: hourlyWage = 0.00 else: hourlyWage = 0.00 if self.debug == True: print str(round(hourlyWage,2)) return str(round(hourlyWage,2)) | def calcHourlyWage(self, monthlyWage): | 47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
13433,
715,
59,
410,
12,
2890,
16,
31114,
59,
410,
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,
... | [
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,
7029,
13433,
715,
59,
410,
12,
2890,
16,
31114,
59,
410,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise ValueError, "don't expect %s here inside list, expect 'dd' or 'dt'" % repr(tagname) | raise ValueError, "don't expect %s here inside list, expect 'dd' or 'dt'" % \ repr(tagname) | def compile_dl(self, attdict, content, extra, program): # by transformation #print "compile", tagname, attdict atts = attdict.copy() # by transformation #print "compile", tagname, attdict atts = attdict.copy() bulletmaker = bulletMaker("dl", atts, self.context) # now do each element as a separate paragraph import types... | 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,
5761,
12,
2890,
16,
2403,
1576,
16,
913,
16,
2870,
16,
5402,
4672,
468,
635,
8620,
468,
1188,
315,
11100,
3113,
25586,
16,
2403,
1576,
15687,
273,
2403,
1576,
18,
3530,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5761,
12,
2890,
16,
2403,
1576,
16,
913,
16,
2870,
16,
5402,
4672,
468,
635,
8620,
468,
1188,
315,
11100,
3113,
25586,
16,
2403,
1576,
15687,
273,
2403,
1576,
18,
3530,
1435,
... |
def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): | _nocheck = "don't compare exception values (the exception is enough)" def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): | def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): try: callable(*args, **kwargs) except exception, msg: self.assertEqual(str(msg), message) else: if hasattr(excClass,'__name__'): excName = excClass.__name__ else: excName = str(excClass) raise self.failureException, excName | 1ea88748963503c94615f53ae26300832b1b51e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1ea88748963503c94615f53ae26300832b1b51e1/test_actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
2135,
1893,
273,
315,
19752,
1404,
3400,
1520,
924,
261,
5787,
1520,
353,
7304,
2225,
1652,
1815,
12649,
6141,
1079,
12,
2890,
16,
1520,
16,
4140,
16,
883,
16,
380,
1968,
16,
2826,
4333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
2135,
1893,
273,
315,
19752,
1404,
3400,
1520,
924,
261,
5787,
1520,
353,
7304,
2225,
1652,
1815,
12649,
6141,
1079,
12,
2890,
16,
1520,
16,
4140,
16,
883,
16,
380,
1968,
16,
2826,
4333,
... |
def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \ | def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \ | def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \ for i in range(self.tensor_shape()[0]) ] | 286669aaa36faacaf1137f9d65d51b5e298282d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/625/286669aaa36faacaf1137f9d65d51b5e298282d7/polynomial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
7032,
6243,
67,
78,
278,
12,
365,
269,
302,
269,
425,
269,
1353,
269,
9280,
262,
30,
3399,
4867,
273,
365,
18,
4308,
67,
4867,
1435,
9280,
67,
3509,
273,
852,
12,
14736,
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,
2606,
67,
7032,
6243,
67,
78,
278,
12,
365,
269,
302,
269,
425,
269,
1353,
269,
9280,
262,
30,
3399,
4867,
273,
365,
18,
4308,
67,
4867,
1435,
9280,
67,
3509,
273,
852,
12,
14736,
18... |
self.__left, self__operator, self.__right = 1, '=', 1 | self.__left, self.__operator, self.__right = 1, '=', 1 | def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + _rec_get(ids2, table, parent) | 2d0c91fb693fae1f6a0b7cf3371ef4af30c0a0bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/2d0c91fb693fae1f6a0b7cf3371ef4af30c0a0bf/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
4555,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
4555,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... |
return Type('nsTArray', T=basetype, const=const, ref=ref) | return Type('InfallibleTArray', T=basetype, const=const, ref=ref) | def _cxxArrayType(basetype, const=0, ref=0): return Type('nsTArray', T=basetype, const=const, ref=ref) | e747c228863b7cd4617e39132277a04718fae2d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/e747c228863b7cd4617e39132277a04718fae2d4/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
71,
5279,
27182,
12,
70,
2759,
388,
16,
1866,
33,
20,
16,
1278,
33,
20,
4672,
327,
1412,
2668,
13149,
454,
1523,
56,
1076,
2187,
399,
33,
70,
2759,
388,
16,
1866,
33,
10248,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
71,
5279,
27182,
12,
70,
2759,
388,
16,
1866,
33,
20,
16,
1278,
33,
20,
4672,
327,
1412,
2668,
13149,
454,
1523,
56,
1076,
2187,
399,
33,
70,
2759,
388,
16,
1866,
33,
10248,
16,... |
Return the generators for this ideal, which are the same as the ZZ-basis for this ideal. | Return the generators for this ideal, which are the same as the `\\ZZ`-basis for this ideal. | def gens(self): """ Return the generators for this ideal, which are the same as the ZZ-basis for this ideal. | 1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
4672,
3536,
2000,
326,
13327,
364,
333,
23349,
16,
1492,
854,
326,
1967,
487,
326,
2285,
62,
17,
23774,
364,
333,
23349,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
4672,
3536,
2000,
326,
13327,
364,
333,
23349,
16,
1492,
854,
326,
1967,
487,
326,
2285,
62,
17,
23774,
364,
333,
23349,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
os.path.isdir(gitfile): | ".log" in gitfile or os.path.isdir(gitfile): | def main(): """Main function of this module.""" source_files = [] kconfig_files = [] defined_features = set() referenced_features = dict() # use 'git ls-files' to get the worklist pop = Popen("git ls-files", stdout=PIPE, stderr=STDOUT, shell=True) (stdout, _) = pop.communicate() # wait until finished if len(stdout) >... | 45791c1b30b99d17c6fd40cda4a765a3d3133559 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/45791c1b30b99d17c6fd40cda4a765a3d3133559/checkkconfigsymbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
434,
333,
1605,
12123,
1084,
67,
2354,
273,
5378,
417,
1425,
67,
2354,
273,
5378,
2553,
67,
7139,
273,
444,
1435,
8042,
67,
7139,
273,
2065,
1435,
225,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
6376,
445,
434,
333,
1605,
12123,
1084,
67,
2354,
273,
5378,
417,
1425,
67,
2354,
273,
5378,
2553,
67,
7139,
273,
444,
1435,
8042,
67,
7139,
273,
2065,
1435,
225,
468,... |
" --gps-start-time "+str(start)+\ " --gps-end-time "+str(end)+\ | " --gps-start-time "+str(int(start))+\ " --gps-end-time "+str(int(end))+\ | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
67,
12838,
12,
1937,
16,
409,
16,
6420,
4672,
3536,
2860,
279,
3267,
1098,
4191,
326,
5155,
4982,
1492,
326,
864,
2982,
1703,
2695,
316,
326,
864,
3879,
18,
3536,
225,
468,
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,
11086,
67,
12838,
12,
1937,
16,
409,
16,
6420,
4672,
3536,
2860,
279,
3267,
1098,
4191,
326,
5155,
4982,
1492,
326,
864,
2982,
1703,
2695,
316,
326,
864,
3879,
18,
3536,
225,
468,
631,
... |
if self.current.get_selection().count_selected_rows() > 1: | if self.current_selection.count_selected_rows() > 1: | def current_button_press(self, widget, event): self.volume_hide() if event.button == 3: self.set_menu_contextual_items_visible() self.mainmenu.popup(None, None, None, event.button, event.time) # Don't change the selection for a right-click. This # will allow the user to select multiple rows and then # right-click (inst... | 8cbdded67d2cd4af1d043eab95abc449dd591f9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8cbdded67d2cd4af1d043eab95abc449dd591f9b/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
783,
67,
5391,
67,
1028,
12,
2890,
16,
3604,
16,
871,
4672,
365,
18,
9491,
67,
11248,
1435,
309,
871,
18,
5391,
422,
890,
30,
365,
18,
542,
67,
5414,
67,
2472,
1462,
67,
3319,
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,
783,
67,
5391,
67,
1028,
12,
2890,
16,
3604,
16,
871,
4672,
365,
18,
9491,
67,
11248,
1435,
309,
871,
18,
5391,
422,
890,
30,
365,
18,
542,
67,
5414,
67,
2472,
1462,
67,
3319,
67,
... |
a = os.path.join(cmds['basedir'] ,a) | a = os.path.join(cmds['outputdir'] ,a) | def parseArgs(args): """ Parse the command line args return a commands dict and directory. Sanity check all the things being passed in. """ cmds = {} cmds['quiet'] = 0 cmds['verbose'] = 0 cmds['excludes'] = [] cmds['baseurl'] = None cmds['groupfile'] = None cmds['sumtype'] = 'sha' cmds['noepoch'] = False cmds['pretty']... | 8d61af4de7289e56b302e753fc65b8f6c6e8e780 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/8d61af4de7289e56b302e753fc65b8f6c6e8e780/genpkgmetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2615,
12,
1968,
4672,
3536,
2884,
326,
1296,
980,
833,
327,
279,
4364,
2065,
471,
1867,
18,
23123,
866,
777,
326,
9198,
3832,
2275,
316,
18,
3536,
13446,
273,
2618,
13446,
3292,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2615,
12,
1968,
4672,
3536,
2884,
326,
1296,
980,
833,
327,
279,
4364,
2065,
471,
1867,
18,
23123,
866,
777,
326,
9198,
3832,
2275,
316,
18,
3536,
13446,
273,
2618,
13446,
3292,
20... |
'SAGE Library Source Code', | 'Sage Library Source Code', | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file). | ae2ebdf61ef0e4abf79e5e38de819254d5ad978b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/ae2ebdf61ef0e4abf79e5e38de819254d5ad978b/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
sorted_edges_iterator=iter(sorted(self.edges(), cmp=lambda x,y: weight_function(x)-weight_function(y))) | sorted_edges_iterator=iter(sorted(self.edges(), cmp=cmp)) | def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. | c61ea2b1e2f04826b363d788e6f74366b6d120e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c61ea2b1e2f04826b363d788e6f74366b6d120e3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... |
return objects | return super(ThirdPartyBalance, self).parse(cursor, user, report, objects, datas, context) | def _get_objects(self, cursor, user, ids, model, datas, context): party_obj = self.pool.get('relationship.party') move_line_obj = self.pool.get('account.move.line') company_obj = self.pool.get('company.company') company = company_obj.browse(cursor, user, datas['form']['company'], context=context) context['company'] = c... | a400e413c3c56f8c41becdd5169ebce9ff61f2f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/a400e413c3c56f8c41becdd5169ebce9ff61f2f6/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6911,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
938,
16,
5386,
16,
819,
4672,
18285,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
12873,
18,
21214,
6134,
3635,
67,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
6911,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
938,
16,
5386,
16,
819,
4672,
18285,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
12873,
18,
21214,
6134,
3635,
67,
136... |
if self.resource_type == "Texture": return ("client_buffer_id_", "kNoError", "GL_INVALID_OPERATION") return ("client_texture_id_", "kNoError", "GL_INVALID_OPERATION") | return ("kInvalidClientId", "kNoError", "GL_INVALID_VALUE") | def GetInvalidArg(self, offset, index): """returns an invalid value by index.""" if self.resource_type == "Texture": return ("client_buffer_id_", "kNoError", "GL_INVALID_OPERATION") return ("client_texture_id_", "kNoError", "GL_INVALID_OPERATION") | 9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1941,
4117,
12,
2890,
16,
1384,
16,
770,
4672,
3536,
6154,
392,
2057,
460,
635,
770,
12123,
309,
365,
18,
3146,
67,
723,
422,
315,
10967,
6877,
327,
7566,
2625,
67,
4106,
67,
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,
968,
1941,
4117,
12,
2890,
16,
1384,
16,
770,
4672,
3536,
6154,
392,
2057,
460,
635,
770,
12123,
309,
365,
18,
3146,
67,
723,
422,
315,
10967,
6877,
327,
7566,
2625,
67,
4106,
67,
350,... |
If the variable name is unknown to the object, the variable is added. | If the attribute name is unknown to the object, the attribute is added. | def __setitem__(self, varName, newVal): ''' Change the values of one time series (through []). If the variable name is unknown to the object, the variable is added. Arguments: varName : variable name; string. values : an array of compatible size Retuns: self, the object (so operations can be chained). ''' #attribute... | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
13722,
16,
20957,
4672,
9163,
7576,
326,
924,
434,
1245,
813,
4166,
261,
10064,
5378,
2934,
971,
326,
1566,
508,
353,
5917,
358,
326,
733,
16,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
13722,
16,
20957,
4672,
9163,
7576,
326,
924,
434,
1245,
813,
4166,
261,
10064,
5378,
2934,
971,
326,
1566,
508,
353,
5917,
358,
326,
733,
16,
326,
... |
if width >= 0 or width == None: | if width is None or width >= 0: | def setup(**geometry): """ Sets the size and position of the main window. Keywords are width, height, startx and starty: width: either a size in pixels or a fraction of the screen. Default is 50% of screen. height: either the height in pixels or a fraction of the screen. Default is 75% of screen. Setting either widt... | 2f073a68aebfe15f6967ebba4d6d0ba59563fea6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2f073a68aebfe15f6967ebba4d6d0ba59563fea6/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
636,
14330,
4672,
3536,
11511,
326,
963,
471,
1754,
434,
326,
2774,
2742,
18,
225,
1929,
3753,
854,
1835,
16,
2072,
16,
787,
92,
471,
787,
93,
30,
225,
1835,
30,
3344,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
636,
14330,
4672,
3536,
11511,
326,
963,
471,
1754,
434,
326,
2774,
2742,
18,
225,
1929,
3753,
854,
1835,
16,
2072,
16,
787,
92,
471,
787,
93,
30,
225,
1835,
30,
3344,
279,
... |
raise DocImportError(path, sys.exc_type, sys.exc_value) | raise DocImportError(path, sys.exc_info()) | def importfile(path): """Import a Python source file or compiled file given its path.""" magic = imp.get_magic() file = open(path, 'r') if file.read(len(magic)) == magic: kind = imp.PY_COMPILED else: kind = imp.PY_SOURCE file.close() filename = os.path.basename(path) name, ext = os.path.splitext(filename) file = open(p... | 54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
768,
12,
803,
4672,
3536,
5010,
279,
6600,
1084,
585,
578,
7743,
585,
864,
2097,
589,
12123,
8146,
273,
1646,
18,
588,
67,
11179,
1435,
585,
273,
1696,
12,
803,
16,
296,
86,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
768,
12,
803,
4672,
3536,
5010,
279,
6600,
1084,
585,
578,
7743,
585,
864,
2097,
589,
12123,
8146,
273,
1646,
18,
588,
67,
11179,
1435,
585,
273,
1696,
12,
803,
16,
296,
86,
6134... |
**kwargs | **flup_kwargs | def to_int(opt_name): try: setattr(options, opt_name, int(getattr(options, opt_name))) except ValueError: parser.error('--%s value must be an integer' % opt_name.replace('_', '-')) | a8687d6f0f3479f043c3b0a485ef9d47e358566a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/a8687d6f0f3479f043c3b0a485ef9d47e358566a/apps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
474,
12,
3838,
67,
529,
4672,
775,
30,
9241,
12,
2116,
16,
2153,
67,
529,
16,
509,
12,
588,
1747,
12,
2116,
16,
2153,
67,
529,
20349,
1335,
2068,
30,
2082,
18,
1636,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
474,
12,
3838,
67,
529,
4672,
775,
30,
9241,
12,
2116,
16,
2153,
67,
529,
16,
509,
12,
588,
1747,
12,
2116,
16,
2153,
67,
529,
20349,
1335,
2068,
30,
2082,
18,
1636,
2668,
... |
at.params['md_virial'] = s / (HARTREE/(BOHR**3)) | at.params['md_stress'] = at.virial/at.cell_volume() / (HARTREE/(BOHR**3)) | def costfn(config_list, pot, wf=1.0, ws=0.5, we=0.1, bulk_mod=2000.0/294156.6447): s = fzeros((3,3)) normweight = sqrt(wf*wf + ws*ws + we*we) wf /= normweight ws /= normweight we /= normweight dist_f = 0.0; norm_f = 0.0 dist_e = 0.0; norm_e = 0.0 dist_s = 0.0; norm_s = 0.0 for ati, at in enumerate(config_list): pot... | c678eb69f4e3322139aeed2586b2b437a89e282f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/c678eb69f4e3322139aeed2586b2b437a89e282f/sio2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6991,
4293,
12,
1425,
67,
1098,
16,
5974,
16,
11578,
33,
21,
18,
20,
16,
4945,
33,
20,
18,
25,
16,
732,
33,
20,
18,
21,
16,
8280,
67,
1711,
33,
17172,
18,
20,
19,
5540,
24,
28946... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6991,
4293,
12,
1425,
67,
1098,
16,
5974,
16,
11578,
33,
21,
18,
20,
16,
4945,
33,
20,
18,
25,
16,
732,
33,
20,
18,
21,
16,
8280,
67,
1711,
33,
17172,
18,
20,
19,
5540,
24,
28946... |
a[i] = mean_value - a[i] | a[i] = mirror - a[i] | 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) | 2a985203d3906454fb40e78992e5a6a752fd3300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/2a985203d3906454fb40e78992e5a6a752fd3300/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,
... |
convert_unicode = False | def __init__(self, config, griffith_dir, fallback=True): #mapper = Session.mapper self.config = config self.data_dir = griffith_dir | 99f25dfdd3c0a9ef6970a2f3a8bb4c4ac4090c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/99f25dfdd3c0a9ef6970a2f3a8bb4c4ac4090c3d/sql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
3821,
3048,
483,
67,
1214,
16,
5922,
33,
5510,
4672,
468,
13919,
273,
3877,
18,
13919,
365,
18,
1425,
273,
642,
365,
18,
892,
67,
1214,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
16,
3821,
3048,
483,
67,
1214,
16,
5922,
33,
5510,
4672,
468,
13919,
273,
3877,
18,
13919,
365,
18,
1425,
273,
642,
365,
18,
892,
67,
1214,
273,
3... | |
cherrypy.config.update('config.cfg') cherrypy.quickstart(Root(),'/') | InputThread().start() cherrypy.quickstart(Root(),'/','config.cfg') | def run(self): go = True while go: cmd = raw_input(">") if cmd=="exit": go = False cherrypy.engine.exit() | d90638052c766fb6e66e30cde88beb39e18c3e23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14104/d90638052c766fb6e66e30cde88beb39e18c3e23/webmines.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1960,
273,
1053,
1323,
1960,
30,
1797,
273,
1831,
67,
2630,
2932,
2984,
13,
309,
1797,
31713,
8593,
6877,
1960,
273,
1083,
462,
370,
28398,
18,
8944,
18,
8593,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
4672,
1960,
273,
1053,
1323,
1960,
30,
1797,
273,
1831,
67,
2630,
2932,
2984,
13,
309,
1797,
31713,
8593,
6877,
1960,
273,
1083,
462,
370,
28398,
18,
8944,
18,
8593,
1435... |
send_email(from_addr, to_addr, content=body) | send_email(from_addr, to_addr, subject="Error notification", content=body) | def send_error_report_to_admin(header, url, time_msg, browser, client, error, sys_error, traceback_msg): """ Sends an email to the admin with client info and tracestack """ from_addr = '%s Alert Engine <%s>' % (cdsname, alertengineemail) to_addr = adminemail body = """ | 13ef718111c611660b8cb9b870d705447981ce16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/13ef718111c611660b8cb9b870d705447981ce16/errorlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
67,
6006,
67,
869,
67,
3666,
12,
3374,
16,
880,
16,
813,
67,
3576,
16,
4748,
16,
1004,
16,
555,
16,
2589,
67,
1636,
16,
10820,
67,
3576,
4672,
3536,
2479,
87,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
67,
6006,
67,
869,
67,
3666,
12,
3374,
16,
880,
16,
813,
67,
3576,
16,
4748,
16,
1004,
16,
555,
16,
2589,
67,
1636,
16,
10820,
67,
3576,
4672,
3536,
2479,
87,
392,
... |
self.isTest = False | def __init__(self): """Initialises the State object that holds the state of the app. The default settings are read from Options.py and bayescustomize.ini and are then overridden by the command-line processing code in the __main__ code below.""" # Open the log file. if options.verbose: self.logFile = open('_pop3proxy.lo... | 38162d4d907fe3e4c5679f4e7231ffe1339613bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/38162d4d907fe3e4c5679f4e7231ffe1339613bd/proxytrainer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
4435,
6141,
326,
3287,
733,
716,
14798,
326,
919,
434,
326,
595,
18,
1021,
805,
1947,
854,
855,
628,
5087,
18,
2074,
471,
324,
528,
742,
1192,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
4435,
6141,
326,
3287,
733,
716,
14798,
326,
919,
434,
326,
595,
18,
1021,
805,
1947,
854,
855,
628,
5087,
18,
2074,
471,
324,
528,
742,
1192,
55... | |
return (result, status_code, headers_result) | return (result, headers_set[0], headers_set[1]) | def start_response(status, headers, exc_info=None): status_code = status headers_result = headers return output.append | 34e9816e351f5148472fea5ab578aa460f755892 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/34e9816e351f5148472fea5ab578aa460f755892/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
273,
1267,
1607,
67,
2088,
273,
1607,
327,
876,
18,
6923,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
273,
1267,
1607,
67,
2088,
273,
1607,
327,
876,
18,
6923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return idaapi.make_ascii_string(ea, endea - ea, GetLongPrm(INF_STRTYPE)) | return idaapi.make_ascii_string(ea, endea - ea, GetLongPrm(INF_STRTYPE)) | def MakeStr(ea, endea): """ Create a string. This function creates a string (the string type is determined by the value of GetLongPrm(INF_STRTYPE)) @param ea: linear address @param endea: ending address of the string (excluded) if endea == BADADDR, then length of string will be calculated by the kernel @return: 1-ok... | f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
1585,
12,
24852,
16,
570,
323,
69,
4672,
3536,
1788,
279,
533,
18,
225,
1220,
445,
3414,
279,
533,
261,
5787,
533,
618,
353,
11383,
635,
326,
460,
434,
968,
3708,
2050,
81,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
1585,
12,
24852,
16,
570,
323,
69,
4672,
3536,
1788,
279,
533,
18,
225,
1220,
445,
3414,
279,
533,
261,
5787,
533,
618,
353,
11383,
635,
326,
460,
434,
968,
3708,
2050,
81,
12,
... |
self.__speed *= self.ship.speednerf | def handleAvatarControls(self, task): """ Check on the arrow keys and update the "avatar" (ship). """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%( base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar hpr = %s\n"%( base.localAvatar.getHpr().pPrintValu... | 9aafee4e4afd1a297615b085bf344b65c9f76ce1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/9aafee4e4afd1a297615b085bf344b65c9f76ce1/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... | |
raise NotImplementedError | def c(i, j): return a[j].dx(i) - a[i].dx(j) return c(0,1) | def rot(self, o, a): raise NotImplementedError # FIXME | 914cc5220dc787f77df0bda7c0900e1c78013234 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/914cc5220dc787f77df0bda7c0900e1c78013234/transformations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4168,
12,
2890,
16,
320,
16,
279,
4672,
225,
1652,
276,
12,
77,
16,
525,
4672,
327,
279,
63,
78,
8009,
13437,
12,
77,
13,
300,
279,
63,
77,
8009,
13437,
12,
78,
13,
327,
276,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4168,
12,
2890,
16,
320,
16,
279,
4672,
225,
1652,
276,
12,
77,
16,
525,
4672,
327,
279,
63,
78,
8009,
13437,
12,
77,
13,
300,
279,
63,
77,
8009,
13437,
12,
78,
13,
327,
276,
12,
... |
((not man) or delta-bitcount(man) > max_extra_prec): | ((not man) or delta-bitcount(abs(man)) > max_extra_prec): | def mpf_sum(xs, prec=0, rnd=round_fast): """ Sum a list of mpf values efficiently and accurately (typically no temporary roundoff occurs). If prec=0, the final result will not be rounded either. There may be roundoff error or cancellation if extremely large exponent differences occur. """ man = 0 exp = 0 max_extra_pre... | 8fa5e97bfacea0aff85c9829fddb7f0632abfd01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11851/8fa5e97bfacea0aff85c9829fddb7f0632abfd01/libmpf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
74,
67,
1364,
12,
13713,
16,
13382,
33,
20,
16,
20391,
33,
2260,
67,
8076,
4672,
3536,
9352,
279,
666,
434,
6749,
74,
924,
14382,
715,
471,
19361,
5173,
261,
12846,
6478,
1158,
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,
6749,
74,
67,
1364,
12,
13713,
16,
13382,
33,
20,
16,
20391,
33,
2260,
67,
8076,
4672,
3536,
9352,
279,
666,
434,
6749,
74,
924,
14382,
715,
471,
19361,
5173,
261,
12846,
6478,
1158,
6... |
else: return None return coverage_file | return True | def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage. | cb5ba75cf843f2c74de2f7116b0c7ad99b95596b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/cb5ba75cf843f2c74de2f7116b0c7ad99b95596b/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.display.vprint(VERB_STD, \ | display.vprint(VERB_STD, \ | def ttyloop(task, nodeset, timeout, display): """Manage the interactive prompt to run command""" readline_avail = False if task.default("USER_interactive"): assert sys.stdin.isatty() try: import readline readline_setup() readline_avail = True except ImportError: pass self.display.vprint(VERB_STD, \ "Enter 'quit' to lea... | 40e717199e01e0d30a142905d4bb8e333c468cd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/40e717199e01e0d30a142905d4bb8e333c468cd4/Clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
2021,
16,
2562,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
12023,
67,
842,
671,
273,
1083,
309,
1562,
18,
1886,
2932,
4714,
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,
21520,
6498,
12,
4146,
16,
2199,
278,
16,
2021,
16,
2562,
4672,
3536,
21258,
326,
12625,
6866,
358,
1086,
1296,
8395,
12023,
67,
842,
671,
273,
1083,
309,
1562,
18,
1886,
2932,
4714,
67,... |
config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).toByteArray()) self.descrip... | try: config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).toByteArray()) self.des... | def restoreSettings(self): config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).t... | 82391663fda7aa47d096acd3a0194e37c77c0457 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1729/82391663fda7aa47d096acd3a0194e37c77c0457/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
2628,
12,
2890,
4672,
775,
30,
642,
273,
1475,
809,
2932,
75,
754,
3240,
7923,
314,
1655,
273,
1475,
809,
1114,
12,
1425,
16,
315,
12259,
7923,
963,
273,
314,
1655,
18,
896,
1622... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
2628,
12,
2890,
4672,
775,
30,
642,
273,
1475,
809,
2932,
75,
754,
3240,
7923,
314,
1655,
273,
1475,
809,
1114,
12,
1425,
16,
315,
12259,
7923,
963,
273,
314,
1655,
18,
896,
1622... |
if self.lastBuilding: filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') f.write('\n') style = DNAFlatBuildingStyle(building = self.lastBuilding) style.output(f) f.close() | dnaObject = self.selectedDNARoot if dnaObject: if DNAClassEqual(dnaObject, DNA_FLAT_BUILDING): filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') f.write('\n') style = DNAFl... | def saveBuildingStyle(self): if self.lastBuilding: # Valid wall, add style to file filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') # Add a blank line f.write('\n') # Now out... | de04270464b14b300ef6060444772d8ce4f0cf8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/de04270464b14b300ef6060444772d8ce4f0cf8a/LevelEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
16713,
2885,
12,
2890,
4672,
309,
365,
18,
2722,
16713,
30,
468,
2364,
17662,
16,
527,
2154,
358,
585,
1544,
273,
365,
18,
18168,
19619,
397,
2070,
3510,
310,
67,
10218,
18,
5830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16713,
2885,
12,
2890,
4672,
309,
365,
18,
2722,
16713,
30,
468,
2364,
17662,
16,
527,
2154,
358,
585,
1544,
273,
365,
18,
18168,
19619,
397,
2070,
3510,
310,
67,
10218,
18,
5830,
... |
try: body = [output, extra] except NameError: body = [output] | body = [output] | def perform_modifytranslations(rnkID, ln, sel_type, trans, confirm, callback='yes'): """Modify the translations of a rank method""" output = '' subtitle = '' cdslangs = get_languages() cdslangs.sort() if confirm in ["2", 2] and rnkID: finresult = modify_translations(rnkID, cdslangs, sel_type, trans, "rnkMETHOD") rnk... | e7e9dc2ccb39f6626e14a7fa9e36775c6d60119d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e7e9dc2ccb39f6626e14a7fa9e36775c6d60119d/bibrankadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
13457,
12,
27639,
79,
734,
16,
7211,
16,
357,
67,
723,
16,
906,
16,
6932,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
7863,
434,
279,
6171,
707,
8395,
225,
876,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
13457,
12,
27639,
79,
734,
16,
7211,
16,
357,
67,
723,
16,
906,
16,
6932,
16,
1348,
2218,
9707,
11,
4672,
3536,
11047,
326,
7863,
434,
279,
6171,
707,
8395,
225,
876,
... |
def fix_fragment(self, match): """Return a href attribute with colons replaced by hyphens. """ return match.group(1) + match.group(2).replace(':', '-') | def fix_fragment(self, prefix, fragment): """Return a href/id attribute with colons replaced by hyphens. """ return prefix + fragment.replace(':', '-') | def fix_fragment(self, match): """Return a href attribute with colons replaced by hyphens. """ return match.group(1) + match.group(2).replace(':', '-') | aaff3f1ebe4046e60af24bc5f9e321a2422a600d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/aaff3f1ebe4046e60af24bc5f9e321a2422a600d/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
11956,
12,
2890,
16,
845,
4672,
3536,
990,
279,
3897,
1566,
598,
645,
7008,
8089,
635,
4855,
28776,
18,
3536,
327,
845,
18,
1655,
12,
21,
13,
397,
845,
18,
1655,
12,
22,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
11956,
12,
2890,
16,
845,
4672,
3536,
990,
279,
3897,
1566,
598,
645,
7008,
8089,
635,
4855,
28776,
18,
3536,
327,
845,
18,
1655,
12,
21,
13,
397,
845,
18,
1655,
12,
22,
29... |
original_testrunner_args = args args = args[1:] options, positional = parser.parse_args(args) merge_options(options, defaults) options.original_testrunner_args = original_testrunner_args | options, positional = parser.parse_args(args[1:], defaults) options.original_testrunner_args = args | def apply_auto_progress(args): if args and '--auto-progress' in args: if sys.stdout.isatty(): progress = '--progress' else: progress = '--no-progress' | d7279b410b19b1663e2cdd24c2dbea97a7cc284e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10007/d7279b410b19b1663e2cdd24c2dbea97a7cc284e/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
6079,
67,
8298,
12,
1968,
4672,
309,
833,
471,
3534,
6079,
17,
8298,
11,
316,
833,
30,
309,
2589,
18,
10283,
18,
291,
270,
4098,
13332,
4007,
273,
3534,
8298,
11,
469,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
6079,
67,
8298,
12,
1968,
4672,
309,
833,
471,
3534,
6079,
17,
8298,
11,
316,
833,
30,
309,
2589,
18,
10283,
18,
291,
270,
4098,
13332,
4007,
273,
3534,
8298,
11,
469,
30,
... |
@param kls: class @type kls: class @param text: (optional) name of class @type text: text | @param kls: class object for debuggable class @param name: (optional) name of class | def append(kls,text=None): """Add a class to the list of entries | 6078bfdc1efb8e29b7a4028200db71a2948b0cd8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/6078bfdc1efb8e29b7a4028200db71a2948b0cd8/debug_classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
79,
3251,
16,
955,
33,
7036,
4672,
3536,
986,
279,
667,
358,
326,
666,
434,
3222,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
79,
3251,
16,
955,
33,
7036,
4672,
3536,
986,
279,
667,
358,
326,
666,
434,
3222,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def ogr_gml_6(): if not gdaltest.have_gml_reader: return 'skip' files = ['test_point1', 'test_point2', 'test_point3'] fids = [] for filename in files: fids[:] = [] gml_ds = ogr.Open( 'data' + os.sep + filename + '.gml' ) lyr = gml_ds.GetLayer() feat = lyr.GetNextFeature() while feat is not None: if ( feat.GetFID()... | def ogr_gml_7(): if not gdaltest.have_gml_reader: return 'skip' gml_ds = ogr.Open( 'data/test_point.gml' ) lyr = gml_ds.GetLayer() ldefn = lyr.GetLayerDefn() if ldefn.GetFieldDefn(0).GetFieldTypeName(ldefn.GetFieldDefn(0).GetType())\ != 'Real': return 'fail' if ldefn.GetFieldDefn(1).GetFieldTypeName(ldefn.GetFieldD... | def ogr_gml_5(): if not gdaltest.have_gml_reader: return 'skip' gml_ds = ogr.Open( 'data/ticket_2349_test_1.gml' ) lyr = gml_ds.GetLayerByName('MyPolyline') lyr.SetAttributeFilter( 'height > 300' ) lyr.GetNextFeature() return 'success' | d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e/ogr_gml_read.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
3197,
67,
19005,
67,
25,
13332,
225,
309,
486,
15551,
2390,
395,
18,
21516,
67,
19005,
67,
10530,
30,
327,
296,
7457,
11,
225,
314,
781,
67,
2377,
273,
320,
3197,
18,
3678,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
3197,
67,
19005,
67,
25,
13332,
225,
309,
486,
15551,
2390,
395,
18,
21516,
67,
19005,
67,
10530,
30,
327,
296,
7457,
11,
225,
314,
781,
67,
2377,
273,
320,
3197,
18,
3678,
12,
... |
def __get__(self, obj, objtype=None): | def __get__(self, obj, type=None): | def __get__(self, obj, objtype=None): if obj is None: return self value = self._func(obj) setattr(obj, self._name, value) return value | 1f318cea86708f84c5dfe80565e6d06e2ab99067 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14437/1f318cea86708f84c5dfe80565e6d06e2ab99067/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
1081,
16,
618,
33,
7036,
4672,
309,
1081,
353,
599,
30,
327,
365,
460,
273,
365,
6315,
644,
12,
2603,
13,
9241,
12,
2603,
16,
365,
6315,
529,
16,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
588,
972,
12,
2890,
16,
1081,
16,
618,
33,
7036,
4672,
309,
1081,
353,
599,
30,
327,
365,
460,
273,
365,
6315,
644,
12,
2603,
13,
9241,
12,
2603,
16,
365,
6315,
529,
16,
460,
... |
max_db_ver = (4, 6) | max_db_ver = (4, 5) | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 7165d6f17f5ecc232a443f93d3396cbd6e8c7a8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/7165d6f17f5ecc232a443f93d3396cbd6e8c7a8c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
"""Start a background download for <script src=""> tags""" | """Start a background download for <script src=""> tags After that, self.js_client points to the proxy client object""" debug(FILTER, "%s jsScriptSrc %r", self, url) | def jsScriptSrc (self, url, language): """Start a background download for <script src=""> tags""" assert self.htmlparser.state[0]=='parse', "non-parse state %s" % self.htmlparser.state ver = get_js_ver(language) if self.base_url: url = urlparse.urljoin(self.base_url, url) else: url = urlparse.urljoin(self.url, url) # u... | 49db0e6e8d49d9f3681aec19c4a2214733171f10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/49db0e6e8d49d9f3681aec19c4a2214733171f10/JSFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
7740,
261,
2890,
16,
880,
16,
2653,
4672,
3536,
1685,
279,
5412,
4224,
364,
411,
4263,
1705,
1546,
6441,
2342,
7360,
716,
16,
365,
18,
2924,
67,
2625,
3143,
358,
326,
2889,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
7740,
261,
2890,
16,
880,
16,
2653,
4672,
3536,
1685,
279,
5412,
4224,
364,
411,
4263,
1705,
1546,
6441,
2342,
7360,
716,
16,
365,
18,
2924,
67,
2625,
3143,
358,
326,
2889,
... |
ld_args.extend (extra_postargs) | ld_args.extend(extra_postargs) | def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None): | 35c5384ab8055cc66d91421c142147c213766a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/35c5384ab8055cc66d91421c142147c213766a95/bcppcompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
... |
session = self.get_current_session() if session.audio_recording_file_name is None: session.start_recording_audio() else: session.stop_recording_audio() | self.get_current_session().toggle_recording() | def cmd_record(self, *args): """:record \t Toggle audio recording""" session = self.get_current_session() if session.audio_recording_file_name is None: session.start_recording_audio() else: session.stop_recording_audio() | ac5f5a5dbddc7c19861e59c86d89ca7df5c3443b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/ac5f5a5dbddc7c19861e59c86d89ca7df5c3443b/sip_session2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3366,
12,
2890,
16,
380,
1968,
4672,
3536,
30,
3366,
521,
88,
399,
9891,
7447,
14949,
8395,
1339,
273,
365,
18,
588,
67,
2972,
67,
3184,
1435,
309,
1339,
18,
11509,
67,
3366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3366,
12,
2890,
16,
380,
1968,
4672,
3536,
30,
3366,
521,
88,
399,
9891,
7447,
14949,
8395,
1339,
273,
365,
18,
588,
67,
2972,
67,
3184,
1435,
309,
1339,
18,
11509,
67,
3366,... |
inclusions=[pim_ns.allCollection, pim_ns.trashCollection, pim_ns.inCollection, pim_ns.outCollection] | inclusions=[pim_ns.allCollection, pim_ns.inCollection, pim_ns.outCollection, pim_ns.trashCollection] | def installParcel(parcel, oldVersion=None): import scripts as Scripts from osaf import sharing, startup from osaf.framework import scripting pim_ns = schema.ns('osaf.pim', parcel) sharing_ns = schema.ns('osaf.sharing', parcel) me = pim.Contact.update(parcel, 'me', displayName=_(u'Me'), contactName=pim.ContactName.up... | a2c61092e8d2f9fe862764cf43ea36cb7ef1cb45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a2c61092e8d2f9fe862764cf43ea36cb7ef1cb45/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
1930,
21001,
16,
11850,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
1930,
21001,
16,
11850,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
... |
obj_pool = {} module_object_list = {} | def __init__(self, name, value, exc_type='warning'): self.name = name self.exc_type = exc_type self.value = value self.args = (exc_type,name) | 3a7b523cc53888d654dced2b95ac5e41a720ee9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/3a7b523cc53888d654dced2b95ac5e41a720ee9f/osv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
460,
16,
3533,
67,
723,
2218,
8551,
11,
4672,
365,
18,
529,
273,
508,
365,
18,
10075,
67,
723,
273,
3533,
67,
723,
365,
18,
1132,
273,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
460,
16,
3533,
67,
723,
2218,
8551,
11,
4672,
365,
18,
529,
273,
508,
365,
18,
10075,
67,
723,
273,
3533,
67,
723,
365,
18,
1132,
273,
460,
... | |
def header_update_column_widths(self): | def header_save_column_widths(self): | def header_update_column_widths(self): if not self.withdrawn and self.expanded: width = self.current.allocation.width + self.expanderwindow.get_vscrollbar().allocation.width if width <= 10 or self.columns[0] <= 10: # Make sure we only set self.colwidthpercents if self.current # has its normal allocated width: return fo... | 76017b062cd0df10c980ce59656031dbb2d651b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/76017b062cd0df10c980ce59656031dbb2d651b7/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1446,
67,
5688,
67,
2827,
67,
17043,
12,
2890,
4672,
309,
486,
365,
18,
1918,
9446,
82,
471,
365,
18,
17336,
30,
1835,
273,
365,
18,
2972,
18,
29299,
18,
2819,
397,
365,
18,
12320,
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,
1446,
67,
5688,
67,
2827,
67,
17043,
12,
2890,
4672,
309,
486,
365,
18,
1918,
9446,
82,
471,
365,
18,
17336,
30,
1835,
273,
365,
18,
2972,
18,
29299,
18,
2819,
397,
365,
18,
12320,
2... |
df_root = system_output('df -mP / | tail -1').split() self.free_space_mb_root_before = int(df_root[3]) self.usage_percent_root_before = int(df_root[4].rstrip('%')) pickle.dump(self.free_space_mb_root_before, file(self.control + '.fs', 'w')) | def __init__(self, control, jobtag, cont, harness_type=None): """ control The control file (pathname of) jobtag The job tag string (eg "default") cont If this is the continuation of this job harness_type An alternative server harness """ self.autodir = os.environ['AUTODIR'] self.bindir = os.path.join(self.autodir, 'bin... | 8887cd2ec58579d83075b9f4aeb1469d46538fbd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/8887cd2ec58579d83075b9f4aeb1469d46538fbd/job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3325,
16,
1719,
2692,
16,
466,
16,
366,
1303,
403,
67,
723,
33,
7036,
4672,
3536,
3325,
1021,
3325,
585,
261,
28336,
434,
13,
1719,
2692,
1021,
1719,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3325,
16,
1719,
2692,
16,
466,
16,
366,
1303,
403,
67,
723,
33,
7036,
4672,
3536,
3325,
1021,
3325,
585,
261,
28336,
434,
13,
1719,
2692,
1021,
1719,
104... | |
for path, in cu: | for path, in cu2: | def migrate(self): from conary import trove cu = self.cu logMe(3, "Fixing NULL path hashes...") cu.execute("SELECT instanceId FROM TroveInfo " "WHERE data IS NULL and infotype = ?", trove._TROVEINFO_TAG_PATH_HASHES) cu2 = self.db.cursor() for instanceId, in cu: cu2.execute("SELECT path FROM TroveFiles WHERE instanceId... | 4ff444029abafdb9eb70260628e931f68005c7ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4ff444029abafdb9eb70260628e931f68005c7ae/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
628,
225,
356,
814,
1930,
23432,
537,
15985,
273,
365,
18,
6319,
613,
4667,
12,
23,
16,
315,
8585,
310,
3206,
589,
9869,
7070,
13,
15985,
18,
8837,
2932,
4803,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
628,
225,
356,
814,
1930,
23432,
537,
15985,
273,
365,
18,
6319,
613,
4667,
12,
23,
16,
315,
8585,
310,
3206,
589,
9869,
7070,
13,
15985,
18,
8837,
2932,
4803,
1... |
for mypage in page_results[2:]: | for mypage in page_results: | def send_to_graph(results_server, results_link, title, date, browser_config, results): tbox = title url_format = "http://%s/%s" link_format= "<a href = \"%s\">%s</a>" #value, testname, tbox, timeval, date, branch, buildid, type, data result_format = "%.2f,%s,%s,%d,%d,%s,%s,%s,%s,\n" result_format2 = "%.2f,%s,%s,%d,%d,%... | b0fc6e52c352be592cdfc962460d5c30d088e367 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12156/b0fc6e52c352be592cdfc962460d5c30d088e367/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
4660,
12,
4717,
67,
3567,
16,
1686,
67,
1232,
16,
2077,
16,
1509,
16,
4748,
67,
1425,
16,
1686,
4672,
268,
2147,
273,
2077,
880,
67,
2139,
273,
315,
2505,
23155,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
4660,
12,
4717,
67,
3567,
16,
1686,
67,
1232,
16,
2077,
16,
1509,
16,
4748,
67,
1425,
16,
1686,
4672,
268,
2147,
273,
2077,
880,
67,
2139,
273,
315,
2505,
23155,
8... |
@schema.observer( modificationFor ) def debugModificationFor(self, op, name): if self.modificationFor == self: import pdb; pdb.set_trace() | def removeFromCollection(self, collection, cutting=False): """ If recurring, create a proxy and use its removeFromCollection(). | 2233052ea4d55aa724a05f7dc1c7bedb4039cbb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2233052ea4d55aa724a05f7dc1c7bedb4039cbb7/Calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22386,
2532,
12,
2890,
16,
1849,
16,
6391,
1787,
33,
8381,
4672,
3536,
971,
26043,
16,
752,
279,
2889,
471,
999,
2097,
22386,
2532,
7675,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22386,
2532,
12,
2890,
16,
1849,
16,
6391,
1787,
33,
8381,
4672,
3536,
971,
26043,
16,
752,
279,
2889,
471,
999,
2097,
22386,
2532,
7675,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
raise ResourceNotFoundError(path) | raise ResourceNotFoundError(src) | def movedir(self,src,dst,overwrite=False,ignore_errors=False,chunk_size=16384): nsrc = self._normpath(src) ndst = self._normpath(dst) if overwrite and self.isdir(dst): self.removedir(dst) try: self.client.rename(nsrc,ndst) except IOError, e: if getattr(e,"errno",None) == 2: raise ResourceNotFoundError(path) if self.exi... | 25035ae0842dabd79bace2e546cea7220fd74c62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/25035ae0842dabd79bace2e546cea7220fd74c62/sftpfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10456,
481,
12,
2890,
16,
4816,
16,
11057,
16,
19274,
33,
8381,
16,
6185,
67,
4324,
33,
8381,
16,
6551,
67,
1467,
33,
2313,
17295,
4672,
3153,
1310,
273,
365,
6315,
7959,
803,
12,
4816... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10456,
481,
12,
2890,
16,
4816,
16,
11057,
16,
19274,
33,
8381,
16,
6185,
67,
4324,
33,
8381,
16,
6551,
67,
1467,
33,
2313,
17295,
4672,
3153,
1310,
273,
365,
6315,
7959,
803,
12,
4816... |
self.itemDataMap[index][1] = status | self.itemDataMap[index]['testresult'] = status | def UpdateItem(self, index, status): self.itemDataMap[index][1] = status self.list.SetStringItem(index, 1, _(afresource.TEST_STATUS_NAME[status])) item = self.list.GetItem(index) item.SetTextColour(self.color[status]) item.SetImage(self.img[status]) self.list.SetItem(item) | ec7bcedffa1a531cf29df3512a587b51ee7cb4e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/561/ec7bcedffa1a531cf29df3512a587b51ee7cb4e1/_trmainframe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1180,
12,
2890,
16,
770,
16,
1267,
4672,
365,
18,
1726,
31982,
63,
1615,
23962,
3813,
2088,
3546,
273,
1267,
365,
18,
1098,
18,
694,
780,
1180,
12,
1615,
16,
404,
16,
389,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1180,
12,
2890,
16,
770,
16,
1267,
4672,
365,
18,
1726,
31982,
63,
1615,
23962,
3813,
2088,
3546,
273,
1267,
365,
18,
1098,
18,
694,
780,
1180,
12,
1615,
16,
404,
16,
389,
12,
... |
ctxt.replaceEntities(1) | if expand_entities: ctxt.replaceEntities(1) | def stringForEntity(node): """Replaces entities in the node.""" text = node.serialize() try: # Lets add document DTD so entities are resolved dtd = node.doc.intSubset() tmp = dtd.serialize() + '<norm>%s</norm>' % text next = 1 except: tmp = '<norm>%s</norm>' % text next = 0 ctxt = libxml2.createDocParserCtxt(tmp) ctxt... | 31083f52c83b44c025cdb8241a0b3621c6a746a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/31083f52c83b44c025cdb8241a0b3621c6a746a6/xml2po.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
533,
1290,
1943,
12,
2159,
4672,
3536,
15189,
5140,
316,
326,
756,
12123,
977,
273,
756,
18,
6288,
1435,
775,
30,
468,
511,
2413,
527,
1668,
10696,
40,
1427,
5140,
854,
4640,
3681,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
533,
1290,
1943,
12,
2159,
4672,
3536,
15189,
5140,
316,
326,
756,
12123,
977,
273,
756,
18,
6288,
1435,
775,
30,
468,
511,
2413,
527,
1668,
10696,
40,
1427,
5140,
854,
4640,
3681,
72,
... |
self._leakDetector.removeContainerById(id) | self._leakDetector.removeContainerById(objId) | def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain... | d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... |
self.login() | self.login() | def initialise_data(self): """Login, set editor, page and pagelink attributes""" self.login()#anonymous=self.options.anonymous) self.editor = self.options.editor or wikipedia.input(u"Editor to use:") self.setpage() | f42e768094d2426b578dcc7518961d5e56b8f55a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/f42e768094d2426b578dcc7518961d5e56b8f55a/editarticle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21301,
67,
892,
12,
2890,
4672,
3536,
5358,
16,
444,
4858,
16,
1363,
471,
4262,
27269,
1677,
8395,
365,
18,
5819,
1435,
7,
19070,
33,
2890,
18,
2116,
18,
19070,
13,
365,
18,
9177,
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,
21301,
67,
892,
12,
2890,
4672,
3536,
5358,
16,
444,
4858,
16,
1363,
471,
4262,
27269,
1677,
8395,
365,
18,
5819,
1435,
7,
19070,
33,
2890,
18,
2116,
18,
19070,
13,
365,
18,
9177,
273,... |
parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds() if id not in parent_ids: | check_id = getattr(self, 'check_id', None) if check_id is None: parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds() check_id = lambda id, required: id in parent_ids invalid_id = check_id(id, required=1) if not invalid_id: | def _findUniqueId(self, id): """Find a unique id in the parent folder, based on the given id, by appending -n, where n is a number between 1 and the constant RENAME_AFTER_CREATION_ATTEMPTS, set in config.py. If no id can be found, return None. """ parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds() | ff3424f1d0da6ffd99d4550e7691240539ec4326 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ff3424f1d0da6ffd99d4550e7691240539ec4326/BaseObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
24174,
12,
2890,
16,
612,
4672,
3536,
3125,
279,
3089,
612,
316,
326,
982,
3009,
16,
2511,
603,
326,
864,
612,
16,
635,
19997,
300,
82,
16,
1625,
290,
353,
279,
1300,
3086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
24174,
12,
2890,
16,
612,
4672,
3536,
3125,
279,
3089,
612,
316,
326,
982,
3009,
16,
2511,
603,
326,
864,
612,
16,
635,
19997,
300,
82,
16,
1625,
290,
353,
279,
1300,
3086,
... |
return [(left, 'in', rg(ids, table, parent))] | return [(left, 'in', rg(ids, table, parent or table._parent_name))] | def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent) | 343f552b9ce6074fd255a350098ce64f7e754679 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/343f552b9ce6074fd255a350098ce64f7e754679/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14524,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
4555,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
13,
6487,
819... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14524,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
4555,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
13,
6487,
819... |
def FindPcd(self, Arch, ModuleName, Name, Guid, Type, PcdsSet): | def FindPcd(self, Arch, ModuleName, Name, Guid, Type): | def FindPcd(self, Arch, ModuleName, Name, Guid, Type, PcdsSet): NewType = '' DatumType = '' Value = '' Token = '' MaxDatumSize = '' SkuInfoList = {} IsOverrided = False IsFoundInDsc = False IsFoundInDec = False FoundInDecFile = '' # # Second get information from platform database # OwnerPlatform = '' for Dsc in self.B... | c583042a7ebac8604b26034adbdd555c0bfc36d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/c583042a7ebac8604b26034adbdd555c0bfc36d0/EdkIIWorkspaceBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
52,
4315,
12,
2890,
16,
16959,
16,
5924,
461,
16,
1770,
16,
611,
1911,
16,
1412,
4672,
1166,
559,
273,
875,
20102,
559,
273,
875,
1445,
273,
875,
3155,
273,
875,
4238,
18268,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
52,
4315,
12,
2890,
16,
16959,
16,
5924,
461,
16,
1770,
16,
611,
1911,
16,
1412,
4672,
1166,
559,
273,
875,
20102,
559,
273,
875,
1445,
273,
875,
3155,
273,
875,
4238,
18268,
122... |
writer = BeakerWriter(journal, offs, filename=name, id=id, | writer = BeakerWriter(journal, offs, id=id, filename=os.path.basename(name), path=os.path.dirname(name), | def get_writer(self, id, name, args=(), kwargs={}): writer = self.__writers.setdefault(id, {}).get(name, None) if writer is None: offss = self.__offsets.get(id, None) if offss is None: offss = self.__offsets[id] = runtimes.TypeDict(self.runtime, 'offsets/%s' % id) offs = offss.get(name, 0) wrargs = self.__writer_args.g... | 1b06946fb33c7c0aab869fedc66521834aeb3ef4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/1b06946fb33c7c0aab869fedc66521834aeb3ef4/beakerlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6299,
12,
2890,
16,
612,
16,
508,
16,
833,
33,
9334,
1205,
12938,
4672,
2633,
273,
365,
16186,
5363,
414,
18,
542,
1886,
12,
350,
16,
2618,
2934,
588,
12,
529,
16,
599,
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,
336,
67,
6299,
12,
2890,
16,
612,
16,
508,
16,
833,
33,
9334,
1205,
12938,
4672,
2633,
273,
365,
16186,
5363,
414,
18,
542,
1886,
12,
350,
16,
2618,
2934,
588,
12,
529,
16,
599,
13,
... |
fc += str(self.atoms[nn,i]) + "\t" | fc += "%10.5f" % self.atoms[nn,i] | def write_xyz(self, filename="Xyz.out"): """Writes data into a XYZ format file""" fc = "" # Contents of the file fc += str(self.nAtoms) + "\nGenerated by vasputil\n" if not self.cartesian: self.direct2Cartesian() for nn in xrange(self.nAtoms): fc += self.atomSymbols[nn] + "\t" for i in xrange(3): fc += str(self.atoms[n... | 07bbd26db98de8f6c9e659dd00123408cac48e80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14986/07bbd26db98de8f6c9e659dd00123408cac48e80/supercell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17177,
12,
2890,
16,
1544,
1546,
60,
93,
94,
18,
659,
6,
4672,
3536,
8368,
501,
1368,
279,
30742,
740,
585,
8395,
8036,
273,
1408,
468,
21290,
434,
326,
585,
8036,
1011,
609,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17177,
12,
2890,
16,
1544,
1546,
60,
93,
94,
18,
659,
6,
4672,
3536,
8368,
501,
1368,
279,
30742,
740,
585,
8395,
8036,
273,
1408,
468,
21290,
434,
326,
585,
8036,
1011,
609,... |
return result + " ".join(list) | return result + " ".join(format(l) for l in list) | def _linebreak_list(list, per_line=8): result = "" while len(list) > per_line: result += " ".join(list[:per_line]) + "\n" list = list[per_line:] return result + " ".join(list) | e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1369,
8820,
67,
1098,
12,
1098,
16,
1534,
67,
1369,
33,
28,
4672,
563,
273,
1408,
1323,
562,
12,
1098,
13,
405,
1534,
67,
1369,
30,
563,
1011,
315,
3552,
5701,
12,
1098,
10531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1369,
8820,
67,
1098,
12,
1098,
16,
1534,
67,
1369,
33,
28,
4672,
563,
273,
1408,
1323,
562,
12,
1098,
13,
405,
1534,
67,
1369,
30,
563,
1011,
315,
3552,
5701,
12,
1098,
10531,
... |
headers_end = __build_address_headers(options) | tmpl, headers_end = __build_address_headers(tmpl, options) | def __build_cover(tmpl, total_nr, msg_id, options): """Build the cover message (series description) to be sent via SMTP """ maintainer = __get_maintainer() if not maintainer: maintainer = '' headers_end = __build_address_headers(options) headers_end += 'Message-Id: %s\n' % msg_id if options.refid: headers_end += "In-R... | f8d1cf651e6f767e17ea9aad7702a6aaedc2960e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/f8d1cf651e6f767e17ea9aad7702a6aaedc2960e/mail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
3165,
12,
24717,
16,
2078,
67,
11611,
16,
1234,
67,
350,
16,
702,
4672,
3536,
3116,
326,
5590,
883,
261,
10222,
2477,
13,
358,
506,
3271,
3970,
18102,
3536,
11566,
1521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
3165,
12,
24717,
16,
2078,
67,
11611,
16,
1234,
67,
350,
16,
702,
4672,
3536,
3116,
326,
5590,
883,
261,
10222,
2477,
13,
358,
506,
3271,
3970,
18102,
3536,
11566,
1521,
... |
self.verbosity = 1 | self.verbosity = 0 | def __init__(self, loader, file): self.file = file self.loader = loader self.tagged = 0 self.colors = [] self.screens = [] self.dashes = [] self.pens = [] self.line_styles = [] self.procindex = [None,] self.bitmapindex = [None,] self.embeddedindex = [None,] self.arrowindex = [None,] self.verbosity = 1 self.angle_factor... | 504b3424962c4439e872f80b110653774e635711 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/504b3424962c4439e872f80b110653774e635711/ccxloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4088,
16,
585,
4672,
365,
18,
768,
273,
585,
365,
18,
6714,
273,
4088,
365,
18,
23023,
273,
374,
365,
18,
9724,
273,
5378,
365,
18,
1017,
266,
773,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4088,
16,
585,
4672,
365,
18,
768,
273,
585,
365,
18,
6714,
273,
4088,
365,
18,
23023,
273,
374,
365,
18,
9724,
273,
5378,
365,
18,
1017,
266,
773,
273... |
match = _passwdprog.match(user) | match = _passwdprog.match(user) | def splitpasswd(user): global _passwdprog if _passwdprog is None: import re _passwdprog = re.compile('^([^:]*):(.*)$') match = _passwdprog.match(user) if match: return match.group(1, 2) return user, None | 2d38d3f1f4ff990c5bea7bc3505e01b697c7563f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2d38d3f1f4ff990c5bea7bc3505e01b697c7563f/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
24002,
12,
1355,
4672,
2552,
389,
24002,
14654,
309,
389,
24002,
14654,
353,
599,
30,
1930,
283,
389,
24002,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
30,
5772,
4672,
14361,
8,
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,
1416,
24002,
12,
1355,
4672,
2552,
389,
24002,
14654,
309,
389,
24002,
14654,
353,
599,
30,
1930,
283,
389,
24002,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
30,
5772,
4672,
14361,
8,
6... |
print "===============================\n %s\n===============================" % title | print "===============================" print title print "===============================" | def wrapper(*args): print "===============================\n %s\n===============================" % title return f(*args) | 384389ba88074400c7a7209aa406ffc0af69d9ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9738/384389ba88074400c7a7209aa406ffc0af69d9ec/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
30857,
1968,
4672,
1172,
315,
2429,
26678,
1546,
1172,
2077,
1172,
315,
2429,
26678,
1546,
327,
284,
30857,
1968,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4053,
30857,
1968,
4672,
1172,
315,
2429,
26678,
1546,
1172,
2077,
1172,
315,
2429,
26678,
1546,
327,
284,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
elif (obj1_type == list_type or obj2_type == list_type): | elif obj1_type == list_type or obj2_type == list_type: | def empty_result(obj1,obj2=None): """ This function inspects the arguments and returns an appropriate return type for an operation using the arguments. The object can be filled using result_insert. Parameters: ---------- -> obj1 is a SOM, SO or tuple -> obj2 is a SOM, SO or tuple Returns: ------- <- A tuple containin... | 1a7152ef8214e57cb269e9232349874b9d88a4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/1a7152ef8214e57cb269e9232349874b9d88a4cc/hlr_data_helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
67,
2088,
12,
2603,
21,
16,
2603,
22,
33,
7036,
4672,
3536,
1220,
445,
11085,
326,
1775,
471,
1135,
392,
5505,
327,
618,
364,
392,
1674,
1450,
326,
1775,
18,
1021,
733,
848,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
67,
2088,
12,
2603,
21,
16,
2603,
22,
33,
7036,
4672,
3536,
1220,
445,
11085,
326,
1775,
471,
1135,
392,
5505,
327,
618,
364,
392,
1674,
1450,
326,
1775,
18,
1021,
733,
848,
506,... |
if not all_required.has_key(this): all_required[this] = [] required = all_required[this] | propdef = all_propdef[cn] | e58be10f9d0a92bfdb379cbe4e1948b77f52ed44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e58be10f9d0a92bfdb379cbe4e1948b77f52ed44/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2270,
536,
273,
777,
67,
5986,
536,
63,
10305,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2270,
536,
273,
777,
67,
5986,
536,
63,
10305,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
md[self.selections_metadata_name] = [index] | md[self.selection_metadata_name] = [index] | def _select(self, index, append=True): plot = self.component for name in ('index', 'value'): md = getattr(plot, name).metadata selection = md.get(self.selections_metadata_name, None) | 605ee9a8a51e3941bff0a40b785047649151e760 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/605ee9a8a51e3941bff0a40b785047649151e760/scatter_inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
12,
2890,
16,
770,
16,
714,
33,
5510,
4672,
3207,
273,
365,
18,
4652,
364,
508,
316,
7707,
1615,
2187,
296,
1132,
11,
4672,
3481,
273,
3869,
12,
4032,
16,
508,
2934,
4165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
12,
2890,
16,
770,
16,
714,
33,
5510,
4672,
3207,
273,
365,
18,
4652,
364,
508,
316,
7707,
1615,
2187,
296,
1132,
11,
4672,
3481,
273,
3869,
12,
4032,
16,
508,
2934,
4165,
... |
if timeslot is None: | if timeslot is not None: | def catalog(self, request, tl, one, two, module, extra, prog, timeslot=None): """ Return the program class catalog """ context = {} dt_approved = GetNode( 'V/Flags/Class/Approved' ) | 328fb862c237d89a2c9f223cbea2f0482e2c4153 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/328fb862c237d89a2c9f223cbea2f0482e2c4153/studentclassregmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
16,
4124,
23372,
33,
7036,
4672,
3536,
2000,
326,
5402,
667,
6222,
3536,
225,
819,
273,
2618,
3681... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
16,
4124,
23372,
33,
7036,
4672,
3536,
2000,
326,
5402,
667,
6222,
3536,
225,
819,
273,
2618,
3681... |
mul1s reg, t1 | mul1s reg, t1, flags=(CF,OF) | def macroop IMUL_R_M | b64d0bdeda1662091746c3695b4429fcc6f69342 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/b64d0bdeda1662091746c3695b4429fcc6f69342/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
49,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
49,
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,
... |
import mimetools, StringIO headers = mimetools.Message(StringIO.StringIO( 'Content-Length: %d\n' % retrlen)) else: headers = noheaders() | headers += "Content-Length: %d\n" % retrlen headers = mimetools.Message(StringIO.StringIO(headers)) | def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote... | 2078c4109a32f378e49883f3fb164d94045ff893 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2078c4109a32f378e49883f3fb164d94045ff893/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
2... |
if (config["collection"]["editable"] and None != os.getenv ("EDITOR", None)): os.system (os.getenv ("EDITOR") + " \"" + filename + "\"") | if config["collection"]["editable"]: invokeEditor (editor, filename) | def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Cha... | dffc05987167f1e73f81ee3a2be7db157a9223cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/dffc05987167f1e73f81ee3a2be7db157a9223cd/hylt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
3536,
1986,
2922,
14881,
5618,
14176,
18,
225,
8398,
326,
2774,
810,
471,
2562,
14075,
16,
328,
6968,
434,
10313,
16,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
3536,
1986,
2922,
14881,
5618,
14176,
18,
225,
8398,
326,
2774,
810,
471,
2562,
14075,
16,
328,
6968,
434,
10313,
16,
471... |
raise | def start(self, local_sdp, remote_sdp, stream_index): context = 'sdp_negotiation' try: self.remote_identity = CPIMIdentity(self.session.remote_identity.uri, self.session.remote_identity.display_name) remote_media = remote_sdp.media[stream_index] media_attributes = dict((attr.name, attr.value) for attr in remote_media.a... | 7426ae2cdbd3e4d6acdb27a63d2d82db1b095660 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/7426ae2cdbd3e4d6acdb27a63d2d82db1b095660/msrpstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
1191,
67,
6427,
84,
16,
2632,
67,
6427,
84,
16,
1407,
67,
1615,
4672,
819,
273,
296,
6427,
84,
67,
14518,
352,
7072,
11,
775,
30,
365,
18,
7222,
67,
10781,
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,
787,
12,
2890,
16,
1191,
67,
6427,
84,
16,
2632,
67,
6427,
84,
16,
1407,
67,
1615,
4672,
819,
273,
296,
6427,
84,
67,
14518,
352,
7072,
11,
775,
30,
365,
18,
7222,
67,
10781,
273,
... | |
so_dim.id = kwargs.get("so_id", 0) | so_dim.id = kwargs.get("so_id", som[0].id) | def create_E_vs_Q_dgs(som, E_i, Q_final, **kwargs): """ This function starts with the rebinned energy transfer and turns this into a 2D spectra with E and Q axes for DGS instruments. @param som: The input object with initial IGS wavelength axis @type som: C{SOM.SOM} @param E_i: The initial energy for the given data. ... | 3ee4cd3bf77e1cc98e4ce15d6821d6f11fa9c3e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/3ee4cd3bf77e1cc98e4ce15d6821d6f11fa9c3e4/hlr_create_E_vs_Q_dgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
41,
67,
6904,
67,
53,
67,
72,
564,
12,
87,
362,
16,
512,
67,
77,
16,
2238,
67,
6385,
16,
2826,
4333,
4672,
3536,
1220,
445,
2542,
598,
326,
283,
4757,
11748,
12929,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
67,
6904,
67,
53,
67,
72,
564,
12,
87,
362,
16,
512,
67,
77,
16,
2238,
67,
6385,
16,
2826,
4333,
4672,
3536,
1220,
445,
2542,
598,
326,
283,
4757,
11748,
12929,
7412,
... |
res = func(value) if len(res) > 2: collections, items, value = res else: collections, items = res | try: res = func(value) if len(res) > 2: collections, items, value = res else: collections, items = res except ObjectDoesNotExist: collections = collections.none() items = items.none() | def search(self, request, type = None): """Perform a search through collections and items metadata""" collections = MediaCollection.objects.enriched() items = MediaItem.objects.enriched() input = request.REQUEST criteria = {} | 5fd5df913604911f8008a002a26c683002577f27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12043/5fd5df913604911f8008a002a26c683002577f27/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275,
12761,
329,
1435,
1516,
273,
6128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275,
12761,
329,
1435,
1516,
273,
6128,
... |
msg=u"vCard for %s:\n" % (stanza.get_from(),) | msg = u"vCard for %s:\n" % (unicode(stanza.get_from()),) | def vcard_response(self,stanza): try: node=stanza.get_query() if node: vcard=VCard(node) else: vcard=None except (ValueError,),e: vcard=None if vcard is None: self.error(u"Invalid vCard received from "+stanza.get_from().as_unicode()) return self.cjc.set_user_info(stanza.get_from(),"vcard",vcard) msg=u"vCard for %s:\n" ... | b8468c0a12ddf237c3c850d0955f27458f918042 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/b8468c0a12ddf237c3c850d0955f27458f918042/vcard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29760,
67,
2740,
12,
2890,
16,
541,
11939,
4672,
775,
30,
756,
33,
541,
11939,
18,
588,
67,
2271,
1435,
309,
756,
30,
29760,
33,
58,
6415,
12,
2159,
13,
469,
30,
29760,
33,
7036,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29760,
67,
2740,
12,
2890,
16,
541,
11939,
4672,
775,
30,
756,
33,
541,
11939,
18,
588,
67,
2271,
1435,
309,
756,
30,
29760,
33,
58,
6415,
12,
2159,
13,
469,
30,
29760,
33,
7036,
133... |
url = '/' + os.path.join(self.absolute_url(1), rel_dir, dirname) +\ '/plfng_view?portal_status_message=Directory created' REQUEST.RESPONSE.redirect(url) security.declareProtected('View', 'getProperties') | redir_dest = make_url(self, 'plfng_view') msg = '?portal_status_message='+destpath+' created.' REQUEST.RESPONSE.redirect(redir_dest + msg) return security.declareProtected('View', 'getProperties') | def create_directory(self, dirname, REQUEST): """ create a sub-directory """ dirname = dirname.replace('\\','/') if dirname.startswith('/') or dirname.find('..') > -1 or \ dirname.find(':') > -1: msg="create directory aborted: illegal directory name: " + dirname zLOG.LOG('PloneLocalFolderNG', zLOG.INFO , msg ) REQUEST.... | 4f60f681cc7277bf1f7923bd74aacd6bf3d7674f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/4f60f681cc7277bf1f7923bd74aacd6bf3d7674f/PloneLocalFolderNG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
5149,
12,
2890,
16,
4283,
16,
12492,
4672,
3536,
752,
279,
720,
17,
5149,
3536,
4283,
273,
4283,
18,
2079,
2668,
1695,
17023,
2473,
13,
309,
4283,
18,
17514,
1918,
2668,
2473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5149,
12,
2890,
16,
4283,
16,
12492,
4672,
3536,
752,
279,
720,
17,
5149,
3536,
4283,
273,
4283,
18,
2079,
2668,
1695,
17023,
2473,
13,
309,
4283,
18,
17514,
1918,
2668,
2473,
... |
return tup("wine", c.file) | return tup("wine", c.file.path) | def app_wine(self, c): return tup("wine", c.file) | 8e1de9174e18bf804bde3186a3a893698fcf7f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/8e1de9174e18bf804bde3186a3a893698fcf7f78/apps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
67,
91,
558,
12,
2890,
16,
276,
4672,
327,
15822,
2932,
91,
558,
3113,
276,
18,
768,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
67,
91,
558,
12,
2890,
16,
276,
4672,
327,
15822,
2932,
91,
558,
3113,
276,
18,
768,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False parcelPath .../tools/QATestScripts/DataFiles perf False profile False profileDir .../test_profile recorded False runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunCha... | args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False parcelPath tools/QATestScripts/DataFiles perf False profile False profileDir test_profile recorded False runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunChandler...... | def checkOptions(options): """ Sanity check options. Some options may be changed, and some combinations will be warned about while some combinations will result in program exit. >>> options = parseOptions() >>> checkOptions(options) >>> d = eval(str(options)) >>> keys = d.keys() >>> keys.sort() >>> for key in keys: ..... | 58706c198c72ae85bd163dd339d4081bdd26b7be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/58706c198c72ae85bd163dd339d4081bdd26b7be/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1320,
12,
2116,
4672,
3536,
23123,
866,
702,
18,
10548,
702,
2026,
506,
3550,
16,
471,
2690,
17265,
903,
506,
1894,
329,
2973,
1323,
2690,
17265,
903,
563,
316,
5402,
2427,
18,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1320,
12,
2116,
4672,
3536,
23123,
866,
702,
18,
10548,
702,
2026,
506,
3550,
16,
471,
2690,
17265,
903,
506,
1894,
329,
2973,
1323,
2690,
17265,
903,
563,
316,
5402,
2427,
18,
225,... |
self.jsEnv.attachListener(self) | self.js_env.attachListener(self) | def jsPopup (self, attrs, name): """check if attrs[name] javascript opens a popup window""" val = resolve_html_entities(attrs[name]) if not val: return self.jsEnv.attachListener(self) try: self.jsEnv.executeScriptAsFunction(val, 0.0) except jslib.error, msg: pass self.jsEnv.detachListener(self) res = self.popup_counter... | 475def66113a258d59f287a283585f27e07dd77a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/475def66113a258d59f287a283585f27e07dd77a/Rewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
13770,
261,
2890,
16,
3422,
16,
508,
4672,
3536,
1893,
309,
3422,
63,
529,
65,
11341,
10400,
279,
10431,
2742,
8395,
1244,
273,
2245,
67,
2620,
67,
9996,
12,
7039,
63,
529,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
13770,
261,
2890,
16,
3422,
16,
508,
4672,
3536,
1893,
309,
3422,
63,
529,
65,
11341,
10400,
279,
10431,
2742,
8395,
1244,
273,
2245,
67,
2620,
67,
9996,
12,
7039,
63,
529,
5717,
... |
print map | def calculateRanges(sizeZ, sizeT, commandArgs): planeMap = {}; if(commandArgs["planeMap"]=={}): if(commandArgs["zStart"]==commandArgs["zEnd"]): commandArgs["zEnd"] = commandArgs["zEnd"]+1; if(commandArgs["tStart"]==commandArgs["tEnd"]): commandArgs["tEnd"] = commandArgs["tEnd"]+1; if(inRange(commandArgs["zStart"], comm... | 5d400fe366d73bb74f028b732cd5bc090e9b320d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/5d400fe366d73bb74f028b732cd5bc090e9b320d/makemovie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
9932,
12,
1467,
62,
16,
963,
56,
16,
1296,
2615,
4672,
11017,
863,
273,
2618,
31,
309,
12,
3076,
2615,
9614,
21314,
863,
11929,
631,
2916,
4672,
309,
12,
3076,
2615,
9614,
94,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
9932,
12,
1467,
62,
16,
963,
56,
16,
1296,
2615,
4672,
11017,
863,
273,
2618,
31,
309,
12,
3076,
2615,
9614,
21314,
863,
11929,
631,
2916,
4672,
309,
12,
3076,
2615,
9614,
94,
16... | |
pchange = self.changelog.read(p1) pmmap = self.manifest.read(pchange[0]) | c1 = self.changelog.read(p1) c2 = self.changelog.read(p2) m1 = self.manifest.read(c1[0]) mf1 = self.manifest.readflags(c1[0]) m2 = self.manifest.read(c2[0]) | def rawcommit(self, files, text, user, date, p1=None, p2=None): p1 = p1 or self.dirstate.parents()[0] or nullid p2 = p2 or self.dirstate.parents()[1] or nullid pchange = self.changelog.read(p1) pmmap = self.manifest.read(pchange[0]) tr = self.transaction() mmap = {} linkrev = self.changelog.count() for f in files: try:... | d28dfb673f54a4ab197cab7a012ae86c69a139b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d28dfb673f54a4ab197cab7a012ae86c69a139b4/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
7371,
12,
2890,
16,
1390,
16,
977,
16,
729,
16,
1509,
16,
293,
21,
33,
7036,
16,
293,
22,
33,
7036,
4672,
293,
21,
273,
293,
21,
578,
365,
18,
72,
920,
340,
18,
12606,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
7371,
12,
2890,
16,
1390,
16,
977,
16,
729,
16,
1509,
16,
293,
21,
33,
7036,
16,
293,
22,
33,
7036,
4672,
293,
21,
273,
293,
21,
578,
365,
18,
72,
920,
340,
18,
12606,
1435,
... |
len_prompt = len(self._continuation_prompt) | line, col = cursor.blockNumber(), cursor.columnNumber() | def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi... | 4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1/console_widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2575,
67,
2188,
67,
8698,
67,
856,
1028,
12,
2890,
16,
871,
4672,
3536,
4008,
498,
2641,
364,
326,
6808,
977,
3604,
358,
752,
279,
2983,
17,
5625,
1560,
18,
3536,
10883,
329,
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,
389,
2575,
67,
2188,
67,
8698,
67,
856,
1028,
12,
2890,
16,
871,
4672,
3536,
4008,
498,
2641,
364,
326,
6808,
977,
3604,
358,
752,
279,
2983,
17,
5625,
1560,
18,
3536,
10883,
329,
273,... |
ret.append(('user', u)) | ret.append(('user', u, u)) | def listUsersAndRoles(self,): """ listUsersAndRoles(self,) => list of tuples | 508ebeccb11fe240e74cedc43a998bbd8c378447 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/508ebeccb11fe240e74cedc43a998bbd8c378447/GroupUserFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
6588,
1876,
6898,
12,
2890,
16,
4672,
3536,
666,
6588,
1876,
6898,
12,
2890,
16,
13,
516,
666,
434,
10384,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
6588,
1876,
6898,
12,
2890,
16,
4672,
3536,
666,
6588,
1876,
6898,
12,
2890,
16,
13,
516,
666,
434,
10384,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print dirpath | def ShowDialogImportDirectory(self): # Offer to save current project if necessary session = ses.Session() st = session.project_status if (st == const.PROJ_NEW) or (st == const.PROJ_CHANGE): filename = session.project_path[1] answer = dialog.SaveChangesDialog2(filename) if answer: self.ShowDialogSaveProject() | effbb9a2aa1544431774c17b256fffff9cfdd9f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/effbb9a2aa1544431774c17b256fffff9cfdd9f2/control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
6353,
5010,
2853,
12,
2890,
4672,
468,
25753,
358,
1923,
783,
1984,
309,
4573,
1339,
273,
24138,
18,
2157,
1435,
384,
273,
1339,
18,
4406,
67,
2327,
309,
261,
334,
422,
1866,
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,
9674,
6353,
5010,
2853,
12,
2890,
4672,
468,
25753,
358,
1923,
783,
1984,
309,
4573,
1339,
273,
24138,
18,
2157,
1435,
384,
273,
1339,
18,
4406,
67,
2327,
309,
261,
334,
422,
1866,
18,
... | |
if v[0] != 32 or not self.auto_open: | if v.message != 32 or not self.auto_open: | def request(self, method, url, body=None, headers={}): """Send a complete request to the server.""" | 495cdb0087a23582cf0d23523fdb2653128103b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/495cdb0087a23582cf0d23523fdb2653128103b7/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
12938,
4672,
3536,
3826,
279,
3912,
590,
358,
326,
1438,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
12938,
4672,
3536,
3826,
279,
3912,
590,
358,
326,
1438,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
editor = self._app.pref.get_external_app("image_editor") if editor is not None: try: proc = subprocess.Popen([editor.prog, image_path]) except OSError, e: self.emit("error", _("Could not open Image Editor."), e, None) else: self.emit("error", _("You must specify an Image Editor in Application Options."), None, None) | self._app.run_external_app("image_editor", image_path) | def _on_edit_image(self, menuitem): """Edit image in Image Editor""" | cf4702fd4c7aef7905a4b8e6244f14a028fd1214 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/cf4702fd4c7aef7905a4b8e6244f14a028fd1214/main_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
4619,
67,
2730,
12,
2890,
16,
3824,
1726,
4672,
3536,
4666,
1316,
316,
3421,
18451,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
4619,
67,
2730,
12,
2890,
16,
3824,
1726,
4672,
3536,
4666,
1316,
316,
3421,
18451,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used | ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used | def perfometer_check_mk_mem_used(row, check_command, perf_data): h = '<table><tr>' ram_total = float(perf_data[0][6]) swap_total = float(perf_data[1][6]) virt_total = ram_total + swap_total ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used state = row["service_state"]... | 9203eee79d2d06bf53c5e661a4c3d9cf996b4b20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/9203eee79d2d06bf53c5e661a4c3d9cf996b4b20/check_mk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14184,
362,
847,
67,
1893,
67,
24816,
67,
3917,
67,
3668,
12,
492,
16,
866,
67,
3076,
16,
14184,
67,
892,
4672,
366,
273,
2368,
2121,
4438,
313,
1870,
24975,
67,
4963,
273,
1431,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14184,
362,
847,
67,
1893,
67,
24816,
67,
3917,
67,
3668,
12,
492,
16,
866,
67,
3076,
16,
14184,
67,
892,
4672,
366,
273,
2368,
2121,
4438,
313,
1870,
24975,
67,
4963,
273,
1431,
12,
... |
s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] verify(s[10] == 'ten') verify(s.keys() == [10, 30]) verify(s.has_key(10)) verify(not s.has_key(20)) verify(10 in s) verify(20 not in s) verify([k for k in s] == [10, 30]) verify(len(s) == 2) verify(list(s.iteritems()) == [(10,'ten'), (30, 't... | class UserDictMixinTest(unittest.TestCase): def test_all(self): s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] self.assertEqual(s[10], 'ten') self.assertEqual(s.keys(), [10, 30]) self.assert_(s.has_key(10)) self.assert_(not s.has_key(20)) self.assert_(10 in s) self.assert_(20 not ... | def keys(self): return list(self.keylist) | 3a4e8a6bb4c25c84225e9b991dd48d988e14a5bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3a4e8a6bb4c25c84225e9b991dd48d988e14a5bc/test_userdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
666,
12,
2890,
18,
856,
1098,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1311,
12,
2890,
4672,
327,
666,
12,
2890,
18,
856,
1098,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
len = 1 << 20 | len = 1 << 10 | def readfile(pid, oid): len = 1 << 20 # 1 MB chunk size pos = 0 while True: command = OSDCommand() command.set_read(pid, oid, len, pos) run(command) if command.inlen == 0: break stdout.write(command.indata) pos += command.inlen | beb971f1cc15ac8efdfeb47155988403683d415f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/beb971f1cc15ac8efdfeb47155988403683d415f/readfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
768,
12,
6610,
16,
7764,
4672,
562,
273,
404,
2296,
1728,
225,
468,
404,
17897,
2441,
963,
949,
273,
374,
1323,
1053,
30,
1296,
273,
5932,
40,
2189,
1435,
1296,
18,
542,
67,
896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
768,
12,
6610,
16,
7764,
4672,
562,
273,
404,
2296,
1728,
225,
468,
404,
17897,
2441,
963,
949,
273,
374,
1323,
1053,
30,
1296,
273,
5932,
40,
2189,
1435,
1296,
18,
542,
67,
896,
... |
crm_case as c, project_task as t where t.case_id=c.id and p.id=t.project_id \ | crm_case as c where p.id=c.project_id \ | def _get_details(self, cr, uid, ids_project, context={}, *arg): # Todo: 1. Reload button gives error for project # 2. Test/Check if not ids_project: return {} result = {} for id in ids_project: result[id] = { 'tasks_detail': '', 'bugs': '', 'features': '', 'support_req': '', 'doc': '' } ids = ",".join(map(str, id... | 63aca3f99a9c76ca2e99c049a801f7d6f1039030 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/63aca3f99a9c76ca2e99c049a801f7d6f1039030/portal_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
67,
4406,
16,
819,
28793,
380,
3175,
4672,
468,
399,
7370,
30,
404,
18,
23086,
3568,
14758,
555,
364,
1984,
468,
4202,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
67,
4406,
16,
819,
28793,
380,
3175,
4672,
468,
399,
7370,
30,
404,
18,
23086,
3568,
14758,
555,
364,
1984,
468,
4202,
576,
... |
security.declareProtected(permissions.View, | security.declareProtected(CMFCorePermissions.View, | def widgets(self): """Returns a dictionary that contains a widget for each field, using the field name as key.""" | 67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10965,
12,
2890,
4672,
3536,
1356,
279,
3880,
716,
1914,
279,
3604,
364,
1517,
652,
16,
1450,
326,
652,
508,
487,
498,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10965,
12,
2890,
4672,
3536,
1356,
279,
3880,
716,
1914,
279,
3604,
364,
1517,
652,
16,
1450,
326,
652,
508,
487,
498,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.