JoaoJunior/T5_APR_java_python_v4
60.5M • Updated • 22
rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids sequencelengths 256 256 | attention_mask sequencelengths 256 256 | labels sequencelengths 128 128 |
|---|---|---|---|---|---|---|
visit_author = depart_author = lambda self,node: None visit_authors = depart_authors = lambda self,node: None | def visit_author(self, node): raise nodes.SkipNode def visit_authors(self, node): raise nodes.SkipNode | def depart_attention(self, node): self.body.append('</note>\n') | d2ea2631a31ca67e6d03da659353adf4e941a9bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/d2ea2631a31ca67e6d03da659353adf4e941a9bc/docbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
17899,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7652,
5333,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
17899,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7652,
5333,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.db.set_title(self.id, title, notify=False) | def accept(self): try: if self.formats_changed: self.sync_formats() title = unicode(self.title.text()) except IOError, err: if err.errno == 13: # Permission denied fname = err.filename if err.filename else 'file' return error_dialog(self, _('Permission denied'), _('Could not open %s. Is it being used by another' ' prog... | 958bdb549e4535b849e11baa6908b19f6239f636 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/958bdb549e4535b849e11baa6908b19f6239f636/metadata_single.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
775,
30,
309,
365,
18,
11962,
67,
6703,
30,
365,
18,
8389,
67,
11962,
1435,
2077,
273,
5252,
12,
2890,
18,
2649,
18,
955,
10756,
1335,
8340,
16,
393,
30,
309,
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,
2791,
12,
2890,
4672,
775,
30,
309,
365,
18,
11962,
67,
6703,
30,
365,
18,
8389,
67,
11962,
1435,
2077,
273,
5252,
12,
2890,
18,
2649,
18,
955,
10756,
1335,
8340,
16,
393,
30,
309,
3... | |
self.task_tv = ActiveTaskTreeView() | self.task_tv = ActiveTaskTreeView() | def _init_ui_widget(self): # The Active tasks treeview self.task_tv = ActiveTaskTreeView()#sort_func=self.sort_tasklist_rows) self.main_pane.add(self.task_tv) | 00dde3da1d1e1513aa3e60b10cffce30a5695d48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/00dde3da1d1e1513aa3e60b10cffce30a5695d48/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
4881,
67,
6587,
12,
2890,
4672,
468,
1021,
8857,
4592,
2151,
1945,
365,
18,
4146,
67,
24161,
273,
8857,
2174,
2471,
1767,
1435,
7,
3804,
67,
644,
33,
2890,
18,
3804,
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,
389,
2738,
67,
4881,
67,
6587,
12,
2890,
4672,
468,
1021,
8857,
4592,
2151,
1945,
365,
18,
4146,
67,
24161,
273,
8857,
2174,
2471,
1767,
1435,
7,
3804,
67,
644,
33,
2890,
18,
3804,
67,... |
"Return a list of files" | """Return a list of files in the specified directory to the client. Defaults to the current working directory. """ | def ftp_LIST(self, line): "Return a list of files" if line: # some FTP clients (like Konqueror or Nautilus) erroneously use # /bin/ls-like LIST formats (e.g. "LIST -l", "LIST -al" and so on...). # If this happens we LIST the current working directory. if line.lower() in ("-a", "-l", "-al", "-la"): path = self.fs.transl... | 367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
7085,
12,
2890,
16,
980,
4672,
3536,
990,
279,
666,
434,
1390,
316,
326,
1269,
1867,
358,
326,
1004,
18,
14159,
358,
326,
783,
5960,
1867,
18,
3536,
309,
980,
30,
468,
2690,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
7085,
12,
2890,
16,
980,
4672,
3536,
990,
279,
666,
434,
1390,
316,
326,
1269,
1867,
358,
326,
1004,
18,
14159,
358,
326,
783,
5960,
1867,
18,
3536,
309,
980,
30,
468,
2690,... |
component.draw(self, view_bounds=(0, 0, self.width(), self.height())) | try: component.draw(self, view_bounds=(0, 0, self.width(), self.height())) finally: self.restore_state() | def render_component(self, component, container_coords=False): """ Renders the given component. Parameters ---------- component : Component The component to be rendered. container_coords : Boolean Whether to use coordinates of the component's container Description ----------- If *container_coords* is False, then the ... | 4f84cb75f0e5cf43f983544b727bec05fbb4db4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/4f84cb75f0e5cf43f983544b727bec05fbb4db4b/plot_graphics_context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4652,
12,
2890,
16,
1794,
16,
1478,
67,
9076,
33,
8381,
4672,
3536,
534,
10130,
326,
864,
1794,
18,
225,
7012,
12181,
1794,
294,
5435,
1021,
1794,
358,
506,
7935,
18,
1478,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4652,
12,
2890,
16,
1794,
16,
1478,
67,
9076,
33,
8381,
4672,
3536,
534,
10130,
326,
864,
1794,
18,
225,
7012,
12181,
1794,
294,
5435,
1021,
1794,
358,
506,
7935,
18,
1478,
6... |
wj = Matrix(R, r*c*e, 1, _vars("w",i+1,r*c,e)) | wj = Matrix(R, r*c*e, 1, _vars("w", i+1, r*c, e)) | def round_polynomials(self, i, plaintext = None, ciphertext = None): r""" Return list of polynomials for a given round $i$. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3643,
67,
3915,
13602,
87,
12,
2890,
16,
277,
16,
11917,
273,
599,
16,
12657,
273,
599,
4672,
436,
8395,
2000,
666,
434,
16991,
87,
364,
279,
864,
3643,
271,
77,
8,
18,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3643,
67,
3915,
13602,
87,
12,
2890,
16,
277,
16,
11917,
273,
599,
16,
12657,
273,
599,
4672,
436,
8395,
2000,
666,
434,
16991,
87,
364,
279,
864,
3643,
271,
77,
8,
18,
2,
-100,
-100... |
lib.Module.Module.reset(self) | Module.reset(self) | def reset(self): """ Created: 04.11.2004, KP Description: Resets the module to initial state. This method is used mainly when doing previews, when the parameters that control the colocalization are changed and the preview data becomes invalid. """ lib.Module.Module.reset(self) self.colocFilter = vtkbxd.vtkImageColocali... | 4f2a0ca14dd2b3eff47dc45fffa2201441e7c68e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/4f2a0ca14dd2b3eff47dc45fffa2201441e7c68e/Colocalization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
3536,
12953,
30,
16486,
18,
2499,
18,
6976,
24,
16,
1475,
52,
6507,
30,
1124,
2413,
326,
1605,
358,
2172,
919,
18,
1220,
707,
353,
1399,
31457,
1347,
9957,
675,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
3536,
12953,
30,
16486,
18,
2499,
18,
6976,
24,
16,
1475,
52,
6507,
30,
1124,
2413,
326,
1605,
358,
2172,
919,
18,
1220,
707,
353,
1399,
31457,
1347,
9957,
675,
7... |
print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t' + build._safeQuotedString(doc[1]) | stream = generator.file print >> stream, 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print >> stream, '\t' + build._safeQuotedString(doc[1]) | def WriteClassHeader(self, generator): generator.checkWriteDispatchBaseClass() doc = self.doc print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t' + build._safeQuotedString(doc[1]) try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (pro... | cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
797,
1864,
12,
2890,
16,
4456,
4672,
4456,
18,
1893,
3067,
5325,
2171,
797,
1435,
997,
273,
365,
18,
2434,
1407,
273,
4456,
18,
768,
1172,
1671,
1407,
16,
296,
1106,
296,
397,
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,
2598,
797,
1864,
12,
2890,
16,
4456,
4672,
4456,
18,
1893,
3067,
5325,
2171,
797,
1435,
997,
273,
365,
18,
2434,
1407,
273,
4456,
18,
768,
1172,
1671,
1407,
16,
296,
1106,
296,
397,
36... |
return '.'.join(self.__schemaGroupPrefix + [ module_base ]) | return '.'.join(self.__schemaGroupPrefixElts + [ module_base ]) | def schemaGroupModulePath (self, schema_group_module): module_base = utility.MakeUnique('_'.join([ _s.schemaLocationTag() for _s in schema_group_module.schemaGroup() ]), self.__uniqueInSchemaGroup) return '.'.join(self.__schemaGroupPrefix + [ module_base ]) | 5eacb77c8998fd31b68477e0ec37388e9983b97b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/5eacb77c8998fd31b68477e0ec37388e9983b97b/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1963,
1114,
3120,
743,
261,
2890,
16,
1963,
67,
1655,
67,
2978,
4672,
1605,
67,
1969,
273,
12788,
18,
6464,
6303,
2668,
4623,
18,
5701,
3816,
389,
87,
18,
4821,
2735,
1805,
1435,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1963,
1114,
3120,
743,
261,
2890,
16,
1963,
67,
1655,
67,
2978,
4672,
1605,
67,
1969,
273,
12788,
18,
6464,
6303,
2668,
4623,
18,
5701,
3816,
389,
87,
18,
4821,
2735,
1805,
1435,
364,
... |
log.error('calling inactivate callback for %s', self) import traceback traceback.print_stack() | log.debug('calling callback on inactive timer (%s)' % repr(self)) | def __call__(self, *args, **kwargs): if not self.active(): # This should not happen, but it does. Somewhere deep inside the # notifier code is a bug log.error('calling inactivate callback for %s', self) import traceback traceback.print_stack() return False | 9347702c90b2b59f94dec592de2e028b533add99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/9347702c90b2b59f94dec592de2e028b533add99/timer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
365,
18,
3535,
13332,
468,
1220,
1410,
486,
5865,
16,
1496,
518,
1552,
18,
348,
362,
359,
14852,
4608,
4832,
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,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
365,
18,
3535,
13332,
468,
1220,
1410,
486,
5865,
16,
1496,
518,
1552,
18,
348,
362,
359,
14852,
4608,
4832,
3... |
masterOccurrences = event.getMaster().occurrences or [] | master = event.getMaster() master.getFirstOccurrence() masterOccurrences = master.occurrences or [] | def mergeFunction(code, item, attribute, value): # 'value' is the one from the *this* view # getattr(item, attribute) is the value from a different view | 11f314f16eeedd75476fb9e98c458e3f76332248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/11f314f16eeedd75476fb9e98c458e3f76332248/Sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
2083,
12,
710,
16,
761,
16,
1566,
16,
460,
4672,
468,
296,
1132,
11,
353,
326,
1245,
628,
326,
380,
2211,
14,
1476,
468,
3869,
12,
1726,
16,
1566,
13,
353,
326,
460,
628,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
2083,
12,
710,
16,
761,
16,
1566,
16,
460,
4672,
468,
296,
1132,
11,
353,
326,
1245,
628,
326,
380,
2211,
14,
1476,
468,
3869,
12,
1726,
16,
1566,
13,
353,
326,
460,
628,
279,
... |
if where == 'help': | if where == 'epydoc-help': | def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'cl... | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
... |
Index = self._DynamicPcdList.index(PcdFromModule) self._DynamicPcdList[Index] = PcdFromModule elif PcdFromModule not in self._NonDynamicPcdList: self._NonDynamicPcdList.append(PcdFromModule) | Index = self._DynaPcdList_.index(PcdFromModule) self._DynaPcdList_[Index] = PcdFromModule elif PcdFromModule not in self._NonDynaPcdList_: self._NonDynaPcdList_.append(PcdFromModule) | def _GetPcdList(self): self._NonDynamicPcdList = [] self._DynamicPcdList = [] | 6f6bc1f6b84bc8f55d69f33d380a27a68e9e9ffe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/6f6bc1f6b84bc8f55d69f33d380a27a68e9e9ffe/AutoGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
52,
4315,
682,
12,
2890,
4672,
365,
6315,
3989,
9791,
52,
4315,
682,
273,
5378,
365,
6315,
9791,
52,
4315,
682,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
52,
4315,
682,
12,
2890,
4672,
365,
6315,
3989,
9791,
52,
4315,
682,
273,
5378,
365,
6315,
9791,
52,
4315,
682,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return message(req, "Reporter %d deleted" % (grp.pk), | transaction.commit() return message(req, "Reporter %d deleted" % (pk), | def post(req): # if DELETE was clicked... delete # the object, then and redirect if req.POST.get("delete", ""): rep.delete() return message(req, "Reporter %d deleted" % (grp.pk), link="/reporters") else: # check the form for errors (just # missing fields, for the time being) errors = check_reporter_form(req) # if a... | 272ff5db6641e5e163ac6ed2b59baf9aaeee0b7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/272ff5db6641e5e163ac6ed2b59baf9aaeee0b7c/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
3658,
4672,
225,
468,
309,
8568,
1703,
17688,
2777,
1430,
468,
326,
733,
16,
1508,
471,
3136,
309,
1111,
18,
3798,
18,
588,
2932,
3733,
3113,
1408,
4672,
2071,
18,
3733,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
3658,
4672,
225,
468,
309,
8568,
1703,
17688,
2777,
1430,
468,
326,
733,
16,
1508,
471,
3136,
309,
1111,
18,
3798,
18,
588,
2932,
3733,
3113,
1408,
4672,
2071,
18,
3733,
1435,
... |
committer = "%s %s %s" % (changes[1], date, date_ar[1]) | committer = changes[1] | def catcommit(repo, n, prefix, changes=None): nlprefix = '\n' + prefix; (p1, p2) = repo.changelog.parents(n) (h, h1, h2) = map(hg.hex, (n, p1, p2)) (i1, i2) = map(repo.changelog.rev, (p1, p2)) if not changes: changes = repo.changelog.read(n) print "tree %s" % (hg.hex(changes[0])) if i1 != -1: print "parent %s" % (h1) i... | d993c412df8b5ed9788cc1335b2f2ad8f1e0a0ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d993c412df8b5ed9788cc1335b2f2ad8f1e0a0ca/hgk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
7371,
12,
7422,
16,
290,
16,
1633,
16,
3478,
33,
7036,
4672,
7741,
3239,
273,
2337,
82,
11,
397,
1633,
31,
261,
84,
21,
16,
293,
22,
13,
273,
3538,
18,
24083,
12970,
18,
12606,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
7371,
12,
7422,
16,
290,
16,
1633,
16,
3478,
33,
7036,
4672,
7741,
3239,
273,
2337,
82,
11,
397,
1633,
31,
261,
84,
21,
16,
293,
22,
13,
273,
3538,
18,
24083,
12970,
18,
12606,... |
self._evsys.createReceiver(brokerhost, topic) | self._evsys.createReceiver(brokerhost, self._topic) | def __init__(self, parent, pollingIntv=0.2, listenTimeout=10): self._parent = parent self._pollintv = pollingIntv self._timeout = listenTimeout brokerhost = parent.policy.get("eventBrokerHost") self._topic = parent.policy.get("shutdownTopic") self._evsys = events.EventSystem.getDefaultEventSystem() self._evsys.createRe... | 65a5ee5db100f00f3fbc036c0dc3d5333cd137bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/65a5ee5db100f00f3fbc036c0dc3d5333cd137bb/ProductionRunManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
13708,
1702,
90,
33,
20,
18,
22,
16,
6514,
2694,
33,
2163,
4672,
365,
6315,
2938,
273,
982,
365,
6315,
3915,
5671,
90,
273,
13708,
1702,
90,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
13708,
1702,
90,
33,
20,
18,
22,
16,
6514,
2694,
33,
2163,
4672,
365,
6315,
2938,
273,
982,
365,
6315,
3915,
5671,
90,
273,
13708,
1702,
90,
3... |
return sym | if sym == 'Off': return False elif sym == 'Maximum': return True else: raise Exception, 'Type of symmetry not recognized' | def get_symmetry(self): '''return the type of symmetry used''' nc = netCDF(self.nc,'r') if 'UseSymmetry' in nc.variables: sym = string.join(nc.variables['UseSymmetry'][:],'').strip() else: sym = None nc.close() return sym | 28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8117,
18042,
12,
2890,
4672,
9163,
2463,
326,
618,
434,
26144,
1399,
26418,
8194,
273,
2901,
39,
4577,
12,
2890,
18,
14202,
11189,
86,
6134,
309,
296,
3727,
11901,
18042,
11,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8117,
18042,
12,
2890,
4672,
9163,
2463,
326,
618,
434,
26144,
1399,
26418,
8194,
273,
2901,
39,
4577,
12,
2890,
18,
14202,
11189,
86,
6134,
309,
296,
3727,
11901,
18042,
11,
31... |
prepareExamples() | prepareExamples(self.examplesPath, docProjects) | def run(self): core = wnsbase.playground.Core.getCore() print "Identifying projects for documentation ..." # find all documentation projects: docProjects = [] masterDocumentationProject = None for project in core.getProjects().all: if isinstance(project, (wnsbase.playground.Project.Library, wnsbase.playground.Project.B... | 8ab6ae673014c9781abdb74a1de9511fdde2ef90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8259/8ab6ae673014c9781abdb74a1de9511fdde2ef90/CPPDocumentation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2922,
273,
341,
2387,
1969,
18,
1601,
2915,
18,
4670,
18,
588,
4670,
1435,
1172,
315,
25787,
310,
10137,
364,
7323,
18483,
468,
1104,
777,
7323,
10137,
30,
997,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2922,
273,
341,
2387,
1969,
18,
1601,
2915,
18,
4670,
18,
588,
4670,
1435,
1172,
315,
25787,
310,
10137,
364,
7323,
18483,
468,
1104,
777,
7323,
10137,
30,
997,
152... |
if comment != None: | if comment is not None: | def new_param(name, type, value, comment = None): """ Construct a LIGO Light Weight XML Param document subtree. """ elem = Param({"Name": "%s:param" % name, "Type": type}) elem.pcdata = value if comment != None: elem.appendChild(ligolw.Comment()) elem.childNodes[-1].pcdata = comment return elem | ceb0e82121957f9b5dbb10315d3df2f96fe6125b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/ceb0e82121957f9b5dbb10315d3df2f96fe6125b/param.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
891,
12,
529,
16,
618,
16,
460,
16,
2879,
273,
599,
4672,
3536,
14291,
279,
511,
3047,
51,
15992,
15437,
3167,
3014,
1668,
12773,
18,
3536,
3659,
273,
3014,
12590,
6,
461,
687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
891,
12,
529,
16,
618,
16,
460,
16,
2879,
273,
599,
4672,
3536,
14291,
279,
511,
3047,
51,
15992,
15437,
3167,
3014,
1668,
12773,
18,
3536,
3659,
273,
3014,
12590,
6,
461,
687... |
self.hash = sha.new(str(self.id) + settings.SECRET_KEY).hexdigest() | self.hash = sha1(str(self.id) + settings.SECRET_KEY).hexdigest() | def save(self, *args, **kwargs): super(Attachment, self).save(*args, **kwargs) if not self.hash: self.hash = sha.new(str(self.id) + settings.SECRET_KEY).hexdigest() super(Attachment, self).save(*args, **kwargs) | 2fcad80040e98e5642b0105e5ff91967a31a22ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12938/2fcad80040e98e5642b0105e5ff91967a31a22ba/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
6803,
16,
365,
2934,
5688,
30857,
1968,
16,
2826,
4333,
13,
309,
486,
365,
18,
2816,
30,
365,
18,
2816,
273,
6056,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
6803,
16,
365,
2934,
5688,
30857,
1968,
16,
2826,
4333,
13,
309,
486,
365,
18,
2816,
30,
365,
18,
2816,
273,
6056,
21,
... |
q = F.order() n = len(G.columns()) | def extended_code(self): r""" If self is a linear code of length n defined over F then this returns the code of length n+1 where the last digit $c_n$ satisfies the check condition $c_0+...+c_n=0$. If self is an $[n,k,d]$ binary code then the extended code $C^{\vee}$ is an $[n+1,k,d^{\vee}]$ code, where $d^=d$ (if d is ... | 0ba98abb880903a64744b106daee6f5e9f0c2143 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0ba98abb880903a64744b106daee6f5e9f0c2143/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7021,
67,
710,
12,
2890,
4672,
436,
8395,
971,
365,
353,
279,
9103,
981,
434,
769,
290,
2553,
1879,
478,
1508,
333,
1135,
326,
981,
434,
769,
290,
15,
21,
1625,
326,
1142,
8035,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7021,
67,
710,
12,
2890,
4672,
436,
8395,
971,
365,
353,
279,
9103,
981,
434,
769,
290,
2553,
1879,
478,
1508,
333,
1135,
326,
981,
434,
769,
290,
15,
21,
1625,
326,
1142,
8035,
271,
... | |
return self._qexp | if prec is None: return self._qexp elif prec > self.prec(): raise ValueError else: return self._qexp.add_bigoh(prec) | def qexp(self): r""" Return the q-expansion of self, to as high precision as it is known. | ed0a3ce8f392224845d699a88cf40b90f375c64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ed0a3ce8f392224845d699a88cf40b90f375c64a/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
2749,
12,
2890,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
2749,
12,
2890,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
365,
16,
358,
487,
3551,
6039,
487,
518,
353,
4846,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ans is not None and result_sign == 1: ans = _dec_from_triple(1, ans._int, ans._exp) exact = True | if ans is not None: if result_sign == 1: ans = _dec_from_triple(1, ans._int, ans._exp) exact = True | def __pow__(self, other, modulo=None, context=None): """Return self ** other [ % modulo]. | e64fd149cf2d5a6f11c492b83c0f9b78b52a03d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e64fd149cf2d5a6f11c492b83c0f9b78b52a03d8/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
1308,
16,
26109,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
1308,
306,
738,
26109,
8009,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
1308,
16,
26109,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
1308,
306,
738,
26109,
8009,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class CWarningsDisplayTests(WarningsDisplayTests): | class CWarningsDisplayTests(BaseTest, WarningsDisplayTests): | def test_showwarning(self): file_name = os.path.splitext(warning_tests.__file__)[0] + '.py' line_num = 3 expected_file_line = linecache.getline(file_name, line_num).strip() message = 'msg' category = Warning file_object = StringIO.StringIO() expect = self.module.formatwarning(message, category, file_name, line_num) sel... | 5561b5a428065a2753637468b90a1bbcdc8ab686 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5561b5a428065a2753637468b90a1bbcdc8ab686/test_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4500,
8551,
12,
2890,
4672,
585,
67,
529,
273,
1140,
18,
803,
18,
4939,
408,
12,
8551,
67,
16341,
16186,
768,
972,
25146,
20,
65,
397,
2418,
2074,
11,
980,
67,
2107,
273,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4500,
8551,
12,
2890,
4672,
585,
67,
529,
273,
1140,
18,
803,
18,
4939,
408,
12,
8551,
67,
16341,
16186,
768,
972,
25146,
20,
65,
397,
2418,
2074,
11,
980,
67,
2107,
273,
8... |
saved_user_config = config.sidebar user_config = copy.copy(saved_user_config) for name in sidebar_snapins.keys(): found = False for n, u in user_config: if n == name: found = True if not found: user_config.append((name, "off")) return [ entry for entry in user_config if config.may("sidesnap." + entry[0])] | user_config = config.sidebar return [ entry for entry in user_config if entry[1] != "off" and config.may("sidesnap." + entry[0])] | def load_user_config(): path = config.user_confdir + "/sidebar.mk" try: saved_user_config = eval(file(path).read()) except: saved_user_config = config.sidebar # Now make sure that all snapins are listed in the config # even if turned off. user_config = copy.copy(saved_user_config) for name in sidebar_snapins.keys(): f... | b185948e5da39c0e150c572bd72289e8878338c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/b185948e5da39c0e150c572bd72289e8878338c9/sidebar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
1355,
67,
1425,
13332,
589,
273,
642,
18,
1355,
67,
3923,
1214,
397,
2206,
26417,
18,
24816,
6,
775,
30,
5198,
67,
1355,
67,
1425,
273,
5302,
12,
768,
12,
803,
2934,
896,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
1355,
67,
1425,
13332,
589,
273,
642,
18,
1355,
67,
3923,
1214,
397,
2206,
26417,
18,
24816,
6,
775,
30,
5198,
67,
1355,
67,
1425,
273,
5302,
12,
768,
12,
803,
2934,
896,
1... |
self._loaded = True | self._stored = True | def load_from_id(self, check_pass=0): """ Load user account data from disk. | 00400dbee718b208a5440b54ceed8dd66c9bce59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/00400dbee718b208a5440b54ceed8dd66c9bce59/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2080,
67,
350,
12,
2890,
16,
866,
67,
5466,
33,
20,
4672,
3536,
4444,
729,
2236,
501,
628,
4234,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
67,
2080,
67,
350,
12,
2890,
16,
866,
67,
5466,
33,
20,
4672,
3536,
4444,
729,
2236,
501,
628,
4234,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.diff+=[newdiff] | def __init__(self,credsMax): self.credsToMax=credsMax un=VS.getPlayerX(0) self.i=0 while (un): newdiff=0 if (Director.getSaveDataLength(self.i,_key)): newdiff=Director.getSaveData(self.i,_key,0) self.diff+=[newdiff] else: newdiff=VS.GetDifficulty() self.diff+=[newdiff] Director.pushSaveData(self.i,_key,newdiff) SetDiff... | 474c553c0a5917564266c3a49d8cae7a28f5c3db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/474c553c0a5917564266c3a49d8cae7a28f5c3db/difficulty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
29260,
2747,
4672,
365,
18,
20610,
11634,
2747,
33,
29260,
2747,
640,
33,
14640,
18,
588,
12148,
60,
12,
20,
13,
365,
18,
77,
33,
20,
1323,
261,
318,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
29260,
2747,
4672,
365,
18,
20610,
11634,
2747,
33,
29260,
2747,
640,
33,
14640,
18,
588,
12148,
60,
12,
20,
13,
365,
18,
77,
33,
20,
1323,
261,
318,
4... | |
raise PLCPermissionDenied, "Could not write into %s"%node_floppy node_image = "%s/%s"%(tempdir,nodename) | raise PLCPermissionDenied, "Could not write into %s"%floppy_file self.trash.append(floppy_file) node_image = "%s/%s"%(self.WORKDIR,nodename) serial_arg="" for option in options: console=option.replace("console:","") if option != console: serial_arg="-s %s"%console | def hexa2 (c): return chr((c>>4)+65) + chr ((c&16)+65) | c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
69,
22,
261,
71,
4672,
327,
4513,
12443,
71,
9778,
24,
27921,
9222,
13,
397,
4513,
14015,
71,
10,
2313,
27921,
9222,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
69,
22,
261,
71,
4672,
327,
4513,
12443,
71,
9778,
24,
27921,
9222,
13,
397,
4513,
14015,
71,
10,
2313,
27921,
9222,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self._arg_arg_op_with_imm(gv_ptr, gv_itemoffset, opcode, opcodei) | return self._arg_arg_op_with_simm(gv_ptr, gv_itemoffset, opcode, opcodei) | def genop_getarrayitem(self, arraytoken, gv_ptr, gv_index): _, _, itemsize = arraytoken opcode = {1:_PPC.lbzx, 2:_PPC.lhzx, 4:_PPC.lwzx}[itemsize] opcodei = {1:_PPC.lbz, 2:_PPC.lhz, 4:_PPC.lwz}[itemsize] gv_itemoffset = self.itemoffset(arraytoken, gv_index) return self._arg_arg_op_with_imm(gv_ptr, gv_itemoffset, opcode... | 1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
556,
67,
588,
1126,
1726,
12,
2890,
16,
526,
2316,
16,
11404,
67,
6723,
16,
11404,
67,
1615,
4672,
389,
16,
389,
16,
761,
1467,
273,
526,
2316,
11396,
273,
288,
21,
30,
67,
52,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
556,
67,
588,
1126,
1726,
12,
2890,
16,
526,
2316,
16,
11404,
67,
6723,
16,
11404,
67,
1615,
4672,
389,
16,
389,
16,
761,
1467,
273,
526,
2316,
11396,
273,
288,
21,
30,
67,
52,... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 65) else quickfix.StringField.__init__(self, 65, 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,
15892,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
15892,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972... |
basedir = abspath listing = os.listdir(abspath) | basedir = path listing = self.listdir(path) | def get_list_dir(self, abspath): """Return a directory listing in a form suitable for LIST command.""" # if path is a file we return information about it if os.path.isfile(abspath): basedir, filename = os.path.split(abspath) listing = [filename] else: basedir = abspath listing = os.listdir(abspath) listing.sort() retur... | 60284966d1f07a9fb0cd04d09b6433131f29a6e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/60284966d1f07a9fb0cd04d09b6433131f29a6e4/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1098,
67,
1214,
12,
2890,
16,
9488,
4672,
3536,
990,
279,
1867,
11591,
316,
279,
646,
10631,
364,
15130,
1296,
12123,
468,
309,
589,
353,
279,
585,
732,
327,
1779,
2973,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
67,
1214,
12,
2890,
16,
9488,
4672,
3536,
990,
279,
1867,
11591,
316,
279,
646,
10631,
364,
15130,
1296,
12123,
468,
309,
589,
353,
279,
585,
732,
327,
1779,
2973,
518,
... |
elif type(in_file) == type(''): | elif isinstance(in_file, StringType): | def decode(in_file, out_file=None, mode=None): """Decode uuencoded file""" # # Open the input file, if needed. # if in_file == '-': in_file = sys.stdin elif type(in_file) == type(''): in_file = open(in_file) # # Read until a begin is encountered or we've exhausted the file # while 1: hdr = in_file.readline() if not hdr... | 7dd503dda36ba97cf1f0dc07da0505ba843532d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7dd503dda36ba97cf1f0dc07da0505ba843532d7/uu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
267,
67,
768,
16,
596,
67,
768,
33,
7036,
16,
1965,
33,
7036,
4672,
3536,
6615,
582,
89,
10787,
585,
8395,
468,
468,
3502,
326,
810,
585,
16,
309,
3577,
18,
468,
309,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
267,
67,
768,
16,
596,
67,
768,
33,
7036,
16,
1965,
33,
7036,
4672,
3536,
6615,
582,
89,
10787,
585,
8395,
468,
468,
3502,
326,
810,
585,
16,
309,
3577,
18,
468,
309,
316,
... |
assy.csys.quat = self.win.glpane.quat | assy.csys.quat = Q(self.win.glpane.quat) | def processCsysMenu(self, id): if id == 0: #Rename self.selectedTreeItem.startRename(0) else: # Set current view as default view assy = self.win.assy assy.csys.quat = self.win.glpane.quat | fc70c256da94e2e1396c1a5a2e00d018e89ea4b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fc70c256da94e2e1396c1a5a2e00d018e89ea4b5/modelTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
39,
9499,
4599,
12,
2890,
16,
612,
4672,
309,
612,
422,
374,
30,
468,
16019,
365,
18,
8109,
2471,
1180,
18,
1937,
16019,
12,
20,
13,
469,
30,
468,
1000,
783,
1476,
487,
805,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
39,
9499,
4599,
12,
2890,
16,
612,
4672,
309,
612,
422,
374,
30,
468,
16019,
365,
18,
8109,
2471,
1180,
18,
1937,
16019,
12,
20,
13,
469,
30,
468,
1000,
783,
1476,
487,
805,
14... |
Returns the number of arguements this object can take. | Returns the number of arguments this object can take. | def number_of_arguments(self): """ Returns the number of arguements this object can take. | 5660983e2d1fdbdccff05ba8c1fa7849d92dd96d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5660983e2d1fdbdccff05ba8c1fa7849d92dd96d/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
792,
67,
7099,
12,
2890,
4672,
3536,
2860,
326,
1300,
434,
1501,
344,
1346,
333,
733,
848,
4862,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
792,
67,
7099,
12,
2890,
4672,
3536,
2860,
326,
1300,
434,
1501,
344,
1346,
333,
733,
848,
4862,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert_equal(y.format, 'l') x = np.array([1,2,3], dtype='<l') | assert_equal(y.format, 'i') x = np.array([1,2,3], dtype='<i') | def test_export_endian(self): x = np.array([1,2,3], dtype='>l') y = memoryview(x) if sys.byteorder == 'little': assert_equal(y.format, '>l') else: assert_equal(y.format, 'l') | 8e50ad6e4f3cd6dd80372475771fcf28bf700127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8e50ad6e4f3cd6dd80372475771fcf28bf700127/test_multiarray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6530,
67,
22910,
12,
2890,
4672,
619,
273,
1130,
18,
1126,
3816,
21,
16,
22,
16,
23,
6487,
3182,
2218,
34,
80,
6134,
677,
273,
3778,
1945,
12,
92,
13,
309,
2589,
18,
7229,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6530,
67,
22910,
12,
2890,
4672,
619,
273,
1130,
18,
1126,
3816,
21,
16,
22,
16,
23,
6487,
3182,
2218,
34,
80,
6134,
677,
273,
3778,
1945,
12,
92,
13,
309,
2589,
18,
7229,
... |
return line | print line | def format_line(line, error_output, conflicts=conflicts): if line[-1] == '\n': line = line[:-1] if line.startswith('C '): conflicts.append(line) print '%s%s%s' % (t_colour[12], line, t_reset) elif line.startswith('M '): print '%s%s%s' % (t_colour[10], line, t_reset) elif line.startswith('? '): print '%s%s%s' % (t_colou... | 6ce2631eeb38d2d0ca823aa7c11beae6bb45413f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/6ce2631eeb38d2d0ca823aa7c11beae6bb45413f/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1369,
12,
1369,
16,
555,
67,
2844,
16,
14450,
33,
20340,
87,
4672,
309,
980,
18919,
21,
65,
422,
2337,
82,
4278,
980,
273,
980,
10531,
17,
21,
65,
309,
980,
18,
17514,
1918,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1369,
12,
1369,
16,
555,
67,
2844,
16,
14450,
33,
20340,
87,
4672,
309,
980,
18919,
21,
65,
422,
2337,
82,
4278,
980,
273,
980,
10531,
17,
21,
65,
309,
980,
18,
17514,
1918,... |
self.name = re.findall('^(\w*)', self.str)[0] if (self.name == ''): self.name = 'div' self.name = self.name.lower() | name = re.findall('^([\w:]*)', self.str)[0] name = name.lower() if ':' in name: try: spaces_count = int(self.parser.options.get('indent-spaces')) except: spaces_count = 4 indent = ' ' * spaces_count shortcuts = { 'cc:ie': { 'opening_tag': '<!--[if IE]>', 'closing_tag': '<![endif]-->'}, 'cc:ie6': { 'opening_tag': '<... | def _init_element(self): """Initializes. Only called if the token is an element token. [Private] """ # Get the tag name. Default to DIV if none given. self.name = re.findall('^(\w*)', self.str)[0] if (self.name == ''): self.name = 'div' self.name = self.name.lower() | 31746b2c12abc94e701d932b47560a36d5494b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/31746b2c12abc94e701d932b47560a36d5494b1d/sparkup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
2956,
12,
2890,
4672,
3536,
9685,
18,
5098,
2566,
309,
326,
1147,
353,
392,
930,
1147,
18,
306,
6014,
65,
3536,
468,
968,
326,
1047,
508,
18,
2989,
358,
27355,
309,
6555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
2956,
12,
2890,
4672,
3536,
9685,
18,
5098,
2566,
309,
326,
1147,
353,
392,
930,
1147,
18,
306,
6014,
65,
3536,
468,
968,
326,
1047,
508,
18,
2989,
358,
27355,
309,
6555... |
宁 níng /peaceful/rather/Ningxia (abbr.)/Nanjing (abbr.)/surname Ning/ | 宁(寧) níng /peaceful/rather/Ningxia (abbr.)/Nanjing (abbr.)/surname Ning/ @todo Fix: letter case | >>> def search(string, reading=None): | 7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
1623,
12,
1080,
16,
6453,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4080,
1652,
1623,
12,
1080,
16,
6453,
33,
7036,
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,... |
focusIncr = int(round(focusRange / (numPos - 1))) | focusIncr = focusRange / float(numPos - 1) | def updFocusIncr(self, *args): """Update focus increment widget. """ focusRange = self.focusRangeWdg.getNumOrNone() numPos = self.numFocusPosWdg.getNumOrNone() if None in (focusRange, numPos): self.focusIncrWdg.set(None, isCurrent = False) return | 5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6354/5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab/BaseFocusScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
9233,
382,
3353,
12,
2890,
16,
380,
1968,
4672,
3536,
1891,
7155,
5504,
3604,
18,
3536,
7155,
2655,
273,
365,
18,
13923,
2655,
59,
72,
75,
18,
588,
2578,
1162,
7036,
1435,
818,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
9233,
382,
3353,
12,
2890,
16,
380,
1968,
4672,
3536,
1891,
7155,
5504,
3604,
18,
3536,
7155,
2655,
273,
365,
18,
13923,
2655,
59,
72,
75,
18,
588,
2578,
1162,
7036,
1435,
818,
1... |
print '+ found LilyPond, but version %s is too old.' % version_number | logger.info('+ found LilyPond, but version %s is too old.' % version_number) | def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily ... | b8ce87578f9d75ccccfc9a3eb0e0156576b6d158 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/b8ce87578f9d75ccccfc9a3eb0e0156576b6d158/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
5072,
5400,
13332,
9163,
2073,
777,
19414,
17938,
15747,
3222,
13,
9163,
866,
626,
75,
2668,
5787,
8169,
26264,
5402,
2187,
10228,
7699,
26264,
5366,
77,
17337,
4519,
67,
4099,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
5072,
5400,
13332,
9163,
2073,
777,
19414,
17938,
15747,
3222,
13,
9163,
866,
626,
75,
2668,
5787,
8169,
26264,
5402,
2187,
10228,
7699,
26264,
5366,
77,
17337,
4519,
67,
4099,
273,
3... |
os.system(convert_cmd2 % (pict.props.name, tmp_pict)) | os.system(convert_cmd2 % (os.path.join(self.album.dir, pict.props.name), tmp_pict)) | def __check_picts(self, chapter): print " converting picts.." convert_cmd1 = "convert -resize 704x576! '%s' '%s'" convert_cmd2 = "convert -resize 704x576 '%s' '%s'" convert_cmd3 = "convert -border %dx0 -bordercolor black '%s' '%s'" | 197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
84,
933,
87,
12,
2890,
16,
23580,
4672,
1172,
315,
225,
14540,
293,
933,
87,
18460,
1765,
67,
4172,
21,
273,
315,
6283,
300,
15169,
2371,
3028,
92,
25,
6669,
5,
1995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
84,
933,
87,
12,
2890,
16,
23580,
4672,
1172,
315,
225,
14540,
293,
933,
87,
18460,
1765,
67,
4172,
21,
273,
315,
6283,
300,
15169,
2371,
3028,
92,
25,
6669,
5,
1995,
... |
usage = '\n' + __doc__ | def get_app(config_file, name, loadapp=loadapp): """ Return the WSGI application named ``name`` in the PasteDeploy config file ``config_file``""" config_name = 'config:%s' % config_file here_dir = os.getcwd() app = loadapp(config_name, name=name, relative_to=here_dir) return app | 791a23ffbba7d22f2b66a04868f76fd97740d618 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/791a23ffbba7d22f2b66a04868f76fd97740d618/paster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2910,
12,
1425,
67,
768,
16,
508,
16,
1262,
2910,
33,
945,
2910,
4672,
3536,
2000,
326,
7649,
13797,
2521,
4141,
12176,
529,
10335,
316,
326,
453,
14725,
10015,
642,
585,
12176,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2910,
12,
1425,
67,
768,
16,
508,
16,
1262,
2910,
33,
945,
2910,
4672,
3536,
2000,
326,
7649,
13797,
2521,
4141,
12176,
529,
10335,
316,
326,
453,
14725,
10015,
642,
585,
12176,... | |
TargetAdd('pview.exe', opts=['ADVAPI']) | TargetAdd('pview.exe', opts=['ADVAPI', 'WINSOCK2', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 4dccd642577d426e967bc8a0466294803197210b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/4dccd642577d426e967bc8a0466294803197210b/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,
... |
offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1))).hours) | offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1,hour=0))).hours) | def fix_hourly(ts): """ Fix the hourly precipitation values, just hard code the stupid IEMRE value """ nc = netCDF3.Dataset("/mnt/mesonet/data/iemre/%s_hourly.nc" % (ts.year,),'r') p01m = nc.variables['p01m'] offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1))).hours) # Find ISUAG Data rs = isuag.que... | 056bda6bbba3334f6543918267a24bf0ad71c179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/056bda6bbba3334f6543918267a24bf0ad71c179/fix_precip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
12091,
715,
12,
3428,
4672,
225,
3536,
12139,
326,
30662,
675,
3449,
8773,
924,
16,
2537,
7877,
981,
326,
384,
416,
350,
467,
3375,
862,
460,
3536,
8194,
273,
2901,
39,
4577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
12091,
715,
12,
3428,
4672,
225,
3536,
12139,
326,
30662,
675,
3449,
8773,
924,
16,
2537,
7877,
981,
326,
384,
416,
350,
467,
3375,
862,
460,
3536,
8194,
273,
2901,
39,
4577,
... |
def nnlf(self, *args): | def nnlf(self, theta, x): | def nnlf(self, *args): # - sum (log pdf(x, theta)) # where theta are the parameters (including loc and scale) # try: x = args[-1] loc = args[-2] scale = args[-3] args = args[:-3] except IndexError: raise ValueError, "Not enough input arguments." if not self._argcheck(*args) or scale <= 0: return inf x = arr((x-loc) /... | 4fc3c3382d4f39d6cb250f55b2b024d3eef437e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/4fc3c3382d4f39d6cb250f55b2b024d3eef437e9/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7761,
20850,
12,
2890,
16,
7338,
16,
619,
4672,
468,
300,
2142,
261,
1330,
8169,
12,
92,
16,
7338,
3719,
468,
282,
1625,
7338,
854,
326,
1472,
261,
31348,
1515,
471,
3159,
13,
468,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7761,
20850,
12,
2890,
16,
7338,
16,
619,
4672,
468,
300,
2142,
261,
1330,
8169,
12,
92,
16,
7338,
3719,
468,
282,
1625,
7338,
854,
326,
1472,
261,
31348,
1515,
471,
3159,
13,
468,
775... |
if where == 'tree': | if where == 'epydoc-tree': | def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'cl... | 60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
10394,
4653,
603,
326,
864,
618,
434,
1363,
18,
225,
1021,
10394,
4653,
... |
ret = self.WriteByte(search_type) | self.WriteByte(search_type) | def PickSearchBit(i, desc_bit, last_rn): if i == desc_bit: # took 0 path last time, so take 1 path return 1 elif i > desc_bit: # take the 0 path on the next branch return 0 else: return ((last_rn >> i) & 0x1) | bfa31159dc6d7c288d550890d8b7c004a84a48e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3996/bfa31159dc6d7c288d550890d8b7c004a84a48e8/GenericOneWireMaster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23038,
2979,
5775,
12,
77,
16,
3044,
67,
3682,
16,
1142,
67,
27639,
4672,
309,
277,
422,
3044,
67,
3682,
30,
468,
23151,
374,
589,
1142,
813,
16,
1427,
4862,
404,
589,
327,
404,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23038,
2979,
5775,
12,
77,
16,
3044,
67,
3682,
16,
1142,
67,
27639,
4672,
309,
277,
422,
3044,
67,
3682,
30,
468,
23151,
374,
589,
1142,
813,
16,
1427,
4862,
404,
589,
327,
404,
1327,
... |
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err') | self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err') | def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_get_doubles" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('geten... | 05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3283,
16,
302,
651,
273,
1083,
4672,
3536,
3283,
30,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
1196,
67,
529,
273,
315,
17509,
1017,
67,
588,
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,
1001,
2738,
972,
12,
2890,
16,
3283,
16,
302,
651,
273,
1083,
4672,
3536,
3283,
30,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
1196,
67,
529,
273,
315,
17509,
1017,
67,
588,
67,
... |
for arg in sys.argv[:]: if arg.find('--hdf5=') == 0: hdf5 = arg.partition('=')[2] sys.argv.remove(arg) warn(wstr) if arg.find('--api=') == 0: self.api = arg.partition('=')[2] sys.argv.remove(arg) warn(wstr) | try: f = open(localpath('buildconf.pickle'),'r') hdf5_pkl, api_pkl = pickle.load(f) f.close() except Exception: pass else: if hdf5_pkl is not None: hdf5 = hdf5_pkl debug("Loaded HDF5 dir %s from pickle file" % hdf5) if api_pkl is not None: api = api_pkl debug("Loaded API %s from pickle file" % api) | def __init__(self): | 77fa55ec0922286611602427600a840ec2342459 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10380/77fa55ec0922286611602427600a840ec2342459/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
-1... |
return self._site | return aq_self(self._site) | def getSite( self ): | 06ac350743dbb45b6c9370d0b8123a20f2a493f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/06ac350743dbb45b6c9370d0b8123a20f2a493f6/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11021,
12,
365,
262,
30,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11021,
12,
365,
262,
30,
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... |
lib_opts = gen_lib_options (self.library_dirs + library_dirs, self.libraries + libraries, "-L%s", "-l%s") | lib_opts = gen_lib_options (self, self.library_dirs + library_dirs, self.libraries + libraries) | def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): | 80d5359c8b7b767de912d214722287d9a46908ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/80d5359c8b7b767de912d214722287d9a46908ec/unixccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
33,
7036,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
33,
7036,... |
if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=context) from_currency = (xc[0].id == from_currency_id and xc[0]) or xc[1] to_currency = (xc[0].id == to_currency_id and xc[0]) or xc[1... | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_cu... | 342857ee74d4ba849a7544c356a431377efd706c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/342857ee74d4ba849a7544c356a431377efd706c/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... | |
def PIDLoop(a) | def PIDLoop(a): | def PIDLoop(a) return a | 04566e6c60af5bcbde76b7b21ec90b56e4a9f8e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/04566e6c60af5bcbde76b7b21ec90b56e4a9f8e7/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14788,
6452,
12,
69,
4672,
225,
327,
279,
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,
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,
14788,
6452,
12,
69,
4672,
225,
327,
279,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare self and right. | Compare ``self`` and ``right``. | def __cmp__(self, right): """ Compare self and right. The ordering is whatever it is in Gap. EXAMPLES:: sage: G1 = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G2 = PermutationGroup([[(1,2,3),(4,5)]]) sage: G1 > G2 True sage: G1 < G2 False """ if not isinstance(right, PermutationGroup_generic): return -1 return... | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
11051,
12176,
2890,
10335,
471,
12176,
4083,
68,
8338,
225,
1021,
9543,
353,
15098,
518,
353,
316,
611,
438,
18,
225,
5675,
8900,
11386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
11051,
12176,
2890,
10335,
471,
12176,
4083,
68,
8338,
225,
1021,
9543,
353,
15098,
518,
353,
316,
611,
438,
18,
225,
5675,
8900,
11386,
... |
code[skip] = len(code) - skip if op == MAX_REPEAT: | code[skip] = _len(code) - skip if op is MAX_REPEAT: | def fixup(literal, flags=flags): return _sre.getlower(literal, flags) | 3f8fdffe72485d69e9e31bdeb4796c1cca750eba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f8fdffe72485d69e9e31bdeb4796c1cca750eba/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
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,
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,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
class _PEB_2003_64(Structure): _pack_ = 8 _fields_ = [ ("InheritedAddressSpace", BOOLEAN), ("ReadImageFileExecOptions", UCHAR), ("BeingDebugged", BOOLEAN), ("BitField", UCH... | _PEB_2003_64 = _PEB_XP_64 _PEB_2003_R2 = _PEB_2003 _PEB_2003_R2_64 = _PEB_2003_64 | # typedef struct _RTL_CRITICAL_SECTION | 42829baafe49a5c7f142918f583dc856d464ec03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/42829baafe49a5c7f142918f583dc856d464ec03/peb_teb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
1958,
389,
54,
5967,
67,
5093,
21377,
67,
19082,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
1958,
389,
54,
5967,
67,
5093,
21377,
67,
19082,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return '' | pass return '' | def _getMonClasses(option): """ for a given app,backend pair return the monitoring classes or an empty string if it's not defined """ try: return mc[option] except (ConfigError,KeyError): return '' | 8f79188915ff0648fa07f7b1aaae8bfad581ccdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/8f79188915ff0648fa07f7b1aaae8bfad581ccdd/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
11415,
4818,
12,
3482,
4672,
3536,
364,
279,
864,
595,
16,
9993,
3082,
327,
326,
16309,
3318,
578,
392,
1008,
533,
309,
518,
1807,
486,
2553,
3536,
775,
30,
327,
6108,
63,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
11415,
4818,
12,
3482,
4672,
3536,
364,
279,
864,
595,
16,
9993,
3082,
327,
326,
16309,
3318,
578,
392,
1008,
533,
309,
518,
1807,
486,
2553,
3536,
775,
30,
327,
6108,
63,
34... |
'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem']) | 'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem', 'kernel-devel']) | def setConfigOption(self, option, value): if hasattr(self, option): setattr(self, option, value) else: raise Errors.ConfigError, 'No such option %s' % option | b4b2cbf877c4ba3be6a8507a50e9a97a03c59928 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/b4b2cbf877c4ba3be6a8507a50e9a97a03c59928/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15517,
1895,
12,
2890,
16,
1456,
16,
460,
4672,
309,
3859,
12,
2890,
16,
1456,
4672,
9241,
12,
2890,
16,
1456,
16,
460,
13,
469,
30,
1002,
9372,
18,
809,
668,
16,
296,
2279,
4123,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15517,
1895,
12,
2890,
16,
1456,
16,
460,
4672,
309,
3859,
12,
2890,
16,
1456,
4672,
9241,
12,
2890,
16,
1456,
16,
460,
13,
469,
30,
1002,
9372,
18,
809,
668,
16,
296,
2279,
4123,
14... |
self.request_go() | self.request_go(fdetach = True) | def detach(self): self.__verify_attached() | 06dc681403fdcdb1a8e31d49e638995e605cf070 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1662/06dc681403fdcdb1a8e31d49e638995e605cf070/rpdb2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10199,
12,
2890,
4672,
365,
16186,
8705,
67,
24157,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10199,
12,
2890,
4672,
365,
16186,
8705,
67,
24157,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print 'Captured',count*2, 'fields,', 0.1*int(count*20000.0/(t1-t0)), 'f/s', print count*200.0/lastid, '%,', print count*rate*200.0/lastid, '% of wanted rate' | print 'Captured',count*2, 'fields,', print 0.1*int(count*20000.0/(t1-t0)), 'f/s', if lastid: print count*200.0/lastid, '%,', print count*rate*200.0/lastid, '% of wanted rate', print | def record(v, info, filename, audiofilename, mono, grey, monotreshold): import thread format, x, y, qsize, rate = info fps = 59.64 # Fields per second # XXX (Strange: need fps of Indigo monitor, not of PAL or NTSC!) tpf = 1000.0 / fps # Time per field in msec if filename: vout = VFile.VoutFile().init(filename) if mono:... | 9533ebe85737fdd61b9f9936472303c0d51d233b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9533ebe85737fdd61b9f9936472303c0d51d233b/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1123,
16,
1544,
16,
20232,
77,
792,
2550,
16,
6921,
83,
16,
5174,
93,
16,
6921,
352,
3444,
4672,
1930,
2650,
740,
16,
619,
16,
677,
16,
1043,
1467,
16,
4993,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1123,
16,
1544,
16,
20232,
77,
792,
2550,
16,
6921,
83,
16,
5174,
93,
16,
6921,
352,
3444,
4672,
1930,
2650,
740,
16,
619,
16,
677,
16,
1043,
1467,
16,
4993,
273,
... |
if os.name=='nt': extensions.append(Extension('wc.js.jslib', sources=['wc/js/jslib.c'], define_macros = [('WIN32', None), ('XP_WIN', None), ('EXPORT_JS_API', None)], include_dirs = include_dirs + ['libjs'], extra_compile_args = extra_compile_args, extra_objects = ['libjs/.libs/libjs.a'], library_dirs = library_dirs, ... | if win_compiling: define_macros = [('WIN32', None), ('XP_WIN', None), ('EXPORT_JS_API', None), ] | def get_exe_bytes (self): if win_cross_compiling: # wininst.exe is in the same directory as bdist_wininst # XXX for python2.4, use wininst-X.Y.exe directory = os.path.dirname(distutils.command.__file__) filename = os.path.join(directory, "wininst.exe") return open(filename, "rb").read() return super(MyBdistWininst, sel... | 44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
309,
5657,
67,
14653,
67,
2919,
4973,
30,
468,
5657,
8591,
18,
14880,
353,
316,
326,
1967,
1867,
487,
324,
4413,
67,
8082,
8591,
468,
11329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14880,
67,
3890,
261,
2890,
4672,
309,
5657,
67,
14653,
67,
2919,
4973,
30,
468,
5657,
8591,
18,
14880,
353,
316,
326,
1967,
1867,
487,
324,
4413,
67,
8082,
8591,
468,
11329,
... |
clist = tools.Walk(root, pattern=re.compile('.*'), return_folders=1) clist = [mem[len(root)+1:] for mem in clist] clist.sort() clist.insert(0, "") | def genCategories(self): config = self._request.getConfiguration() root = config["datadir"] | 16f048911f07ff3f62fdc8867dc527d3ce99f2a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/16f048911f07ff3f62fdc8867dc527d3ce99f2a4/pycategories.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
10487,
12,
2890,
4672,
642,
273,
365,
6315,
2293,
18,
588,
1750,
1435,
1365,
273,
642,
9614,
3404,
361,
481,
11929,
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,
3157,
10487,
12,
2890,
4672,
642,
273,
365,
6315,
2293,
18,
588,
1750,
1435,
1365,
273,
642,
9614,
3404,
361,
481,
11929,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if not Globals.options.reload: | noonToday = datetime.datetime.combine( datetime.date.today(), datetime.time(12, tzinfo=ICUtzinfo.floating)) WelcomeEvent = pim.EventStamp.update(parcel, 'WelcomeEvent', displayName=_(u'Welcome to Chandler %(version)s') % {'version': version.version}, startTime=noonToday, duration=datetime.timedelta(minutes=60), ... | def installParcel(parcel, oldVersion=None): import scripts as Scripts from osaf.framework import scripting pim_ns = schema.ns('osaf.pim', parcel) sharing_ns = schema.ns('osaf.sharing', parcel) me = pim.Contact.update(parcel, 'me', displayName=_(u'Me'), contactName=pim.ContactName.update(parcel, 'meName', firstName=_... | 323dda2eb4ce3cecaa28709e02c317ca86d6eb46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/323dda2eb4ce3cecaa28709e02c317ca86d6eb46/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
225,
293,
381,
67,
2387,
273,
1963,
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,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
225,
293,
381,
67,
2387,
273,
1963,
18,
... |
self.update_tag = None | def __init__(self): global loop self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) self.screen_locker = urwid.Filler(urwid.Text(('important',language['scanning_stand_by']), align='center')) self.no_wlan = urwid.Filler(urwid.Text(('important',langu... | 6157eb782ace3423b9e7c138483e058585eee471 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/6157eb782ace3423b9e7c138483e058585eee471/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2552,
2798,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2552,
2798,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
... | |
NAME ==== | def removeComponents(self, componentList, groupName = None): """ NAME ==== | 748cbae21f60ac1c42057955f2dae32754c7f701 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/748cbae21f60ac1c42057955f2dae32754c7f701/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7171,
12,
2890,
16,
1794,
682,
16,
11619,
273,
599,
4672,
3536,
6048,
422,
631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7171,
12,
2890,
16,
1794,
682,
16,
11619,
273,
599,
4672,
3536,
6048,
422,
631,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
return self.pagename.split('/')[-1] def SUBPAGENAMEE(self, args): return urlquote(self.qpagename.split('/')[-1]) def BASEPAGENAME(self, args): | return pagename.split('/')[-1] SUBPAGENAMEE = _quoted(SUBPAGENAME) @_wrap_pagename def BASEPAGENAME(self, pagename): | def SUBPAGENAME(self, args): """[MW1.6+] Returns the name of the current page, excluding parent pages ('Title/Subtitle' becomes 'Subtitle'). """ return self.pagename.split('/')[-1] | b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba/magics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10025,
30633,
21150,
12,
2890,
16,
833,
4672,
3536,
63,
49,
59,
21,
18,
26,
15,
65,
2860,
326,
508,
434,
326,
783,
1363,
16,
19560,
982,
4689,
7707,
4247,
19,
1676,
2649,
11,
12724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10025,
30633,
21150,
12,
2890,
16,
833,
4672,
3536,
63,
49,
59,
21,
18,
26,
15,
65,
2860,
326,
508,
434,
326,
783,
1363,
16,
19560,
982,
4689,
7707,
4247,
19,
1676,
2649,
11,
12724,
... |
raise NotImplementedError(self.read_until) | lines = [] term = terminator + '\n' while True: line = self.input.readline() if line == term: break else: lines.append(line) return ''.join(lines) | def read_until(self, terminator): """Read the input stream until the terminator is found. Throws MissingTerminator if the terminator is not found. | 205d62536829a9d49825b39b76969a03da76258e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/205d62536829a9d49825b39b76969a03da76258e/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
12198,
12,
2890,
16,
24965,
4672,
3536,
1994,
326,
810,
1407,
3180,
326,
24965,
353,
1392,
18,
225,
22435,
10230,
31868,
309,
326,
24965,
353,
486,
1392,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
12198,
12,
2890,
16,
24965,
4672,
3536,
1994,
326,
810,
1407,
3180,
326,
24965,
353,
1392,
18,
225,
22435,
10230,
31868,
309,
326,
24965,
353,
486,
1392,
18,
2,
-100,
-100,
-100... |
if not WakeOnLan.WakeOnLan("%s"%mac): | if not WakeOnLan("%s"%mac): | def wol_one(self, widget, ip): if not self.get_client(): return if self.main.config.GetVar("scan_network_method") != "static": msg=(_("Wake On Lan only works with static list.\n\nEnable scan method \"static\" in Preferences\nand (wake on lan) support in bios of clients." )) shared.info_msg ( msg ) return msg=_( _("Do ... | 5df28d130fb730bac7b6ec68e4c44e143b006e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/5df28d130fb730bac7b6ec68e4c44e143b006e97/wakeonlan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
355,
67,
476,
12,
2890,
16,
3604,
16,
2359,
4672,
309,
486,
365,
18,
588,
67,
2625,
13332,
327,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
9871,
67,
5185,
67,
2039,
7923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
355,
67,
476,
12,
2890,
16,
3604,
16,
2359,
4672,
309,
486,
365,
18,
588,
67,
2625,
13332,
327,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
9871,
67,
5185,
67,
2039,
7923... |
self.removeRow(row) self.emit(SIGNAL('layoutChanged()')) | self.beginRemoveRows(QModelIndex(), row, row) self.db.delete_books(rows) self.endRemoveRows() | def delete_books(self, indices): rows = [ i.row() for i in indices ] for row in rows: self.removeRow(row) self.emit(SIGNAL('layoutChanged()')) self.emit(SIGNAL('deleted()')) | 93a1a15533aedead8d2d52d77be0136dbf38c259 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/93a1a15533aedead8d2d52d77be0136dbf38c259/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
12567,
12,
2890,
16,
4295,
4672,
2595,
273,
306,
277,
18,
492,
1435,
364,
277,
316,
4295,
308,
364,
1027,
316,
2595,
30,
365,
18,
10086,
3288,
4300,
12,
53,
1488,
1016,
9334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
12567,
12,
2890,
16,
4295,
4672,
2595,
273,
306,
277,
18,
492,
1435,
364,
277,
316,
4295,
308,
364,
1027,
316,
2595,
30,
365,
18,
10086,
3288,
4300,
12,
53,
1488,
1016,
9334,... |
else: | if opts.enable or args: | def do_scan(self, subcmd, opts, *args): """${cmd_name}: scan mirrors | 8fba047d38852560b8692d6cac6aa555ddfdf510 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/8fba047d38852560b8692d6cac6aa555ddfdf510/mirrordoctor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9871,
12,
2890,
16,
720,
4172,
16,
1500,
16,
380,
1968,
4672,
3536,
18498,
4172,
67,
529,
6713,
4135,
312,
27026,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9871,
12,
2890,
16,
720,
4172,
16,
1500,
16,
380,
1968,
4672,
3536,
18498,
4172,
67,
529,
6713,
4135,
312,
27026,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |