rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
e.message) | str(e)) | def MI_invokeMethod(self, env, objectName, methodName, inputParams): """Invoke an extrinsic method. | 858219dd83fb2d5181de84705956c9b649e7ed65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/858219dd83fb2d5181de84705956c9b649e7ed65/cim_provider2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20806,
67,
14407,
1305,
12,
2890,
16,
1550,
16,
12282,
16,
4918,
16,
810,
1370,
4672,
3536,
10969,
392,
7582,
2679,
335,
707,
18,
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,
20806,
67,
14407,
1305,
12,
2890,
16,
1550,
16,
12282,
16,
4918,
16,
810,
1370,
4672,
3536,
10969,
392,
7582,
2679,
335,
707,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if users.has_handler(username): user_title = users.get_handler(username).get_title() | if users.has_object(username): user_title = users.get_object(username).get_title() | def edit_form(self, context): # Set Style & JS abspath = Path(self.abspath) css = abspath.get_pathto('/ui/tracker/tracker.css') context.styles.append(str(css)) js = abspath.get_pathto('/ui/tracker/tracker.js') context.scripts.append(str(js)) | 1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
687,
12,
2890,
16,
819,
4672,
468,
1000,
9767,
473,
6756,
9488,
273,
2666,
12,
2890,
18,
5113,
803,
13,
3747,
273,
9488,
18,
588,
67,
803,
869,
2668,
19,
4881,
19,
16543,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
687,
12,
2890,
16,
819,
4672,
468,
1000,
9767,
473,
6756,
9488,
273,
2666,
12,
2890,
18,
5113,
803,
13,
3747,
273,
9488,
18,
588,
67,
803,
869,
2668,
19,
4881,
19,
16543,
1... |
appl.exec_loop() | appl.exec_() | def actionBrowseCircle(self): state = self.buttonBrowseCircle.isChecked() self.buttonBrowseCircle.setOn(state) self.graph.activateBrowsingCircle(state) if state: self.buttonBrowse.setOn(0) self.buttonZoom.setOn(0) self.buttonSelectRect.setOn(0) self.buttonSelectPoly.setOn(0) if self.widget and "toolbarSelection" in sel... | 818ca9c8fbe0920c8ab47d73dd69ea5577008e9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/818ca9c8fbe0920c8ab47d73dd69ea5577008e9c/OWCorrAnalysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
27304,
19490,
12,
2890,
4672,
919,
273,
365,
18,
5391,
27304,
19490,
18,
291,
11454,
1435,
365,
18,
5391,
27304,
19490,
18,
542,
1398,
12,
2019,
13,
365,
18,
4660,
18,
10014,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
27304,
19490,
12,
2890,
4672,
919,
273,
365,
18,
5391,
27304,
19490,
18,
291,
11454,
1435,
365,
18,
5391,
27304,
19490,
18,
542,
1398,
12,
2019,
13,
365,
18,
4660,
18,
10014,
38,
... |
warnings.filterwarnings('ignore', *warning) try: ret = f(*args, **kwargs) finally: for warning in warningz: warnings.filterwarnings('default', *warning) return ret try: return new.function(_.func_code, _.func_globals, f.func_name, inspect.getargspec(_), _.func_closure) except TypeError: return new.function(_.func_code,... | warnings.filterwarnings('default', *warning) return ret """ % (f.func_name,) in locals() return locals()[f.func_name] return enclosingScope(warnings, warningz) | def _(*args, **kwargs): for warning in warningz: warnings.filterwarnings('ignore', *warning) try: ret = f(*args, **kwargs) finally: for warning in warningz: warnings.filterwarnings('default', *warning) return ret | 58bc9589f7ce5c61cc3ce4c29820a8c1120aace6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/58bc9589f7ce5c61cc3ce4c29820a8c1120aace6/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30857,
1968,
16,
2826,
4333,
4672,
364,
3436,
316,
3436,
94,
30,
5599,
18,
2188,
12103,
2668,
6185,
2187,
380,
8551,
13,
775,
30,
325,
273,
284,
30857,
1968,
16,
2826,
4333,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30857,
1968,
16,
2826,
4333,
4672,
364,
3436,
316,
3436,
94,
30,
5599,
18,
2188,
12103,
2668,
6185,
2187,
380,
8551,
13,
775,
30,
325,
273,
284,
30857,
1968,
16,
2826,
4333,
13,
3... |
s1 = 'x' * MAX_Py_ssize_t self.assertRaises(OverflowError, operator.add, s1, '?') | x = b"x" * (MAX_Py_ssize_t - 128) self.assertRaises(OverflowError, operator.add, x, b"x" * 128) | def test_concat(self): s1 = 'x' * MAX_Py_ssize_t self.assertRaises(OverflowError, operator.add, s1, '?') | e6ee0a04dcf7433ae45ab48486d55272ed5fd3d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e6ee0a04dcf7433ae45ab48486d55272ed5fd3d0/test_bigaddrspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16426,
12,
2890,
4672,
272,
21,
273,
296,
92,
11,
380,
4552,
67,
9413,
67,
1049,
554,
67,
88,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
3726,
18,
1289,
16,
272,
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,
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,
16426,
12,
2890,
4672,
272,
21,
273,
296,
92,
11,
380,
4552,
67,
9413,
67,
1049,
554,
67,
88,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
3726,
18,
1289,
16,
272,
21,
... |
funcid, " ".join(self._subst_format))) | funcid, self._subst_format_str)) | def _bind(self, what, sequence, func, add, needcleanup=1): """Internal function.""" if type(func) is StringType: self.tk.call(what + (sequence, func)) elif func: funcid = self._register(func, self._substitute, needcleanup) cmd = ('%sif {"[%s %s]" == "break"} break\n' % (add and '+' or '', funcid, " ".join(self._subst_f... | c8718c13e86aff14fbb65d32ab91908c445c98c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c8718c13e86aff14fbb65d32ab91908c445c98c6/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4376,
12,
2890,
16,
4121,
16,
3102,
16,
1326,
16,
527,
16,
1608,
16732,
33,
21,
4672,
3536,
3061,
445,
12123,
309,
618,
12,
644,
13,
353,
31570,
30,
365,
18,
16099,
18,
1991,
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,
389,
4376,
12,
2890,
16,
4121,
16,
3102,
16,
1326,
16,
527,
16,
1608,
16732,
33,
21,
4672,
3536,
3061,
445,
12123,
309,
618,
12,
644,
13,
353,
31570,
30,
365,
18,
16099,
18,
1991,
12... |
getting() | getting() | def getting() : #self.locks.acquire(tid) try : while len(self.to_get) > 0: tid,empty_task = self.to_get.pop() #if self.locks.ifnotblocked(tid) : self.backend.get_task(empty_task,tid) #calling sync in a thread might cause a segfault #thus callsync to false empty_task.set_sync_func(self.set_task,callsync=False) #set_load... | 8ce43597bd7845114d8da0d6848c10714989c224 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/8ce43597bd7845114d8da0d6848c10714989c224/datastore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
8742,
1435,
294,
468,
2890,
18,
23581,
18,
1077,
1039,
12,
18081,
13,
775,
294,
1323,
562,
12,
2890,
18,
869,
67,
588,
13,
405,
374,
30,
11594,
16,
5531,
67,
4146,
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,
225,
8742,
1435,
294,
468,
2890,
18,
23581,
18,
1077,
1039,
12,
18081,
13,
775,
294,
1323,
562,
12,
2890,
18,
869,
67,
588,
13,
405,
374,
30,
11594,
16,
5531,
67,
4146,
273,
365,
18,... |
self.hboxlayout27.addWidget(self.dnaColorBasesByComboBox) spacerItem26 = QtGui.QSpacerItem(5,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout27.addItem(spacerItem26) self.gridlayout18.addLayout(self.hboxlayout27,1,1,1,1) self.hboxlayout28 = QtGui.QHBoxLayout() self.hboxlayout28.setMargin(0) s... | self.hboxlayout30.addWidget(self.dnaColorBasesByComboBox) spacerItem28 = QtGui.QSpacerItem(5,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout30.addItem(spacerItem28) self.gridlayout18.addLayout(self.hboxlayout30,1,1,1,1) self.hboxlayout31 = QtGui.QHBoxLayout() self.hboxlayout31.setMargin(0) s... | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
self.logger.write('my message') | self.logger.write('my message', 'INFO') | def test_write(self): self.logger.write('my message') expected = '20060613 08:37:42.123 | INFO | my message\n' assert_equals(self.logger._writer.getvalue(), expected) self.logger.write('my 2nd msg\nwith 2 lines', 'ERROR') expected += '20060613 08:37:42.123 | ERROR | my 2nd msg\nwith 2 lines\n' assert_equals(self.logge... | 37dc16b0e0d2e021bc72541700bf3bf28ddf237b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/37dc16b0e0d2e021bc72541700bf3bf28ddf237b/test_systemlogger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
12,
2890,
4672,
365,
18,
4901,
18,
2626,
2668,
4811,
883,
2187,
296,
5923,
6134,
2665,
273,
296,
6976,
4848,
26,
3437,
16314,
30,
6418,
30,
9452,
18,
12936,
571,
9286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
12,
2890,
4672,
365,
18,
4901,
18,
2626,
2668,
4811,
883,
2187,
296,
5923,
6134,
2665,
273,
296,
6976,
4848,
26,
3437,
16314,
30,
6418,
30,
9452,
18,
12936,
571,
9286,
... |
between_statement = "%s.%s BETWEEN %d AND %d" % (table_name, auto_increment_column_name, auto_increment_range_start, auto_increment_range_end) | between_statement = "%s.%s.%s BETWEEN %d AND %d" % (database_name, table_name, auto_increment_column_name, auto_increment_range_start, auto_increment_range_end) | def chunk_update(): if auto_increment_min_value is None: return auto_increment_range_start = auto_increment_min_value while auto_increment_range_start < auto_increment_max_value: auto_increment_range_end = get_auto_increment_range_end(auto_increment_range_start) progress = int(100.0*(auto_increment_range_start-auto_in... | 34424b6495bf30c489512ac5dc461a8ab76d365a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10338/34424b6495bf30c489512ac5dc461a8ab76d365a/oak-chunk-update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2441,
67,
2725,
13332,
309,
3656,
67,
15016,
67,
1154,
67,
1132,
353,
599,
30,
327,
225,
3656,
67,
15016,
67,
3676,
67,
1937,
273,
3656,
67,
15016,
67,
1154,
67,
1132,
1323,
3656,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2441,
67,
2725,
13332,
309,
3656,
67,
15016,
67,
1154,
67,
1132,
353,
599,
30,
327,
225,
3656,
67,
15016,
67,
3676,
67,
1937,
273,
3656,
67,
15016,
67,
1154,
67,
1132,
1323,
3656,
67,
... |
</td></tr></table><br /></div> | </td></tr></table></div> | def write_details_entry(self, out, var_doc): if isinstance(var_doc.value, RoutineDoc): self.write_function_details_entry(out, var_doc) else: self.write_variable_details_entry(out, var_doc) | 2e826daab46d77983d35e6a38ceacf1289828f6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/2e826daab46d77983d35e6a38ceacf1289828f6b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6395,
67,
4099,
12,
2890,
16,
596,
16,
569,
67,
2434,
4672,
309,
1549,
12,
1401,
67,
2434,
18,
1132,
16,
7271,
558,
1759,
4672,
365,
18,
2626,
67,
915,
67,
6395,
67,
4099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6395,
67,
4099,
12,
2890,
16,
596,
16,
569,
67,
2434,
4672,
309,
1549,
12,
1401,
67,
2434,
18,
1132,
16,
7271,
558,
1759,
4672,
365,
18,
2626,
67,
915,
67,
6395,
67,
4099,
... |
cursor.execute('SELECT a.id, COALESCE(MAX(s.id), 0) \ | cursor.execute("SELECT a.id, COALESCE(MAX(s.id), 0) \ | def _sheet(self, cursor, user, ids, name, args, context): sheet_obj = self.pool.get('hr_timesheet_sheet.sheet') | b563f23652c9dbc74e61cb4facfce4e6c07d4b66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b563f23652c9dbc74e61cb4facfce4e6c07d4b66/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
6134,
... |
res = super(ir_model_fields,self).create(cr, user, vals, context) | res = super(ir_model_fields,self).create(cr, user, vals, context) | def create(self, cr, user, vals, context=None): if 'model_id' in vals: model_data = self.pool.get('ir.model').browse(cr, user, vals['model_id']) vals['model'] = model_data.model if context and context.get('manual',False): vals['state'] = 'manual' res = super(ir_model_fields,self).create(cr, user, vals, context) if vals... | 9148c7fcdf3fa9a98d8f763bdc5b9083ee2be274 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/9148c7fcdf3fa9a98d8f763bdc5b9083ee2be274/ir_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
309,
296,
2284,
67,
350,
11,
316,
5773,
30,
938,
67,
892,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
309,
296,
2284,
67,
350,
11,
316,
5773,
30,
938,
67,
892,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
160... |
flt = ReleaseFilter( title=cluster.metadata['album'], artistName=strip_non_alnum(cluster.metadata['artist']), | matches = [] filter = LuceneQueryFilter( artist=cluster.metadata['artist'], release=cluster.metadata['album'], | def __autotag_cluster_thread(self, cluster): self.log.debug("Looking up cluster %r", cluster) q = Query(ws=self.get_web_service()) flt = ReleaseFilter( title=cluster.metadata['album'], artistName=strip_non_alnum(cluster.metadata['artist']), limit=5) matches = [] results = q.getReleases(filter=flt) for res in results: m... | da5e95c3e3980e69089d92daa884ad7e9137a71f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/da5e95c3e3980e69089d92daa884ad7e9137a71f/tagger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5854,
352,
346,
67,
7967,
67,
5930,
12,
2890,
16,
2855,
4672,
365,
18,
1330,
18,
4148,
2932,
9794,
310,
731,
2855,
738,
86,
3113,
2855,
13,
1043,
273,
2770,
12,
4749,
33,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5854,
352,
346,
67,
7967,
67,
5930,
12,
2890,
16,
2855,
4672,
365,
18,
1330,
18,
4148,
2932,
9794,
310,
731,
2855,
738,
86,
3113,
2855,
13,
1043,
273,
2770,
12,
4749,
33,
2890,
... |
print "will now open in utf8-bom mode:", os.path.join(root, outfile) | def _process_directives(root, filepath, vars): """ Process all directives in the file filepath. The root dir is in root TODO: Refactor this to use separate functions for each directive and just pass in a context for it to keep stuff in. """ file = open(filepath) tmpfd, tmppath = tempfile.mkstemp(".tmp", "dfbuild.") t... | 6ecc6fe7502c9c4430389a2eaf650b256a17f163 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10922/6ecc6fe7502c9c4430389a2eaf650b256a17f163/dfbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
30850,
12,
3085,
16,
3608,
16,
4153,
4672,
3536,
4389,
777,
13877,
316,
326,
585,
3608,
18,
1021,
1365,
1577,
353,
316,
1365,
225,
2660,
30,
868,
6812,
333,
358,
999,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
67,
30850,
12,
3085,
16,
3608,
16,
4153,
4672,
3536,
4389,
777,
13877,
316,
326,
585,
3608,
18,
1021,
1365,
1577,
353,
316,
1365,
225,
2660,
30,
868,
6812,
333,
358,
999,
90... | |
compiler = self.compiler | def build_libraries (self, libraries): | 32ce1142bd0be81f26415db6d5f9205e8acac57d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/32ce1142bd0be81f26415db6d5f9205e8acac57d/build_clib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
31417,
261,
2890,
16,
14732,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
31417,
261,
2890,
16,
14732,
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,
-1... | |
def __init__(self, n): | def __init__(self, n, max_entry=None): | def __init__(self, n): """ TESTS:: | 37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
943,
67,
4099,
33,
7036,
4672,
3536,
22130,
55,
2866,
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,
2738,
972,
12,
2890,
16,
290,
16,
943,
67,
4099,
33,
7036,
4672,
3536,
22130,
55,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
"CVSRevision":"$Revision: 1.136 $", | "CVSRevision":"$Revision: 1.137 $", | def callingparams(self): """Returns list of parameters to save with results.""" #Test whether k has been set try: self.k except (NameError, AttributeError): self.k=None try: self.mass except (NameError, AttributeError): self.mass=None #Form dictionary of inputs params = {"ystart":self.ystart, "tstart":self.tstart, "te... | 4f817a1bfa06863fc10fbe477fabf4c5cfe0022c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/4f817a1bfa06863fc10fbe477fabf4c5cfe0022c/cosmomodels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4440,
2010,
12,
2890,
4672,
3536,
1356,
666,
434,
1472,
358,
1923,
598,
1686,
12123,
468,
4709,
2856,
417,
711,
2118,
444,
775,
30,
365,
18,
79,
1335,
261,
461,
668,
16,
6394,
4672,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4440,
2010,
12,
2890,
4672,
3536,
1356,
666,
434,
1472,
358,
1923,
598,
1686,
12123,
468,
4709,
2856,
417,
711,
2118,
444,
775,
30,
365,
18,
79,
1335,
261,
461,
668,
16,
6394,
4672,
36... |
error = translate(error, context=instance) | error = translate(error, context=instance.REQUEST) | def validate_required(self, instance, value, errors): if not value: label = self.widget.Label(instance) name = self.getName() error = _(u'error_required', default=u'${name} is required, please correct.', mapping={'name': label}) error = translate(error, context=instance) errors[name] = error return error return None | 07447d43307fa3175bb22f4262830c3d010d027b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/07447d43307fa3175bb22f4262830c3d010d027b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
309,
486,
460,
30,
1433,
273,
365,
18,
6587,
18,
2224,
12,
1336,
13,
508,
273,
365,
18,
17994,
1435,
555,
273,
389,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
309,
486,
460,
30,
1433,
273,
365,
18,
6587,
18,
2224,
12,
1336,
13,
508,
273,
365,
18,
17994,
1435,
555,
273,
389,
12,
... |
m = m.gcd(a) P[i] = a for b in Q: if m.gcd(b) == 1: try: pts.append(X([ num/b for num in P ])) except: pass i = 0 m = ZZ(0) | def enum_affine_rational_field(X,B): """ Enumerates affine rational points on scheme X (defined over `\QQ`) up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound OUTPUT: - a list containing the affine points of X of height up to B, sorted. EXAM... | 8548f34244013d468d2344ef95101a9ce0e899a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8548f34244013d468d2344ef95101a9ce0e899a4/rational_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... | |
self.__root_update(curn,False) | self.__root_update(cid,False) | def node_nth_child(self, node, n): """ Retrieves the nth child of the node. @param node: The parent node, or None to look at children of the virtual_root. """ #we return the nth good children ! if not node: if len(self.virtual_root) > n: to_id = self.virtual_root[n] toreturn = self.get_node(to_id) | 97deecfa745fa4ba8d104407d128238cf050b02e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/97deecfa745fa4ba8d104407d128238cf050b02e/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
756,
67,
82,
451,
67,
3624,
12,
2890,
16,
756,
16,
290,
4672,
3536,
20507,
326,
20196,
1151,
434,
326,
756,
18,
632,
891,
756,
30,
1021,
982,
756,
16,
578,
599,
358,
2324,
622,
2325,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
756,
67,
82,
451,
67,
3624,
12,
2890,
16,
756,
16,
290,
4672,
3536,
20507,
326,
20196,
1151,
434,
326,
756,
18,
632,
891,
756,
30,
1021,
982,
756,
16,
578,
599,
358,
2324,
622,
2325,... |
if os.path.exists('/usr/sbin/sw_vers') or os.path.exists('/usr/sbin/system_profiler'): platform = 'Mac OS X' else: platform = platform.system() if platform == 'Linux': | my_platform = platform.system() if my_platform == 'Darwin': if os.path.exists('/usr/sbin/sw_vers') or os.path.exists('/usr/sbin/system_profiler'): my_platform = 'Mac OS X' if my_platform == 'Linux': | def _GetPlatform(self): if os.path.exists('/usr/sbin/sw_vers') or os.path.exists('/usr/sbin/system_profiler'): platform = 'Mac OS X' else: platform = platform.system() if platform == 'Linux': distro = platform.dist()[0] if distro: platform = 'Linux (%s)' % distro return platform | 2715eadeb7936f3e20ddc94c95414e3000c11694 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/2715eadeb7936f3e20ddc94c95414e3000c11694/reporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
12,
2890,
4672,
3399,
67,
9898,
273,
4072,
18,
4299,
1435,
309,
3399,
67,
9898,
422,
296,
40,
19992,
4278,
309,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
87,
4757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
8201,
12,
2890,
4672,
3399,
67,
9898,
273,
4072,
18,
4299,
1435,
309,
3399,
67,
9898,
422,
296,
40,
19992,
4278,
309,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
87,
4757,
... |
log.error("Reconfiguration failed: %" % str(e)) | log.exception("Reconfiguration failed") | def live_reconfig(self): try: self.load_config() self.run_jobs() except Exception, e: log.error("Reconfiguration failed: %" % str(e)) | c3e8f250af775dfe54413c985b8683a54655f67b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/c3e8f250af775dfe54413c985b8683a54655f67b/mcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8429,
67,
266,
1425,
12,
2890,
4672,
775,
30,
365,
18,
945,
67,
1425,
1435,
365,
18,
2681,
67,
10088,
1435,
1335,
1185,
16,
425,
30,
613,
18,
4064,
2932,
426,
7025,
2535,
7923,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8429,
67,
266,
1425,
12,
2890,
4672,
775,
30,
365,
18,
945,
67,
1425,
1435,
365,
18,
2681,
67,
10088,
1435,
1335,
1185,
16,
425,
30,
613,
18,
4064,
2932,
426,
7025,
2535,
7923,
225,
... |
if sub_handling is not None and sub_handling.text != 'allow' and rule.find(transformations_tag) is not None: | transformations = rule.find(transformations_tag) if sub_handling is not None and sub_handling.text != 'allow' and transformations is not None and transformations.getchildren(): | def _validate_rules(self, document, node_uri): common_policy_namespace = 'urn:ietf:params:xml:ns:common-policy' oma_namespace = 'urn:oma:xml:xdm:common-policy' | 2298c68ba800c407f763b4354317f87c8815f263 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3446/2298c68ba800c407f763b4354317f87c8815f263/presrules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
7482,
12,
2890,
16,
1668,
16,
756,
67,
1650,
4672,
2975,
67,
5086,
67,
4937,
273,
296,
321,
30,
18508,
30,
2010,
30,
2902,
30,
2387,
30,
6054,
17,
5086,
11,
320,
2540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
67,
7482,
12,
2890,
16,
1668,
16,
756,
67,
1650,
4672,
2975,
67,
5086,
67,
4937,
273,
296,
321,
30,
18508,
30,
2010,
30,
2902,
30,
2387,
30,
6054,
17,
5086,
11,
320,
2540,... |
for section in ['meeting','lead','opportunity','jobs','bugs','fund','helpdesk','claims','phonecall']: | for section in ['meeting', 'lead', 'opportunity', 'jobs', 'bugs', 'fund', 'helpdesk', 'claims', 'phonecall']: | def action_create(self, cr, uid, ids, context=None): module_proxy = self.pool.get('ir.module.module') modid = module_proxy.search(cr, uid, [('name','=','crm_configuration')]) moddemo = module_proxy.browse(cr, uid, modid[0]).demo lst= ('data','menu') if moddemo: lst = ('data','menu','demo') res = self.read(cr,uid,ids)[0... | 7f170d648ce806a9582087e82434ea26e4f2d585 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7f170d648ce806a9582087e82434ea26e4f2d585/crm_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1605,
67,
5656,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
6134,
681,
350,
273,
1605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1605,
67,
5656,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
6134,
681,
350,
273,
1605... |
if self.name: attrs['__name__'] = self.name | def save(self): keys = self.__class__.__dict__.keys() attrs = {'__type__' : self.__class__.__name__, '__module__' : self.__class__.__module__} if self.name: attrs['__name__'] = self.name for key in keys: if isinstance(self.__class__.__dict__[key], ScalarProperty): property = self.__class__.__dict__[key] attrs[property.... | 6d9597413e0453bac1799c72290944af582c33ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/6d9597413e0453bac1799c72290944af582c33ba/persistance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
1311,
273,
365,
16186,
1106,
972,
16186,
1576,
25648,
2452,
1435,
3422,
273,
13666,
972,
723,
7250,
294,
365,
16186,
1106,
972,
16186,
529,
972,
16,
4940,
2978,
7250,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1311,
273,
365,
16186,
1106,
972,
16186,
1576,
25648,
2452,
1435,
3422,
273,
13666,
972,
723,
7250,
294,
365,
16186,
1106,
972,
16186,
529,
972,
16,
4940,
2978,
7250,... | |
logging.exception("Problems creating or populating autostart dir.") | logging.exception("Problems creating or populating " "autostart dir.") | def update_autostart(self, value): autostart_dir = resources.get_autostart_dir() destination = os.path.join(autostart_dir, "miro.desktop") | 7d41e97979cedc88369d70317b72bf93610adfdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/7d41e97979cedc88369d70317b72bf93610adfdf/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5854,
669,
485,
12,
2890,
16,
460,
4672,
2059,
669,
485,
67,
1214,
273,
2703,
18,
588,
67,
5854,
669,
485,
67,
1214,
1435,
2929,
273,
1140,
18,
803,
18,
5701,
12,
5854,
669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5854,
669,
485,
12,
2890,
16,
460,
4672,
2059,
669,
485,
67,
1214,
273,
2703,
18,
588,
67,
5854,
669,
485,
67,
1214,
1435,
2929,
273,
1140,
18,
803,
18,
5701,
12,
5854,
669... |
report(lang, rep_page, username, com) | report(lang, rep_page, username, com, rep_text) | def report(lang, rep_page, username, com): another_page = wikipedia.Page(lang, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " regex = talk.replace('_', ' ') + username n = re.compile(rege... | e84f02593b3eb100ad10b8fa43c2d6d5085e2faa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e84f02593b3eb100ad10b8fa43c2d6d5085e2faa/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
977,
67,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
977,
67,
58... |
print "UpdateItemInfo" | def UpdateItemInfo(self, index=0, label="Measurement 1", colour=None, type_="LINEAR", location="SURFACE", value="0 mm"): print "UpdateItemInfo" self.SetStringItem(index, 1, label, imageId = self._list_index[index]) self.SetStringItem(index, 2, type_) self.SetStringItem(index, 3, location) self.SetStringItem(index, 4, v... | 738cfc0582a1efbd4e6f4d332d56879a4a3a45c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/738cfc0582a1efbd4e6f4d332d56879a4a3a45c8/data_notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1180,
966,
12,
2890,
16,
770,
33,
20,
16,
1433,
1546,
17933,
404,
3113,
15046,
33,
7036,
16,
618,
67,
1546,
5997,
985,
3113,
2117,
1546,
26397,
11300,
3113,
460,
1546,
20,
9740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1180,
966,
12,
2890,
16,
770,
33,
20,
16,
1433,
1546,
17933,
404,
3113,
15046,
33,
7036,
16,
618,
67,
1546,
5997,
985,
3113,
2117,
1546,
26397,
11300,
3113,
460,
1546,
20,
9740,
... | |
self.cursor.execute("SELECT COUNT(*) FROM %s" % self.dbtablename) return self.cursor.fetchone()[0] | return self.cursor.execute("SELECT COUNT(*) FROM %s" % self.dbtablename).fetchone()[0] | def __len__(self): self.cursor.execute("SELECT COUNT(*) FROM %s" % self.dbtablename) return self.cursor.fetchone()[0] | 473e8f82c49994472dd50f3d32660d64e8c24980 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/473e8f82c49994472dd50f3d32660d64e8c24980/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
365,
18,
9216,
18,
8837,
2932,
4803,
12666,
24099,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
13,
327,
365,
18,
9216,
18,
5754,
476,
1435,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1897,
972,
12,
2890,
4672,
365,
18,
9216,
18,
8837,
2932,
4803,
12666,
24099,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
13,
327,
365,
18,
9216,
18,
5754,
476,
1435,
63,
... |
out += "<strong>" + _("Field 2") + ":</strong> " + string.join(args['f2'], "; ") + "<br />" | out += "<strong>" + _("Field 2") + ":</strong> " + "; ".join(args['f2']) + "<br />" | def tmpl_textual_query_info_from_urlargs(self, ln, args): """ Displays a human inteligible textual representation of a query | 1aa12977b1c77ef6af8db557856660723aa9c6eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/1aa12977b1c77ef6af8db557856660723aa9c6eb/webalert_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
955,
1462,
67,
2271,
67,
1376,
67,
2080,
67,
718,
1968,
12,
2890,
16,
7211,
16,
833,
4672,
3536,
9311,
87,
279,
8672,
509,
292,
16057,
25774,
4335,
434,
279,
843,
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,
10720,
67,
955,
1462,
67,
2271,
67,
1376,
67,
2080,
67,
718,
1968,
12,
2890,
16,
7211,
16,
833,
4672,
3536,
9311,
87,
279,
8672,
509,
292,
16057,
25774,
4335,
434,
279,
843,
2,
-100,
... |
def fl_set_positioner_ystep(ob, value): """ fl_set_positioner_ystep(ob, value) """ _fl_set_positioner_ystep(ob, value) | def fl_set_positioner_ystep(pObject, value): """ fl_set_positioner_ystep(pObject, value) """ _fl_set_positioner_ystep(pObject, value) | def fl_set_positioner_ystep(ob, value): """ fl_set_positioner_ystep(ob, value) """ _fl_set_positioner_ystep(ob, value) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
84,
921,
16,
460,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
84,
921,
16,
460,
13,
3536,
225,
389,
2242,
67,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
84,
921,
16,
460,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
84,
921,
16,
460,
13,
3536,
225,
389,
2242,
67,
542,... |
/.../RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001 | /.../chandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001 | def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'Tes... | 2268248f0e4728b63ca1842648cbad866d679472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2268248f0e4728b63ca1842648cbad866d679472/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... |
def __init__(self, allow_none): | def __init__(self, allow_none, encoding): | def __init__(self, allow_none): self.funcs = {} self.instance = None self.allow_none = allow_none | 4fbf9d2e4f8201535ad2c67e404f8941b771231f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4fbf9d2e4f8201535ad2c67e404f8941b771231f/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1699,
67,
6102,
16,
2688,
4672,
365,
18,
17728,
273,
2618,
365,
18,
1336,
273,
599,
365,
18,
5965,
67,
6102,
273,
1699,
67,
6102,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
1699,
67,
6102,
16,
2688,
4672,
365,
18,
17728,
273,
2618,
365,
18,
1336,
273,
599,
365,
18,
5965,
67,
6102,
273,
1699,
67,
6102,
2,
-100,
-100,
-100,
... |
return platform.set_process_title(prog, info=info) | return platforms.set_process_title(prog, info=info) | def set_process_status(self, prog, info=""): prog = "%s:%s" % (self.prog_name, prog) info = "%s %s" % (info, platforms.strargv(sys.argv)) return platform.set_process_title(prog, info=info) | d2ac7cd486633db1df2c5a5ebe422e45e86ee166 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/d2ac7cd486633db1df2c5a5ebe422e45e86ee166/celeryev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2567,
67,
2327,
12,
2890,
16,
11243,
16,
1123,
1546,
6,
4672,
11243,
273,
2213,
87,
5319,
87,
6,
738,
261,
2890,
18,
14654,
67,
529,
16,
11243,
13,
1123,
273,
2213,
87,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2567,
67,
2327,
12,
2890,
16,
11243,
16,
1123,
1546,
6,
4672,
11243,
273,
2213,
87,
5319,
87,
6,
738,
261,
2890,
18,
14654,
67,
529,
16,
11243,
13,
1123,
273,
2213,
87,
738,... |
class GamesHandler(UserHandler): | class GamesHandler(MainHandler): | def change_password(self, new_password): user = self.current_user() user.password = new_password user.authcode = None user.put() | 44d01f5896f36ce81ad99a012a2f6c49c15d35c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11033/44d01f5896f36ce81ad99a012a2f6c49c15d35c9/control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3664,
12,
2890,
16,
394,
67,
3664,
4672,
729,
273,
365,
18,
2972,
67,
1355,
1435,
729,
18,
3664,
273,
394,
67,
3664,
729,
18,
1944,
710,
273,
599,
729,
18,
458,
1435,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3664,
12,
2890,
16,
394,
67,
3664,
4672,
729,
273,
365,
18,
2972,
67,
1355,
1435,
729,
18,
3664,
273,
394,
67,
3664,
729,
18,
1944,
710,
273,
599,
729,
18,
458,
1435,
2,
... |
logger.warning('The file %s in Job %d was not found. The file will be ignored.',str(f),j.id) | logger.warning('The file %s in Job %s was not found. The file will be ignored.',str(f),j.fqid) | def merge(self, jobs, outputdir = None, ignorefailed = None, overwrite = None): """ Method to merge the output of jobs. jobs may be a single job instance or a sequence of Jobs outputdir is the name of the directry to put the merge results in. It will be created if needed. ignorefailed and overwrite have the same meani... | e22fb79dc6db84ce7b972b3d6370e43de872b397 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/e22fb79dc6db84ce7b972b3d6370e43de872b397/Merger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
12,
2890,
16,
6550,
16,
876,
1214,
273,
599,
16,
2305,
7307,
273,
599,
16,
6156,
273,
599,
4672,
3536,
2985,
358,
2691,
326,
876,
434,
6550,
18,
225,
6550,
2026,
506,
279,
2202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
12,
2890,
16,
6550,
16,
876,
1214,
273,
599,
16,
2305,
7307,
273,
599,
16,
6156,
273,
599,
4672,
3536,
2985,
358,
2691,
326,
876,
434,
6550,
18,
225,
6550,
2026,
506,
279,
2202,
... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def idString(IDs): uniqueIDs = list(set(IDs)) uniqueIDs.sort() return ', '.join(['%d' % x for x in uniqueIDs if x >= 1]) | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
780,
12,
5103,
4672,
3089,
5103,
273,
666,
12,
542,
12,
5103,
3719,
3089,
5103,
18,
3804,
1435,
327,
2265,
2418,
5701,
12,
3292,
9,
72,
11,
738,
619,
364,
619,
316,
3089,
5103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
780,
12,
5103,
4672,
3089,
5103,
273,
666,
12,
542,
12,
5103,
3719,
3089,
5103,
18,
3804,
1435,
327,
2265,
2418,
5701,
12,
3292,
9,
72,
11,
738,
619,
364,
619,
316,
3089,
5103,
... |
"""Sort by type.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Sort by Active"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Check(settings['bash.installers.sortActive']) def Execute(self,event): settings['bash.installers.sortActiv... | """Sort by type.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Sort by Active"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Check(settings['bash.installers.sortActive']) def Execute(self,event): settings['bash.installers.sortActiv... | def Execute(self,event): """Handle selection.""" settings['bash.installers.skipDistantLOD'] ^= True for installer in self.data.itervalues(): installer.refreshDataSizeCrc() self.data.refresh(what='N') self.gTank.RefreshUI() | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3536,
3259,
4421,
12123,
1947,
3292,
28734,
18,
5425,
414,
18,
7457,
5133,
970,
48,
1212,
3546,
10352,
1053,
364,
16050,
316,
365,
18,
892,
18,
2165,
2372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3536,
3259,
4421,
12123,
1947,
3292,
28734,
18,
5425,
414,
18,
7457,
5133,
970,
48,
1212,
3546,
10352,
1053,
364,
16050,
316,
365,
18,
892,
18,
2165,
2372... |
string = ":%s [%-7s] %s %s%s"%( | string = ":%s [%-7s]%s %s %s%s"%( | def debugStateCall(self, obj=None, fsmMemberName='fsm'): """ If this notify is in debug mode, print the time of the call followed by the [fsm state] notifier category and the function call (with parameters). """ if (self.__debug): state = '' if obj is not None: if hasattr(obj, fsmMemberName) and obj.fsm.getCurrentState... | cfaf8fd444ddb1206e7a8df9c0ea01a352331714 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/cfaf8fd444ddb1206e7a8df9c0ea01a352331714/Notifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
1119,
1477,
12,
2890,
16,
1081,
33,
7036,
16,
26957,
4419,
461,
2218,
2556,
81,
11,
4672,
3536,
971,
333,
5066,
353,
316,
1198,
1965,
16,
1172,
326,
813,
434,
326,
745,
10860,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
1119,
1477,
12,
2890,
16,
1081,
33,
7036,
16,
26957,
4419,
461,
2218,
2556,
81,
11,
4672,
3536,
971,
333,
5066,
353,
316,
1198,
1965,
16,
1172,
326,
813,
434,
326,
745,
10860,
63... |
self.assertEqual(self.tv.tag_configure('test', foreground=None), | self.assertEqual(str(self.tv.tag_configure('test', foreground=None)), | def test_tag_configure(self): # Just testing parameter passing for now self.assertRaises(TypeError, self.tv.tag_configure) self.assertRaises(Tkinter.TclError, self.tv.tag_configure, 'test', sky='blue') self.tv.tag_configure('test', foreground='blue') self.assertEqual(self.tv.tag_configure('test', 'foreground'), 'blue')... | 5f7e971913011494e97a1263f2bc54b9bb20069c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/5f7e971913011494e97a1263f2bc54b9bb20069c/test_widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2692,
67,
14895,
12,
2890,
4672,
468,
12526,
7769,
1569,
9588,
364,
2037,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
365,
18,
24161,
18,
2692,
67,
14895,
13,
365,
18,
11231,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2692,
67,
14895,
12,
2890,
4672,
468,
12526,
7769,
1569,
9588,
364,
2037,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
365,
18,
24161,
18,
2692,
67,
14895,
13,
365,
18,
11231,
... |
if __debug__ and self.debug >= 4: _mesg('> %s' % data) | def _command(self, name, *args): | 8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3076,
12,
2890,
16,
508,
16,
380,
1968,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3076,
12,
2890,
16,
508,
16,
380,
1968,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def copy(self): """Returns a deep copy""" obj = self.Drawing(self.width, self.height) | def _copy(self,obj): """copies to obj""" | def copy(self): """Returns a deep copy""" obj = self.Drawing(self.width, self.height) obj._attrMap = self._attrMap.clone() | 799331f58bb9886b49f6db0a310277765b6efde9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/799331f58bb9886b49f6db0a310277765b6efde9/shapes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
2603,
4672,
3536,
22295,
606,
358,
1081,
8395,
1081,
6315,
1747,
863,
273,
365,
6315,
1747,
863,
18,
14056,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
2603,
4672,
3536,
22295,
606,
358,
1081,
8395,
1081,
6315,
1747,
863,
273,
365,
6315,
1747,
863,
18,
14056,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
cr, uid, context=context) % user)) | cr, uid, context=context) % user) | def send_welcome_email(self, cr, uid, id, context=None): logger= netsvc.Logger() user = self.pool.get('res.users').read(cr, uid, id, context=context) if not tools.config.get('smtp_server'): logger.notifyChannel('mails', netsvc.LOG_WARNING, _('"smtp_server" needs to be set to send mails to users')) return False if not t... | f42e225f4b9e0727eafb18f2d7d00c392e5114c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/f42e225f4b9e0727eafb18f2d7d00c392e5114c1/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
91,
16312,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
819,
33,
7036,
4672,
1194,
33,
21954,
4227,
18,
3328,
1435,
729,
273,
365,
18,
6011,
18,
588,
2668,
455,
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,
1366,
67,
91,
16312,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
819,
33,
7036,
4672,
1194,
33,
21954,
4227,
18,
3328,
1435,
729,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,... |
self.tk.call(self._w, 'invoke') | self.tk.call(self._w, 'invoke') | def invoke(self): | 86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
regs = Rdval + " " + Rnval print "%s %s: %-30s getClock(m), m.group('addr'), iname, regs) | memalias.procline(line) | def procline(line): m = re_debug.match(line) if m is None: m = re_irq.match(line) if m is not None: print getClock(m), m.group('data') else: memalias.procline(line) return insn = int(m.group('insn'), 16) iname = dis(insn) Rd = (insn >> 12) & 0xF Rn = (insn >> 16) & 0xF Rdval = transRegVal(Rd, m.group('Rd')) Rnval = tra... | 1fb3bfc1cc7464981e27d8f8340534f4d92180c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12923/1fb3bfc1cc7464981e27d8f8340534f4d92180c0/dis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
830,
558,
12,
1369,
4672,
312,
273,
283,
67,
4148,
18,
1916,
12,
1369,
13,
309,
312,
353,
599,
30,
312,
273,
283,
67,
481,
85,
18,
1916,
12,
1369,
13,
309,
312,
353,
486,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
830,
558,
12,
1369,
4672,
312,
273,
283,
67,
4148,
18,
1916,
12,
1369,
13,
309,
312,
353,
599,
30,
312,
273,
283,
67,
481,
85,
18,
1916,
12,
1369,
13,
309,
312,
353,
486,
599,... |
_tryorder = ["netscape", "windows-default"] | class WindowsDefault(BaseBrowser): def open(self, url, new=0, autoraise=1): os.startfile(url) return True _tryorder = [] _browsers = {} for browser in ("firefox", "firebird", "mozilla", "netscape", "opera"): if _iscommand(browser): register(browser, None, GenericBrowser(browser + ' %s')) | def open_new(self, url): self.open(url) | 336cf8e9a006f0abbd7712771acc892711f93ebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/336cf8e9a006f0abbd7712771acc892711f93ebd/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
frm=report.form_class(request.POST,instance=self.instance) | frm = report.form_class(request.POST,instance=self.instance) | def __init__(self,report,request,row): ViewOneReportRenderer.__init__(self,report,request,row) if request.method == 'POST': frm=report.form_class(request.POST,instance=self.instance) if frm.is_valid(): frm.save() stop_editing(request) redirect_to(request,self.again(editing=None)) #return HttpResponseRedirect(self.again... | 10097007eaaeded8870f3ee0c1be853168bcb9c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8353/10097007eaaeded8870f3ee0c1be853168bcb9c3/render.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6006,
16,
2293,
16,
492,
4672,
4441,
3335,
4820,
6747,
16186,
2738,
972,
12,
2890,
16,
6006,
16,
2293,
16,
492,
13,
309,
590,
18,
2039,
422,
296,
3798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6006,
16,
2293,
16,
492,
4672,
4441,
3335,
4820,
6747,
16186,
2738,
972,
12,
2890,
16,
6006,
16,
2293,
16,
492,
13,
309,
590,
18,
2039,
422,
296,
3798,
... |
return r._fix(context=context) | return r._fix(context) | def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(other) | 7154a51f157717174dff89f44508046f6876db74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7154a51f157717174dff89f44508046f6876db74/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
3... |
self.msgText("doSpeedGreenFlash: " + i.toString() + "\n") | if (self.debugLevel >= LowDebug) : self.msgText("doSpeedGreenFlash: " + i.toString() + "\n") | def doSpeedGreenFlash(self): if (self.redDelayTimer != None) : self.redDelayTimer.stop() if (self.currentThrottle != None) : i = int(self.locoSpeedGreenFlash.text) * 0.01 self.currentThrottle.setSpeedSetting(i) self.msgText("doSpeedGreenFlash: " + i.toString() + "\n") self.locoSpeed.text = self.locoSpeedGreenFlash.text... | 637586c522dc4614e3aa55f7046de00d6eaa8ae0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1660/637586c522dc4614e3aa55f7046de00d6eaa8ae0/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
16562,
21453,
11353,
12,
2890,
4672,
309,
261,
2890,
18,
1118,
6763,
6777,
480,
599,
13,
294,
365,
18,
1118,
6763,
6777,
18,
5681,
1435,
309,
261,
2890,
18,
2972,
27636,
480,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
16562,
21453,
11353,
12,
2890,
4672,
309,
261,
2890,
18,
1118,
6763,
6777,
480,
599,
13,
294,
365,
18,
1118,
6763,
6777,
18,
5681,
1435,
309,
261,
2890,
18,
2972,
27636,
480,
599,
... |
class HTTPBasicAuthHandler(BaseHandler): | class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): def find_user_password(self, realm, authuri): user, password = HTTPPasswordMgr.find_user_password(self,realm,authuri) if user is not None: return user, password return HTTPPasswordMgr.find_user_password(self, None, authuri) class AbstractBasicAuthHandler: | def is_suburi(self, base, test): """Check if test is below base in a URI tree | f7989b7d9a14a1c7a33a2eeb3dcf598d8e672f09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7989b7d9a14a1c7a33a2eeb3dcf598d8e672f09/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1717,
1650,
12,
2890,
16,
1026,
16,
1842,
4672,
3536,
1564,
309,
1842,
353,
5712,
1026,
316,
279,
3699,
2151,
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,
353,
67,
1717,
1650,
12,
2890,
16,
1026,
16,
1842,
4672,
3536,
1564,
309,
1842,
353,
5712,
1026,
316,
279,
3699,
2151,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
f_pov.write("//created by: %s\n"%(SCRIPT_NAME)) f_pov.write("//created on: %s\n"%(make.formatted_datetime())) | f_pov.write('//created by: %s\n'%(SCRIPT_NAME)) f_pov.write('//created on: %s\n'%(make.formatted_datetime())) | def on_each_file(self, filepath): | 69a8646791c8142da8a1eb5c6d803b56746350c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2758/69a8646791c8142da8a1eb5c6d803b56746350c8/eagle3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
13798,
67,
768,
12,
2890,
16,
3608,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
13798,
67,
768,
12,
2890,
16,
3608,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
file.Write(" cmd.header.size * 4);\n") | file.Write(" cmd.header.size * 4u);\n") file.Write(" EXPECT_EQ(static_cast<char*>(next_cmd),\n") file.Write(" reinterpret_cast<char*>(&cmd) + sizeof(cmd) +\n") file.Write(" strlen(test_str) + 1);\n") | def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" int8 buf[256] = { 0, };\n") file.Write(" %s& cmd = *static_cast<%s*>(static_cast<void*>(&buf));\n" % (func.name, func.name)) file.Write(" static const char* const te... | d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
... |
self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"]) | if dict["arg"]: self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"]) | def h_bibliographystyle (self, dict): """ Called when \\bibliographystyle is found. This registers the module bibtex (if not already done) and calls the method set_style() of the module. """ self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"]) | 6758a98afaba28ba41556b5310508a4f507cefcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/6758a98afaba28ba41556b5310508a4f507cefcc/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
67,
70,
495,
549,
8829,
1094,
1362,
261,
2890,
16,
2065,
4672,
3536,
11782,
1347,
1736,
70,
495,
549,
8829,
1094,
1362,
353,
1392,
18,
1220,
10285,
326,
1605,
25581,
21763,
261,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
67,
70,
495,
549,
8829,
1094,
1362,
261,
2890,
16,
2065,
4672,
3536,
11782,
1347,
1736,
70,
495,
549,
8829,
1094,
1362,
353,
1392,
18,
1220,
10285,
326,
1605,
25581,
21763,
261,
430... |
def Get | def GetProtocolName(self): """ Return string containing the protocal name used in the acquisition | ef8fe454a77726d602006fa3282dbdc57fd05a24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/ef8fe454a77726d602006fa3282dbdc57fd05a24/dicom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5752,
461,
12,
2890,
4672,
3536,
2000,
533,
4191,
326,
450,
1391,
287,
508,
1399,
316,
326,
1721,
22094,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5752,
461,
12,
2890,
4672,
3536,
2000,
533,
4191,
326,
450,
1391,
287,
508,
1399,
316,
326,
1721,
22094,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() | charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() | def parseSubscriberCSVFile(subscriberdata, composer): """parses file containing subscriber data returns list of dictionaries with subscriber data according to composer""" properties = component.getUtility(IPropertiesTool) charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() try: data = ... | 14fa936a04a33d6cf73063d205bf79238a87a0c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9843/14fa936a04a33d6cf73063d205bf79238a87a0c4/channel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
11118,
16570,
812,
12,
26410,
892,
16,
8561,
4672,
3536,
1065,
2420,
585,
4191,
9467,
501,
225,
1135,
666,
434,
16176,
598,
9467,
501,
4888,
358,
8561,
8395,
1790,
273,
1794,
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,
1109,
11118,
16570,
812,
12,
26410,
892,
16,
8561,
4672,
3536,
1065,
2420,
585,
4191,
9467,
501,
225,
1135,
666,
434,
16176,
598,
9467,
501,
4888,
358,
8561,
8395,
1790,
273,
1794,
18,
5... |
[(3, [(0, 0, 1, -6/7)], 1), (-1*I, [(1, 1*I, 0, -0.571428571428572? + 2.428571428571429?*I)], 1), (1*I, [(1, -1*I, 0, -0.571428571428572? - 2.428571428571429?*I)], 1)] | [(3, [ (0, 0, 1, -6/7) ], 1), (-1*I, [ (1, 1*I, 0, -0.571428571428572? + 2.428571428571429?*I) ], 1), (1*I, [ (1, -1*I, 0, -0.571428571428572? - 2.428571428571429?*I) ], 1)] | def eigenvectors(self,extend=True): """ Computes the subspace of eigenvectors of a given eigenvalue. INPUT: - extend (True) decides if base field extensions should be considered or not. OUTPUT: A sequence of tuples. Each tuple contains an eigenvalue, a list with a basis of the corresponding subspace of eigenvectors... | f2124d796b0473b4641a76aac10b15823a1166b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f2124d796b0473b4641a76aac10b15823a1166b9/free_module_morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11043,
29098,
12,
2890,
16,
14313,
33,
5510,
4672,
3536,
14169,
281,
326,
720,
2981,
434,
11043,
29098,
434,
279,
864,
16719,
1132,
18,
225,
12943,
30,
225,
300,
2133,
261,
5510,
13,
210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11043,
29098,
12,
2890,
16,
14313,
33,
5510,
4672,
3536,
14169,
281,
326,
720,
2981,
434,
11043,
29098,
434,
279,
864,
16719,
1132,
18,
225,
12943,
30,
225,
300,
2133,
261,
5510,
13,
210... |
k = k + 1 new_extended.append((row_index, i)) if colspan > 1: for row_index, k in new_extended: table[row_index][1][k].colspan = colspan for col in range(1, colspan): table[row_index][1][k+col].type = Cell.busy i = i + colspan else: i = i + 1 else: i = i + 1 | if celltest.start == start: celltest.type = Cell.busy cell.colspan = cell.colspan + celltest.colspan jcelltest = jcelltest + 1 | def render_namespace(items, times): nitems, iitems = len(items), 0 # blocks = [(nrows, ncols), ..] blocks, table, state = [], [], [] nrows = 0 for time in times[:-1]: cells = [] # add the busy cells for rowspan in state: if rowspan > 0: cells.append(Cell(Cell.busy)) else: cells.append(Cell(Cell.free, content={'start':... | 1d613a42339f87a03d37293214879a0488e9bfef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d613a42339f87a03d37293214879a0488e9bfef/gridlayout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
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,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
9... |
f = P.subplot(122).get_frame() | f = plt.subplot(122).get_frame() | def plot_overlap(n): # Select an overlapping pixel and highlight it p1 = grid1[n] p2 = grid2[n] overlap = zip(*ext.poly_clip(p2.x, p2.y, p1.x.min(), p1.x.max(), p1.y.max(), p1.y.min())) ax = P.subplot(121) ax.add_patch(patches.Polygon(zip(p1.x,p1.y), facecolor=[0.7, 0.7, 0.9])) ax.add_patch(patches.Polygon(zip(p2.x,p2... | e9d82bbc4a98399d2df9e6423312d38dffca7d73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12843/e9d82bbc4a98399d2df9e6423312d38dffca7d73/gridoverlap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
17946,
12,
82,
4672,
468,
6766,
392,
18620,
4957,
471,
8839,
518,
293,
21,
273,
3068,
21,
63,
82,
65,
293,
22,
273,
3068,
22,
63,
82,
65,
7227,
273,
3144,
30857,
408,
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,
3207,
67,
17946,
12,
82,
4672,
468,
6766,
392,
18620,
4957,
471,
8839,
518,
293,
21,
273,
3068,
21,
63,
82,
65,
293,
22,
273,
3068,
22,
63,
82,
65,
7227,
273,
3144,
30857,
408,
18,
... |
t = test() | t = Test() | def str(self): return str(self) | 39ccb13c94d26e9f423caee66e0f46688f9e66a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/39ccb13c94d26e9f423caee66e0f46688f9e66a3/test_scope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
12,
2890,
4672,
327,
609,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
609,
12,
2890,
4672,
327,
609,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print text.ljust (42), "...", | print text.ljust (64), "...", | def check_started (text): print text.ljust (42), "...", | 73b01283503026b342beabf80f1227ee4a92e0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2556/73b01283503026b342beabf80f1227ee4a92e0b0/ac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
14561,
261,
955,
4672,
1172,
977,
18,
80,
3732,
261,
1105,
3631,
26456,
16,
282,
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,
866,
67,
14561,
261,
955,
4672,
1172,
977,
18,
80,
3732,
261,
1105,
3631,
26456,
16,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if name in table: return table[name] | if name in table: return table[name] | def __getitem__(self,name): for table in self.tables: if name in table: return table[name] raise KeyError('"%s" does not exist in namespace' % name) | 59ee0c9a83c867a00b51b60700401ffb2edd0bdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/59ee0c9a83c867a00b51b60700401ffb2edd0bdb/expressions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
529,
4672,
364,
1014,
316,
365,
18,
9373,
30,
309,
508,
316,
1014,
30,
327,
1014,
63,
529,
65,
1002,
4999,
22076,
9,
87,
6,
1552,
486,
1005,
316,
1981... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
529,
4672,
364,
1014,
316,
365,
18,
9373,
30,
309,
508,
316,
1014,
30,
327,
1014,
63,
529,
65,
1002,
4999,
22076,
9,
87,
6,
1552,
486,
1005,
316,
1981... |
return self.currval*100.0 / self.maxval | return self.currval * 100.0 / self.maxval | def percentage(self): "Returns the percentage of the progress." return self.currval*100.0 / self.maxval | 204f37c267ccede11c076af5af0314ae74047f3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5565/204f37c267ccede11c076af5af0314ae74047f3b/progressbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11622,
12,
2890,
4672,
315,
1356,
326,
11622,
434,
326,
4007,
1199,
327,
365,
18,
17016,
1125,
14,
6625,
18,
20,
342,
365,
18,
1896,
1125,
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,
11622,
12,
2890,
4672,
315,
1356,
326,
11622,
434,
326,
4007,
1199,
327,
365,
18,
17016,
1125,
14,
6625,
18,
20,
342,
365,
18,
1896,
1125,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
url = save_attachment(mlist, part, filter_html=0) | url = save_attachment(mlist, part, dir, filter_html=0) | def doreplace(s): return s.replace(' ', ' ').replace('\t', ' '*8) | 5aa88aadb141f4df5860bd4c6a82951ced75a01b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/5aa88aadb141f4df5860bd4c6a82951ced75a01b/Scrubber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
479,
964,
12,
87,
4672,
327,
272,
18,
2079,
2668,
2265,
5183,
10600,
4359,
2934,
2079,
2668,
64,
88,
2187,
5183,
10600,
11,
14,
28,
13,
2,
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,
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,
302,
479,
964,
12,
87,
4672,
327,
272,
18,
2079,
2668,
2265,
5183,
10600,
4359,
2934,
2079,
2668,
64,
88,
2187,
5183,
10600,
11,
14,
28,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if chkcmd in ('all', 'duplicates'): | if chkcmd in ('all', 'dependencies'): | def _rpmdb_warn_checks(self, out=None, warn=True, chkcmd='all'): if out is None: out = self.logger.warning if warn: out(_('Warning: RPMDB altered outside of yum.')) | d5d929d4bb4e2eade2ce4063f6ffc1b04aa92daf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/d5d929d4bb4e2eade2ce4063f6ffc1b04aa92daf/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13832,
27574,
67,
8935,
67,
12366,
12,
2890,
16,
596,
33,
7036,
16,
1894,
33,
5510,
16,
15000,
4172,
2218,
454,
11,
4672,
309,
596,
353,
599,
30,
596,
273,
365,
18,
4901,
18,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13832,
27574,
67,
8935,
67,
12366,
12,
2890,
16,
596,
33,
7036,
16,
1894,
33,
5510,
16,
15000,
4172,
2218,
454,
11,
4672,
309,
596,
353,
599,
30,
596,
273,
365,
18,
4901,
18,
85... |
if gemtype != 'Unused': gemname = SC.getGemName(item, slot) if self.gemnames.has_key(gemname): self.gemnames[gemname] += 1 else: self.gemnames[gemname] = 1 costindex = ValuesLists[gemtype].index(amount) cost = GemCosts[costindex] if effect[0:4] == 'All ': cost += 60 * max(costindex - 1, 0) cost = cost * 3 if gemtype ==... | if gemtype == 'Unused': continue gemname = SC.getGemName(item, slot) if self.gemnames.has_key(gemname): self.gemnames[gemname] += 1 else: self.gemnames[gemname] = 1 costindex = ValuesLists[gemtype].index(amount) cost = GemCosts[costindex] if effect[0:4] == 'All ': cost += 60 * max(costindex - 1, 0) cost = cost * 3 if ... | def materialsReport(self, itemlist, slot = 0): self.MMLabel.show() self.MatMultiplier.show() self.setCaption('Materials Report') self.materials = { 'Gems' : { }, 'Liquids' : {}, 'Dusts': {} } self.gemnames = { } self.totalcost = 0 if slot == 0: lastslot = 4 else: lastslot = slot for loc, item in itemlist.items(): activ... | 97b59c5e4229332a7bdd6961ed7f5292b148f904 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/97b59c5e4229332a7bdd6961ed7f5292b148f904/ReportWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31824,
4820,
12,
2890,
16,
761,
1098,
16,
4694,
273,
374,
4672,
365,
18,
49,
1495,
873,
18,
4500,
1435,
365,
18,
15947,
23365,
18,
4500,
1435,
365,
18,
542,
21158,
2668,
11790,
87,
870... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31824,
4820,
12,
2890,
16,
761,
1098,
16,
4694,
273,
374,
4672,
365,
18,
49,
1495,
873,
18,
4500,
1435,
365,
18,
15947,
23365,
18,
4500,
1435,
365,
18,
542,
21158,
2668,
11790,
87,
870... |
print("Use this script via ./bin/zopepy inst/checknew.py.") | print("Use this script via ./bin/base-py checknew.py") | def help(): print("Use this script via ./bin/zopepy inst/checknew.py.") | cb8866248560174e78db7c1e88fe99b08412d964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12180/cb8866248560174e78db7c1e88fe99b08412d964/checknew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
13332,
1172,
2932,
3727,
333,
2728,
3970,
263,
19,
4757,
19,
1969,
17,
2074,
866,
2704,
18,
2074,
7923,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2809,
13332,
1172,
2932,
3727,
333,
2728,
3970,
263,
19,
4757,
19,
1969,
17,
2074,
866,
2704,
18,
2074,
7923,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.assertEqual( bx.seqmapping.DNA.translate_list( [ "ACGTA", "TGCAX" ] ), [ 0 + 3*6, 1 + 2*6, 2 + 1*6, 3 + 0*6, -1 ] ) | assert( allclose( bx.seqmapping.DNA.translate_list( [ "ACGTA", "TGCAX" ] ), [ 0 + 3*6, 1 + 2*6, 2 + 1*6, 3 + 0*6, -1 ] ) ) | def test_DNA_list( self ): self.assertEqual( bx.seqmapping.DNA.translate_list( [ "ACGTA", "TGCAX" ] ), [ 0 + 3*6, 1 + 2*6, 2 + 1*6, 3 + 0*6, -1 ] ) | 9e4bd2a74276b6d1fd95dd1d670a04822810c7f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2104/9e4bd2a74276b6d1fd95dd1d670a04822810c7f8/seqmapping_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8609,
37,
67,
1098,
12,
365,
262,
30,
365,
18,
11231,
5812,
12,
24356,
18,
5436,
6770,
18,
8609,
37,
18,
13929,
67,
1098,
12,
306,
315,
2226,
43,
9833,
3113,
315,
56,
15396... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8609,
37,
67,
1098,
12,
365,
262,
30,
365,
18,
11231,
5812,
12,
24356,
18,
5436,
6770,
18,
8609,
37,
18,
13929,
67,
1098,
12,
306,
315,
2226,
43,
9833,
3113,
315,
56,
15396... |
context.log(5, "interpretive: generated %05o (%03o,%03o)" % (code & 077777, (code / 0200) & 0177, code & 0177)) | context.log(5, "interpretive: generated %05o" % code) | def parse(self, context, operands): # Case 1: One interpretive opcode. # Case 2: Two packed interpretive opcodes. # Case 3: Interpretive opcode, simple operand. # Case 4: Interpretive opcode, operand expression with 2 components (e.g. ['A', '+1']). # Case 5: Interpretive opcode, operand expression with 3 components (e.... | db6ee6dd1c01199430e7e6696abfe7c29390ad60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/db6ee6dd1c01199430e7e6696abfe7c29390ad60/interpretive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
819,
16,
14883,
4672,
468,
12605,
404,
30,
6942,
10634,
688,
11396,
18,
468,
12605,
576,
30,
16896,
12456,
10634,
688,
1061,
7000,
18,
468,
12605,
890,
30,
5294,
1508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
819,
16,
14883,
4672,
468,
12605,
404,
30,
6942,
10634,
688,
11396,
18,
468,
12605,
576,
30,
16896,
12456,
10634,
688,
1061,
7000,
18,
468,
12605,
890,
30,
5294,
1508... |
if len(model) == 1 and model[0][1] is None: | if len(model) == 1 and model[0][0] == ALL: | def _remove(self, songs, remove_if_empty=True): self.inhibit() model = self.get_model() to_remove = [] for row in model: data = row[1] if data is None: continue for song in songs: if song in data: data.remove(song) if not model[row.iter][1]: to_remove.append(row.iter) if remove_if_empty: for iter in to_remove: try: del... | 65c353a2f58dd189cd3918d5836dbf8ca05e5f5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/65c353a2f58dd189cd3918d5836dbf8ca05e5f5f/paned.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
12,
2890,
16,
272,
7260,
16,
1206,
67,
430,
67,
5531,
33,
5510,
4672,
365,
18,
267,
31597,
1435,
938,
273,
365,
18,
588,
67,
2284,
1435,
358,
67,
4479,
273,
5378,
364,
102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4479,
12,
2890,
16,
272,
7260,
16,
1206,
67,
430,
67,
5531,
33,
5510,
4672,
365,
18,
267,
31597,
1435,
938,
273,
365,
18,
588,
67,
2284,
1435,
358,
67,
4479,
273,
5378,
364,
102... |
3 | 14 | def myResolver(URL, ID, ctxt): if URL == "tst.ent": return(StringIO.StringIO(tst_ent)) return None | 8d73bcb50f91dacb48c2ad61169cb2adc18c1eae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/8d73bcb50f91dacb48c2ad61169cb2adc18c1eae/reader2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
4301,
12,
1785,
16,
1599,
16,
14286,
4672,
309,
1976,
422,
315,
88,
334,
18,
319,
6877,
327,
12,
780,
4294,
18,
780,
4294,
12,
88,
334,
67,
319,
3719,
327,
599,
225,
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,
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,
3399,
4301,
12,
1785,
16,
1599,
16,
14286,
4672,
309,
1976,
422,
315,
88,
334,
18,
319,
6877,
327,
12,
780,
4294,
18,
780,
4294,
12,
88,
334,
67,
319,
3719,
327,
599,
225,
2,
-100,
... |
timeout = 10 * int(options.time_out_ms) | timeout = str(10 * int(options.time_out_ms)) | def _GetTestFileQueue(self, test_files): """Create the thread safe queue of lists of (test filenames, test URIs) tuples. Each TestShellThread pulls a list from this queue and runs those tests in order before grabbing the next available list. | 3081d1c2adc780bc1767523953d1d11c4292d1be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/3081d1c2adc780bc1767523953d1d11c4292d1be/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
4709,
812,
3183,
12,
2890,
16,
1842,
67,
2354,
4672,
3536,
1684,
326,
2650,
4183,
2389,
434,
6035,
434,
261,
3813,
9066,
16,
1842,
24565,
13,
10384,
18,
8315,
7766,
13220,
3830... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
4709,
812,
3183,
12,
2890,
16,
1842,
67,
2354,
4672,
3536,
1684,
326,
2650,
4183,
2389,
434,
6035,
434,
261,
3813,
9066,
16,
1842,
24565,
13,
10384,
18,
8315,
7766,
13220,
3830... |
if not dirs_in_sys_path.has_key(dircase) and os.path.exists(dir): | if not _dirs_in_sys_path.has_key(dircase) and os.path.exists(dir): | def addpackage(sitedir, name): fullname = os.path.join(sitedir, name) try: f = open(fullname) except IOError: return while 1: dir = f.readline() if not dir: break if dir[0] == '#': continue if dir.startswith("import"): exec dir continue if dir[-1] == '\n': dir = dir[:-1] dir, dircase = makepath(sitedir, dir) if not dir... | 47e53fb1ed28df198c803f6058122ea3bd97f4f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/47e53fb1ed28df198c803f6058122ea3bd97f4f2/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 149) else quickfix.StringField.__init__(self, 149, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
29,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
5045,
29,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
... |
return open(fn) | return open(fn, *args, **kw) | def open_urlresource(url, *args, **kw): import urllib.request, urllib.parse requires('urlfetch') filename = urllib.parse.urlparse(url)[2].split('/')[-1] # '/': it's URL! fn = os.path.join(os.path.dirname(__file__), "data", filename) if os.path.exists(fn): return open(fn) print('\tfetching %s ...' % url, file=get_ori... | d07d0f14da9d0bea920e89d9d87f6d01415f0039 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/d07d0f14da9d0bea920e89d9d87f6d01415f0039/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
26... |
run = self.restore_run(data, self.topo_actions) | action_names = [] for action in data['runs']: action_names.append(action['id'].split('.')[-1]) def action_state_filter(topo_action): return topo_action.name in action_names run = self.restore_run(data, action_list) | def restore_main_run(self, data): run = self.restore_run(data, self.topo_actions) self.runs.append(run) if run.is_success and not self.last_success: self.last_success = run return run | 3f2fa2377e4d91de3e390db54c1133d1d4a16d60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/3f2fa2377e4d91de3e390db54c1133d1d4a16d60/job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
5254,
67,
2681,
12,
2890,
16,
501,
4672,
1301,
67,
1973,
273,
5378,
364,
1301,
316,
501,
3292,
20152,
3546,
30,
1301,
67,
1973,
18,
6923,
12,
1128,
3292,
350,
29489,
4939,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
67,
5254,
67,
2681,
12,
2890,
16,
501,
4672,
1301,
67,
1973,
273,
5378,
364,
1301,
316,
501,
3292,
20152,
3546,
30,
1301,
67,
1973,
18,
6923,
12,
1128,
3292,
350,
29489,
4939,
26... |
/.../RunChandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestSharing -D2 -M0 | /.../chandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestSharing -D2 -M0 | def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'Tes... | 2268248f0e4728b63ca1842648cbad866d679472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2268248f0e4728b63ca1842648cbad866d679472/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... |
f_key = int(event.event_string[1:]) - 13 | f_key = int(event.event_string[1:]) - 25 | def process_event(event): global char_index global reg global prsg global prediction global ignore_keys if (event.type == pyatspi.KEY_PRESS) & (event.is_text == True): #print event if (len(event.event_string) == 1) & (event.event_string.isalpha() == True): if ignore_keys == 0: char_index += 1 prediction = prsg.predi... | 076d86f7965729a51d9f83e0bd19d2e688b154ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2145/076d86f7965729a51d9f83e0bd19d2e688b154ce/pypresagemate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2575,
12,
2575,
4672,
2552,
1149,
67,
1615,
2552,
960,
2552,
846,
1055,
2552,
8239,
2552,
2305,
67,
2452,
225,
309,
261,
2575,
18,
723,
422,
2395,
270,
23617,
18,
3297,
67,
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,
1207,
67,
2575,
12,
2575,
4672,
2552,
1149,
67,
1615,
2552,
960,
2552,
846,
1055,
2552,
8239,
2552,
2305,
67,
2452,
225,
309,
261,
2575,
18,
723,
422,
2395,
270,
23617,
18,
3297,
67,
2... |
kwdata = UserHandlerList(RawDataStub(source, *keyword_names).keywords) return userkeyword.UserLibrary(kwdata) | return userkeyword.UserLibrary([UserKeyword(name) for name in keyword_names]) | def _get_userlibrary(self, source, *keyword_names): kwdata = UserHandlerList(RawDataStub(source, *keyword_names).keywords) return userkeyword.UserLibrary(kwdata) | 763fd32e4e361435d2b8599a84f8c71d56f84f5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/763fd32e4e361435d2b8599a84f8c71d56f84f5e/test_userlibrary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
12083,
12,
2890,
16,
1084,
16,
380,
11041,
67,
1973,
4672,
327,
729,
11041,
18,
1299,
9313,
3816,
1299,
8736,
12,
529,
13,
364,
508,
316,
4932,
67,
1973,
5717,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
12083,
12,
2890,
16,
1084,
16,
380,
11041,
67,
1973,
4672,
327,
729,
11041,
18,
1299,
9313,
3816,
1299,
8736,
12,
529,
13,
364,
508,
316,
4932,
67,
1973,
5717,
225,... |
class skin_module(new.module): def __repr__(self): return '<skin lazymodule %r>' % self.__name__ def __init__(self, *a, **kw): super(skin_module, self).__init__(*a, **kw) | class _lazy_skin_module(new.module): """ An instance of _lazy_skin_module stands in for the real skin module, and becomes a Borg of the real skin as soon as an unknown attribute is requested (i.e., as soon as __getattr__ is called). """ | def _config(skin_name=DEFAULT_SKIN_NAME): """ Although currently a function, L{config} will probably become a class because we strongly suspect people will want to actually do some configuration loading here. In fact, one thing we learned while implementing the first Cimarrón is that a lot of functionality is actually... | d1d89432891529a6990918d37e735aa901d7d247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/d1d89432891529a6990918d37e735aa901d7d247/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1425,
12,
7771,
267,
67,
529,
33,
5280,
67,
11129,
706,
67,
1985,
4672,
3536,
225,
2262,
18897,
4551,
279,
445,
16,
511,
95,
1425,
97,
903,
8656,
12561,
279,
667,
2724,
732,
11773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1425,
12,
7771,
267,
67,
529,
33,
5280,
67,
11129,
706,
67,
1985,
4672,
3536,
225,
2262,
18897,
4551,
279,
445,
16,
511,
95,
1425,
97,
903,
8656,
12561,
279,
667,
2724,
732,
11773... |
if "email" in self.searchParams: self.__ProcessEmail() | if "email" in self._searchParams: self.__ProcessEmail() | def BuildProcess(self): me = flickr.people_findByEmail("m2@innerlogic.org") if "email" in self.searchParams: self.__ProcessEmail() | 8b145ec3886f2560fe340a405ee784ce2a6775ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/8b145ec3886f2560fe340a405ee784ce2a6775ae/slideshowmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
2227,
12,
2890,
4672,
1791,
273,
1183,
16254,
18,
28035,
67,
4720,
858,
4134,
2932,
81,
22,
36,
7872,
28339,
18,
3341,
7923,
309,
315,
3652,
6,
316,
365,
18,
3072,
1370,
30,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
2227,
12,
2890,
4672,
1791,
273,
1183,
16254,
18,
28035,
67,
4720,
858,
4134,
2932,
81,
22,
36,
7872,
28339,
18,
3341,
7923,
309,
315,
3652,
6,
316,
365,
18,
3072,
1370,
30,
365,... |
('TCP', (80, self.f), {'interface':'', 'backlog':5})) | ('TCP', (80, self.f), {'interface':'', 'backlog':50})) | def testSimpleNumeric(self): self.assertEqual(strports.parse('80', self.f), ('TCP', (80, self.f), {'interface':'', 'backlog':5})) | 67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e/test_strports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5784,
9902,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
701,
4363,
18,
2670,
2668,
3672,
2187,
365,
18,
74,
3631,
7707,
13891,
2187,
261,
3672,
16,
365,
18,
74,
3631,
13666,
5831,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5784,
9902,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
701,
4363,
18,
2670,
2668,
3672,
2187,
365,
18,
74,
3631,
7707,
13891,
2187,
261,
3672,
16,
365,
18,
74,
3631,
13666,
5831,
... |
return (DataDigester(rfc822BodyCleaner(fp), spec, seekable).get_digest(),) | return filter(lambda x: x is not None, (DataDigester(rfc822BodyCleaner(fp), spec, seekable).get_digest(),) ) | def get_file_digester(fp, spec, mbox, seekable=False): """Return an object that can be iterated over to get all the digests from fp according to spec. mbox is a boolean""" if mbox: return MailboxDigester(fp, spec) return (DataDigester(rfc822BodyCleaner(fp), spec, seekable).get_digest(),) | 56b0371912ebd45ae7c0303ca204f2a438aa4ff9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7249/56b0371912ebd45ae7c0303ca204f2a438aa4ff9/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
5606,
7654,
12,
7944,
16,
857,
16,
312,
2147,
16,
6520,
429,
33,
8381,
4672,
3536,
990,
392,
733,
716,
848,
506,
29873,
1879,
358,
336,
777,
326,
5403,
87,
628,
425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
5606,
7654,
12,
7944,
16,
857,
16,
312,
2147,
16,
6520,
429,
33,
8381,
4672,
3536,
990,
392,
733,
716,
848,
506,
29873,
1879,
358,
336,
777,
326,
5403,
87,
628,
425... |
Feed(url) | f = Feed(url) f.setTitle(title) | def handle_new_channel_search_engine(self, message): sei = message.search_engine_info term = message.search_term | c1558b4f03ea76c5cd186d9ac6f9280076c9140a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/c1558b4f03ea76c5cd186d9ac6f9280076c9140a/messagehandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2704,
67,
4327,
67,
3072,
67,
8944,
12,
2890,
16,
883,
4672,
695,
77,
273,
883,
18,
3072,
67,
8944,
67,
1376,
2481,
273,
883,
18,
3072,
67,
6408,
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,
1640,
67,
2704,
67,
4327,
67,
3072,
67,
8944,
12,
2890,
16,
883,
4672,
695,
77,
273,
883,
18,
3072,
67,
8944,
67,
1376,
2481,
273,
883,
18,
3072,
67,
6408,
2,
-100,
-100,
-100,
-100,... |
if float(values[16]) >= 0.8 and float(values[13]) > c.AreaOfObj \ | if float(values[16]) >= 0.8 and float(values[13]) > AreaOfObj \ | def FindPsf(c.AreaOfObj, CaT): for line in open(CaT,'r'): values = line.split() try: BaKgR = float(values[10]) if float(values[16]) >= 0.8 and float(values[13]) > c.AreaOfObj \ and float(values[14]) < 50.0: xcntr = float(values[1]) - 1 ycntr = float(values[2]) - 1 #size of the psf is 8 times the sigma assuming the sta... | 3556fc61614a057564b5b04cce1ac4065e696f52 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8867/3556fc61614a057564b5b04cce1ac4065e696f52/pymorph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
18124,
74,
12,
71,
18,
5484,
951,
2675,
16,
23318,
56,
4672,
364,
980,
316,
1696,
12,
23508,
56,
11189,
86,
11,
4672,
924,
273,
980,
18,
4939,
1435,
775,
30,
605,
69,
47,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
18124,
74,
12,
71,
18,
5484,
951,
2675,
16,
23318,
56,
4672,
364,
980,
316,
1696,
12,
23508,
56,
11189,
86,
11,
4672,
924,
273,
980,
18,
4939,
1435,
775,
30,
605,
69,
47,
75,
... |
(r'(\s|.)', Text), | (r'(\s|.)', Text) | def word_callback(lexer, match): word = match.group() | cfe64ea65eacd18eae0cdcbaec6bc03b39d3ea28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/cfe64ea65eacd18eae0cdcbaec6bc03b39d3ea28/other.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if hasattr(self.db, 'close'): self.db.close() self.db = None | if hasattr(self.dict, 'close'): self.dict.close() self.dict = None | def close(self): if hasattr(self.db, 'close'): self.db.close() self.db = None | a61554b183d6cb146bd917082a4f90fa0f0cb189 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a61554b183d6cb146bd917082a4f90fa0f0cb189/shelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
3859,
12,
2890,
18,
1966,
16,
296,
4412,
11,
4672,
365,
18,
1966,
18,
4412,
1435,
365,
18,
1966,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
3859,
12,
2890,
18,
1966,
16,
296,
4412,
11,
4672,
365,
18,
1966,
18,
4412,
1435,
365,
18,
1966,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
TargetAdd('make-prc-key.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('make-prc-key.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | a08adf49fdc59814c8cc11568122504025303013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/a08adf49fdc59814c8cc11568122504025303013/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: print ' - Found no jobs...' | def check_queue(browser): """Checks the queue page to see if there are any jobs listed on it. If so, tries to sign up for the first job available.""" print 'Checking queue...' browser.open(config.queue_url) browser.select_form(nr=0) if filter(job_filter, browser.form.controls): return get_job(browser) else: print ' -... | e916ddd49d077836d780ee5ac42808eae4eeea75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12993/e916ddd49d077836d780ee5ac42808eae4eeea75/reckoning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4000,
12,
11213,
4672,
3536,
4081,
326,
2389,
1363,
358,
2621,
309,
1915,
854,
1281,
6550,
12889,
603,
518,
18,
225,
971,
1427,
16,
9327,
358,
1573,
731,
364,
326,
1122,
1719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4000,
12,
11213,
4672,
3536,
4081,
326,
2389,
1363,
358,
2621,
309,
1915,
854,
1281,
6550,
12889,
603,
518,
18,
225,
971,
1427,
16,
9327,
358,
1573,
731,
364,
326,
1122,
1719,
... | |
tasks = Processing_task.objects.filter(id__in = tasksIds, results_output_dir = outdir).order_by('-start_date') | def getReport(self, request, reportId): """ Generates a report. @param reportId report Id as returned by the reports() function """ post = request.POST | 9e0ba5fc357c6b59f09099f1f44fc7560b484d88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/9e0ba5fc357c6b59f09099f1f44fc7560b484d88/qualityfitsin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22452,
12,
2890,
16,
590,
16,
2605,
548,
4672,
3536,
31902,
279,
2605,
18,
632,
891,
2605,
548,
2605,
3124,
487,
2106,
635,
326,
10557,
1435,
445,
3536,
1603,
273,
590,
18,
3798,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22452,
12,
2890,
16,
590,
16,
2605,
548,
4672,
3536,
31902,
279,
2605,
18,
632,
891,
2605,
548,
2605,
3124,
487,
2106,
635,
326,
10557,
1435,
445,
3536,
1603,
273,
590,
18,
3798,
2,
-1... | |
__metaclass__ = _command_loop_metaclass def __init__(self, **kw): | def init(self, **kw): | def help_cmd(self, message=fn.__doc__, cmd=command): print '=' * 15 print '\nHelp for command %s:\n' % (cmd,) print message.strip() print '' print '=' * 15 print '' | 7e122f3bb12c1f0d78a97d71d247f0f1addc01e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/7e122f3bb12c1f0d78a97d71d247f0f1addc01e7/shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
4172,
12,
2890,
16,
883,
33,
4293,
16186,
2434,
972,
16,
1797,
33,
3076,
4672,
1172,
5214,
380,
4711,
1172,
2337,
82,
6696,
364,
1296,
738,
87,
5581,
82,
11,
738,
261,
4172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
4172,
12,
2890,
16,
883,
33,
4293,
16186,
2434,
972,
16,
1797,
33,
3076,
4672,
1172,
5214,
380,
4711,
1172,
2337,
82,
6696,
364,
1296,
738,
87,
5581,
82,
11,
738,
261,
4172,
... |
break | continue | def test_xml(src_filename, param, xmlout='simple'): """ Compare the xml output against a known good xml document """ global logger param.set('idtag_dtd', None) param.set('idtagqual_dtd', None) try: for xmlout in ('simple', 'idtag', 'idtagqual'): fd_xml = tempfile.NamedTemporaryFile() base_xml = os.path.splitext(src_fil... | 9d2637cbda6e31c0631d66eb98f1ff3f2b1487e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11528/9d2637cbda6e31c0631d66eb98f1ff3f2b1487e1/test_functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2902,
12,
4816,
67,
3459,
16,
579,
16,
25179,
14533,
2218,
9647,
11,
4672,
3536,
11051,
326,
2025,
876,
5314,
279,
4846,
7494,
2025,
1668,
3536,
2552,
1194,
579,
18,
542,
2668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2902,
12,
4816,
67,
3459,
16,
579,
16,
25179,
14533,
2218,
9647,
11,
4672,
3536,
11051,
326,
2025,
876,
5314,
279,
4846,
7494,
2025,
1668,
3536,
2552,
1194,
579,
18,
542,
2668,... |
self.__determinant = d | if self.is_immutable(): self.__determinant = d | def determinant(self): r""" Return the determinant of self. | f3a98c22db2701da06a08ac26bfcb3e56be93d06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/f3a98c22db2701da06a08ac26bfcb3e56be93d06/matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6328,
970,
12,
2890,
4672,
436,
8395,
2000,
326,
6328,
970,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6328,
970,
12,
2890,
4672,
436,
8395,
2000,
326,
6328,
970,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.unpack_string = 'L' | self.unpack_string = 'I' | def Tag_uint32(self): new_tag = unpack('B', self.data[self.index])[0] | e189af671dcae8c04bd8f23d36319be14377393a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1296/e189af671dcae8c04bd8f23d36319be14377393a/pxldis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
11890,
1578,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
11890,
1578,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lsctables.SnglInspiralTable.next_id = _mangled_next_id | lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0) | def ReadSnglInspiralFromFiles(fileList, mangle_event_id=False, verbose=False, non_lsc_tables_ok=False, old_document=False): """ Read the SnglInspiralTables from a list of files @param fileList: list of input files @param mangle_event_id: ID remapping is necessary in cases where multiple files might have event_id colli... | 67ac33372b581bfb75156f30fd8d7adbe54edee8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/67ac33372b581bfb75156f30fd8d7adbe54edee8/SnglInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... |
import languageHandler | def nvdaController_inputLangChangeNotify(threadID,hkl,layoutString): if threadID!=winUser.getWindowThreadProcessID(winUser.getForegroundWindow())[1]: return import queueHandler import ui import languageHandler layoutName=None languageName=None try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentContr... | 15197fe93642d49bcddef01d09b18e2b8ac403a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/15197fe93642d49bcddef01d09b18e2b8ac403a2/NVDAHelper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8779,
2414,
2933,
67,
2630,
7275,
3043,
9168,
12,
5930,
734,
16,
76,
16391,
16,
6741,
780,
4672,
309,
2650,
734,
5,
33,
8082,
1299,
18,
588,
3829,
3830,
2227,
734,
12,
8082,
1299,
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,
8779,
2414,
2933,
67,
2630,
7275,
3043,
9168,
12,
5930,
734,
16,
76,
16391,
16,
6741,
780,
4672,
309,
2650,
734,
5,
33,
8082,
1299,
18,
588,
3829,
3830,
2227,
734,
12,
8082,
1299,
18,
... | |
print >>self, self.WARN, self.msg, | print >>self, BasicLogger.WARN, self.msg, | def warning(self, msg, *args): if self.level < 1: return print >>self, self.WARN, self.msg, print >>self, msg %args | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
309,
365,
18,
2815,
411,
404,
30,
327,
1172,
1671,
2890,
16,
7651,
3328,
18,
27999,
16,
365,
18,
3576,
16,
1172,
1671,
2890,
16,
1234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
309,
365,
18,
2815,
411,
404,
30,
327,
1172,
1671,
2890,
16,
7651,
3328,
18,
27999,
16,
365,
18,
3576,
16,
1172,
1671,
2890,
16,
1234,
... |
print "Number of degrees of freedom:", q.size() | print "Degrees of freedom:", q_size_moving | def process(file_name): time_start = time.time() pdb_inp = iotbx.pdb.input(file_name=file_name) pdb_atoms = pdb_inp.atoms() print "Time reading pdb file: %.2f" % (time.time() - time_start) print "Number of atoms:", pdb_atoms.size() pdb_atoms.set_chemical_element_simple_if_necessary() sites_cart = pdb_atoms.extract_xyz(... | 6fc4e17633acb8acf6592038a60d7e227de0f5a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/6fc4e17633acb8acf6592038a60d7e227de0f5a4/pdb_tardy_conf_sampling_simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
768,
67,
529,
4672,
813,
67,
1937,
273,
813,
18,
957,
1435,
10892,
67,
31647,
273,
30956,
70,
92,
18,
17414,
18,
2630,
12,
768,
67,
529,
33,
768,
67,
529,
13,
10892,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
768,
67,
529,
4672,
813,
67,
1937,
273,
813,
18,
957,
1435,
10892,
67,
31647,
273,
30956,
70,
92,
18,
17414,
18,
2630,
12,
768,
67,
529,
33,
768,
67,
529,
13,
10892,
67,
... |
replacement = convert_entityref(name) | replacement = self.convert_entityref(name) | def handle_entityref(self, name): """Handle entity references, no need to override.""" replacement = convert_entityref(name) if replacement is None: self.unknown_entityref(name) else: self.handle_data(convert_entityref(name)) | 6325655aee73ff7b4a8564423177254e7bc0d66a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6325655aee73ff7b4a8564423177254e7bc0d66a/sgmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1096,
1734,
12,
2890,
16,
508,
4672,
3536,
3259,
1522,
5351,
16,
1158,
1608,
358,
3849,
12123,
6060,
273,
365,
18,
6283,
67,
1096,
1734,
12,
529,
13,
309,
6060,
353,
599,
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,
1640,
67,
1096,
1734,
12,
2890,
16,
508,
4672,
3536,
3259,
1522,
5351,
16,
1158,
1608,
358,
3849,
12123,
6060,
273,
365,
18,
6283,
67,
1096,
1734,
12,
529,
13,
309,
6060,
353,
599,
30,... |
False) | False)''' | def get(self, base_url): if self.request.host == "t.lostriver.net": self.redirect("http://twitter.com/LucienLu") elif self.request.host == SHORTLINK_URL: short_item = db.get(db.Key.from_path('Short_links', 'N:%s' % self.request.path_qs)) if not short_item: self.response.set_status(404, None) not_found_error_cont = \ | 5d4baed7119ec8b306761789c609c03ae9c5c364 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1797/5d4baed7119ec8b306761789c609c03ae9c5c364/edu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1026,
67,
718,
4672,
309,
365,
18,
2293,
18,
2564,
422,
315,
88,
18,
383,
701,
1667,
18,
2758,
6877,
365,
18,
7590,
2932,
2505,
2207,
19406,
18,
832,
19,
48,
5286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
1026,
67,
718,
4672,
309,
365,
18,
2293,
18,
2564,
422,
315,
88,
18,
383,
701,
1667,
18,
2758,
6877,
365,
18,
7590,
2932,
2505,
2207,
19406,
18,
832,
19,
48,
5286,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.