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 op_jl(self, *args): """""" | def op_jl(self, a, b): """Branch if the first argument is less than the second.""" self._branch(self._make_signed(a) < self._make_signed(b)) | def op_jl(self, *args): """""" | 93d0b695130d8c250df6b688d1af1bb43176f564 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2052/93d0b695130d8c250df6b688d1af1bb43176f564/zcpu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
78,
80,
12,
2890,
16,
380,
1968,
4672,
3536,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1061,
67,
78,
80,
12,
2890,
16,
380,
1968,
4672,
3536,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
yield ('ticket', _('Opened and closed tickets')) | yield ('ticket', _("Opened and closed tickets")) | def get_timeline_filters(self, req): if 'TICKET_VIEW' in req.perm: yield ('ticket', _('Opened and closed tickets')) if self.timeline_details: yield ('ticket_details', _('Ticket updates'), False) | 8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26237,
67,
6348,
12,
2890,
16,
1111,
4672,
309,
296,
56,
16656,
1584,
67,
12145,
11,
316,
1111,
18,
12160,
30,
2824,
7707,
16282,
2187,
389,
2932,
23115,
471,
4375,
24475,
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,
336,
67,
26237,
67,
6348,
12,
2890,
16,
1111,
4672,
309,
296,
56,
16656,
1584,
67,
12145,
11,
316,
1111,
18,
12160,
30,
2824,
7707,
16282,
2187,
389,
2932,
23115,
471,
4375,
24475,
6,
... |
""" Print a summary with predicted packages """ | """ Prints a summary with predicted packages """ | def print_package_summary(self): """ Print a summary with predicted packages """ | f9b5bccd6b4fd4355a72b9b495908af2da52cae3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/f9b5bccd6b4fd4355a72b9b495908af2da52cae3/pyfind_revdep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
5610,
67,
7687,
12,
2890,
4672,
3536,
3038,
279,
4916,
598,
15071,
5907,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
5610,
67,
7687,
12,
2890,
4672,
3536,
3038,
279,
4916,
598,
15071,
5907,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for account in self.browse(cr, uid, ids): node_balance = reduce(operator.add, [line.unit_amount for line in account.line_ids], 0) child_balance = reduce(operator.add, [child.quantity for child in account.child_ids], 0) res[account.id] = node_balance + child_balance | for account_id, sum in cr.fetchall(): res[account_id] = sum | def _quantity_calc(self, cr, uid, ids, name, arg, context={}): res = {} for account in self.browse(cr, uid, ids): node_balance = reduce(operator.add, [line.unit_amount for line in account.line_ids], 0) child_balance = reduce(operator.add, [child.quantity for child in account.child_ids], 0) res[account.id] = node_balanc... | 5d123a10f5513c98d2a1f77ead01fbda2ec1097e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/5d123a10f5513c98d2a1f77ead01fbda2ec1097e/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16172,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
364,
2236,
67,
350,
16,
2142,
316,
4422,
18,
5754,
454,
13332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16172,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
364,
2236,
67,
350,
16,
2142,
316,
4422,
18,
5754,
454,
13332,
... |
lst = self.d.items() | lst = list(self.d.items()) | def test_list(self): lst = self.d.items() new = marshal.loads(marshal.dumps(lst)) self.assertEqual(lst, new) marshal.dump(lst, open(test_support.TESTFN, "wb")) new = marshal.load(open(test_support.TESTFN, "rb")) self.assertEqual(lst, new) os.unlink(test_support.TESTFN) | b708f11b6c2ad0f8d527e59bfbf7b5ab05b993b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/b708f11b6c2ad0f8d527e59bfbf7b5ab05b993b9/test_marshal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1098,
12,
2890,
4672,
9441,
273,
666,
12,
2890,
18,
72,
18,
3319,
10756,
394,
273,
10893,
18,
17135,
12,
3108,
18,
13302,
1121,
12,
16923,
3719,
365,
18,
11231,
5812,
12,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1098,
12,
2890,
4672,
9441,
273,
666,
12,
2890,
18,
72,
18,
3319,
10756,
394,
273,
10893,
18,
17135,
12,
3108,
18,
13302,
1121,
12,
16923,
3719,
365,
18,
11231,
5812,
12,
169... |
<file-server protocol="file" url="file://" mount-point="/home/dbrown/projects/cbc/dax/ihope-dax3.0/847555570-847641970"> | <file-server protocol="file" url="file://" mount-point="%s"> | def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path | 34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17801,
67,
30204,
12,
2890,
4672,
3536,
2598,
777,
326,
2199,
316,
326,
6095,
358,
326,
463,
2501,
585,
18,
3536,
309,
486,
365,
16186,
72,
651,
67,
768,
67,
803,
30,
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,
1045,
67,
17801,
67,
30204,
12,
2890,
4672,
3536,
2598,
777,
326,
2199,
316,
326,
6095,
358,
326,
463,
2501,
585,
18,
3536,
309,
486,
365,
16186,
72,
651,
67,
768,
67,
803,
30,
468,
... |
if not klass.__dict__.has_key('security'): | if not hasattr(klass, "security"): | def updateSecurity(self, klass, field, mode, methodName): if not klass.__dict__.has_key('security'): security = klass.security = ClassSecurityInfo() else: security = klass.security | 32203e1b1de0c1244dd931df27856fa3c337e722 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/32203e1b1de0c1244dd931df27856fa3c337e722/ClassGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4368,
12,
2890,
16,
7352,
16,
652,
16,
1965,
16,
4918,
4672,
309,
486,
3859,
12,
22626,
16,
315,
7462,
6,
4672,
4373,
273,
7352,
18,
7462,
273,
1659,
4368,
966,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4368,
12,
2890,
16,
7352,
16,
652,
16,
1965,
16,
4918,
4672,
309,
486,
3859,
12,
22626,
16,
315,
7462,
6,
4672,
4373,
273,
7352,
18,
7462,
273,
1659,
4368,
966,
1435,
469,
30,
... |
bmparray = ones((width, color_values.shape[0], color_values.shape[1]))* color_values * 255 | bmparray = ones((width, color_values.shape[0], color_values.shape[1]))* color_values * 255 | def _make_color_image(self, color_values, width, orientation, direction): """ Returns an image graphics context representing the array of color values (Nx3 or Nx4). The *width* parameter is the width of the colorbar, and *orientation* is the orientation of the plot. """ bmparray = ones((width, color_values.shape[0], co... | 50202d54ec99758f7624d15b52094be86c326484 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/50202d54ec99758f7624d15b52094be86c326484/color_bar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
3266,
67,
2730,
12,
2890,
16,
2036,
67,
2372,
16,
1835,
16,
9820,
16,
4068,
4672,
3536,
2860,
392,
1316,
17313,
819,
5123,
326,
526,
434,
2036,
924,
261,
50,
92,
23,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
3266,
67,
2730,
12,
2890,
16,
2036,
67,
2372,
16,
1835,
16,
9820,
16,
4068,
4672,
3536,
2860,
392,
1316,
17313,
819,
5123,
326,
526,
434,
2036,
924,
261,
50,
92,
23,
5... |
level = 0 if "absolute_import" in self.futures else -1 | level = 0 if self.graph.checkFlag(CO_FUTURE_ABSIMPORT) else -1 | def visitImport(self, node): self.set_lineno(node) level = 0 if "absolute_import" in self.futures else -1 for name, alias in node.names: if VERSION > 1: self.emit('LOAD_CONST', level) self.emit('LOAD_CONST', None) self.emit('IMPORT_NAME', name) mod = name.split(".")[0] if alias: self._resolveDots(name) self.storeName(a... | 1fdacaaa8268e29e7285cc39fa478ee5f838c3d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1fdacaaa8268e29e7285cc39fa478ee5f838c3d2/pycodegen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
5010,
12,
2890,
16,
756,
4672,
365,
18,
542,
67,
17782,
12,
2159,
13,
1801,
273,
374,
309,
365,
18,
4660,
18,
1893,
4678,
12,
3865,
67,
42,
1693,
4830,
67,
2090,
31669,
3871,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
5010,
12,
2890,
16,
756,
4672,
365,
18,
542,
67,
17782,
12,
2159,
13,
1801,
273,
374,
309,
365,
18,
4660,
18,
1893,
4678,
12,
3865,
67,
42,
1693,
4830,
67,
2090,
31669,
3871,
1... |
tbMenus.extend(menuLst) | tbMenus.extend(list(menuLst)) | def addTools(self, toolbar): if self.list.node and self.controllers.has_key(self.list.node.protocol): prot = self.list.node.protocol tbMenus = [] for menuLst in self.controllers[prot].toolbarMenus: tbMenus.extend(menuLst) for wID, name, meth, bmp in tbMenus: if name == '-' and not bmp: toolbar.AddSeparator() elif bmp ... | 94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9604,
3528,
12,
2890,
16,
12748,
4672,
309,
365,
18,
1098,
18,
2159,
471,
365,
18,
20171,
18,
5332,
67,
856,
12,
2890,
18,
1098,
18,
2159,
18,
8373,
4672,
11121,
273,
365,
18,
1098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9604,
3528,
12,
2890,
16,
12748,
4672,
309,
365,
18,
1098,
18,
2159,
471,
365,
18,
20171,
18,
5332,
67,
856,
12,
2890,
18,
1098,
18,
2159,
18,
8373,
4672,
11121,
273,
365,
18,
1098,
... |
_description = 'Object to control a third unit to consolidate the sales and purchase.' | _description = 'A third unit to consolidate the sales and purchase.' | # def _factor(self, cursor, user, ids, name, arg, context): | ec0ff44f71b71f9b8e11d0d1e5ba91a86e5f5dd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/ec0ff44f71b71f9b8e11d0d1e5ba91a86e5f5dd7/unit_analisys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
565,
1652,
389,
6812,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
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,
... | [
1,
1,
1,
1,
1,
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,
468,
565,
1652,
389,
6812,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "FAIL" | print "FAIL"; failures = failures + 1 | def __eq__(self, other): if isinstance(other, FooStruct): return self.bar == other.bar return 0 | 14105f5c7b7349c63655b5a3c3785fe12d84aa68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/14105f5c7b7349c63655b5a3c3785fe12d84aa68/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for releaseMode in ('debug', 'release'): | for releaseMode in ('release', 'debug'): | def Start(hardhatScript, workingDir, cvsVintage, buildVersion, clobber, log): global buildenv, changes try: buildenv = hardhatlib.defaults buildenv['root'] = workingDir buildenv['hardhatroot'] = whereAmI hardhatlib.init(buildenv) except hardhatlib.HardHatMissingCompilerError: print "Could not locate compiler. Exiti... | ca56b7bf5ed6cd32aba6a83a3aa7265ac58697de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ca56b7bf5ed6cd32aba6a83a3aa7265ac58697de/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
2552,
1361,
3074,
16,
3478,
225,
775,
30,
1361,
3074,
273,
787... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
2552,
1361,
3074,
16,
3478,
225,
775,
30,
1361,
3074,
273,
787... |
gLogger.error(errStr,"%s %s %s" % (lfn,targetSE,res['Value']['Failed'][lfn])) else: gMonitor.addMark("Replication failed",1) | gLogger.error( errStr, "%s %s %s" % ( lfn, targetSE, res['Value']['Failed'][lfn] ) ) else: gMonitor.addMark( "Replication failed", 1 ) | def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('transfer') if not res['OK']: gLogger.info("TransferAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value'... | e9b27a9be4536012e60823ee81099deb0a1fbe85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e9b27a9be4536012e60823ee81099deb0a1fbe85/TransferAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... |
s = shelve.open(self.fn, protocol=1) | def test_binary_file_shelf(self): try: s = shelve.open(self.fn, protocol=1) s['key1'] = (1,2,3,4) self.assertEqual(s['key1'], (1,2,3,4)) s.close() finally: for f in glob.glob(self.fn+"*"): os.unlink(f) | 8d9db047d2dde9a36197449bd66ea8b0dc42286d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8d9db047d2dde9a36197449bd66ea8b0dc42286d/test_shelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8578,
67,
768,
67,
674,
19079,
12,
2890,
4672,
775,
30,
272,
3292,
856,
21,
3546,
273,
261,
21,
16,
22,
16,
23,
16,
24,
13,
365,
18,
11231,
5812,
12,
87,
3292,
856,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8578,
67,
768,
67,
674,
19079,
12,
2890,
4672,
775,
30,
272,
3292,
856,
21,
3546,
273,
261,
21,
16,
22,
16,
23,
16,
24,
13,
365,
18,
11231,
5812,
12,
87,
3292,
856,
21,
... | |
self.tk.call(self._w, 'dropsite', 'set', index) | self.tk.call(self._w, 'dropsite', 'set', index) | def dropsite_set(self, index): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if id in self._id2object: del self._id2object[id] | def ignoreAll(self, object): """ Make this object no longer respond to any events it was accepting Useful for cleanup """ if Messenger.notify.getDebug(): Messenger.notify.debug(`object` + '\n now ignoring all events') | 740aca460fb6f6b0ac98020067810164a9874ae8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/740aca460fb6f6b0ac98020067810164a9874ae8/Messenger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
1595,
12,
2890,
16,
733,
4672,
3536,
4344,
333,
733,
1158,
7144,
6846,
358,
1281,
2641,
518,
1703,
25806,
19256,
364,
6686,
3536,
309,
490,
18912,
18,
12336,
18,
588,
2829,
13332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2305,
1595,
12,
2890,
16,
733,
4672,
3536,
4344,
333,
733,
1158,
7144,
6846,
358,
1281,
2641,
518,
1703,
25806,
19256,
364,
6686,
3536,
309,
490,
18912,
18,
12336,
18,
588,
2829,
13332,
... | |
e = Exception("No error") | e = None | def _read(self, fp, fpname): cursect = None # None, or a dictionary optname = None lineno = 0 e = Exception("No error") # None, or an exception firstline = True while True: line = fp.readline() if not line: break lineno = lineno + 1 if firstline: # Skip BOM if line[:3] == '\xe... | 31d0e0c6cac6f680c4879e52685b9d9b5927dbd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/31d0e0c6cac6f680c4879e52685b9d9b5927dbd4/configreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
662,
5709,
273,
599,
18701,
468,
599,
16,
578,
279,
3880,
2153,
529,
273,
599,
7586,
273,
374,
425,
273,
599,
1171,
468,
599,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
662,
5709,
273,
599,
18701,
468,
599,
16,
578,
279,
3880,
2153,
529,
273,
599,
7586,
273,
374,
425,
273,
599,
1171,
468,
599,
16,
5... |
head_client = actionlib.SimpleActionClient('head_traj_controller/point_head_action', PointHeadAction) head_client.wait_for_server() point_head_goal = PointHeadGoal() point_head_goal.target.header.frame_id = 'base_link' point_head_goal.target.point.x = 3.0 point_head_goal.target.point.y = 0.0 point_head_goal.target.poin... | head_client = actionlib.SimpleActionClient('head_traj_controller/point_head_action', PointHeadAction) head_client.wait_for_server() point_head_goal = PointHeadGoal() point_head_goal.target.header.frame_id = 'base_link' point_head_goal.target.point.x = 3.0 point_head_goal.target.point.y = 0.0 point_head_goal.target.poin... | def configure_head(): head_client = actionlib.SimpleActionClient('head_traj_controller/point_head_action', PointHeadAction) head_client.wait_for_server() point_head_goal = PointHeadGoal() point_head_goal.target.header.frame_id = 'base_link' point_head_goal.target.point.x = 3.0 point_head_goal.target.point.y = 0.0 point... | 122c6f7455ce682a4e43ae2b05805de7bdb5d781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9426/122c6f7455ce682a4e43ae2b05805de7bdb5d781/pr2_move_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
1978,
13332,
910,
67,
2625,
273,
1301,
2941,
18,
5784,
1803,
1227,
2668,
1978,
67,
30514,
67,
5723,
19,
1153,
67,
1978,
67,
1128,
2187,
4686,
1414,
1803,
13,
910,
67,
2625,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
1978,
13332,
910,
67,
2625,
273,
1301,
2941,
18,
5784,
1803,
1227,
2668,
1978,
67,
30514,
67,
5723,
19,
1153,
67,
1978,
67,
1128,
2187,
4686,
1414,
1803,
13,
910,
67,
2625,
1... |
print "TCM/ConfigFS storage object does not exist: " + cfs_dev_path return -1 | tcm_err("TCM/ConfigFS storage object does not exist: " + cfs_dev_path) | def tcm_freevirtdev(option, opt_str, value, parser): cfs_unsplit = str(value) cfs_path = cfs_unsplit.split('/') hba_cfs = cfs_path[0] dev_vfs_alias = cfs_path[1] print " ConfigFS HBA: " + hba_cfs print " ConfigFS Device Alias: " + dev_vfs_alias cfs_dev_path = tcm_get_cfs_prefix(cfs_unsplit) if (os.path.isdir(cfs_dev_p... | f87b5169f3cb5a25973c98c2566aee7c9ce7268f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/f87b5169f3cb5a25973c98c2566aee7c9ce7268f/tcm_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1715,
81,
67,
9156,
14035,
5206,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
276,
2556,
67,
318,
4939,
273,
609,
12,
1132,
13,
276,
2556,
67,
803,
273,
276,
2556,
67,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1715,
81,
67,
9156,
14035,
5206,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
276,
2556,
67,
318,
4939,
273,
609,
12,
1132,
13,
276,
2556,
67,
803,
273,
276,
2556,
67,
318,
... |
if endprog.search(line, pos) >= 0: | if endprog.match(line, pos) >= 0: | def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: ... | de65527e4b0925692f0d75f388116b7958a390bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/de65527e4b0925692f0d75f388116b7958a390bb/tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... |
elif key.code in (keysyms.Down, keysyms.KP_Down) : res = self._editor.arrow_down () self._update_ui () return res elif key.code in (keysyms.Up, keysyms.KP_Up): res = self._editor.arrow_up () self._update_ui () return res | def _table_mode_process_key_event (self, key): '''Xingma Mode Process Key Event''' cond_letter_translate = lambda (c): \ self._convert_to_full_width (c) if self._full_width_letter [self._mode] else c cond_punct_translate = lambda (c): \ self._convert_to_full_width (c) if self._full_width_punct [self._mode] else c # We... | ea21559409fa2210e9f9a9c58c960d951ff6da4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/544/ea21559409fa2210e9f9a9c58c960d951ff6da4e/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2121,
67,
3188,
67,
2567,
67,
856,
67,
2575,
261,
2890,
16,
498,
4672,
9163,
60,
310,
2540,
8126,
4389,
1929,
2587,
26418,
6941,
67,
13449,
67,
13929,
273,
3195,
261,
71,
4672,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2121,
67,
3188,
67,
2567,
67,
856,
67,
2575,
261,
2890,
16,
498,
4672,
9163,
60,
310,
2540,
8126,
4389,
1929,
2587,
26418,
6941,
67,
13449,
67,
13929,
273,
3195,
261,
71,
4672,
52... | |
if not ref_name: | if not ref_name or not name2children.has_key(ref_name): | def fixReferenceNodes(self, node): ref_nodes = node.getChildNodesByClass(Reference) name2children = {} for ref_node in ref_nodes: ref_name = ref_node.attributes.get('name') if ref_name and ref_node.children and not name2children.has_key(ref_name): name2children[ref_name] = ref_node.children | b15c6f898277d59dd3338437ebddcf4380491bf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/b15c6f898277d59dd3338437ebddcf4380491bf0/treecleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
2404,
3205,
12,
2890,
16,
756,
4672,
1278,
67,
4690,
273,
756,
18,
588,
22460,
30032,
12,
2404,
13,
508,
22,
5906,
273,
2618,
364,
1278,
67,
2159,
316,
1278,
67,
4690,
30,
1278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
2404,
3205,
12,
2890,
16,
756,
4672,
1278,
67,
4690,
273,
756,
18,
588,
22460,
30032,
12,
2404,
13,
508,
22,
5906,
273,
2618,
364,
1278,
67,
2159,
316,
1278,
67,
4690,
30,
1278,
... |
M = N.eye(4, dtype=N.float64); | M = NP.eye(4, dtype=NP.float64); | def resize_image(imageG, imageF_mat): """ zoom_image = resize_image(source_image, reference_image[mat]) Fractional resample source_image to reference_imagesize. The resample is implemented with 3D cubic spline. The reference image [mat] is the 4x4 voxel-to-physical conversion matrix. Parameters .......... imageG : {... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
67,
2730,
12,
2730,
43,
16,
1316,
42,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
3168,
67,
2730,
16,
2114,
67,
2730,
63,
7373,
5717,
225,
478,
5738,
287,
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,
7041,
67,
2730,
12,
2730,
43,
16,
1316,
42,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
3168,
67,
2730,
16,
2114,
67,
2730,
63,
7373,
5717,
225,
478,
5738,
287,
19... |
if url.startswith(":") or url.startswith("documentation"): | if (url.startswith(":") or url.startswith("documentation") or url.startswith("about")): | def internalLink(url): # wiki links are all-lowercase url = url.lower() # manual url if url.find(ns12)>-1: url = url[url.find(ns12)+len(ns12):] if currentInput.endswith("index.txt"): url = "pages/" + url # wiki url else: if url.startswith(".:"): url = url[2:] if url.startswith("."): url = url[1:] if url.startswith(":")... | c7593fe088827470876569c8c43cebf67943d84b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c7593fe088827470876569c8c43cebf67943d84b/wiki2rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2713,
2098,
12,
718,
4672,
468,
9050,
4716,
854,
777,
17,
8167,
3593,
880,
273,
880,
18,
8167,
1435,
468,
11297,
880,
309,
880,
18,
4720,
12,
2387,
2138,
13,
34,
17,
21,
30,
880,
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,
2713,
2098,
12,
718,
4672,
468,
9050,
4716,
854,
777,
17,
8167,
3593,
880,
273,
880,
18,
8167,
1435,
468,
11297,
880,
309,
880,
18,
4720,
12,
2387,
2138,
13,
34,
17,
21,
30,
880,
273... |
PlotBase.__init__(self,data,ax,prefs,*args,**kw) if type(data) == types.DictType: self.gdata = GraphData(data) elif type(data) == types.InstanceType and data.__class__ == GraphData: self.gdata = data if self.prefs.has_key('span'): self.width = self.prefs['span'] else: self.width = 1.0 if self.gdata.key_type == "time": ... | return None def x_formatter_cb( self, ax ): if self.gdata.key_type == "string": smap = self.gdata.getStringMap() reverse_smap = {} for key, val in smap.items(): reverse_smap[val] = key ticks = smap.values() ticks.sort() ax.set_xticks( [i+.5 for i in ticks] ) ax.set_xticklabels( [reverse_smap[i] for i in ticks] ) label... | def __init__(self,data,ax,prefs,*args,**kw): | 1fdcefc17740e169396b0a1f7945440422083cf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/1fdcefc17740e169396b0a1f7945440422083cf3/QualityMapGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
892,
16,
651,
16,
1484,
2556,
16,
14,
1968,
16,
636,
9987,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
892,
16,
651,
16,
1484,
2556,
16,
14,
1968,
16,
636,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.add_macro("macroid", id) for p in p_node: self.add_parent(p) dag.add_node(self) | self.add_var_arg(database) self.add_macro("macroid", id) for p in p_node: self.add_parent(p) dag.add_node(self) def output_by_combo(self,ifo_combinations): upperlimit_fnames = [] for ifo_combination in ifo_combinations: ifo_combination = str(ifo_combination) fname = '2Dsearchvolume-' + self.output_name_tag + '-' + if... | def __init__(self, job, dag, ifos, output_name_tag, full_data_file, inj_data_glob, bootstrap_iterations, veto_segments_name, id, p_node=[]): pipeline.CondorDAGNode.__init__(self,job) #FIXME make temp space? #self.add_var_opt("tmp-space","/tmp") print ifos self.add_var_opt("instruments",ifos) self.add_var_opt("output-na... | 0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
16,
22940,
16,
309,
538,
16,
876,
67,
529,
67,
2692,
16,
1983,
67,
892,
67,
768,
16,
316,
78,
67,
892,
67,
10581,
16,
7065,
67,
19330,
16,
331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
16,
22940,
16,
309,
538,
16,
876,
67,
529,
67,
2692,
16,
1983,
67,
892,
67,
768,
16,
316,
78,
67,
892,
67,
10581,
16,
7065,
67,
19330,
16,
331,... |
max_width = max (max_width, cell.get_size (view, None)[2]) | rect, x, y, w, h = self.view_column.cell_get_size () max_width = max (max_width, w) | def identity (x): return x | 4f8ffe36e065ef9176d1f8bb22d8d2ed4ae347a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/4f8ffe36e065ef9176d1f8bb22d8d2ed4ae347a1/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4215,
261,
92,
4672,
327,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4215,
261,
92,
4672,
327,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if eventID in (winUser.EVENT_OBJECT_FOCUS,winUser.EVENT_SYSTEM_FOREGROUND): | if eventID==winUser.EVENT_OBJECT_FOCUS: | def addEvent(self,eventID,window,objectID,childID,threadID): """Adds a winEvent to the limiter. @param eventID: the winEvent type @type eventID: integer @param window: the window handle of the winEvent @type window: integer @param objectID: the objectID of the winEvent @type objectID: integer @param childID: the childI... | 41ffa6b387111f9237577b893bf93d251b6caf11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/41ffa6b387111f9237577b893bf93d251b6caf11/IAccessibleHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21781,
12,
2890,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
4672,
3536,
3655,
279,
5657,
1133,
358,
326,
25057,
18,
632,
891,
871,
734,
30,
326,
5657,
1133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21781,
12,
2890,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
4672,
3536,
3655,
279,
5657,
1133,
358,
326,
25057,
18,
632,
891,
871,
734,
30,
326,
5657,
1133,
... |
_ShutdownInstanceDisks(instance, self.cfg) | _ShutdownInstanceDisks(self, instance) | def Exec(self, feedback_fn): """Failover an instance. | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
26329,
392,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
26329,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (res.find('tp') > -1) or (res == 'tdhmtl'): | else: | def send_to_csv(csv_file, results): import csv for res in results: browser_dump, counter_dump = results[res] writer = csv.writer(open(csv_file + '_' + res, "wb")) if res == 'ts': i = 0 writer.writerow(['i', 'val']) for val in browser_dump: writer.writerow([i, val]) i += 1 if (res.find('tp') > -1) or (res == 'tdhmtl'):... | 062121d5d02e3785435c3af046e7dbb74e4ebe60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/062121d5d02e3785435c3af046e7dbb74e4ebe60/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299... |
windrose.WindroseAxes.name = 'windrose' matplotlib.projections.register_projection(windrose.WindroseAxes) | class WindRoseProjection(windrose.WindroseAxes): name = 'windrose' def set_radii_angle(self, **kwargs): rmax = kwargs.pop('rmax',self.get_rmax()) loc = matplotlib.ticker.MaxNLocator(7) loc.create_dummy_axis() loc.set_bounds(0, rmax) radii = loc()[1:-1] axes.set_rgrids(radii=radii, angle=self.radii_angle) matplotlib.pro... | def getrange(seriesinfo,axis): range = [None,None] for info in seriesinfo: if axis in info: curmin,curmax = info[axis].min(),info[axis].max() if range[0] is None or curmin<range[0]: range[0] = curmin if range[1] is None or curmax>range[1]: range[1] = curmax return range | 271de62c2f77df529d6498975d1b72bf9e8c1d34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/271de62c2f77df529d6498975d1b72bf9e8c1d34/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3676,
12,
10222,
1376,
16,
4890,
4672,
1048,
273,
306,
7036,
16,
7036,
65,
364,
1123,
316,
4166,
1376,
30,
309,
2654,
316,
1123,
30,
662,
1154,
16,
1397,
1896,
273,
1123,
63,
4890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3676,
12,
10222,
1376,
16,
4890,
4672,
1048,
273,
306,
7036,
16,
7036,
65,
364,
1123,
316,
4166,
1376,
30,
309,
2654,
316,
1123,
30,
662,
1154,
16,
1397,
1896,
273,
1123,
63,
4890... |
return Infsign[resultsign] | return _Infsign[resultsign] | def __mul__(self, other, context=None): """Return self * other. | c5de0969ca2a82c66efd30bb675f03c2324a3b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c5de0969ca2a82c66efd30bb675f03c2324a3b27/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def run_once(self, server_ip, client_ip, role, test='TCP_STREAM', test_time=10, stream_list=[1]): | self.netif = '' self.network = net_utils.network() self.network_utils = net_utils.network_utils() def run_once(self, server_ip, client_ip, role, test = 'TCP_STREAM', test_time = 15, stream_list = [1], test_specific_args = '', cpu_affinity = '', dev = '', bidi = False, wait_time = 5): """ server_ip: IP address of host... | def initialize(self): self.job.require_gcc() | 49de5e0d0b50e0987eaa02005bcaf93491bae0f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/49de5e0d0b50e0987eaa02005bcaf93491bae0f3/netperf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
365,
18,
4688,
18,
6528,
67,
75,
952,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
365,
18,
4688,
18,
6528,
67,
75,
952,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return unescape(match.group(self.explicit.groups.reference.simple) or match.group(self.explicit.groups.reference.phrase)) | return unescape(match.group('simple') or match.group('phrase')) | def is_reference(self, reference): match = self.explicit.patterns.reference.match(normalize_name(reference)) if not match: return None return unescape(match.group(self.explicit.groups.reference.simple) or match.group(self.explicit.groups.reference.phrase)) | 9aa86b66cf632d24cd8412c352ecb461084727da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/9aa86b66cf632d24cd8412c352ecb461084727da/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
6180,
12,
2890,
16,
2114,
4672,
845,
273,
365,
18,
16511,
18,
13317,
18,
6180,
18,
1916,
12,
12237,
67,
529,
12,
6180,
3719,
309,
486,
845,
30,
327,
599,
327,
15568,
12,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
6180,
12,
2890,
16,
2114,
4672,
845,
273,
365,
18,
16511,
18,
13317,
18,
6180,
18,
1916,
12,
12237,
67,
529,
12,
6180,
3719,
309,
486,
845,
30,
327,
599,
327,
15568,
12,
191... |
self._ackqueue = SimpleQueue() | def _setup_queues(self): from multiprocessing.queues import SimpleQueue self._inqueue = SimpleQueue() self._outqueue = SimpleQueue() self._ackqueue = SimpleQueue() self._quick_put = self._inqueue._writer.send self._quick_get = self._outqueue._reader.recv self._quick_get_ack = self._ackqueue._reader.recv | 409811c9c25cd86bffb6fbec5abbd7fce80b765f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/409811c9c25cd86bffb6fbec5abbd7fce80b765f/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
18924,
12,
2890,
4672,
628,
21828,
18,
18924,
1930,
4477,
3183,
365,
6315,
267,
4000,
273,
4477,
3183,
1435,
365,
6315,
659,
4000,
273,
4477,
3183,
1435,
365,
6315,
19525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8401,
67,
18924,
12,
2890,
4672,
628,
21828,
18,
18924,
1930,
4477,
3183,
365,
6315,
267,
4000,
273,
4477,
3183,
1435,
365,
6315,
659,
4000,
273,
4477,
3183,
1435,
365,
6315,
19525,
... | |
print >> sys.stderr, "G3 f2py support is not implemented, yet." | sys.stderr.write("G3 f2py support is not implemented, yet.\n") | def generate_f2py_py(build_dir): f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] if f2py_exe[-4:]=='.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir,f2py_exe) if newer(__file__,target): log.info('Creatin... | 29cccb69fd9f4177d06b5e74e719cad11abb014b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/29cccb69fd9f4177d06b5e74e719cad11abb014b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... |
u"{{ no such element: int['missing'] }}") | u"{{ no such element: int object['missing'] }}") | def test_debug_undefined(): env = Environment(undefined=DebugUndefined) self.assert_equal(env.from_string('{{ missing }}').render(), '{{ missing }}') self.assert_raises(UndefinedError, env.from_string('{{ missing.attribute }}').render()) self.assert_equal(env.from_string('{{ missing|list }}').render(), '[]') u'[]' self... | 82a2225ac939318e7d812cb4ae537be9fb6362cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14446/82a2225ac939318e7d812cb4ae537be9fb6362cf/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4148,
67,
5978,
13332,
1550,
273,
7518,
12,
5978,
33,
2829,
10317,
13,
365,
18,
11231,
67,
9729,
12,
3074,
18,
2080,
67,
1080,
2668,
12187,
3315,
29893,
2934,
5902,
9334,
12997... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4148,
67,
5978,
13332,
1550,
273,
7518,
12,
5978,
33,
2829,
10317,
13,
365,
18,
11231,
67,
9729,
12,
3074,
18,
2080,
67,
1080,
2668,
12187,
3315,
29893,
2934,
5902,
9334,
12997... |
return _apply(_int, args) | return _apply(_int, args) | def atoi(*args): """atoi(s [,base]) -> int Return the integer represented by the string s in the given base, which defaults to 10. The string s must consist of one or more digits, possibly preceded by a sign. If base is 0, it is chosen from the leading characters of s, 0 for octal, 0x or 0X for hexadecimal. If base... | 857c4c36b962c6e74559e045c7fb43177dd5bcea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/857c4c36b962c6e74559e045c7fb43177dd5bcea/string.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
11359,
30857,
1968,
4672,
3536,
270,
11359,
12,
87,
306,
16,
1969,
5717,
317,
509,
225,
2000,
326,
3571,
10584,
635,
326,
533,
272,
316,
326,
864,
1026,
16,
1492,
3467,
358,
1728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
11359,
30857,
1968,
4672,
3536,
270,
11359,
12,
87,
306,
16,
1969,
5717,
317,
509,
225,
2000,
326,
3571,
10584,
635,
326,
533,
272,
316,
326,
864,
1026,
16,
1492,
3467,
358,
1728,
... |
return {'plot_points':'How many points to use for plotting precision', 'cmap':"""The colormap, one of (autumn, bone, cool, copper, gray, hot, hsv, jet, pink, prism, spring, summer, winter)"""} | return {'plot_points':'How many points to use for plotting precision'} | def _allowed_options(self): return {'plot_points':'How many points to use for plotting precision', 'cmap':"""The colormap, one of (autumn, bone, cool, copper, gray, hot, hsv, jet, pink, prism, spring, summer, winter)"""} | 63d4b62e57cb01616ad798c9f7bf4d5d1d1caea1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/63d4b62e57cb01616ad798c9f7bf4d5d1d1caea1/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8151,
67,
2116,
12,
2890,
4672,
327,
13666,
4032,
67,
4139,
11,
2497,
44,
543,
4906,
3143,
358,
999,
364,
20947,
6039,
2187,
296,
22738,
11,
2773,
3660,
1986,
24806,
16,
1245,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8151,
67,
2116,
12,
2890,
4672,
327,
13666,
4032,
67,
4139,
11,
2497,
44,
543,
4906,
3143,
358,
999,
364,
20947,
6039,
2187,
296,
22738,
11,
2773,
3660,
1986,
24806,
16,
1245,
434,
... |
'qsdTree': qsdTree } | 'qsdTree': qsdTree, 'section': section } | def makeNavBar(user, node, section = ''): """ Query the navbar-entry table for all navbar entries associated with this tree node """ qsdTree = NavBarEntry.objects.filter(path__rangestart__lte=node.rangestart,path__rangeend__gte=node.rangeend,section=section).order_by('sort_rank') return { 'node': node, 'has_edit_bits':... | 18a3294f9d52c98741fa4c6329401fa8f8875ca5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/18a3294f9d52c98741fa4c6329401fa8f8875ca5/navBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12599,
5190,
12,
1355,
16,
756,
16,
2442,
273,
875,
4672,
3536,
2770,
326,
8775,
3215,
17,
4099,
1014,
364,
777,
8775,
3215,
3222,
3627,
598,
333,
2151,
756,
3536,
1043,
6427,
2471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12599,
5190,
12,
1355,
16,
756,
16,
2442,
273,
875,
4672,
3536,
2770,
326,
8775,
3215,
17,
4099,
1014,
364,
777,
8775,
3215,
3222,
3627,
598,
333,
2151,
756,
3536,
1043,
6427,
2471... |
obj.cursorManagerInit() | obj.initCursorManager() | def event_NVDAObject_init(self,obj): if obj.windowClassName=="DirectUIHWND" and obj.role==controlTypes.ROLE_EDITABLETEXT and obj.name in possibleHistoryWindowNames: obj.__class__=MSNHistory # This is necessary because we're reassigning __class__ and the __init__ for the new class doesn't get called. obj.cursorManagerIn... | b0f332b8900d794625b46af663da5f26ccefb729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/b0f332b8900d794625b46af663da5f26ccefb729/msnmsgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
11679,
9793,
921,
67,
2738,
12,
2890,
16,
2603,
4672,
309,
1081,
18,
5668,
3834,
31713,
5368,
5370,
44,
59,
2908,
6,
471,
1081,
18,
4615,
631,
7098,
2016,
18,
16256,
67,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
11679,
9793,
921,
67,
2738,
12,
2890,
16,
2603,
4672,
309,
1081,
18,
5668,
3834,
31713,
5368,
5370,
44,
59,
2908,
6,
471,
1081,
18,
4615,
631,
7098,
2016,
18,
16256,
67,
10776... |
self.__potcreationdate = tmp[0] | self._potcreationdate = tmp[0] | def __init__(self, filepath, template): self.__filepath = filepath self.__template = template self.__count = 0 self.__translated = 0 self.__untranslated = 0 self.__fuzzy = 0 self.__porevisiondate = '' self.__potcreationdate = '' self.__translators = [] if os.access(filepath, os.R_OK): #If PO(T) file can read... reMsgI... | 569cb008f201fd5615072299951acfa2ed026f12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5857/569cb008f201fd5615072299951acfa2ed026f12/GetTranslationsStatus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3608,
16,
1542,
4672,
365,
16186,
10561,
273,
3608,
365,
16186,
3202,
273,
1542,
365,
16186,
1883,
273,
374,
365,
16186,
22899,
273,
374,
365,
16186,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3608,
16,
1542,
4672,
365,
16186,
10561,
273,
3608,
365,
16186,
3202,
273,
1542,
365,
16186,
1883,
273,
374,
365,
16186,
22899,
273,
374,
365,
16186,
318,
... |
self.dbh=dbh self.table=table | def __init__(self,dbh, table,fsfd): dbh.execute(""" CREATE TABLE IF NOT EXISTS `virus` ( `inode` varchar( 20 ) NOT NULL, `virus` tinytext NOT NULL )""") self.dbh=dbh self.table=table | 6bc09ef74467dfde5d0ba64b45e06bffee6190b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/6bc09ef74467dfde5d0ba64b45e06bffee6190b7/VirScan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1966,
76,
16,
1014,
16,
2556,
8313,
4672,
1319,
76,
18,
8837,
2932,
3660,
13278,
7567,
11083,
4269,
20476,
1375,
25692,
407,
68,
261,
1375,
267,
390,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1966,
76,
16,
1014,
16,
2556,
8313,
4672,
1319,
76,
18,
8837,
2932,
3660,
13278,
7567,
11083,
4269,
20476,
1375,
25692,
407,
68,
261,
1375,
267,
390,
68,
... | |
text = 'begin\nmac = 10:10:10:10:10:%02x\nip = 192.168.3.%d\n' + \ 'gateway = 192.168.3.%d\nport = 50000\nend\n' % \ | text = ('begin\nmac = 10:10:10:10:10:%02x\nip = 192.168.3.%d\n' + \ 'gateway = 192.168.3.%d\nport = 50000\nend\n') % \ | def init2(): """Initializes FPGA registers for coherent (guppi2) modes""" for fpga in ["FPGA1", "FPGA3"]: verbose_set('BEE2/%s/FFT_SHIFT' % fpga, 'aaaaaaaa') verbose_set('BEE2/%s/FFT_SHIFT' % fpga, '00000001') # NOTE: bw_sel=2 only applies for 100, 200 and 800 MHz verbose_set('BEE2/FPGA2/GUPPi_PIPES_ARM', '0000000... | c59b36e0e70f3c3380ad9f94a1e9d996a94b4423 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14654/c59b36e0e70f3c3380ad9f94a1e9d996a94b4423/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
22,
13332,
3536,
9685,
478,
18679,
37,
10285,
364,
1825,
1614,
319,
261,
75,
416,
7259,
22,
13,
12382,
8395,
225,
364,
4253,
15833,
316,
8247,
42,
18679,
37,
21,
3113,
315,
42,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
22,
13332,
3536,
9685,
478,
18679,
37,
10285,
364,
1825,
1614,
319,
261,
75,
416,
7259,
22,
13,
12382,
8395,
225,
364,
4253,
15833,
316,
8247,
42,
18679,
37,
21,
3113,
315,
42,
1... |
element = etree.XML(document, cls._parser) return cls.from_element(element) | try: xml = etree.XML(document, cls._parser) except etree.XMLSyntaxError, e: raise ParserError(str(e)) else: return cls.from_element(xml) | def parse(cls, document): element = etree.XML(document, cls._parser) | f44a800f3824a57c04bee559bba3f00498b98318 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/f44a800f3824a57c04bee559bba3f00498b98318/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
6429,
16,
1668,
4672,
930,
273,
12031,
18,
4201,
12,
5457,
16,
2028,
6315,
4288,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
6429,
16,
1668,
4672,
930,
273,
12031,
18,
4201,
12,
5457,
16,
2028,
6315,
4288,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
log.error(' -- GET STATUS (formatted Traceback on "for call in self.calls") --\n' + traceback.format_exc()) | log.error('-- GET STATUS (formatted Traceback on "for call in self.calls") --\n' + traceback.format_exc()) | def clientThread(self, id, sock, addr): session = None localRun = True count = 0 log.info('Starting %s' % id) try: while self.run and localRun: msg = sock.recv(1024) if msg.strip(): msgs = msg.strip().split('\r\n') for msg in msgs: log.log('Client %s: %s' % (str(addr), msg)) self.clientQueuelock.acquire() if msg.up... | 7d114d2ef6fbaad05220f0f14f5e3587a61611c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12004/7d114d2ef6fbaad05220f0f14f5e3587a61611c0/monast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
3830,
12,
2890,
16,
612,
16,
7313,
16,
3091,
4672,
1339,
225,
273,
599,
1191,
1997,
273,
1053,
1056,
565,
273,
374,
613,
18,
1376,
2668,
11715,
738,
87,
11,
738,
612,
13,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
3830,
12,
2890,
16,
612,
16,
7313,
16,
3091,
4672,
1339,
225,
273,
599,
1191,
1997,
273,
1053,
1056,
565,
273,
374,
613,
18,
1376,
2668,
11715,
738,
87,
11,
738,
612,
13,
775,
... |
headers: a dictionary(-like) object (sometimes email.Message.Message or a subclass thereof) containing *all* headers | headers: a dictionary(-like) object (sometimes rfc822.Message or a subclass thereof) containing *all* headers | def __repr__(self): """Return printable representation.""" return "MiniFieldStorage(%r, %r)" % (self.name, self.value) | 3a703b60593e2bc2ddde232eaad365e4c126ff42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3a703b60593e2bc2ddde232eaad365e4c126ff42/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
990,
23474,
4335,
12123,
327,
315,
2930,
77,
974,
3245,
9275,
86,
16,
738,
86,
2225,
738,
261,
2890,
18,
529,
16,
365,
18,
1132,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
990,
23474,
4335,
12123,
327,
315,
2930,
77,
974,
3245,
9275,
86,
16,
738,
86,
2225,
738,
261,
2890,
18,
529,
16,
365,
18,
1132,
13,
2,
-100,
... |
s.append(_('Order {')) s.append(_('\tName ............ = %s') % self.getName()) s.append(_('\tNumber .......... = %s') % self.getNumber()) s.append(_('\tSKU ............. = %s') % self.getSku()) s.append(_('\tSubscription .... = %s') % self.getSubscription()) s.append(_('\tQuantity ........ = %s') % self.getQuantity())... | s.append('Order {') s.append('\tName ............ = %s' % self.getName()) s.append('\tNumber .......... = %s' % self.getNumber()) s.append('\tSKU ............. = %s' % self.getSku()) s.append('\tSubscription .... = %s' % self.getSubscription()) s.append('\tQuantity ........ = %s' % self.getQuantity()) s.append('\tStart... | def __str__(self): s = [] s.append(_('Order {')) s.append(_('\tName ............ = %s') % self.getName()) s.append(_('\tNumber .......... = %s') % self.getNumber()) s.append(_('\tSKU ............. = %s') % self.getSku()) s.append(_('\tSubscription .... = %s') % self.getSubscription()) s.append(_('\tQuantity ........ = ... | 5935221abc238b068bfc526c81a42619407e5eef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11040/5935221abc238b068bfc526c81a42619407e5eef/certificate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
272,
273,
5378,
272,
18,
6923,
2668,
2448,
288,
6134,
272,
18,
6923,
2668,
64,
88,
461,
1372,
6265,
838,
2777,
273,
738,
87,
11,
738,
365,
18,
17994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
272,
273,
5378,
272,
18,
6923,
2668,
2448,
288,
6134,
272,
18,
6923,
2668,
64,
88,
461,
1372,
6265,
838,
2777,
273,
738,
87,
11,
738,
365,
18,
17994,
... |
elif arg[0] == 'name': | def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): job_ids = [] for arg in args: if arg[0] == 'address_id': self._order = 'sequence_partner' elif arg[0] == 'contact_id': self._order = 'sequence_contact' elif arg[0] == 'name': contact_obj = self.pool.get('res.partner.contact')... | c7b588ec599e824e7809e5290b34e3236d9bc60d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c7b588ec599e824e7809e5290b34e3236d9bc60d/base_contact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
1719,
67,
2232,
273,
5378,
364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
1719,
67,
2232,
273,
5378,
364,
1... | |
if change.getType() == 'new': | if ((change.getType() == 'new') and (change.getFilename() == fusepath)): | def isNewFile(self, fusepath): ''' Check to see if fusepath is a file the user created locally. | 56c0076fa2eca813b25cec6250a706275e46ac9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/56c0076fa2eca813b25cec6250a706275e46ac9e/synclog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10783,
812,
12,
2890,
16,
19552,
803,
4672,
9163,
2073,
358,
2621,
309,
19552,
803,
353,
279,
585,
326,
729,
2522,
13760,
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,
10783,
812,
12,
2890,
16,
19552,
803,
4672,
9163,
2073,
358,
2621,
309,
19552,
803,
353,
279,
585,
326,
729,
2522,
13760,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if re.search(r"(We will prepare your download..|We had a reqeust with the IP)", self.html[2]) != None: return True | file_id = re.search('<input name="file_id" type="hidden" value="(.*)" />', self.html[1]).group(1) | def download_html(self): self.html[0] = self.req.load(self.parent.url, cookies=True) url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&.*&captcha=1)', self.html[0]).group(1).replace("amp;", "") for i in range(6): self.html[1] = self.req.load(url_captcha_html, cookies=True) try: captcha_url ... | 0f1f260c5cd98839aafb3e47261e62b742fe3f8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/0f1f260c5cd98839aafb3e47261e62b742fe3f8a/NetloadIn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2620,
12,
2890,
4672,
365,
18,
2620,
63,
20,
65,
273,
365,
18,
3658,
18,
945,
12,
2890,
18,
2938,
18,
718,
16,
7237,
33,
5510,
13,
880,
67,
27267,
67,
2620,
273,
315,
250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2620,
12,
2890,
4672,
365,
18,
2620,
63,
20,
65,
273,
365,
18,
3658,
18,
945,
12,
2890,
18,
2938,
18,
718,
16,
7237,
33,
5510,
13,
880,
67,
27267,
67,
2620,
273,
315,
250... |
pa = Phenotype(ecotype_id=ecotype_id, value=phenotype_value, replicate=replicate_counter) | pa = Phenotype(ecotype_id=ecotype_id, value=phenotype_value, replicate=method_id_ecotype_id2count[replicate_key]) | def putReplicatePhenotypeIntoDB(self, db, phenData, ecotype_id_ls): """ 2009-7-30 similar to putPhenotypeIntoDB() but submit data to phenotype """ session = db.session no_of_rows, no_of_cols = phenData.data_matrix.shape if no_of_rows!=len(ecotype_id_ls): sys.stderr.write("Error: No of rows in phenotype matrix (%s) != n... | 50dd4dc1c759c3e00ca89c1da2e513f12d2188cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/50dd4dc1c759c3e00ca89c1da2e513f12d2188cc/PutPhenotypeIntoDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
426,
1780,
340,
3731,
275,
10570,
5952,
2290,
12,
2890,
16,
1319,
16,
21484,
751,
16,
6557,
10570,
67,
350,
67,
3251,
4672,
3536,
4044,
29,
17,
27,
17,
5082,
7281,
358,
1378,
373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
426,
1780,
340,
3731,
275,
10570,
5952,
2290,
12,
2890,
16,
1319,
16,
21484,
751,
16,
6557,
10570,
67,
350,
67,
3251,
4672,
3536,
4044,
29,
17,
27,
17,
5082,
7281,
358,
1378,
373... |
while True: | while text: | def remove_version_number(text): """ Remove the version number from the end of a string. >>> remove_version_number('Firefox 3 Beta 2') 'Firefox' >>> remove_version_number('Title - Netscape Navigator 9.0') 'Title - Netscape Navigator' >>> remove_version_number(' Example 0.4-3556_4') ' Example' """ while True: if text.lo... | 4dbb7dc0892b2fdd63efe654aafa53ae42183c03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3111/4dbb7dc0892b2fdd63efe654aafa53ae42183c03/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
1589,
67,
2696,
12,
955,
4672,
3536,
3581,
326,
1177,
1300,
628,
326,
679,
434,
279,
533,
18,
4080,
1206,
67,
1589,
67,
2696,
2668,
9723,
13873,
890,
16393,
576,
6134,
296,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
1589,
67,
2696,
12,
955,
4672,
3536,
3581,
326,
1177,
1300,
628,
326,
679,
434,
279,
533,
18,
4080,
1206,
67,
1589,
67,
2696,
2668,
9723,
13873,
890,
16393,
576,
6134,
296,
9... |
assert sum([isinstance(node.op,tensor.blas.Gemm) or node.op.__class__.__name__=="GpuGemm"for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) | if theano.config.mode!='FAST_COMPILE': assert sum([node.op.__class__.__name__ in ["Gemm","GpuGemm","StructuredDot"] for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) assert all(node.op.inplace for node in topo if node.op.__class__.__name__ == ... | def test_specify_shape_inplace(self): #test that specify_shape don't break inserting inplace op | 24f06dd1c66333fd29de8065dc6605c1001d2d5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/24f06dd1c66333fd29de8065dc6605c1001d2d5f/test_sharedvar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2793,
1164,
67,
4867,
67,
267,
964,
12,
2890,
4672,
468,
3813,
716,
4800,
67,
4867,
2727,
1404,
898,
21079,
11783,
1061,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2793,
1164,
67,
4867,
67,
267,
964,
12,
2890,
4672,
468,
3813,
716,
4800,
67,
4867,
2727,
1404,
898,
21079,
11783,
1061,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
except: print("Warning: An error occurred while %sinstalling application " "item" % ('un' if remove else '')) | except Exception as e: print("Warning (%sinstalling application item):\n%r" % ('un' if remove else '', e)) | def install_app(self, remove=False): if self.noapp: return | c0ae645ed8b112c8a4989704772f99652b79a1e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/c0ae645ed8b112c8a4989704772f99652b79a1e3/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
2910,
12,
2890,
16,
1206,
33,
8381,
4672,
309,
365,
18,
2135,
2910,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
2910,
12,
2890,
16,
1206,
33,
8381,
4672,
309,
365,
18,
2135,
2910,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
from os.path import split prefix = split(path)[0] while prefix: if url.endswith(prefix): return path[len(prefix)+1:] prefix = split(prefix)[0] | if path.startswith(module): relative = path[len(module):] if relative.startswith('/'): return relative[1:] else: return relative | def get_entry_from_path(path, url=url): # Given the repository url of this wc, say # "http://server/plone/CMFPlone/branches/Plone-2_0-branch" # extract the "entry" portion (a relative path) from what # svn log --xml says, ie # "/CMFPlone/branches/Plone-2_0-branch/tests/PloneTestCase.py" # that is to say "tests/Plon... | 94fc5c80e6d352235b528f7b2ef2ecd0242617a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/94fc5c80e6d352235b528f7b2ef2ecd0242617a9/svn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4099,
67,
2080,
67,
803,
12,
803,
16,
880,
33,
718,
4672,
468,
16803,
326,
3352,
880,
434,
333,
14310,
16,
12532,
468,
282,
315,
2505,
2207,
3567,
19,
412,
476,
19,
9611,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4099,
67,
2080,
67,
803,
12,
803,
16,
880,
33,
718,
4672,
468,
16803,
326,
3352,
880,
434,
333,
14310,
16,
12532,
468,
282,
315,
2505,
2207,
3567,
19,
412,
476,
19,
9611,
42... |
tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) | zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) | def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... |
'immediate') | 'immediate', 'interactiveCount') | def wrapper(self, *args, **keywords): self.lock.acquire() try: method(self, *args, **keywords) finally: self.lock.release() | 1a5eb213a784337a7a23e89dfcebc207a5d07a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/1a5eb213a784337a7a23e89dfcebc207a5d07a74/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
380,
1968,
16,
2826,
11771,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
707,
12,
2890,
16,
380,
1968,
16,
2826,
11771,
13,
3095,
30,
365,
18,
739,
18,
9340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
380,
1968,
16,
2826,
11771,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
707,
12,
2890,
16,
380,
1968,
16,
2826,
11771,
13,
3095,
30,
365,
18,
739,
18,
9340... |
print "ta emot" | def handle_read(self): data = self.recv(1024) if not data: print "stang" self.close() self.server.connections.remove(self.client) for i in self.server.connections: if i != self.client: i.send("\x00%s\xff" % 'klient disconnect') if not self.handshaken: handshake = self.handshake(self.server.host, self.server.port, data... | e3d8bce589d2004a76661b305fca1349276da10f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13670/e3d8bce589d2004a76661b305fca1349276da10f/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
896,
12,
2890,
4672,
501,
273,
365,
18,
18334,
12,
2163,
3247,
13,
309,
486,
501,
30,
1172,
315,
334,
539,
6,
365,
18,
4412,
1435,
365,
18,
3567,
18,
13313,
18,
4479,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
896,
12,
2890,
4672,
501,
273,
365,
18,
18334,
12,
2163,
3247,
13,
309,
486,
501,
30,
1172,
315,
334,
539,
6,
365,
18,
4412,
1435,
365,
18,
3567,
18,
13313,
18,
4479,
12,
... | |
django = (cmd % {'base': self.ctx.dir}).split()+list(args.arg) | django = (cmd % {'base': self.ctx.dir}).split() elif deploy == 'fastcgi-tcp': cmd = "python manage.py runfcgi workdir=./" cmd += " method=prefork host=%(host)s port=%(port)s" cmd += " pidfile=%(base)s/var/django.pid daemonize=false" cmd += " maxchildren=5 minspare=1 maxspare=5 maxrequests=400" django = (cmd % {'base': ... | def start(self, args): host = args.host is not None and args.host or "0.0.0.0" port = args.port is not None and args.port or "8000" link = ("%s:%s" % (host, port)) location = self.ctx.dir / "lib" / "python" / "omeroweb" self.ctx.out("Starting django development webserver... \n") import omeroweb.settings as settings dep... | 07c2426c663e5e82c76c56cbb2473026dbc9b8b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/07c2426c663e5e82c76c56cbb2473026dbc9b8b6/web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
833,
4672,
1479,
273,
833,
18,
2564,
353,
486,
599,
471,
833,
18,
2564,
578,
315,
20,
18,
20,
18,
20,
18,
20,
6,
1756,
273,
833,
18,
655,
353,
486,
599,
471,
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,
787,
12,
2890,
16,
833,
4672,
1479,
273,
833,
18,
2564,
353,
486,
599,
471,
833,
18,
2564,
578,
315,
20,
18,
20,
18,
20,
18,
20,
6,
1756,
273,
833,
18,
655,
353,
486,
599,
471,
8... |
else: def popen3(cmd, mode='t', bufsize=-1): """Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin, child_stderr) are returned.""" if type(mode) is type(0) and bufsize == -1: bufsize = mode mode = 't' asse... | def popen3(cmd, mode='t', bufsize=-1): """Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin, child_stderr) are returned.""" w, r, e = os.popen3(cmd, mode, bufsize) return r, w, e | 1848b6e465ce811cf66719c2d3c4e6b4a0d5c4d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1848b6e465ce811cf66719c2d3c4e6b4a0d5c4d1/popen2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
23,
12,
4172,
16,
1965,
2218,
88,
2187,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
971,
296,
4385,
1467,
11,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
23,
12,
4172,
16,
1965,
2218,
88,
2187,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
971,
296,
4385,
1467,
11,
353,... | |
input = input.replace(/\+/g,"%2B"); | input = input.replaceAll(/\+/g,"%2B"); | def notebook_lib(): s= r""" | 7751efbdc1366e2bf50c46e4b48af7d837e36cfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7751efbdc1366e2bf50c46e4b48af7d837e36cfa/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
with file(getcwd() + "/state.dat", 'rw') as statefile: | s = getcwd() + "/state.dat" try: f = open(s, 'r') except IOError: f = file(s, 'w') finally: f.close() with file(s, 'r') as statefile: | def load_state(self): with file(getcwd() + "/state.dat", 'rw') as statefile: c = statefile.read() if not c == '': statefile.seek(0) self.state = pickle.load(statefile) else: self.state = State() if self.state.color_scheme == 'black': colors.set_color_scheme_black() elif self.state.color_scheme == 'white': colors.set_c... | cb430ad03a412e9eab8f96d83eedfbd4a280bd5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4435/cb430ad03a412e9eab8f96d83eedfbd4a280bd5d/new-reduction-visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2019,
12,
2890,
4672,
272,
273,
13323,
1435,
397,
2206,
2019,
18,
3404,
6,
775,
30,
284,
273,
1696,
12,
87,
16,
296,
86,
6134,
1335,
8340,
30,
284,
273,
585,
12,
87,
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,
1262,
67,
2019,
12,
2890,
4672,
272,
273,
13323,
1435,
397,
2206,
2019,
18,
3404,
6,
775,
30,
284,
273,
1696,
12,
87,
16,
296,
86,
6134,
1335,
8340,
30,
284,
273,
585,
12,
87,
16,
... |
def GetNumInvalidValues(self): | def GetNumInvalidValues(self, func): | def GetNumInvalidValues(self): """returns the number of invalid values to be tested.""" return 0 | 1ef566cc7626f0180e4b8b44da00e60fdbb0de8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1ef566cc7626f0180e4b8b44da00e60fdbb0de8e/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
16,
1326,
4672,
3536,
6154,
326,
1300,
434,
2057,
924,
358,
506,
18432,
12123,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
16,
1326,
4672,
3536,
6154,
326,
1300,
434,
2057,
924,
358,
506,
18432,
12123,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
root_log.setLevel(logging.DEBUG) | root_log.setLevel(logging.INFO) | def addRootLogger(): root_log = logging.getLogger('') handler = logging.StreamHandler(sys.stdout) formatter = logging.Formatter('%(asctime)s %(levelname)s ' '%(name)s %(message)s') handler.setFormatter(formatter) root_log.addHandler(handler) root_log.setLevel(logging.DEBUG) # Delete conary's log handler since it puts ... | 4c299851baf275e52cc05eb9218255cd514e135e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7644/4c299851baf275e52cc05eb9218255cd514e135e/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2375,
3328,
13332,
1365,
67,
1330,
273,
2907,
18,
588,
3328,
2668,
6134,
1838,
273,
2907,
18,
1228,
1503,
12,
9499,
18,
10283,
13,
4453,
273,
2907,
18,
5074,
2668,
17105,
345,
21261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2375,
3328,
13332,
1365,
67,
1330,
273,
2907,
18,
588,
3328,
2668,
6134,
1838,
273,
2907,
18,
1228,
1503,
12,
9499,
18,
10283,
13,
4453,
273,
2907,
18,
5074,
2668,
17105,
345,
21261... |
q.refresh(repo, pats, msg=message, **opts) | ret = q.refresh(repo, pats, msg=message, **opts) | def refresh(ui, repo, *pats, **opts): """update the current patch If any file patterns are provided, the refreshed patch will contain only the modifications that match those patterns; the remaining modifications will remain in the working directory. """ q = repo.mq message = commands.logmessage(opts) if opts['edit']: ... | e23843faae543312210df1b6c4f498b98219bbd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e23843faae543312210df1b6c4f498b98219bbd1/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
2725,
326,
783,
4729,
225,
971,
1281,
585,
6884,
854,
2112,
16,
326,
27880,
4729,
903,
912,
1338,
326,
17953,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
2725,
326,
783,
4729,
225,
971,
1281,
585,
6884,
854,
2112,
16,
326,
27880,
4729,
903,
912,
1338,
326,
17953,
7... |
query = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute(("SELECT l.account_id, " +\ ' , '.join(map(lambda x: mapping[x], field_names)) + "FROM " \ "account_move_line l " \ "WHERE " \ "l.account_id IN (%s) " \ "AND " + query + " " \ "GROUP BY l.account_id") % (acc_set, )) | def __compute(self, cr, uid, ids, field_names, arg, context={}, query=''): mapping = { 'balance': "COALESCE(SUM(l.debit) - SUM(l.credit), 0) as balance ", 'debit': "COALESCE(SUM(l.debit), 0) as debit ", 'credit': "COALESCE(SUM(l.credit), 0) as credit " } ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) acc... | ba082a347da5cf1b0b55da7e50411677d49001e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/ba082a347da5cf1b0b55da7e50411677d49001e4/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
28793,
843,
2218,
11,
4672,
2874,
273,
288,
296,
12296,
4278,
315,
3865,
37,
11386,
1441,
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,
1001,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
28793,
843,
2218,
11,
4672,
2874,
273,
288,
296,
12296,
4278,
315,
3865,
37,
11386,
1441,
12,
... | |
print "LOADING OLD NOTE..." | def update_note( current_notebook, old_note, startup, user ): # the note hasn't been changed, so bail without updating it if contents.replace( u"\n", u"" ) == old_note.contents.replace( u"\n", "" ) and startup == old_note.startup: new_revision = None # the note has changed, so update it else: note.contents = contents n... | a8dc915852ff24ad151def5d70389090160e0608 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/a8dc915852ff24ad151def5d70389090160e0608/Notebooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7652,
12,
783,
67,
24422,
16,
1592,
67,
7652,
16,
11850,
16,
729,
262,
30,
468,
326,
4721,
13342,
1404,
2118,
3550,
16,
1427,
18422,
2887,
9702,
518,
309,
2939,
18,
2079,
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,
1089,
67,
7652,
12,
783,
67,
24422,
16,
1592,
67,
7652,
16,
11850,
16,
729,
262,
30,
468,
326,
4721,
13342,
1404,
2118,
3550,
16,
1427,
18422,
2887,
9702,
518,
309,
2939,
18,
2079,
12,... | |
def gradient(self): | def gradient(self, variables=None): | def gradient(self): r""" Compute the gradient of a symbolic function. This function returns a vector whose components are the derivatives of the original function. | 2c2ee627d8470ac83fd6e8dd1cddb07cdcc8b946 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c2ee627d8470ac83fd6e8dd1cddb07cdcc8b946/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10292,
12,
2890,
16,
3152,
33,
7036,
4672,
436,
8395,
8155,
326,
10292,
434,
279,
16754,
445,
18,
1220,
445,
1135,
279,
3806,
8272,
4085,
854,
326,
9630,
8785,
434,
326,
2282,
445,
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,
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,
10292,
12,
2890,
16,
3152,
33,
7036,
4672,
436,
8395,
8155,
326,
10292,
434,
279,
16754,
445,
18,
1220,
445,
1135,
279,
3806,
8272,
4085,
854,
326,
9630,
8785,
434,
326,
2282,
445,
18,
... |
back = self.resultbuffer1.get_iter_at_mark(self.resultbuffer1.get_insert()) self.resultbuffer1.apply_tag_by_name('fromLang', front, back) self.result1.scroll_mark_onscreen(self.resultbuffer1.get_mark('end')) self.resultbuffer1.insert(self.resultbuffer1.get_end_iter(), ' %s\n %s:' % (self.entry.get_text(), self.toLang(... | back = buf.get_iter_at_mark(buf.get_insert()) buf.apply_tag_by_name('fromLang', front, back) self.result1.scroll_mark_onscreen(buf.get_mark('end')) buf.insert(buf.get_end_iter(), ' %s\n %s:' % (self.entry.get_text(), self.toLang())) front = buf.get_iter_at_mark(buf.get_insert()) | def enter_callback(self, widget, data = None): '''Submit entrybox text for translation.''' | 882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
67,
3394,
12,
2890,
16,
3604,
16,
501,
273,
599,
4672,
9163,
11620,
1241,
2147,
977,
364,
4794,
1093,
6309,
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,
6103,
67,
3394,
12,
2890,
16,
3604,
16,
501,
273,
599,
4672,
9163,
11620,
1241,
2147,
977,
364,
4794,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
mks.extend(mk_persons) | mks.extend([person.mk for person in mk_persons]) | def get_protocols(self, max_page=10): SEARCH_URL = "http://www.knesset.gov.il/protocols/heb/protocol_search.aspx" cj = cookielib.LWPCookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) urllib2.install_opener(opener) | 249e19b34d6f8d2ffdd3f8cda5bcf1030cd9dce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/249e19b34d6f8d2ffdd3f8cda5bcf1030cd9dce0/syncdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
31018,
12,
2890,
16,
943,
67,
2433,
33,
2163,
4672,
24053,
67,
1785,
273,
315,
2505,
2207,
5591,
18,
79,
4496,
278,
18,
75,
1527,
18,
330,
19,
31018,
19,
580,
70,
19,
8373,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31018,
12,
2890,
16,
943,
67,
2433,
33,
2163,
4672,
24053,
67,
1785,
273,
315,
2505,
2207,
5591,
18,
79,
4496,
278,
18,
75,
1527,
18,
330,
19,
31018,
19,
580,
70,
19,
8373,
... |
author = "James Taylor, Bob Harris, David King, Brent Pedersen, and others", | author = "James Taylor, Bob Harris, David King, Brent Pedersen, Kanwei Li, and others", | def main(): setup( name = "bx-python", version = "0.6.0", py_modules = [ 'psyco_full' ], packages = find_packages( 'lib' ), package_dir = { '': 'lib' }, package_data = { '': ['*.ps'] }, scripts = glob( "scripts/*.py" ), ext_modules = get_extension_modules(), test_suite = 'nose.collector', setup_requires = ['nose>=0.10... | 134a4b11ad668334c5ab9e86effb28aa4cc5fcf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2104/134a4b11ad668334c5ab9e86effb28aa4cc5fcf6/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3875,
12,
225,
508,
273,
315,
70,
92,
17,
8103,
3113,
1177,
273,
315,
20,
18,
26,
18,
20,
3113,
2395,
67,
6400,
273,
306,
296,
1121,
93,
2894,
67,
2854,
11,
308,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3875,
12,
225,
508,
273,
315,
70,
92,
17,
8103,
3113,
1177,
273,
315,
20,
18,
26,
18,
20,
3113,
2395,
67,
6400,
273,
306,
296,
1121,
93,
2894,
67,
2854,
11,
308,
16,
5... |
return re.match(r"^(http|https|feed)://[^/]+/.*", url) is not None | return re.match(r"^(http|https)://[^/]+/.*", url) is not None | def validateFeedURL(url): return re.match(r"^(http|https|feed)://[^/]+/.*", url) is not None | 28ff92428652d6db2c0a3e2ec13b4d99f8b8d95c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/28ff92428652d6db2c0a3e2ec13b4d99f8b8d95c/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
8141,
1785,
12,
718,
4672,
327,
283,
18,
1916,
12,
86,
6,
29020,
2505,
96,
4528,
13,
2207,
5969,
19,
3737,
19,
4509,
3113,
880,
13,
353,
486,
599,
225,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
8141,
1785,
12,
718,
4672,
327,
283,
18,
1916,
12,
86,
6,
29020,
2505,
96,
4528,
13,
2207,
5969,
19,
3737,
19,
4509,
3113,
880,
13,
353,
486,
599,
225,
2,
-100,
-100,
-100,
-10... |
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to '+str(len(distri))+' owls.') | pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to '+str(len(distri))+' owls.', 3) | def Distribute(self, cNetPackage): """Pass cNetPackage to all Neighbourowls. | d6524ab4f406c1563beee1f9b91eaca1c0e08db5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/d6524ab4f406c1563beee1f9b91eaca1c0e08db5/cOwlManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3035,
887,
12,
2890,
16,
276,
7308,
2261,
4672,
3536,
6433,
276,
7308,
2261,
358,
777,
30663,
477,
543,
3251,
18,
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,
3035,
887,
12,
2890,
16,
276,
7308,
2261,
4672,
3536,
6433,
276,
7308,
2261,
358,
777,
30663,
477,
543,
3251,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
size = len(self.text) | size = len(self.text) | def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None): self.text = text self.url = url self.verbose = verbose self.maxpage = maxpage self.checker = checker | a870cf128cdb4a76dc17c103820d903325fd04fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a870cf128cdb4a76dc17c103820d903325fd04fb/wcnew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
16,
880,
16,
3988,
33,
21900,
16,
943,
2433,
33,
6694,
11219,
16,
12489,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
718,
273,
880,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
16,
880,
16,
3988,
33,
21900,
16,
943,
2433,
33,
6694,
11219,
16,
12489,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
718,
273,
880,
365,
18,
... |
if k not in kwargs: | if k not in optional: | def _callthrough(*pos, **kw): argcount = len(pos) kwcount = len(kw) if len(positional) > 0 and positional[0] == 'self': # FIXME, hack. # 'self' shouldn't be in the interface declarations, but is. argcount=argcount+1 if len(positional) > 0 or kwargs is not None or varargs is not None: if varargs is None and argcount > ... | 749403e84eca087d99022ef3cb45d36a859a9aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/749403e84eca087d99022ef3cb45d36a859a9aa3/iproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
10064,
30857,
917,
16,
2826,
9987,
4672,
1501,
1883,
273,
562,
12,
917,
13,
5323,
1883,
273,
562,
12,
9987,
13,
309,
562,
12,
3276,
287,
13,
405,
374,
471,
16780,
63,
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,
389,
1991,
10064,
30857,
917,
16,
2826,
9987,
4672,
1501,
1883,
273,
562,
12,
917,
13,
5323,
1883,
273,
562,
12,
9987,
13,
309,
562,
12,
3276,
287,
13,
405,
374,
471,
16780,
63,
20,
... |
self.assertEqual(parse_date('1/1'), (today.year, 1, 1)) self.assertEqual(parse_date('1-1'), (today.year, 1, 1)) self.assertEqual(parse_date('1:1'), (today.year, 1, 1)) self.assertEqual(parse_date('11/11'), (today.year, 11, 11)) | year = today.year if today.month > 6: year += 1 self.assertEqual(parse_date('1/1'), (year, 1, 1)) self.assertEqual(parse_date('1-1'), (year, 1, 1)) self.assertEqual(parse_date('1:1'), (year, 1, 1)) | def testParseDate(self): '''Test parsing dates''' from datetime import date today = date.today() self.assertEqual(parse_date('1/1'), (today.year, 1, 1)) self.assertEqual(parse_date('1-1'), (today.year, 1, 1)) self.assertEqual(parse_date('1:1'), (today.year, 1, 1)) self.assertEqual(parse_date('11/11'), (today.year, 11, ... | 112e510947e2a6ec4f1aab636ff505ca3c884e7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/112e510947e2a6ec4f1aab636ff505ca3c884e7a/parsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3201,
1626,
12,
2890,
4672,
9163,
4709,
5811,
7811,
26418,
628,
3314,
1930,
1509,
10074,
273,
1509,
18,
30064,
1435,
3286,
273,
10074,
18,
6874,
309,
10074,
18,
7496,
405,
1666,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3201,
1626,
12,
2890,
4672,
9163,
4709,
5811,
7811,
26418,
628,
3314,
1930,
1509,
10074,
273,
1509,
18,
30064,
1435,
3286,
273,
10074,
18,
6874,
309,
10074,
18,
7496,
405,
1666,
30,
... |
raise RuntimeError, "A detector was not provided!" | raise RuntimeError("A detector was not provided!") | def init_scatt_wavevector_to_scalar_Q(initk,scattk,**kwargs): """ This function takes an initial wavevector and a scattered wavevector as a tuple and a SOM, a tuple and a SO or two tuples and calculates the quantity scalar_Q units of 1/Angstroms. The SOM principle axis must be in units of 1/Angstroms. The SOs and tupl... | dcfad031d5f907a400d4659737e261c4d7fdc434 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/dcfad031d5f907a400d4659737e261c4d7fdc434/hlr_init_scatt_wavevector_to_scalar_Q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1017,
4558,
67,
17838,
7737,
67,
869,
67,
8748,
67,
53,
12,
2738,
79,
16,
1017,
4558,
79,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
392,
2172,
10794,
7737,
471,
279,
14644,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1017,
4558,
67,
17838,
7737,
67,
869,
67,
8748,
67,
53,
12,
2738,
79,
16,
1017,
4558,
79,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
392,
2172,
10794,
7737,
471,
279,
14644,... |
def substr(str,x1,x2): | def substr(s, x1, x2): | def substr(str,x1,x2): raise DeprecatedIDCError, "substr() is deprecated. Use python string operations instead." | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2373,
12,
87,
16,
619,
21,
16,
619,
22,
4672,
1002,
9336,
734,
39,
668,
16,
315,
10706,
1435,
353,
6849,
18,
2672,
5790,
533,
5295,
3560,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2373,
12,
87,
16,
619,
21,
16,
619,
22,
4672,
1002,
9336,
734,
39,
668,
16,
315,
10706,
1435,
353,
6849,
18,
2672,
5790,
533,
5295,
3560,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
self._debug(NIGHTMARE, "replay", waitbuf) | def replay (self, waitbuf): """call the handler functions again with buffer data""" self._debug(NIGHTMARE, "replay", waitbuf) for item in waitbuf: if item[0]==DATA: self._data(item[1]) elif item[0]==STARTTAG: self.startElement(item[1], item[2]) elif item[0]==ENDTAG: self.endElement(item[1]) elif item[0]==COMMENT: self.... | b6cdd9629ec41bf387c3e531943b23aec78afb66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/b6cdd9629ec41bf387c3e531943b23aec78afb66/Rewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
261,
2890,
16,
2529,
4385,
4672,
3536,
1991,
326,
1838,
4186,
3382,
598,
1613,
501,
8395,
225,
364,
761,
316,
2529,
4385,
30,
309,
761,
63,
20,
65,
631,
4883,
30,
365,
6315,
892... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
261,
2890,
16,
2529,
4385,
4672,
3536,
1991,
326,
1838,
4186,
3382,
598,
1613,
501,
8395,
225,
364,
761,
316,
2529,
4385,
30,
309,
761,
63,
20,
65,
631,
4883,
30,
365,
6315,
892... | |
""" Check POST on mapping policy """ self.setRoles(['Manager']) | """ Check POST on mapping policy """ self.loginAsPortalOwner() pwt = self.portal_placeful_workflow pwt.manage_addWorkflowPolicy('foo_bar_policy', 'default_workflow_policy (Simple Policy)') | def test_prefs_workflow_policy_mapping_set_PostOnly(self): | 08dbb4d06ba0113a2532282196eb9ced1d42839d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11955/08dbb4d06ba0113a2532282196eb9ced1d42839d/testCMFPlacefulWorkflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1484,
2556,
67,
13815,
67,
5086,
67,
6770,
67,
542,
67,
3349,
3386,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
1842,
67,
1484,
2556,
67,
13815,
67,
5086,
67,
6770,
67,
542,
67,
3349,
3386,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
(x,y,width,height) = rect | def DrawEventRectangle(self, dc, rect, hasLeftRounded=False, hasTopRightRounded=True, hasBottomRightRounded=True, clipRightSide=False): """ Make a rounded rectangle, optionally specifying if the top and bottom right side of the rectangle should have rounded corners. Uses clip rect tricks to make sure it is drawn correc... | cccb638b586568f8c6f183988fac08ab89235f45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cccb638b586568f8c6f183988fac08ab89235f45/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
1133,
19463,
12,
2890,
16,
6744,
16,
4917,
16,
711,
3910,
54,
12002,
33,
8381,
16,
711,
3401,
4726,
54,
12002,
33,
5510,
16,
711,
10393,
4726,
54,
12002,
33,
5510,
16,
6807,
472... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
1133,
19463,
12,
2890,
16,
6744,
16,
4917,
16,
711,
3910,
54,
12002,
33,
8381,
16,
711,
3401,
4726,
54,
12002,
33,
5510,
16,
711,
10393,
4726,
54,
12002,
33,
5510,
16,
6807,
472... | |
table.attach(button_credits, 0, 1, 2, 3) | table.attach(button_credits, 0, 1, 3, 4) | def __init__(self): """init About window""" BaseParentWindow.__init__(self, _("About Window")) | 0db792c2486a3af7515ed69402216d3f9be1319c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/0db792c2486a3af7515ed69402216d3f9be1319c/about.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2738,
9771,
659,
2742,
8395,
3360,
3054,
3829,
16186,
2738,
972,
12,
2890,
16,
389,
2932,
24813,
6076,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2738,
9771,
659,
2742,
8395,
3360,
3054,
3829,
16186,
2738,
972,
12,
2890,
16,
389,
2932,
24813,
6076,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
cf = curr_tab.get_file_infos()[1] if cf is not None: urim = iofiles.URImanager(cf.uri, self.rootdir) self.cparser.set('General', 'lastDocument', self.get_id(urim)) | curr_tab = self.app.gui.get_current_tab() if curr_tab is not None: cf = curr_tab.get_file_infos()[1] if cf is not None: urim = iofiles.URImanager(cf.uri, self.rootdir) self.cparser.set('General', 'lastDocument', self.get_id(urim)) | def save(self): """Save the project into a file.""" tabs_infos = self.app.gui.get_tabs_infos() curr_tab = self.app.gui.get_current_tab() for urim in self.listfiles: for opt,val in self.get_status(urim, tabs_infos).iteritems(): self.set_opt(urim, opt, val) cf = curr_tab.get_file_infos()[1] if cf is not None: urim = iofi... | 68e8fa0ed63fd085e86c71abf321387a644e33d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4024/68e8fa0ed63fd085e86c71abf321387a644e33d8/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
3536,
4755,
326,
1984,
1368,
279,
585,
12123,
10920,
67,
18227,
273,
365,
18,
2910,
18,
20292,
18,
588,
67,
16056,
67,
18227,
1435,
4306,
67,
7032,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
3536,
4755,
326,
1984,
1368,
279,
585,
12123,
10920,
67,
18227,
273,
365,
18,
2910,
18,
20292,
18,
588,
67,
16056,
67,
18227,
1435,
4306,
67,
7032,
273,
365,
18,
... |
if node.type == "function" and parent.type == "call": | if node.type in expressions and parent.type == "return": node.parenthesized = False elif node.type == "function" and parent.type == "call": | def fixParens(node): parent = node.parent if node.type == "function" and parent.type == "call": # Ignore for direct execution functions pass elif parent.type in expressions: prio = expressionOrder[node.type] parentPrio = expressionOrder[node.parent.type] needsParens = prio < parentPrio # Fix minor priority issue in ... | 61e9ba307e8bb4d59f0c98365fbdd8ae8f05a09e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/61e9ba307e8bb4d59f0c98365fbdd8ae8f05a09e/BlockReducer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
52,
21660,
12,
2159,
4672,
982,
273,
756,
18,
2938,
225,
309,
756,
18,
723,
316,
8041,
471,
982,
18,
723,
422,
315,
2463,
6877,
756,
18,
13012,
7915,
1235,
273,
1083,
225,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
52,
21660,
12,
2159,
4672,
982,
273,
756,
18,
2938,
225,
309,
756,
18,
723,
316,
8041,
471,
982,
18,
723,
422,
315,
2463,
6877,
756,
18,
13012,
7915,
1235,
273,
1083,
225,
1327,
... |
rendered = tag_('changed from %(old)s to %(new)s', | rendered = tag_("changed from %(old)s to %(new)s", | def _render_property_diff(self, req, ticket, field, old, new, resource_new=None): rendered = None # per type special rendering of diffs type_ = None for f in ticket.fields: if f['name'] == field: type_ = f['type'] break if type_ == 'checkbox': rendered = new == '1' and _('set') or _('unset') elif type_ == 'textarea': i... | a8a6442302dc21bfc63206a71113b0375cb3c946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a8a6442302dc21bfc63206a71113b0375cb3c946/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4468,
67,
5413,
12,
2890,
16,
1111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
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,
389,
5902,
67,
4468,
67,
5413,
12,
2890,
16,
1111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
6... |
data = data.replace( "\r\n", "\n" ).replace( "\r", "\n" ) | if self.__fix & 1 != 0: data = data.replace( "\r\n", "\n" ) if self.__fix & 2 != 0: data = data.replace( "\r", "\n" ) if self.__fix & 4 != 0: data = data.replace( "\r", "" ) if not cr_warning and data.find( "\r" ) >= 0: cr_warning = True print " WARNING: file still contains CR" print " file: '%s'" % node.get_p... | def __convert_eol( self, node ): """Convert EOL of a node""" | 2b92e946616e4bc1b49fd7a380ec3ba0c31487e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/2b92e946616e4bc1b49fd7a380ec3ba0c31487e8/eolfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
T, L = ticks(self._valueMin, self._valueMax, split=1, percent=self.leftAxisPercent,grid=valueStep) | T, L = ticks(self._valueMin, self._valueMax, split=1, n=n, percent=self.leftAxisPercent,grid=valueStep) | def _rangeAdjust(self): "Adjusts the value range of the axis." | 4b8c6f8e935303f2104a8407c3a04fe4c87bc697 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/4b8c6f8e935303f2104a8407c3a04fe4c87bc697/axes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3676,
10952,
12,
2890,
4672,
315,
10952,
87,
326,
460,
1048,
434,
326,
2654,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3676,
10952,
12,
2890,
4672,
315,
10952,
87,
326,
460,
1048,
434,
326,
2654,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
out.append( dump(v,indent,depth+1) ) | out.append( v.dump(indent,depth+1) ) | def dump(self,indent='',depth=0): """Diagnostic method for listing out the contents of a ParseResults. Accepts an optional indent argument so that this string can be embedded in a nested display of other data.""" out = [] keys = self.items() keys.sort() for k,v in keys: if out: out.append('\n') out.append( "%s%s- %s: "... | e17b3f04da3d48afb1a048439af40e6778502eea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/e17b3f04da3d48afb1a048439af40e6778502eea/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
... |
self.addText("Current versions of Orange files were successfully located.") | def __init__(self,*args): apply(QMainWindow.__init__,(self,) + args) self.resize(500,500) self.setCaption("Qt Orange Update") self.toolbar = QToolBar(self, 'toolbar') self.statusBar = QStatusBar(self) self.text = QTextView (self) self.setCentralWidget(self.text) self.statusBar.message('Ready') | a02e8d7153f2c4738602d3234a7588184bd80c5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/a02e8d7153f2c4738602d3234a7588184bd80c5f/updateOrange.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
2230,
12,
53,
6376,
3829,
16186,
2738,
972,
16,
12,
2890,
16,
13,
397,
833,
13,
365,
18,
15169,
12,
12483,
16,
12483,
13,
365,
18,
542,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14,
1968,
4672,
2230,
12,
53,
6376,
3829,
16186,
2738,
972,
16,
12,
2890,
16,
13,
397,
833,
13,
365,
18,
15169,
12,
12483,
16,
12483,
13,
365,
18,
542,... | |
If needed, the check 'type(var) is not None' should be done before calling this function | If needed, the check 'type(var) is not None' should be done before calling this function. | def wash_url_argument(var, new_type): """ Wash argument into 'new_type', that can be 'list', 'str', 'int', 'tuple' or 'dict'. If needed, the check 'type(var) is not None' should be done before calling this function @param var: variable value @param new_type: variable type, 'list', 'str', 'int', 'tuple' or 'dict' @retur... | ccc0ac8e54f703e6a98469d490983a1220c645e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/ccc0ac8e54f703e6a98469d490983a1220c645e2/urlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
718,
67,
3446,
12,
1401,
16,
394,
67,
723,
4672,
3536,
678,
961,
1237,
1368,
296,
2704,
67,
723,
2187,
716,
848,
506,
296,
1098,
2187,
296,
701,
2187,
296,
474,
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,
341,
961,
67,
718,
67,
3446,
12,
1401,
16,
394,
67,
723,
4672,
3536,
678,
961,
1237,
1368,
296,
2704,
67,
723,
2187,
716,
848,
506,
296,
1098,
2187,
296,
701,
2187,
296,
474,
2187,
2... |
elif type(path) == types.DictType: | elif type( path ) == types.DictType: | def __checkArgumentFormat(self,path): if type(path) in types.StringTypes: urls = {path:False} elif type(path) == types.ListType: urls = {} for url in path: urls[url] = False elif type(path) == types.DictType: urls = path else: return S_ERROR("LcgFileCatalogClient.__checkArgumentFormat: Supplied path is not of the corre... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
1379,
1630,
12,
2890,
16,
803,
4672,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
288,
803,
30,
8381,
97,
1327,
618,
12,
803,
13,
422,
1953,
18,
19366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
1379,
1630,
12,
2890,
16,
803,
4672,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
288,
803,
30,
8381,
97,
1327,
618,
12,
803,
13,
422,
1953,
18,
19366,... |
pkg.getNEVRA()) | new_pkg.getNEVRA()) | def __handleObsoleteConflicts(self): if not self.autoerase: return 0 ret = 0 for (old_pkg, new_pkgs) in self.opresolver.getObsoleteConflicts().iteritems(): for obsolete, new_pkg in new_pkgs: if self.__doAutoerase(new_pkg): log.info2("Autoerasing package %s due to conflicting obsoletes.", pkg.getNEVRA()) ret = 1 return ... | 040045bf074bf083917455621f1bac2eec455cca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/040045bf074bf083917455621f1bac2eec455cca/yum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4110,
27637,
19513,
30897,
12,
2890,
4672,
309,
486,
365,
18,
6079,
264,
448,
30,
327,
374,
325,
273,
374,
364,
261,
1673,
67,
10657,
16,
394,
67,
25376,
13,
316,
365,
18,
556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
27637,
19513,
30897,
12,
2890,
4672,
309,
486,
365,
18,
6079,
264,
448,
30,
327,
374,
325,
273,
374,
364,
261,
1673,
67,
10657,
16,
394,
67,
25376,
13,
316,
365,
18,
556,
... |
if pos and optval[pos-1].isspace(): | if pos != -1 and optval[pos-1].isspace(): | def __read(self, fp, fpname): """Parse a sectioned setup file. | 490cbf56868a5118b635128d808b569527adaab6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/490cbf56868a5118b635128d808b569527adaab6/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
3536,
3201,
279,
2442,
329,
3875,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
12,
2890,
16,
4253,
16,
4253,
529,
4672,
3536,
3201,
279,
2442,
329,
3875,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(Same as self.group_id().) Return the ID code of this group, which | (Same as ``self.group_id()``.) Return the ID code of this group, which | def id(self): """ (Same as self.group_id().) Return the ID code of this group, which is a list of two integers. Requires "optional" database_gap-4.4.x package. | 2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
4672,
3536,
261,
8650,
487,
12176,
2890,
18,
1655,
67,
350,
20338,
8338,
13,
2000,
326,
1599,
981,
434,
333,
1041,
16,
1492,
353,
279,
666,
434,
2795,
12321,
18,
16412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
4672,
3536,
261,
8650,
487,
12176,
2890,
18,
1655,
67,
350,
20338,
8338,
13,
2000,
326,
1599,
981,
434,
333,
1041,
16,
1492,
353,
279,
666,
434,
2795,
12321,
18,
16412,
... |
wrapper_name = "_wrap_create_object_%s" % (cls.full_name.replace(':', '_'),) | wrapper_name = "_wrap_create_object_%s" % (cls.mangled_full_name,) | def helper_class_hook(helper_class): decl = """ | c82edd4fbe48acec664f0d824fa165c117ce07ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7746/c82edd4fbe48acec664f0d824fa165c117ce07ba/ns3modulegen_core_customizations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4222,
67,
1106,
67,
4476,
12,
4759,
67,
1106,
4672,
3496,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4222,
67,
1106,
67,
4476,
12,
4759,
67,
1106,
4672,
3496,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
box4 = OWGUI.widgetBox(self.SettingsTab, " General graph settings ") | box4 = OWGUI.widgetBox(self.SettingsTab, "General graph settings") | def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, 'CorrAnalysis') self.callbackDeposit = [] | 5679b14e4ff0243e16c598d31c6cb5c7afd0f4ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/5679b14e4ff0243e16c598d31c6cb5c7afd0f4ec/OWCorrAnalysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
6217,
86,
9418,
6134,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
6217,
86,
9418,
6134,
365,
18,
... |
server = ServerProxy("http://betty.userland.com") | server = ServerProxy("http://time.xmlrpc.com/RPC2") | def __getattr__(self, name): # magic method dispatcher return _Method(self.__request, name) | 8c17a60d9a57674fb55fdde8fef9d7622a5ae359 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8c17a60d9a57674fb55fdde8fef9d7622a5ae359/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
468,
8146,
707,
7393,
327,
389,
1305,
12,
2890,
16186,
2293,
16,
508,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
468,
8146,
707,
7393,
327,
389,
1305,
12,
2890,
16186,
2293,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pat = sre.compile('a(?:b|(c|e){1,2}?|d)+?(.)') | pat = sre.compile(r'a(?:b|(c|e){1,2}?|d)+?(.)') | def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1) | 75e4f162be784b94ba0d3df4014079efb836f46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/75e4f162be784b94ba0d3df4014079efb836f46b/test_sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
-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.