rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def PostSelectItems(self, items): | def PostSelectItems(self, items = None): if items is None: items = list(self.contents.iterSelection()) | def PostSelectItems(self, items): self.postEventByName("SelectItemsBroadcast", {'items': items, 'collection': self.contentsCollection }) | 1331e5142b681fe4c817533479865e8bae695c30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1331e5142b681fe4c817533479865e8bae695c30/Table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5616,
3391,
3126,
12,
2890,
16,
1516,
273,
599,
4672,
309,
1516,
353,
599,
30,
1516,
273,
666,
12,
2890,
18,
3980,
18,
2165,
6233,
10756,
225,
365,
18,
2767,
1133,
5911,
2932,
3391,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5616,
3391,
3126,
12,
2890,
16,
1516,
273,
599,
4672,
309,
1516,
353,
599,
30,
1516,
273,
666,
12,
2890,
18,
3980,
18,
2165,
6233,
10756,
225,
365,
18,
2767,
1133,
5911,
2932,
3391,
31... |
stack.append((tag_name, attributes, None)) | stack.append((tag_name, attributes, None)) | def pre_stream(stream , tag_uri, tag_name, attributes, pdf_stylesheet): stack = [] story = [] styles = getSampleStyleSheet() styleN = styles['Normal'] content = [] has_content = False stack.append((tag_name, attributes, None)) while True: event, value, line_number = stream_next(stream) if event == None: break #### START ELEMENT #### if event == START_ELEMENT: print WARNING_DTD % ('document', line_number, tag_name) stack.append((tag_name, attributes, None)) #### END ELEMENT #### elif event == END_ELEMENT: tag_uri, tag_name = value if tag_name == 'pre': return create_preformatted(pdf_stylesheet, {}, stack.pop(), content) else: print WARNING_DTD % ('document', line_number, tag_name) # unknown tag stack.append((tag_name, attributes, None)) #### TEXT ELEMENT #### elif event == TEXT: if stack: # we dont strip the string --> preformatted widget value = XML.encode(Unicode.decode(value, encoding)) # entities content.append(value) | fc0ed9558daebdc59e52053465cd8f2b7822b279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/fc0ed9558daebdc59e52053465cd8f2b7822b279/rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
67,
3256,
12,
3256,
269,
1047,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
8169,
67,
19403,
4672,
2110,
273,
5378,
17285,
273,
5378,
5687,
273,
26078,
2885,
8229,
1435,
2154,
50,
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,
675,
67,
3256,
12,
3256,
269,
1047,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
8169,
67,
19403,
4672,
2110,
273,
5378,
17285,
273,
5378,
5687,
273,
26078,
2885,
8229,
1435,
2154,
50,
2... |
self.health = health | self.health = gdata.health.service.HealthService() self.health.ClientLogin(username, password, source='Health Client Unit Tests') | def setUp(self): self.health = health self.profile_list_feed = self.health.GetProfileListFeed() self.profile_id = self.profile_list_feed.entry[0].GetProfileId() | 7db56efc3b0c60a54796b2b4dd6f95cd3495f093 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/7db56efc3b0c60a54796b2b4dd6f95cd3495f093/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
13267,
273,
314,
892,
18,
13267,
18,
3278,
18,
7802,
1179,
1435,
365,
18,
13267,
18,
1227,
5358,
12,
5053,
16,
2201,
16,
1084,
2218,
7802,
2445,
8380,
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,
24292,
12,
2890,
4672,
365,
18,
13267,
273,
314,
892,
18,
13267,
18,
3278,
18,
7802,
1179,
1435,
365,
18,
13267,
18,
1227,
5358,
12,
5053,
16,
2201,
16,
1084,
2218,
7802,
2445,
8380,
7... |
Block.Block.getWidgetID(self)) | Block.Block.getWidgetID(self), style = wx.NO_BORDER) | def instantiateWidget(self): return wxMiniCalendar(self.parentBlock.widget, Block.Block.getWidgetID(self)) | af1257351c231bb33cff6c3f31c19e3365cefb5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/af1257351c231bb33cff6c3f31c19e3365cefb5b/CalendarBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
4609,
12,
2890,
4672,
327,
7075,
2930,
77,
7335,
12,
2890,
18,
2938,
1768,
18,
6587,
16,
3914,
18,
1768,
18,
588,
4609,
734,
12,
2890,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
4609,
12,
2890,
4672,
327,
7075,
2930,
77,
7335,
12,
2890,
18,
2938,
1768,
18,
6587,
16,
3914,
18,
1768,
18,
588,
4609,
734,
12,
2890,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
return | return | def check_format(self, document): # set up parameters unless usual behaviour is suppressed if self.Override_default_compilation: return self.MediaBox = self.MediaBox or PDFArray([0, 0, self.pagewidth, self.pageheight]) if not self.Annots: self.Annots = None else: #print self.Annots #raise ValueError, "annotations not reimplemented yet" if type(self.Annots) is not types.InstanceType: self.Annots = PDFArray(self.Annots) if not self.Contents: stream = self.stream if not stream: self.Contents = teststream() else: S = PDFStream() if self.compression: S.filters = [PDFZCompress, PDFBase85Encode] S.content = stream S.__Comment__ = "page stream" self.Contents = S if not self.Resources: resources = PDFResourceDictionary() # fonts! resources.basicFonts() if self.hasImages: resources.allProcs() else: resources.basicProcs() if self.XObjects: #print "XObjects", self.XObjects.dict resources.XObject = self.XObjects self.Resources = resources if not self.Parent: pages = document.Pages self.Parent = document.Reference(pages) | 165f597d1c3177ed3af75f4afc9562e6bb26b4c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/165f597d1c3177ed3af75f4afc9562e6bb26b4c1/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2139,
12,
2890,
16,
1668,
4672,
468,
444,
731,
1472,
3308,
25669,
14273,
353,
24448,
309,
365,
18,
6618,
67,
1886,
67,
2919,
6613,
30,
327,
365,
18,
5419,
3514,
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,
866,
67,
2139,
12,
2890,
16,
1668,
4672,
468,
444,
731,
1472,
3308,
25669,
14273,
353,
24448,
309,
365,
18,
6618,
67,
1886,
67,
2919,
6613,
30,
327,
365,
18,
5419,
3514,
273,
365,
18,
... |
return set([self.offset]) | return cellset(sure=[self.offset]) | def preupdates(self): return set([self.offset]) | 71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
14703,
12,
2890,
4672,
327,
444,
3816,
2890,
18,
3348,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
14703,
12,
2890,
4672,
327,
444,
3816,
2890,
18,
3348,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
'--input', '-i', type='string', metavar="STRING", | '--input', '-i', type='string', metavar="FILE", | def open_callback(option, opt_str, value, parser): setattr(parser.values, option.dest, open(value)) | e481eb706c8d106772db06ddede1f89b07816887 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9007/e481eb706c8d106772db06ddede1f89b07816887/label.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
9241,
12,
4288,
18,
2372,
16,
1456,
18,
10488,
16,
1696,
12,
1132,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
9241,
12,
4288,
18,
2372,
16,
1456,
18,
10488,
16,
1696,
12,
1132,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-... |
text5 += _("Please, report them ! We need you to make this software better. Any contribution, any idea is welcome.") | text5 += _("Please, report them! We need you to make this software better. Any contribution, any idea is welcome.") | def populate() : doc,root = cleanxml.emptydoc("project") #Task 0@1 : Getting started with GTG title1 = _("Getting started with GTG") text1 = _("Welcome in Getting Things Gnome!, your new task manager.") text1 += "\n\n" text1 += _("In GTG, everything is a task. From building a bridge over the Pacific Ocean to changing a light bulb or organizing a party. When you edit a task, it is automatically saved.") text1 += "\n\n" text1 += _("Once a task is done, you can push the "Mark as done" button. If the task is not relevant any-more, simply press "Dismiss".") text1 += "\n\n" text1 += _("A task might be composed of multiple subtasks that appear as links in the description. Simply click on the following link :") text1 += "\n" text1 += "<subtask>1@1</subtask>\n" text1 += "\n\n" text1 += _("Don't forget to mark this subtask as done !") text1 += "\n\n" text1 += _("Other stuff you should read :") text1 += "\n" text1 += "<subtask>2@1</subtask>\n" text1 += "<subtask>3@1</subtask>\n" text1 += "<subtask>4@1</subtask>\n" text1 += "\n\n" text1 += _("We hope that you will appreciate GTG. Please send us bug reports and ideas for improvement using : ") text1 += "https://bugs.launchpad.net/gtg" text1 += "\n\n" text1 += _("Thank you for trying out GTG :-)") t1 = addtask(doc,"0@1",title1,text1,["1@1","2@1","3@1","4@1"]) root.appendChild(t1) #Task 1@1 : Learn to use subtasks title2 = _("Learn to use subtasks") text2 = _("In the task description (this window), if you begin a line with "-", it will be considered as a "subtask", something that needs to be done in order to accomplish your task. Just try to write "- test subtask" on the next line and press enter.") text2 += "\n\n" text2 += _("You can also use the "insert subtask" button.") text2 += "\n\n\n" text2 += _("Task and subtasks can be re-organized by drag-n-drop in the tasks list.") text2 += "\n\n" text2 += _("Some concept come with subtasks : for example, a subtask due date can never be after its parent due date.") text2 += "\n\n" text2 += _("Also, marking a parent as done will mark all the subtasks as done.") t2 = addtask(doc,"1@1",title2,text2,[]) root.appendChild(t2) #Task 2@1 : Learn to use tags title3 = _("Learn to use tags") text3 = _("A tag is a simple word that begin with "@".") text3 += "\n\n" text3 += _("Try to type a word beginning with @ here :") text3 += "\n\n" text3 += _("It becomes yellow, it's a tag.") text3 += "\n\n" text3 += _("Tags are useful to sort your tasks. In the view menu, you can enable a sidebar which displays all the tags you are using so you can easily see tasks for a given tag. There's no limit to the number of tags a task can have.") text3 += "\n\n" text3 += _("If you right click on a tag in the sidebar you can also set its color. It will permit you to have a more colorful list of tasks, if you want it that way.") text3 += "\n\n" text3 += _("A new tag is only added to the current task. There's no recursivity and the tag is not applied to subtasks. But when you create a new subtask, this subtask will inherit the tags of its parent as a good primary default (it will also be the case if you add a tag to a parent just after creating a subtask). Of course, you can modify at any time the tags of this particular subtask. It will never be changed by the parent.") t3 = addtask(doc,"2@1",title3,text3,[]) root.appendChild(t3) #Task 3@1 : Using the Workview title4 = _("Using the Workview") text4 = _("If you press the "Workview" button, only actionable tasks will be displayed.") text4 += "\n\n" text4 += _("What is an actionable task? It's a task you can do directly, right now.") text4 += "\n\n" text4 += _("It's a task that is already "start-able", i.e. the start date is already over.") text4 += "\n\n" text4 += _("It's a task that doesn't have open subtasks, i.e. you can do the task itself directly.") text4 += "\n\n" text4 += _("Thus, the workview will only show you tasks you should do right now.") text4 += "\n\n" text4 += _("If you use tags, you can right click on a tag in the sidebar and choose to not display tasks with this particular tag in the workview. It's very useful if you have a tag like "someday" that you use for tasks you would like to do but are not particularly urgent.") t4 = addtask(doc,"3@1",title4,text4,[]) root.appendChild(t4) #Task 4@1 : Reporting bugs title5 = _("Reporting bugs") text5 = _("GTG is still very alpha software. We like it and use it everyday but you will encounter some bugs.") text5 += "\n\n" text5 += _("Please, report them ! We need you to make this software better. Any contribution, any idea is welcome.") text5 += "\n\n" text5 += _("If you have some trouble with GTG, we might be able to help you or to solve your problem really quickly.") t5 = addtask(doc,"4@1",title5,text5,[]) root.appendChild(t5) return doc | 88f87d38f8969fbb3a1bb46f14b705ca8e310947 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/88f87d38f8969fbb3a1bb46f14b705ca8e310947/firstrun_tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
1435,
294,
997,
16,
3085,
273,
2721,
2902,
18,
5531,
2434,
2932,
4406,
7923,
468,
2174,
374,
36,
21,
294,
26602,
5746,
598,
19688,
43,
2077,
21,
273,
389,
2932,
19213,
5746,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
1435,
294,
997,
16,
3085,
273,
2721,
2902,
18,
5531,
2434,
2932,
4406,
7923,
468,
2174,
374,
36,
21,
294,
26602,
5746,
598,
19688,
43,
2077,
21,
273,
389,
2932,
19213,
5746,
598,
... |
self.assert_(len(str) > 0) self.assert_(len(str) < 9) | self.assert_(len(language) > 0) self.assert_(len(language) < 9) | def iterate_languages(self): """Unit test for the method iterate_languages()""" for language in self.locales.iterate_languages(): self.assert_(type(language) is str) self.assert_(len(str) > 0) self.assert_(len(str) < 9) | e80a2af277b1bd33ed3ee48baba2aa00b41862c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/e80a2af277b1bd33ed3ee48baba2aa00b41862c5/Unix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7401,
67,
14045,
12,
2890,
4672,
3536,
2802,
1842,
364,
326,
707,
7401,
67,
14045,
1435,
8395,
364,
2653,
316,
365,
18,
22638,
18,
18793,
67,
14045,
13332,
365,
18,
11231,
67,
12,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7401,
67,
14045,
12,
2890,
4672,
3536,
2802,
1842,
364,
326,
707,
7401,
67,
14045,
1435,
8395,
364,
2653,
316,
365,
18,
22638,
18,
18793,
67,
14045,
13332,
365,
18,
11231,
67,
12,
723,
... |
if ps.exists("pipeline"): pipeline = ps.get("pipeline") pipeline = MySQLdb.escape_string(pipeline) elif ps.exists("PIPELINE"): | if ps.exists("PIPELINE"): | def _insertRecord(self, dbTable, ps): | dcff16115fd4b90da4b2aad9583613f6ddb7920b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6552/dcff16115fd4b90da4b2aad9583613f6ddb7920b/DatabaseLogger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
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... | [
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,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
os.chdir(cwd) os.mkdir('encodings') | def test_issue_8766(self): # "import encodings" emits a warning whereas the warnings is not loaded # or not completly loaded (warnings imports indirectly encodings by # importing linecache) yet old_cwd = os.getcwd() try: cwd = tempfile.mkdtemp() try: os.chdir(cwd) os.mkdir('encodings') env = os.environ.copy() env['PYTHONPATH'] = cwd | ea796670358dbe8721a9996dcd64de97635a15cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ea796670358dbe8721a9996dcd64de97635a15cf/test_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13882,
67,
11035,
6028,
12,
2890,
4672,
468,
315,
5666,
24118,
6,
24169,
279,
3436,
1625,
345,
326,
5599,
353,
486,
4203,
468,
578,
486,
2302,
715,
4203,
261,
12103,
10095,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13882,
67,
11035,
6028,
12,
2890,
4672,
468,
315,
5666,
24118,
6,
24169,
279,
3436,
1625,
345,
326,
5599,
353,
486,
4203,
468,
578,
486,
2302,
715,
4203,
261,
12103,
10095,
168... | |
entry = gtk.Entry() for valid_value in ['a', u'b', u'\ufff0', u'\ufff0'.encode()]: entry.set_invisible_char(valid_value) assert entry.get_invisible_char() == unicode(valid_value) | for invalid_value in ('12', None, 1, ''): try: entry.set_invisible_char(invalid_value) except: pass else: raise AssertionError( 'exception not raised on invalid value w/ ' 'set_invisible_char: %s' % invalid_value) | def testUnicharArg(self): """ Test unichar values when used as arguments. """ | d51141d577f90f297fb46327d8120f3cdd45b4fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8659/d51141d577f90f297fb46327d8120f3cdd45b4fd/test_conversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
984,
1354,
297,
4117,
12,
2890,
4672,
3536,
7766,
640,
1354,
297,
924,
1347,
1399,
487,
1775,
18,
3536,
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,
1842,
984,
1354,
297,
4117,
12,
2890,
4672,
3536,
7766,
640,
1354,
297,
924,
1347,
1399,
487,
1775,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for frame in range(1, total_frames): wxyz1 += rot_inc self.quat = Q(norm(wxyz1)) self.pov += pov_inc self.zoomFactor += zoom_inc self.scale += scale_inc self.gl_update_duration() self.snapToView(q2, s2, p2, z2, update_duration = True) | try: for frame in range(1, total_frames): wxyz1 += rot_inc self.quat = Q(norm(wxyz1)) self.pov += pov_inc self.zoomFactor += zoom_inc self.scale += scale_inc self.gl_update_duration() self.snapToView(q2, s2, p2, z2, update_duration = True) except: print_compact_traceback("bug: exception (ignored) during animateToView's loop: ") pass | def animateToView(self, q2, s2, p2, z2, animate=True): '''Animate from the current view to the destination view defined by quat q2, scale s2, pov p2, and zoom factor z2. If animate is False *or* the user pref "Animate between views" is not selected, then do not animate; just snap to the destination view. ''' # Caller could easily pass these args in the wrong order. Let's typecheck them. typecheckViewArgs(q2, s2, p2, z2) # Determine whether to snap (don't animate) to the destination view. if not animate or not env.prefs[animateStandardViews_prefs_key]: self.snapToView(q2, s2, p2, z2) return # Make copies of the current view parameters. q1 = Q(self.quat) s1 = self.scale p1 = V(self.pov[0], self.pov[1], self.pov[2]) z1 = self.zoomFactor # Compute the normal vector for current and destination view rotation. wxyz1 = V(q1.w, q1.x, q1.y, q1.z) wxyz2 = V(q2.w, q2.x, q2.y, q2.z) # The rotation path may turn either the "short way" (less than 180) or the "long way" (more than 180). # Long paths can be prevented by negating one end (if the dot product is negative). if dot(wxyz1, wxyz2) < 0: wxyz2 = V(-q2.w, -q2.x, -q2.y, -q2.z) # Compute the maximum number of frames for the maximum possible # rotation (180 degrees) based on how long it takes to repaint one frame. max_frames = max(1, env.prefs[animateMaximumTime_prefs_key]/self._repaint_duration) # Compute the deltas for the quat, pov, scale and zoomFactor. deltaq = q2 - q1 deltap = vlen(p2 - p1) deltas = abs(s2 - s1) deltaz = abs(z2 - z1) # Do nothing if there is no change b/w the current view to the new view. # Fixes bugs 1350 and 1170. mark 060124. if deltaq.angle + deltap + deltas + deltaz == 0: # deltaq.angle is always positive. return # Compute the rotation angle (in degrees) b/w the current and destination view. rot_angle = deltaq.angle * 180/pi # rotation delta (in degrees) if rot_angle > 180: rot_angle = 360 - rot_angle # go the short way # For each delta, compute the total number of frames each would # require (by itself) for the animation sequence. rot_frames = int(rot_angle/180 * max_frames) pov_frames = int(deltap * .2) # .2 based on guess/testing. mark 060123 scale_frames = int(deltas * .05) # .05 based on guess/testing. mark 060123 zoom_frames = int(deltaz * .05) # Not tested. mark 060123 # Using the data above, this formula computes the ideal number of frames # to use for the animation loop. It attempts to keep animation speeds consistent. total_frames = int( \ min(max_frames, \ max(3, rot_frames, pov_frames, scale_frames, zoom_frames))) #print "total_frames =", total_frames # Compute the increments for each view parameter to use in the animation loop. rot_inc = (wxyz2 - wxyz1) / total_frames scale_inc = (s2 - s1) / total_frames zoom_inc = (z2 - z1) / total_frames pov_inc = (p2 - p1) / total_frames # Disable standard view actions on toolbars/menus while animating. # This is a safety feature to keep the user from clicking another view # animation action while this one is still running. self.win.enableViews(False) # 'is_animating' is checked in selectAtomsMode.update_selobj() to determine whether the # GLPane is currently animating between views. If True, then update_selobj() will # not select any object under the cursor. mark 060404. self.is_animating = True # Main animation loop, which doesn't draw the final frame of the loop. # See comments below for explanation. for frame in range(1, total_frames): # Notice no +1 here. wxyz1 += rot_inc self.quat = Q(norm(wxyz1)) self.pov += pov_inc self.zoomFactor += zoom_inc self.scale += scale_inc self.gl_update_duration() # Very desirable to adjust total_frames inside the loop to maintain # animation speed consistency. mark 060127. # The animation loop did not draw the last frame on purpose. Instead, # we snap to the destination view. This also eliminates the possibility # of any roundoff error in the increment values, which might result in a # slightly wrong final viewpoint. self.snapToView(q2, s2, p2, z2, update_duration = True) # snapToView() must call gl_update_duration() and not gl_update(), # or we'll have an issue if total_frames ever ends up = 1. In that case, # self._repaint_duration would never get set again because gl_update_duration() # would never get called again. BTW, gl_update_duration() (as of 060127) # is only called in the main animation loop above or when a new part is loaded. # gl_update_duration() should be called at other times, too (i.e. when # the display mode changes or something significant happens to the # model or display mode that would impact the rendering duration), # or better yet, the number of frames should be adjusted in the # main animation loop as it plays. This is left as something for me to do # later (probably after A7). This verbose comment is left as a reminder # to myself about all this. mark 060127. # Enable standard view actions on toolbars/menus. self.win.enableViews(True) # Finished animating. self.is_animating = False | 44f6c6f9aba2452695535352e3f322685ec6fce7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/44f6c6f9aba2452695535352e3f322685ec6fce7/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14671,
774,
1767,
12,
2890,
16,
1043,
22,
16,
272,
22,
16,
293,
22,
16,
998,
22,
16,
14671,
33,
5510,
4672,
9163,
979,
4988,
628,
326,
783,
1476,
358,
326,
2929,
1476,
2553,
635,
258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14671,
774,
1767,
12,
2890,
16,
1043,
22,
16,
272,
22,
16,
293,
22,
16,
998,
22,
16,
14671,
33,
5510,
4672,
9163,
979,
4988,
628,
326,
783,
1476,
358,
326,
2929,
1476,
2553,
635,
258... |
self.sync(params) | self.sync(params, remote) | def render(self): """ Render action | 040e5dcf6357c3b978815cb65f08dc31b1f2365c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/040e5dcf6357c3b978815cb65f08dc31b1f2365c/SyncPages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
6987,
1301,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1743,
12,
2890,
4672,
3536,
6987,
1301,
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,
-... |
domains = [ ] for (domain, target, _format) in self._logging[level]: if domain == "": domain = "*" if domain not in domains: domains.append(domain) | def _log(self, level, newline, raw, format, *args): # log level higher than logging level? if level > self._level: return | 3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1330,
12,
2890,
16,
1801,
16,
9472,
16,
1831,
16,
740,
16,
380,
1968,
4672,
468,
613,
1801,
10478,
2353,
2907,
1801,
35,
309,
1801,
405,
365,
6315,
2815,
30,
327,
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,
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,
1330,
12,
2890,
16,
1801,
16,
9472,
16,
1831,
16,
740,
16,
380,
1968,
4672,
468,
613,
1801,
10478,
2353,
2907,
1801,
35,
309,
1801,
405,
365,
6315,
2815,
30,
327,
2,
-100,
-100,
... | |
return conflicting return repo.update(node, force=True) | res = conflicting else: res = repo.update(node, force=True) for e in changeset.entries: if e.action_kind == e.DELETED: entrydir = split(e.name)[0] if self.__maybeDeleteDirectory(entrydir): deleteddirs.append(entrydir) elif e.action_kind == e.RENAMED: entrydir = split(e.old_name)[0] if self.__maybeDeleteDirectory(entrydir): deleteddirs.append(entrydir) done = set() for entry,path in addeddirs: if not path in done: done.add(path) entry = changeset.addEntry(path, None, before=entry) entry.action_kind = entry.ADDED entry.is_directory = True self.log.debug("registering new %s directory", entry.name) done = set() for path in deleteddirs: if not path in done: done.add(path) deldir = changeset.addEntry(path, None) deldir.action_kind = deldir.DELETED deldir.is_directory = True self.log.debug("registering %s directory deletion", path) return res | def _applyChangeset(self, changeset): repo = self._getRepo() node = self._getNode(repo, changeset.revision) | d58cd4cf56bda42a6b0824e50242f0f6d5525ba5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5981/d58cd4cf56bda42a6b0824e50242f0f6d5525ba5/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
29743,
12,
2890,
16,
22463,
4672,
3538,
273,
365,
6315,
588,
8791,
1435,
756,
273,
365,
6315,
588,
907,
12,
7422,
16,
22463,
18,
13057,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
9010,
29743,
12,
2890,
16,
22463,
4672,
3538,
273,
365,
6315,
588,
8791,
1435,
756,
273,
365,
6315,
588,
907,
12,
7422,
16,
22463,
18,
13057,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
where_move_lines_by_date = " AND " +obj+".move_id in ( select id from account_move where date < '"+context['date_from']+"')" | where_move_lines_by_date = " OR " +obj+".move_id in ( select id from account_move where date < '"+context['date_from']+"')" | def _query_get(self, cr, uid, obj='l', context={}): fiscalyear_obj = self.pool.get('account.fiscalyear') fiscalperiod_obj = self.pool.get('account.period') fiscalyear_ids = [] fiscalperiod_ids = [] initial_bal = context.get('initial_bal', False) company_clause = "" if context.get('company_id', False): company_clause = " AND " +obj+".company_id = %s" % context.get('company_id', False) if not context.get('fiscalyear', False): fiscalyear_ids = fiscalyear_obj.search(cr, uid, [('state', '=', 'draft')]) else: if initial_bal: fiscalyear_date_start = fiscalyear_obj.read(cr, uid, context['fiscalyear'], ['date_start'])['date_start'] fiscalyear_ids = fiscalyear_obj.search(cr, uid, [('date_stop', '<', fiscalyear_date_start), ('state', '=', 'draft')], context=context) else: fiscalyear_ids = [context['fiscalyear']] | da427c55dcdef3c0bba01290d14e1695423bb6ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/da427c55dcdef3c0bba01290d14e1695423bb6ed/account_move_line.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
2218,
80,
2187,
819,
12938,
4672,
15324,
771,
6874,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
74,
291,
771,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
2218,
80,
2187,
819,
12938,
4672,
15324,
771,
6874,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
74,
291,
771,
6... |
if template.endswith('.xsl'): | if template.endswith('.xsl') and not \ attrs['name'].endswith(' (XSL)'): | def tmpl_admin_output_format_show(self, ln, code, name, rules, default, format_templates, editable): """ Returns the content of an output format | 46546f4710926a71d10a6f3d7f54df82e091e20b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/46546f4710926a71d10a6f3d7f54df82e091e20b/bibformat_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3666,
67,
2844,
67,
2139,
67,
4500,
12,
2890,
16,
7211,
16,
981,
16,
508,
16,
2931,
16,
805,
16,
740,
67,
8502,
16,
13754,
4672,
3536,
2860,
326,
913,
434,
392,
876,
740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
67,
3666,
67,
2844,
67,
2139,
67,
4500,
12,
2890,
16,
7211,
16,
981,
16,
508,
16,
2931,
16,
805,
16,
740,
67,
8502,
16,
13754,
4672,
3536,
2860,
326,
913,
434,
392,
876,
740,
... |
sys.stderr.write(" (%s:%d)\n" % (self.filename, self.line)) | if self.verbose: sys.stderr.write(" (%s:%d)\n" % (self.filename, self.line)) | def parse_macro(self): """No recursive macro processing is done here. If a macro is passed as parameter to a macro, then whoever parses the macro replacement will do the macro recursion. Actually - I'm too tired right now to think this through. Maybe it should be done the other way around, starting expansion with the innermost macro? """ params = [] balance = 1 macro = "" while balance > 0: macro += self.read_until("{}") if macro[-1] == "{": balance += 1 elif macro[-1] == "}": balance -= 1 else: raise Error(self, "Unclosed macro") return | 24871184ba5801cc23f967333c5f0f17363cecf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9355/24871184ba5801cc23f967333c5f0f17363cecf6/wmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
26448,
12,
2890,
4672,
3536,
2279,
5904,
11522,
4929,
353,
2731,
2674,
18,
971,
279,
11522,
353,
2275,
487,
1569,
358,
279,
11522,
16,
1508,
10354,
6084,
8940,
326,
11522,
6060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
26448,
12,
2890,
4672,
3536,
2279,
5904,
11522,
4929,
353,
2731,
2674,
18,
971,
279,
11522,
353,
2275,
487,
1569,
358,
279,
11522,
16,
1508,
10354,
6084,
8940,
326,
11522,
6060,
... |
sage: f.coeff(x^2) | sage: f.coefficient(x^2) | def coeff(self, x, n=1): """ Returns the coefficient of $x^n$ in self. | 88ff2d07f85457f450fa2570c5fb9a41657d2974 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/88ff2d07f85457f450fa2570c5fb9a41657d2974/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11943,
12,
2890,
16,
619,
16,
290,
33,
21,
4672,
3536,
2860,
326,
16554,
434,
271,
92,
66,
82,
8,
316,
365,
18,
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,
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,
11943,
12,
2890,
16,
619,
16,
290,
33,
21,
4672,
3536,
2860,
326,
16554,
434,
271,
92,
66,
82,
8,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
dataTier = properties["dataTier"] secondaryOutputTiers = properties["secondaryOutputTiers"] | def pollDBS(self, datasetPath, status): """ _pollDBS_ | 87d7e4aaef9a55485525200d47dab0552b5b83de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/87d7e4aaef9a55485525200d47dab0552b5b83de/MergeSensorComponent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
2290,
55,
12,
2890,
16,
3709,
743,
16,
1267,
4672,
3536,
389,
13835,
2290,
55,
67,
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,
7672,
2290,
55,
12,
2890,
16,
3709,
743,
16,
1267,
4672,
3536,
389,
13835,
2290,
55,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
rt += "%-15s %-15s %-15s %s\n" % (ltoa(net), | rt += "%-15s %-15s %-15s %-15s %-15s\n" % (ltoa(net), | def __repr__(self): rt = "Network Netmask Gateway Iface\n" for net,msk,gw,iface,addr in self.routes: rt += "%-15s %-15s %-15s %s\n" % (ltoa(net), ltoa(msk), gw, iface) return rt | 3189058f12fcf8b5eb134c746ce4ab9b49c84e27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/3189058f12fcf8b5eb134c746ce4ab9b49c84e27/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
8253,
273,
315,
3906,
540,
8503,
4455,
540,
11381,
540,
29808,
64,
82,
6,
364,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
316,
365,
18,
10854,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
972,
12,
2890,
4672,
8253,
273,
315,
3906,
540,
8503,
4455,
540,
11381,
540,
29808,
64,
82,
6,
364,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
316,
365,
18,
10854,... |
recIDs = perform_request_search(c="") | def get_valid_range(key): """Returns which records are valid for this rank method, according to which collections it is enabled for.""" if options["verbose"] >=9: write_message("Getting records from collections enabled for rank method.") res = run_sql("SELECT collection.name FROM collection,collection_rnkMETHOD,rnkMETHOD WHERE collection.id=id_collection and id_rnkMETHOD=rnkMETHOD.id and rnkMETHOD.name='%s'" % key) l_of_colls = [] for coll in res: l_of_colls.append(coll[0]) #if len(l_of_colls) > 0: recIDs = perform_request_search(c="") #else: # recIDs = [] valid = HitSet() valid.addlist(recIDs) return valid | 75c14ef84ff021cd847da70ff9279e5df8f1425e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/75c14ef84ff021cd847da70ff9279e5df8f1425e/bibrank_word_indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
877,
67,
3676,
12,
856,
4672,
3536,
1356,
1492,
3853,
854,
923,
364,
333,
6171,
707,
16,
4888,
358,
1492,
6980,
518,
353,
3696,
364,
12123,
225,
309,
702,
9614,
11369,
11929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
877,
67,
3676,
12,
856,
4672,
3536,
1356,
1492,
3853,
854,
923,
364,
333,
6171,
707,
16,
4888,
358,
1492,
6980,
518,
353,
3696,
364,
12123,
225,
309,
702,
9614,
11369,
11929,
... | |
print("answer sent") | def run(self): self.running = True while (self.running): msg, env = self.cc.group_recvmsg(False) if msg: print("received message: ") print(msg) answer = self.handle_msg(msg); print("sending answer: ") print(answer) self.cc.group_reply(env, answer) print("answer sent") else: self.running = False | 2c82b2107e8d8f96bf2a222a40fa374d54f5d0e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6792/2c82b2107e8d8f96bf2a222a40fa374d54f5d0e9/bind-cfgd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
8704,
273,
1053,
1323,
261,
2890,
18,
8704,
4672,
1234,
16,
1550,
273,
365,
18,
952,
18,
1655,
67,
18334,
3576,
12,
8381,
13,
309,
1234,
30,
1172,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
18,
8704,
273,
1053,
1323,
261,
2890,
18,
8704,
4672,
1234,
16,
1550,
273,
365,
18,
952,
18,
1655,
67,
18334,
3576,
12,
8381,
13,
309,
1234,
30,
1172,
2932,
... | |
ids = strs = '' | def to_binary(self): """Return the mofile binary representation.""" import array import struct import types offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0 entries.sort(cmp) # add metadata entry mentry = self.metadata_as_entry() mentry.msgstr = mentry.msgstr.replace('\\n', '').lstrip() entries = [mentry] + entries entries_len = len(entries) for e in entries: # For each string, we need size and file offset. Each string is # NUL terminated; the NUL does not count into the size. msgid = self._encode(e.msgid) if e.msgid_plural: msgid = msgid + '\0' + self._encode(e.msgid_plural) indexes = e.msgstr_plural.keys() indexes.sort() msgstr = [] for index in indexes: msgstr.append(self._encode(e.msgstr_plural[index])) msgstr = '\0'.join(msgstr) else: msgstr = self._encode(e.msgstr) | 179d327e1a8b0b40ebd85d38fa899c7a6f3f6287 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9209/179d327e1a8b0b40ebd85d38fa899c7a6f3f6287/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8578,
12,
2890,
4672,
3536,
990,
326,
7344,
768,
3112,
4335,
12123,
1930,
526,
1930,
1958,
1930,
1953,
8738,
273,
5378,
3222,
273,
365,
18,
22899,
67,
8219,
1435,
468,
326,
1311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8578,
12,
2890,
4672,
3536,
990,
326,
7344,
768,
3112,
4335,
12123,
1930,
526,
1930,
1958,
1930,
1953,
8738,
273,
5378,
3222,
273,
365,
18,
22899,
67,
8219,
1435,
468,
326,
1311... | |
html = HtmlWindow() | def do_reload(self, _b): if len(history) == 0: return url = history[-1] del history[-1] self.load_url(html, url) | 83b5fb96027f9f36a9b1d2a85d9013af5aaf6392 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10805/83b5fb96027f9f36a9b1d2a85d9013af5aaf6392/gtkhtml_demo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
17517,
12,
2890,
16,
389,
70,
4672,
309,
562,
12,
8189,
13,
422,
374,
30,
327,
880,
273,
4927,
18919,
21,
65,
1464,
4927,
18919,
21,
65,
365,
18,
945,
67,
718,
12,
2620,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
17517,
12,
2890,
16,
389,
70,
4672,
309,
562,
12,
8189,
13,
422,
374,
30,
327,
880,
273,
4927,
18919,
21,
65,
1464,
4927,
18919,
21,
65,
365,
18,
945,
67,
718,
12,
2620,
1... | |
if module not in save_modules: | if module not in save_modules and module.startswith("test."): | def main(tests=None, testdir=None): """Execute a test suite. This also parses command-line options and modifies its behaviour accordingly. tests -- a list of strings containing test names (optional) testdir -- the directory in which to look for tests (optional) Users other than the Python test suite will certainly want to specify testdir; if it's omitted, the directory containing the Python test suite is searched for. If the tests argument is omitted, the tests listed on the command-line will be used. If that's empty, too, then all *.py files beginning with test_ will be used. """ try: opts, args = getopt.getopt(sys.argv[1:], 'vgqxs') except getopt.error, msg: print msg print __doc__ return 2 verbose = 0 quiet = 0 generate = 0 exclude = 0 single = 0 for o, a in opts: if o == '-v': verbose = verbose+1 if o == '-q': quiet = 1; verbose = 0 if o == '-g': generate = 1 if o == '-x': exclude = 1 if o == '-s': single = 1 if generate and verbose: print "-g and -v don't go together!" return 2 good = [] bad = [] skipped = [] if single: from tempfile import gettempdir filename = os.path.join(gettempdir(), 'pynexttest') try: fp = open(filename, 'r') next = string.strip(fp.read()) tests = [next] fp.close() except IOError: pass for i in range(len(args)): # Strip trailing ".py" from arguments if args[i][-3:] == '.py': args[i] = args[i][:-3] stdtests = STDTESTS[:] nottests = NOTTESTS[:] if exclude: for arg in args: if arg in stdtests: stdtests.remove(arg) nottests[:0] = args args = [] tests = tests or args or findtests(testdir, stdtests, nottests) if single: tests = tests[:1] test_support.verbose = verbose # Tell tests to be moderately quiet save_modules = sys.modules.keys() for test in tests: if not quiet: print test ok = runtest(test, generate, verbose, testdir) if ok > 0: good.append(test) elif ok == 0: bad.append(test) else: if not quiet: print "test", test, print "skipped -- an optional feature could not be imported" skipped.append(test) # Unload the newly imported modules (best effort finalization) for module in sys.modules.keys(): if module not in save_modules: test_support.unload(module) if good and not quiet: if not bad and not skipped and len(good) > 1: print "All", print count(len(good), "test"), "OK." if bad: print count(len(bad), "test"), "failed:", print string.join(bad) if skipped and not quiet: print count(len(skipped), "test"), "skipped:", print string.join(skipped) if single: alltests = findtests(testdir, stdtests, nottests) for i in range(len(alltests)): if tests[0] == alltests[i]: if i == len(alltests) - 1: os.unlink(filename) else: fp = open(filename, 'w') fp.write(alltests[i+1] + '\n') fp.close() break else: os.unlink(filename) return len(bad) > 0 | 1c074b8305a819c7d644e4135813ee67127149d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1c074b8305a819c7d644e4135813ee67127149d4/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
471,
23934,
2097,
14273,
15905,
18,
225,
7434,
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,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
471,
23934,
2097,
14273,
15905,
18,
225,
7434,
14... |
self.enableLogging() | def getFinishedCommandsOnHost(self, ctx, uuid, min, max, filt): """ Get the MSC commands that are flagged as 'done' for a host. The last inserted commands are returned first. """ if ComputerLocationManager().doesUserHaveAccessToMachine(ctx.userid, uuid): session = create_session() query = session.query(Commands).order_by(desc(Commands.c.id)).add_column(self.commands_on_host.c.id).add_column(self.commands_on_host.c.current_state) #.filter(self.commands.c.creator == ctx.userid) query = query.select_from(self.commands.join(self.commands_on_host).join(self.target)).filter(self.target.c.target_uuid == uuid).filter(self.commands_on_host.c.current_state == 'done') if filt != '': query = query.filter(self.commands.c.title.like('%'+filt+'%')) query = query.offset(int(min)) query = query.limit(int(max)-int(min)) query = query.order_by(asc(self.commands_on_host.c.next_launch_date)) | 8375cccde29bbfdaafe1946f02db8568b83bff25 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/8375cccde29bbfdaafe1946f02db8568b83bff25/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
267,
5992,
9127,
1398,
2594,
12,
2890,
16,
1103,
16,
3822,
16,
1131,
16,
943,
16,
18553,
4672,
3536,
968,
326,
490,
2312,
4364,
716,
854,
2982,
2423,
487,
296,
8734,
11,
364,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
267,
5992,
9127,
1398,
2594,
12,
2890,
16,
1103,
16,
3822,
16,
1131,
16,
943,
16,
18553,
4672,
3536,
968,
326,
490,
2312,
4364,
716,
854,
2982,
2423,
487,
296,
8734,
11,
364,
279... | |
return obj.strftime('%Y-%d-%mT%H:%M:%SZ') | return obj.strftime('%Y-%m-%dT%H:%M:%SZ') | def format_iso8601(obj): """Format a datetime object for iso8601""" return obj.strftime('%Y-%d-%mT%H:%M:%SZ') | e7bca666a659ec583b066abf1da72ba5e7623409 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/e7bca666a659ec583b066abf1da72ba5e7623409/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9699,
14181,
12,
2603,
4672,
3536,
1630,
279,
3314,
733,
364,
8702,
14181,
8395,
327,
1081,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
28830,
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,
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,
740,
67,
9699,
14181,
12,
2603,
4672,
3536,
1630,
279,
3314,
733,
364,
8702,
14181,
8395,
327,
1081,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
28830,
6134,
... |
elif productionrates['food']['socmodifier']*self.society < 1.0 and self.resources.food == 0: | elif enoughfood < 1.0 and self.resources.food == 0: | def doturn(self, report): replinestart = "Planet: " + str(self.name) + " (" + str(self.id) + ") " # only owned planets produce if self.owner != None and self.resources != None: curpopulation = self.resources.people popgrowth = productionrates['food']['socmodifier']*self.society if self.resources.food > 0 or popgrowth > 1.0: self.doproduction() elif self.resources.quatloos >= self.getprice('food'): self.doproduction() # we are still able to subsidize food production report.append(replinestart + "Govt. Subsidizing Food Prices") self.resources.quatloos -= self.getprice('food') self.resources.food += 1 elif productionrates['food']['socmodifier']*self.society < 1.0 and self.resources.food == 0: # uhoh, famine... report.append(replinestart + "Reports Famine!") self.population = int(curpopulation * .98) # increase the planet's treasury through taxation self.resources.quatloos += (self.resources.people * self.inctaxrate)/6.0 # increase the society count if the player has played # in the last 2 days. if self.owner.get_profile().lastactivity > datetime.datetime.today() - datetime.timedelta(hours=36): self.society += 1 else: # limit population growth on absentee landlords... ;) if popgrowth > 1.0: self.resources.people = curpopulation * (popgrowth*.9) self.save() self.resources.save() | c3f898eb1ec727ded93431b29729d41521bf7937 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2020/c3f898eb1ec727ded93431b29729d41521bf7937/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
321,
12,
2890,
16,
2605,
4672,
6831,
267,
27893,
273,
315,
5365,
278,
30,
315,
397,
609,
12,
2890,
18,
529,
13,
397,
315,
7566,
397,
609,
12,
2890,
18,
350,
13,
397,
9369,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
321,
12,
2890,
16,
2605,
4672,
6831,
267,
27893,
273,
315,
5365,
278,
30,
315,
397,
609,
12,
2890,
18,
529,
13,
397,
315,
7566,
397,
609,
12,
2890,
18,
350,
13,
397,
9369,
315,... |
LazyFormat("morphims is not triangular on %s")%(x)) | LazyFormat("morphism is not triangular on %s")%(x)) | def _test_triangular(self, **options): """ Tests that ``self`` is actually triangular | cf1afa0a7b12399f15dd6a709efebea9e168514e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cf1afa0a7b12399f15dd6a709efebea9e168514e/modules_with_basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
16857,
13077,
12,
2890,
16,
2826,
2116,
4672,
3536,
7766,
87,
716,
12176,
2890,
10335,
353,
6013,
6882,
13077,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3813,
67,
16857,
13077,
12,
2890,
16,
2826,
2116,
4672,
3536,
7766,
87,
716,
12176,
2890,
10335,
353,
6013,
6882,
13077,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} | }) | def generate_configurable_chart(self, cr, uid, ids, context=None): obj_acc = self.pool.get('account.account') obj_acc_tax = self.pool.get('account.tax') obj_journal = self.pool.get('account.journal') obj_acc_tax_code = self.pool.get('account.tax.code') obj_acc_template = self.pool.get('account.account.template') obj_acc_tax_template = self.pool.get('account.tax.code.template') obj_fiscal_position_template = self.pool.get('account.fiscal.position.template') obj_fiscal_position = self.pool.get('account.fiscal.position') analytic_journal_obj = self.pool.get('account.analytic.journal') obj_acc_chart_template = self.pool.get('account.chart.template') obj_acc_journal_view = self.pool.get('account.journal.view') mod_obj = self.pool.get('ir.model.data') obj_sequence = self.pool.get('ir.sequence') property_obj = self.pool.get('ir.property') fields_obj = self.pool.get('ir.model.fields') obj_tax_fp = self.pool.get('account.fiscal.position.tax') obj_ac_fp = self.pool.get('account.fiscal.position.account') | 9a49fa6ea8eeb5fffa43df689d97428725412e52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9a49fa6ea8eeb5fffa43df689d97428725412e52/installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1425,
7463,
67,
11563,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
8981,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
1081,
67,
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,
2103,
67,
1425,
7463,
67,
11563,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
8981,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
1081,
67,
8... |
self.msg(0, _("There were errors in Metapost code:")) self.msg(0, line.rstrip()) | self.env.msg(0, _("There were errors in Metapost code:")) self.env.msg(0, line.rstrip()) | def run (self): self.env.msg(0, "running Metapost on %s.mp..." % self.base) self.env.execute(self.cmd) | 91fc46b2570410ffe13d56dee35f72400bb6411d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/91fc46b2570410ffe13d56dee35f72400bb6411d/mpost.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
365,
18,
3074,
18,
3576,
12,
20,
16,
315,
8704,
21604,
438,
669,
603,
738,
87,
18,
1291,
7070,
738,
365,
18,
1969,
13,
365,
18,
3074,
18,
8837,
12,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
365,
18,
3074,
18,
3576,
12,
20,
16,
315,
8704,
21604,
438,
669,
603,
738,
87,
18,
1291,
7070,
738,
365,
18,
1969,
13,
365,
18,
3074,
18,
8837,
12,
2890,
18,
... |
if progress_callback: progress_callback('epydoc.js') | self._files_written += 1 log.progress(self._files_written/self._num_files, 'epydoc.js') | def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory. | fab1255010a52ee17b13b50d1696c13e716be512 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/fab1255010a52ee17b13b50d1696c13e716be512/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
path_to_icon = uri.Path('%s/' % name).resolve(path_to_icon) | path_to_icon = Path('%s/' % name).resolve(path_to_icon) | def browse_namespace(self, icon_size, sortby='title_or_name', sortorder='up', batchstart='0', batchsize='20', query={}, results=None): context = get_context() request = context.request | c6b89346db4edd14edfe6dc10c917a6a9c494cd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/c6b89346db4edd14edfe6dc10c917a6a9c494cd5/Folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4937,
12,
2890,
16,
4126,
67,
1467,
16,
1524,
1637,
2218,
2649,
67,
280,
67,
529,
2187,
1524,
1019,
2218,
416,
2187,
2581,
1937,
2218,
20,
2187,
2581,
1467,
2218,
3462,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4937,
12,
2890,
16,
4126,
67,
1467,
16,
1524,
1637,
2218,
2649,
67,
280,
67,
529,
2187,
1524,
1019,
2218,
416,
2187,
2581,
1937,
2218,
20,
2187,
2581,
1467,
2218,
3462,
2187,
... |
def read_inchannel(self, expected): | def read(self, expected): """ Reads expected bytes from this socket An Exception is raised if expected bytes aren't read before READ_TIMEOUT is reached. """ | def read_inchannel(self, expected): results = "" start = time.time() while 1: if self.select_readable(): recvd_bytes = self.socket.recv(expected - len(results)) if len(recvd_bytes): results += recvd_bytes if len(results) == expected: return results else: stop = time.time() if (stop - start) > READ_TIMEOUT: raise Exception("Got %d bytes but %d bytes were written." % (len(results), expected)) | 47b5453154eff0cd21ed0bf939929d531c0bc71f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/47b5453154eff0cd21ed0bf939929d531c0bc71f/test_select_new.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2665,
4672,
3536,
29185,
2665,
1731,
628,
333,
2987,
225,
1922,
1185,
353,
11531,
309,
2665,
1731,
11526,
1404,
855,
1865,
10746,
67,
9503,
353,
8675,
18,
3536,
1686,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
2665,
4672,
3536,
29185,
2665,
1731,
628,
333,
2987,
225,
1922,
1185,
353,
11531,
309,
2665,
1731,
11526,
1404,
855,
1865,
10746,
67,
9503,
353,
8675,
18,
3536,
1686,
... |
if child_cls is not None and (True if child_cls is [c for c in [User]] else False): | if child_cls is not None and child_cls is User: | def _parse_element(self, element, *args, **kwargs): for child in element: child_cls = self._xml_application.get_element(child.tag) if child_cls is not None and (True if child_cls is [c for c in [User]] else False): try: list.append(self, child_cls.from_element(child, *args, **kwargs)) except ValidationError: pass | 15fe0700dabe8824d207729fba65b9c17692c40c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/15fe0700dabe8824d207729fba65b9c17692c40c/conference.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
2956,
12,
2890,
16,
930,
16,
380,
1968,
16,
2826,
4333,
4672,
364,
1151,
316,
930,
30,
1151,
67,
6429,
273,
365,
6315,
2902,
67,
3685,
18,
588,
67,
2956,
12,
3624,
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,
389,
2670,
67,
2956,
12,
2890,
16,
930,
16,
380,
1968,
16,
2826,
4333,
4672,
364,
1151,
316,
930,
30,
1151,
67,
6429,
273,
365,
6315,
2902,
67,
3685,
18,
588,
67,
2956,
12,
3624,
18,... |
file.Write(" Validate%s(this, arg_count%s);\n" % | file.Write(" Validate%s(this, immediate_data_size%s);\n" % | def WriteImmediateServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "parse_error::ParseError GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " unsigned int arg_count, const gles2::%s& c) {\n" % func.name) last_arg = func.GetLastOriginalArg() | 3975916c448229deb7fa73586d80d6aebe8671fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/3975916c448229deb7fa73586d80d6aebe8671fa/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
2670,
67,
1636,
2866,
21004,
611,
11386,
22,
7975,
28... |
def fromReference(klass, reference, model): | def fromReference(klass, reference, parent, model): | def fromReference(klass, reference, model): """ Instantiates a property from a "virtual" OME XML schema reference. """ instance = klass(reference, model) instance.isReference = True return instance | f7dfca6f480dea7bcef9a6d2f82aea89291574e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1844/f7dfca6f480dea7bcef9a6d2f82aea89291574e1/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
2404,
12,
22626,
16,
2114,
16,
982,
16,
938,
4672,
3536,
11190,
16020,
279,
1272,
628,
279,
315,
12384,
6,
531,
958,
3167,
1963,
2114,
18,
3536,
791,
273,
7352,
12,
6180,
16,
938,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
2404,
12,
22626,
16,
2114,
16,
982,
16,
938,
4672,
3536,
11190,
16020,
279,
1272,
628,
279,
315,
12384,
6,
531,
958,
3167,
1963,
2114,
18,
3536,
791,
273,
7352,
12,
6180,
16,
938,... |
sgmllib.charref = re.compile('& | sgmllib.charref = re.compile('& if sgmllib.endbracket.search(' <').start(0): class EndBracketMatch: endbracket = re.compile('''([^'"<>]|"[^"]*"(?=>|/|\s|\w+=)|'[^']*'(?=>|/|\s|\w+=))*(?=[<>])|.*?(?=[<>])''') def search(self,string,index=0): self.match = self.endbracket.match(string,index) if self.match: return self def start(self,n): return self.match.end(n) sgmllib.endbracket = EndBracketMatch() | def _xmlescape(data): data = data.replace('&', '&') data = data.replace('>', '>') data = data.replace('<', '<') return data | 44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2902,
6939,
12,
892,
4672,
501,
273,
501,
18,
2079,
2668,
10,
2187,
5183,
931,
4359,
13,
501,
273,
501,
18,
2079,
2668,
1870,
16,
5183,
4521,
4359,
13,
501,
273,
501,
18,
2079,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2902,
6939,
12,
892,
4672,
501,
273,
501,
18,
2079,
2668,
10,
2187,
5183,
931,
4359,
13,
501,
273,
501,
18,
2079,
2668,
1870,
16,
5183,
4521,
4359,
13,
501,
273,
501,
18,
2079,
... |
def check_cdata_content(self): | def test_cdata_content(self): | def check_cdata_content(self): s = """<script> <!-- not a comment --> ¬-an-entity-ref; </script>""" self._run_check(s, [ ("starttag", "script", []), ("data", " <!-- not a comment --> ¬-an-entity-ref; "), ("endtag", "script"), ]) s = """<script> <not a='start tag'> </script>""" self._run_check(s, [ ("starttag", "script", []), ("data", " <not a='start tag'> "), ("endtag", "script"), ]) | b7ef883bf29270d1acf9d78a6aaca78b06a69944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b7ef883bf29270d1acf9d78a6aaca78b06a69944/test_htmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
892,
67,
1745,
12,
2890,
4672,
272,
273,
3536,
32,
4263,
34,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
7765,
4263,
2984,
3660,
365,
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,
1842,
67,
71,
892,
67,
1745,
12,
2890,
4672,
272,
273,
3536,
32,
4263,
34,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
7765,
4263,
2984,
3660,
365,
6... |
SyntaxError: assignment to None (<doctest test.test_syntax[16]>, line 1) | SyntaxError: cannot assign to None (<doctest test.test_syntax[16]>, line 1) | >>> def f(x, None): | 2c98faada6f268d32c4031f7d09d9d5e6a2f46e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/2c98faada6f268d32c4031f7d09d9d5e6a2f46e3/test_syntax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
16,
599,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
16,
599,
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,
... |
self.params = xall | self.params = xall.copy() | def iterfunct(myfunct, p, iter, fnorm, functkw=None, parinfo=None, quiet=0, dof=None, [iterkw keywords here]) | 82ed396e8da41faedb429bcb70a18fa629ec934e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/82ed396e8da41faedb429bcb70a18fa629ec934e/mpfit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
74,
6931,
12,
4811,
74,
6931,
16,
293,
16,
1400,
16,
2295,
535,
16,
12882,
9987,
33,
7036,
16,
779,
1376,
33,
7036,
16,
10902,
33,
20,
16,
741,
74,
33,
7036,
16,
306,
2165,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
74,
6931,
12,
4811,
74,
6931,
16,
293,
16,
1400,
16,
2295,
535,
16,
12882,
9987,
33,
7036,
16,
779,
1376,
33,
7036,
16,
10902,
33,
20,
16,
741,
74,
33,
7036,
16,
306,
2165,
9... |
ref_doc = _parse_l10n_doc(name, reference.read(name)) if not ref_doc.expected_encoding: results.append({"type": "unexpected_encoding", "filename": name, "expected_encoding": ref_doc.suitable_encoding, "encoding": ref_doc.found_encoding}) | ref_doc = _parse_l10n_doc(name, reference.read(name), no_encoding=True) | def _compare_packages(reference, target, ref_base=None): "Compares two L10n-compatible packages to one another." ref_files = reference.get_file_data() tar_files = target.get_file_data() results = [] total_entities = 0 if isinstance(ref_base, str): ref_base = ref_base.lstrip("/") l10n_docs = ("dtd", "properties", "xhtml", "ini", "inc") parsable_docs = ("dtd", "properties") for name, file_data in ref_files.items(): entity_count = 0 # Skip directory entries. if name.endswith("/"): # pragma: no cover continue # Ignore files not considered reference files. if ref_base is not None and not name.startswith(ref_base): continue extension = name.split(".")[-1] if extension not in l10n_docs: continue parsable = extension in parsable_docs if parsable: ref_doc = _parse_l10n_doc(name, reference.read(name)) if not ref_doc.expected_encoding: results.append({"type": "unexpected_encoding", "filename": name, "expected_encoding": ref_doc.suitable_encoding, "encoding": ref_doc.found_encoding}) else: ref_doc = () tar_name = name.replace("en-US", target.locale_name) if tar_name not in tar_files: results.append({"type": "missing_files", "entities": len(ref_doc), "filename": tar_name}) continue if not parsable: continue tar_doc = _parse_l10n_doc(tar_name, target.read(tar_name)) if not tar_doc.expected_encoding: results.append({"type": "unexpected_encoding", "filename": tar_name, "expected_encoding": tar_doc.suitable_encoding, "encoding": tar_doc.found_encoding}) missing_entities = [] unchanged_entities = [] for rname, rvalue in ref_doc.entities.items(): entity_count += 1 if rname not in tar_doc.entities: missing_entities.append(rname) continue if rvalue == tar_doc.entities[rname] and \ len(rvalue) > L10N_LENGTH_THRESHOLD and \ not fnmatch.fnmatch(rvalue, "http*://*"): unchanged_entities.append(rname) continue if missing_entities: results.append({"type": "missing_entities", "entities": len(missing_entities), "filename": name, "missing_entities": missing_entities}) if unchanged_entities: results.append({"type": "unchanged_entity", "entities": len(unchanged_entities), "filename": name, "unchanged_entities": unchanged_entities}) results.append({"type": "file_entity_count", "filename": name, "entities": entity_count}) total_entities += entity_count results.append({"type": "total_entities", "entities": total_entities}) return results | 80ef7a0ae7b4cedb1b78b781438f874feaa0c584 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12985/80ef7a0ae7b4cedb1b78b781438f874feaa0c584/l10ncompleteness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9877,
67,
10308,
12,
6180,
16,
1018,
16,
1278,
67,
1969,
33,
7036,
4672,
315,
19199,
2795,
511,
2163,
82,
17,
10943,
5907,
358,
1245,
4042,
1199,
225,
1278,
67,
2354,
273,
2114,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9877,
67,
10308,
12,
6180,
16,
1018,
16,
1278,
67,
1969,
33,
7036,
4672,
315,
19199,
2795,
511,
2163,
82,
17,
10943,
5907,
358,
1245,
4042,
1199,
225,
1278,
67,
2354,
273,
2114,
1... |
return cls.strptime(rfctime, '%a, %d %b %Y %H:%M:%S %Z').strip() | return cls.strptime(rfctime.strip(), '%a, %d %b %Y %H:%M:%S %Z') | def fromRfc(cls, rfctime): return cls.strptime(rfctime, '%a, %d %b %Y %H:%M:%S %Z').strip() | 133ce16e305a749397f9a21b3cae919a0c63b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/133ce16e305a749397f9a21b3cae919a0c63b6eb/utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
28178,
12,
6429,
16,
9075,
21261,
4672,
327,
2028,
18,
701,
10650,
12,
5809,
21261,
16,
1995,
69,
16,
738,
72,
738,
70,
738,
61,
738,
44,
5319,
49,
5319,
55,
738,
62,
16063,
640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
28178,
12,
6429,
16,
9075,
21261,
4672,
327,
2028,
18,
701,
10650,
12,
5809,
21261,
16,
1995,
69,
16,
738,
72,
738,
70,
738,
61,
738,
44,
5319,
49,
5319,
55,
738,
62,
16063,
640... |
base = os.path.dirname(__file__) | base = os.path.dirname(os.path.abspath(__file__)) | def _relativitize(path, script, relative_paths): if path == script: raise AssertionError("path == script") common = os.path.dirname(os.path.commonprefix([path, script])) if (common == relative_paths or common.startswith(os.path.join(relative_paths, '')) ): return "join(base, %r)" % _relative_path(common, path) else: return repr(path) | 8b23563da15b39d39530c7964f99c155e6f69a76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11359/8b23563da15b39d39530c7964f99c155e6f69a76/easy_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2878,
270,
427,
305,
554,
12,
803,
16,
2728,
16,
3632,
67,
4481,
4672,
309,
589,
422,
2728,
30,
1002,
12068,
2932,
803,
422,
2728,
7923,
2975,
273,
1140,
18,
803,
18,
12287,
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,
2878,
270,
427,
305,
554,
12,
803,
16,
2728,
16,
3632,
67,
4481,
4672,
309,
589,
422,
2728,
30,
1002,
12068,
2932,
803,
422,
2728,
7923,
2975,
273,
1140,
18,
803,
18,
12287,
12,
... |
if (isinstance (filename, str)): new_base = base.decode(TESTFN_ENCODING) file_list = [f.decode(TESTFN_ENCODING) for f in os.listdir(path)] else: new_base = base file_list = os.listdir(path) | if isinstance(base, str): base = base.decode(TESTFN_ENCODING) file_list = os.listdir(path) if file_list and isinstance(file_list[0], str): file_list = [f.decode(TESTFN_ENCODING) for f in file_list] | def _do_single(self, filename): self.failUnless(os.path.exists(filename)) self.failUnless(os.path.isfile(filename)) self.failUnless(os.path.exists(os.path.abspath(filename))) self.failUnless(os.path.isfile(os.path.abspath(filename))) os.chmod(filename, 0777) os.utime(filename, None) os.utime(filename, (time.time(), time.time())) # Copy/rename etc tests using the same filename self._do_copyish(filename, filename) # Filename should appear in glob output self.failUnless( os.path.abspath(filename)==os.path.abspath(glob.glob(filename)[0])) # basename should appear in listdir. path, base = os.path.split(os.path.abspath(filename)) if (isinstance (filename, str)): new_base = base.decode(TESTFN_ENCODING) file_list = [f.decode(TESTFN_ENCODING) for f in os.listdir(path)] else: new_base = base file_list = os.listdir(path) | 5f3109e85605c9c0c9e857ab81d8c558055d606b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5f3109e85605c9c0c9e857ab81d8c558055d606b/test_unicode_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
7526,
12,
2890,
16,
1544,
4672,
365,
18,
6870,
984,
2656,
12,
538,
18,
803,
18,
1808,
12,
3459,
3719,
365,
18,
6870,
984,
2656,
12,
538,
18,
803,
18,
291,
768,
12,
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,
2896,
67,
7526,
12,
2890,
16,
1544,
4672,
365,
18,
6870,
984,
2656,
12,
538,
18,
803,
18,
1808,
12,
3459,
3719,
365,
18,
6870,
984,
2656,
12,
538,
18,
803,
18,
291,
768,
12,
3... |
furthestBlock.appendChild(clone) | def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 afeElement = self.tree.elementInActiveFormattingElements( token["name"]) if not afeElement or (afeElement in self.tree.openElements and not self.tree.elementInScope(afeElement.name)): self.parser.parseError("adoption-agency-1.1", {"name": token["name"]}) return | b77205d5a194b35f9e0d33752c3f0c063ccde4a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/b77205d5a194b35f9e0d33752c3f0c063ccde4a3/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
1147,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
1062,
2207,
5591,
18,
23770,
18197,
18,
3341,
19,
15115,
19,
4875,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
1147,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
1062,
2207,
5591,
18,
23770,
18197,
18,
3341,
19,
15115,
19,
4875,
17,
... | |
truc.add_latex_line("% This file is automatically generated by phystricks") truc.add_latex_line("% see the documentation ") truc.add_latex_line("% http://student.ulb.ac.be/~lclaesse/phystricks-doc.pdf ") truc.add_latex_line("% See the projects phystricks and phystricks-doc at ") truc.add_latex_line("% http://gitorious.org/~moky\n") | position = "ENTETE" truc.add_latex_line("% This file is automatically generated by phystricks",position) truc.add_latex_line("% See the documentation ",position) truc.add_latex_line("% http://student.ulb.ac.be/~lclaesse/phystricks-doc.pdf ",position) truc.add_latex_line("% and the projects phystricks and phystricks-doc at ",position) truc.add_latex_line("% http://gitorious.org/~moky\n",position) class Separator(object): def __init__(title,number): self.title = title self.number = number self.latex_code=[] self.add_latex_line("%"+title) def add_latex_line(self,line): self.latex_code.append(line+"\n") def code(self): return "".join(self.latex_code) def __cmp__(self,other): if self.number < other.number : return -1 if self.number == other.number : raise "Two separators should not have the same number, you're trying to make me crazy." if self.number > other.number : return 1 | def add_latex_line_entete(truc): truc.add_latex_line("% This file is automatically generated by phystricks") truc.add_latex_line("% see the documentation ") truc.add_latex_line("% http://student.ulb.ac.be/~lclaesse/phystricks-doc.pdf ") truc.add_latex_line("% See the projects phystricks and phystricks-doc at ") truc.add_latex_line("% http://gitorious.org/~moky\n") | 9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5111/9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
26264,
67,
1369,
67,
319,
12865,
12,
313,
5286,
4672,
1754,
273,
315,
1157,
1448,
1448,
6,
433,
5286,
18,
1289,
67,
26264,
67,
1369,
27188,
1220,
585,
353,
6635,
4374,
635,
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,
527,
67,
26264,
67,
1369,
67,
319,
12865,
12,
313,
5286,
4672,
1754,
273,
315,
1157,
1448,
1448,
6,
433,
5286,
18,
1289,
67,
26264,
67,
1369,
27188,
1220,
585,
353,
6635,
4374,
635,
18... |
if not v.lower() in states: | if v.lower() not in self._boolean_states: | def getboolean(self, section, option): states = {'1': 1, 'yes': 1, 'true': 1, 'on': 1, '0': 0, 'no': 0, 'false': 0, 'off': 0} v = self.get(section, option) if not v.lower() in states: raise ValueError, 'Not a boolean: %s' % v return states[v.lower()] | c2ff9051d2dace414d5ec928fa3e41edd9297992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c2ff9051d2dace414d5ec928fa3e41edd9297992/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6494,
12,
2890,
16,
2442,
16,
1456,
4672,
5493,
273,
13666,
21,
4278,
404,
16,
296,
9707,
4278,
404,
16,
296,
3767,
4278,
404,
16,
296,
265,
4278,
404,
16,
296,
20,
4278,
374,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6494,
12,
2890,
16,
2442,
16,
1456,
4672,
5493,
273,
13666,
21,
4278,
404,
16,
296,
9707,
4278,
404,
16,
296,
3767,
4278,
404,
16,
296,
265,
4278,
404,
16,
296,
20,
4278,
374,
1... |
"""EmptyQuery main execution | """PingQuery main execution. | def Exec(self, query): """EmptyQuery main execution | 0bc8432bfe956bb8fa4e624a6850e3d6fa5077a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/0bc8432bfe956bb8fa4e624a6850e3d6fa5077a3/querylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
843,
4672,
3536,
1921,
1138,
2774,
4588,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
843,
4672,
3536,
1921,
1138,
2774,
4588,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
yield "".join(web_paths(tree, removed)) | yield web_paths(tree, removed) | def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | 6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
67,
492,
67,
2620,
12,
4811,
2890,
16,
1241,
16,
2151,
16,
3478,
4672,
3536,
4500,
1245,
1027,
434,
4927,
1014,
8395,
1234,
273,
276,
10052,
18,
6939,
12,
4099,
18,
2150,
13,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
67,
492,
67,
2620,
12,
4811,
2890,
16,
1241,
16,
2151,
16,
3478,
4672,
3536,
4500,
1245,
1027,
434,
4927,
1014,
8395,
1234,
273,
276,
10052,
18,
6939,
12,
4099,
18,
2150,
13,
268... |
return strftime(self.format, (item,)*8+(0,)).capitalize() | t = (2001, 1, item+1, 12, 0, 0, item, item+1, 0) return strftime(self.format, t).capitalize() | def __getitem__(self, item): if isinstance(item, int): if item < 0: item += self.len if not 0 <= item < self.len: raise IndexError, "out of range" return strftime(self.format, (item,)*8+(0,)).capitalize() elif isinstance(item, type(slice(0))): return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop) | 321068ebab3c115f1dc291c24aa134794de6eaa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/321068ebab3c115f1dc291c24aa134794de6eaa5/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
761,
4672,
309,
1549,
12,
1726,
16,
509,
4672,
309,
761,
411,
374,
30,
761,
1011,
365,
18,
1897,
309,
486,
374,
1648,
761,
411,
365,
18,
1897,
30,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31571,
972,
12,
2890,
16,
761,
4672,
309,
1549,
12,
1726,
16,
509,
4672,
309,
761,
411,
374,
30,
761,
1011,
365,
18,
1897,
309,
486,
374,
1648,
761,
411,
365,
18,
1897,
30,
100... |
else | else: | def __init__(data = None) if data == None: quickfix.BoolField.__init__(self, 208) else quickfix.BoolField.__init__(self, 208, 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,
7464,
974,
16186,
2738,
972,
12,
2890,
16,
4200,
28,
13,
469,
30,
9549,
904,
18,
7464,
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,
7464,
974,
16186,
2738,
972,
12,
2890,
16,
4200,
28,
13,
469,
30,
9549,
904,
18,
7464,
974,
16186,
2738... |
(CommandButtonProcessor, "IDC_ABOUT_BTN", ShowAbout, ()), | (CommandButtonProcessor, "IDC_BUT_ABOUT", ShowAbout, ()), | def WizardTrainer(mgr, config, progress): import os, manager, train bayes_base = os.path.join(mgr.data_directory, "$sbwiz$default_bayes_database") mdb_base = os.path.join(mgr.data_directory, "$sbwiz$default_message_database") fnames = [] for ext in ".pck", ".db": fnames.append(bayes_base+ext) fnames.append(mdb_base+ext) config.wizard.temp_training_names = fnames # determine which db manager to use, and create it. ManagerClass = manager.GetStorageManagerClass() db_manager = ManagerClass(bayes_base, mdb_base) classifier_data = manager.ClassifierData(db_manager, mgr) classifier_data.InitNew() rescore = config.training.rescore if rescore: stages = ("Training", .3), ("Saving", .1), ("Scoring", .6) else: stages = ("Training", .9), ("Saving", .1) progress.set_stages(stages) print "About to train with", config.training.spam_folder_ids train.real_trainer(classifier_data, config, mgr.message_store, progress) # xxx - more hacks - we should pass the classifier data in. orig_classifier_data = mgr.classifier_data mgr.classifier_data = classifier_data # temporary try: progress.tick() if rescore: # Setup the "filter now" config to what we want. now_config = config.filter_now now_config.only_unread = False now_config.only_unseen = False now_config.action_all = False now_config.folder_ids = config.training.ham_folder_ids + \ config.training.spam_folder_ids now_config.include_sub = config.training.ham_include_sub or \ config.training.spam_include_sub import filter filter.filterer(mgr, config, progress) bayes = classifier_data.bayes progress.set_status("Completed training with %d spam and %d good messages" \ % (bayes.nspam, bayes.nham)) finally: mgr.wizard_classifier_data = classifier_data mgr.classifier_data = orig_classifier_data | 914a06fb3400ae71d7b3c9611cc3f1975b951c3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/914a06fb3400ae71d7b3c9611cc3f1975b951c3c/dialog_map.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
13412,
1609,
14522,
12,
13552,
16,
642,
16,
4007,
4672,
1930,
1140,
16,
3301,
16,
4691,
324,
528,
281,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
13412,
1609,
14522,
12,
13552,
16,
642,
16,
4007,
4672,
1930,
1140,
16,
3301,
16,
4691,
324,
528,
281,
67,
1969,
273,
1140,
18,
803,
18,
5701,
12,
13552,
18,
892,
67,
5149,
16,
... |
self.raise_(hg.RepoError(_("push failed: %s") % r)) | self.raise_(repo.RepoError(_("push failed: %s") % r)) | def unbundle(self, cg, heads, source): d = self.call("unbundle", heads=' '.join(map(hex, heads))) if d: # remote may send "unsynced changes" self.raise_(repo.RepoError(_("push refused: %s") % d)) | 4e6a44ffe101e7101f3acbf6c54f6962ecd6bb04 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/4e6a44ffe101e7101f3acbf6c54f6962ecd6bb04/sshrepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
9991,
12,
2890,
16,
14947,
16,
22742,
16,
1084,
4672,
302,
273,
365,
18,
1991,
2932,
318,
9991,
3113,
22742,
2218,
2418,
5701,
12,
1458,
12,
7118,
16,
22742,
20349,
309,
302,
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,
640,
9991,
12,
2890,
16,
14947,
16,
22742,
16,
1084,
4672,
302,
273,
365,
18,
1991,
2932,
318,
9991,
3113,
22742,
2218,
2418,
5701,
12,
1458,
12,
7118,
16,
22742,
20349,
309,
302,
30,
... |
itemToSelect = item if master.itsItem.isDeleted() or not item.isDeleted(): master = itemToSelect = event.getMaster().itsItem | def SetAttributeValue(self, item, attributeName, value): """ Set the value of the attribute given by the value. """ assert value != RecurrenceAttributeEditor.customIndex # Changing the recurrence period on a non-master item could delete # this very 'item'; we'll try to select the "same" occurrence # afterwards ... assert pim.has_stamp(item, pim.EventStamp) event = pim.EventStamp(item) master = event.getMaster() recurrenceID = event.recurrenceID or event.startTime if value == RecurrenceAttributeEditor.onceIndex: event.removeRecurrence() else: oldIndex = self.GetAttributeValue(event, attributeName) # If nothing has changed, return. This avoids building # a whole new ruleset, and the teardown of occurrences, # as in Bug 5526 if oldIndex == value: return interval = 1 if value == RecurrenceAttributeEditor.biweeklyIndex: interval = 2 value = RecurrenceAttributeEditor.weeklyIndex duFreq = Recurrence.toDateUtilFrequency(\ RecurrenceAttributeEditor.menuFrequencies[value]) rruleset = Recurrence.RecurrenceRuleSet(None, itsView=item.itsView) rruleset.setRuleFromDateUtil(Recurrence.dateutil.rrule.rrule(duFreq, interval=interval)) until = event.getLastUntil() if until is not None: rruleset.rrules.first().until = until elif hasattr(rruleset.rrules.first(), 'until'): del rruleset.rrules.first().until rruleset.rrules.first().untilIsDate = True event.changeThisAndFuture(pim.EventStamp.rruleset.name, rruleset) | 11b8f583abddac7026bb8148cc6cfa8a4ea1070b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/11b8f583abddac7026bb8148cc6cfa8a4ea1070b/detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
1815,
460,
480,
868,
17131,
1499,
6946,
18,
3662,
1016,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
1815,
460,
480,
868,
17131,
1499,
6946,
18,
3662,
1016,
468... | |
def do_browse(self, event = None): | def do_browse(self, event = None): | def do_browse(self, event = None): command_line = self.m_entry_commandline.GetValue() (_path, filename, args) = rpdb2.split_command_line_path_filename_args(command_line) _abs_path = os.path.abspath(_path) | f445946d69c20837b9127ac9da3cdfea0e11cc74 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9402/f445946d69c20837b9127ac9da3cdfea0e11cc74/winpdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
25731,
12,
2890,
16,
871,
273,
599,
4672,
1296,
67,
1369,
273,
365,
18,
81,
67,
4099,
67,
3076,
1369,
18,
967,
620,
1435,
261,
67,
803,
16,
1544,
16,
833,
13,
273,
8715,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
25731,
12,
2890,
16,
871,
273,
599,
4672,
1296,
67,
1369,
273,
365,
18,
81,
67,
4099,
67,
3076,
1369,
18,
967,
620,
1435,
261,
67,
803,
16,
1544,
16,
833,
13,
273,
8715,
1... |
self.save(sage.misc.misc.SAGE_TMP + '/test.png', | self.save(DOCTEST_MODE_FILE, | sage: def maple_leaf(t): | a871eb6e7b9b9c77e30c4e96bcbc3975003ca111 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a871eb6e7b9b9c77e30c4e96bcbc3975003ca111/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
852,
298,
67,
12070,
12,
88,
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,
272,
410,
30,
1652,
852,
298,
67,
12070,
12,
88,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def get_hit(self, hit_id): | def get_hit(self, hit_id, response_groups=None): | def get_hit(self, hit_id): """ """ params = {'HITId' : hit_id,} return self._process_request('GetHIT', params, [('HIT', HIT),]) | ccfdc9ec5c0cd1044df8085ab2d2c98d4f4618d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/ccfdc9ec5c0cd1044df8085ab2d2c98d4f4618d0/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15989,
12,
2890,
16,
6800,
67,
350,
16,
766,
67,
4650,
33,
7036,
4672,
3536,
3536,
859,
273,
13666,
17222,
548,
11,
294,
6800,
67,
350,
29531,
327,
365,
6315,
2567,
67,
2293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
15989,
12,
2890,
16,
6800,
67,
350,
16,
766,
67,
4650,
33,
7036,
4672,
3536,
3536,
859,
273,
13666,
17222,
548,
11,
294,
6800,
67,
350,
29531,
327,
365,
6315,
2567,
67,
2293,
... |
- ``l`` - length of variable list (default:None = r\*c) | - ``l`` - length of variable list (default: ``None`` = r\*c) | def field_polynomials(self, name, i, l=None): """ Return list of field polynomials for a given round - given by its number `i` - and name. INPUT: - ``name`` - variable name - ``i`` - round number - ``l`` - length of variable list (default:None = r\*c) EXAMPLE:: sage: sr = mq.SR(3, 1, 1, 8, gf2=True) sage: sr.field_polynomials('x', 2) [x200^2 + x200, x201^2 + x201, x202^2 + x202, x203^2 + x203, x204^2 + x204, x205^2 + x205, x206^2 + x206, x207^2 + x207] :: sage: sr = mq.SR(3, 1, 1, 8, gf2=True, polybori=True) sage: sr.field_polynomials('x', 2) [] """ r = self._r c = self._c e = self._e n = self._n | 64b5e0e9186de5235119791631990329cc9aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/64b5e0e9186de5235119791631990329cc9aecfa/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
67,
3915,
13602,
87,
12,
2890,
16,
508,
16,
277,
16,
328,
33,
7036,
4672,
3536,
2000,
666,
434,
652,
16991,
87,
364,
279,
864,
3643,
300,
864,
635,
2097,
1300,
1375,
77,
68,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
67,
3915,
13602,
87,
12,
2890,
16,
508,
16,
277,
16,
328,
33,
7036,
4672,
3536,
2000,
666,
434,
652,
16991,
87,
364,
279,
864,
3643,
300,
864,
635,
2097,
1300,
1375,
77,
68,
300... |
self.win.assy.update_parts() | if not DEBUG_BUG_2829: self.win.assy.update_parts() | def _singletLeftUp_joinDnaStrands(self, s1, s2, open_bond1, open_bond2 ): """ Only to be called from self.singletLeftUp """ #This was split out of self.singletLeftUp() # Ok to DND 3' onto 5' or 5' onto 3' . We already check the #if condition in self if (open_bond1.isThreePrimeOpenBond() and \ open_bond2.isFivePrimeOpenBond()) or \ (open_bond1.isFivePrimeOpenBond() and \ open_bond2.isThreePrimeOpenBond()): a1 = open_bond1.other(s1) a2 = open_bond2.other(s2) # We rely on merge() to check that mols are not the same. # merge also results in making the strand colors the same. #The following fixes bug 2770 #Set the color of the whole dna strandGroup to the color of the #strand, whose bondpoint, is dropped over to the bondboint of the #other strandchunk (thus joining the two strands together into #a single dna strand group) - Ninad 2008-04-09 color = a1.molecule.color strandGroup1 = a1.molecule.parent_node_of_class(self.win.assy.DnaStrand) #Temporary fix for bug 2829 that Damian reported. #Bruce is planning to fix the underlying bug in the dna updater #code. Once its fixed, The following block of code under #"if DEBUG_BUG_2829" can be deleted -- Ninad 2008-05-01 DEBUG_BUG_2829 = True if DEBUG_BUG_2829: strandGroup2 = a2.molecule.parent_node_of_class( self.win.assy.DnaStrand) if strandGroup2 is not None: strandChunkList = strandGroup2.getStrandChunks() for c in strandChunkList: if hasattr(c, 'invalidate_ladder'): c.invalidate_ladder() if not DEBUG_BUG_2829: #merging molecules is not required if you invalidate the ladders #in DEBUG_BUG_2829 block a1.molecule.merge(a2.molecule) # ... now bond the highlighted singlet <s2> to the first # singlet <s1> self.bond_singlets(s1, s2) #Run the dna updater -- important to do it otherwise it won't update #the whole strand group color self.win.assy.update_parts() self.set_cmdname('Create Bond') if strandGroup1 is not None and color is not None: strandGroup1.setStrandColor(color) self.o.gl_update() if self.command.propMgr: self.command.propMgr.updateMessage() self.only_highlight_singlets = False return | 93747eca0747f23c803bd1a474ef1d76d9c79ab2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/93747eca0747f23c803bd1a474ef1d76d9c79ab2/BuildAtoms_GraphicsMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2470,
1810,
3910,
1211,
67,
5701,
40,
6582,
1585,
5708,
12,
2890,
16,
272,
21,
16,
272,
22,
16,
1696,
67,
26425,
21,
16,
1696,
67,
26425,
22,
262,
30,
3536,
5098,
358,
506,
2566... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2470,
1810,
3910,
1211,
67,
5701,
40,
6582,
1585,
5708,
12,
2890,
16,
272,
21,
16,
272,
22,
16,
1696,
67,
26425,
21,
16,
1696,
67,
26425,
22,
262,
30,
3536,
5098,
358,
506,
2566... |
sage: cmp(SR(3), x) | sage: cmp(SR(3), x) | def __cmp__(self, right): """ Compares self and right. | 2b6ad56bcf2516ea032c64349bb279c9ac313cda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2b6ad56bcf2516ea032c64349bb279c9ac313cda/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5427,
4807,
365,
471,
2145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5427,
4807,
365,
471,
2145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
options = ["rounded corners=0.8pt*%s" % self.transform([inkex.unittouu(inset)])] return ('rect',(x,y,width+x,height+y)),options | options = ["rounded corners=%s" % self.transform([float(inset)])] return ('rect',(x,y,width,height)),options | def get_shape_data(self, node): """Extract shape data from node""" options = [] if node.tag == inkex.addNS('rect','svg'): inset = node.get('rx',0) or node.get('ry',0) # TODO: ry <> rx is not supported by TikZ. Convert to path? x = float(node.get('x',0)) y = float(node.get('y',0)) # map from svg to tikz width = float(node.get('width',0)) height = float(node.get('height',0)) if (width==0.0 or height==0.0): print "None" return None, None if inset: # TODO: corner radius is not scaled by PGF. Quick ugly hack. options = ["rounded corners=0.8pt*%s" % self.transform([inkex.unittouu(inset)])] return ('rect',(x,y,width+x,height+y)),options elif node.tag in [inkex.addNS('polyline','svg'), inkex.addNS('polygon','svg'), ]: points = node.get('points','').replace(',',' ') points = map(float,points.split()) | 3658d6ad73b4ed0373279876988d97b62cc2f4fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7584/3658d6ad73b4ed0373279876988d97b62cc2f4fc/tikz_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4867,
67,
892,
12,
2890,
16,
756,
4672,
3536,
4976,
2179,
501,
628,
756,
8395,
702,
273,
5378,
309,
756,
18,
2692,
422,
316,
79,
338,
18,
1289,
3156,
2668,
2607,
17023,
11451,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4867,
67,
892,
12,
2890,
16,
756,
4672,
3536,
4976,
2179,
501,
628,
756,
8395,
702,
273,
5378,
309,
756,
18,
2692,
422,
316,
79,
338,
18,
1289,
3156,
2668,
2607,
17023,
11451,... |
or field['name'] == 'owner': | or field['name'] in ('owner', 'reporter'): | def _render_view(self, req, db, milestone): milestone_groups = [] available_groups = [] component_group_available = False ticket_fields = TicketSystem(self.env).get_ticket_fields() | b7fae30d9b76fa1754c1958388b3bf9e7bf32272 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/b7fae30d9b76fa1754c1958388b3bf9e7bf32272/roadmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
28664,
4672,
28664,
67,
4650,
273,
5378,
2319,
67,
4650,
273,
5378,
1794,
67,
1655,
67,
5699,
273,
1083,
9322,
67,
2821,
273,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
28664,
4672,
28664,
67,
4650,
273,
5378,
2319,
67,
4650,
273,
5378,
1794,
67,
1655,
67,
5699,
273,
1083,
9322,
67,
2821,
273,
220... |
print '\t\t<%s>%s</%s>'%(name, content, name) | print '<%s>%s</%s>'%(name, cgi.escape(content), name) | def writePCDataElement(name, content): print '\t\t<%s>%s</%s>'%(name, content, name) # FIXME: escape the content | bfa64d09d6b363de006f667d7ef2d803720576cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10139/bfa64d09d6b363de006f667d7ef2d803720576cc/no-help-at-all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3513,
751,
1046,
12,
529,
16,
913,
4672,
1172,
2337,
88,
64,
88,
32,
9,
87,
9822,
87,
1757,
9,
87,
1870,
17105,
529,
16,
913,
16,
508,
13,
468,
9852,
30,
4114,
326,
913,
282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
3513,
751,
1046,
12,
529,
16,
913,
4672,
1172,
2337,
88,
64,
88,
32,
9,
87,
9822,
87,
1757,
9,
87,
1870,
17105,
529,
16,
913,
16,
508,
13,
468,
9852,
30,
4114,
326,
913,
282,... |
ineligible.update(provInfoList) | def resolveEraseByUpdating(self, trvSrc, cannotResolve, uJob, jobSet, ineligible): """ Attempt to resolve broken erase dependencies by updating the package that has the dependency on the trove that is being erased. @param ineligible: Ineligible troves are troves that were involved in resolveEraseByUpdating before. """ | ee8e3f7e7259b9fa13fdf6605d38435a6109f022 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ee8e3f7e7259b9fa13fdf6605d38435a6109f022/resolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
41,
5648,
858,
17858,
12,
2890,
16,
433,
90,
7740,
16,
2780,
8460,
16,
582,
2278,
16,
1719,
694,
16,
316,
292,
16057,
4672,
3536,
12864,
358,
2245,
12933,
22038,
5030,
635,
9702,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
41,
5648,
858,
17858,
12,
2890,
16,
433,
90,
7740,
16,
2780,
8460,
16,
582,
2278,
16,
1719,
694,
16,
316,
292,
16057,
4672,
3536,
12864,
358,
2245,
12933,
22038,
5030,
635,
9702,
... | |
self.join() | super(SubSocketChannel, self).stop() | def stop(self): self.ioloop.stop() self.join() | 4a3d99c7db4ab8752b322c6557cdff290f3b4b0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4219/4a3d99c7db4ab8752b322c6557cdff290f3b4b0e/kernelmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
6242,
83,
556,
18,
5681,
1435,
365,
18,
5701,
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,... | [
1,
1,
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,
2132,
12,
2890,
4672,
365,
18,
6242,
83,
556,
18,
5681,
1435,
365,
18,
5701,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
saveAs='demo') | saveAs='demo.eps') | def testVarPlotterSaveAs(self): 'Testing saveAs parameter of varPlotter' if not hasRPy: return True simu = simulator( population(size=[50,50,100], ploidy=2, loci=[3,4], infoFields = ['migrate_to']), randomMating(), rep=3) migr = migrator(rate=[[0,.2,.1],[.25,0,.1],[.1,.2,0]], mode=ByProbability) stator = stat(popSize=1, stage=PreMating) simu.evolve( preOps = [initSex()], ops = [ migr, stator, varPlotter('[x**2 for x in subPopSize]', byRep=True, win=10, update=5, ylim=[0, 10000], main='Save as, 3 rep, 3 colors', ylab='sp', saveAs='demo') ], gen = 31 ) for f in range(5,31,5): self.assertEqual(os.path.isfile('demo_%d.eps' % f), True) os.remove('demo_%d.eps' % f) sleep(1) r.dev_off() | ed404a0cd2b402364c868c1928489d7ddc82fa54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/ed404a0cd2b402364c868c1928489d7ddc82fa54/test_20_rpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1537,
11532,
387,
4755,
1463,
12,
2890,
4672,
296,
22218,
1923,
1463,
1569,
434,
569,
11532,
387,
11,
309,
486,
711,
54,
9413,
30,
327,
1053,
3142,
89,
273,
3142,
11775,
12,
11209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1537,
11532,
387,
4755,
1463,
12,
2890,
4672,
296,
22218,
1923,
1463,
1569,
434,
569,
11532,
387,
11,
309,
486,
711,
54,
9413,
30,
327,
1053,
3142,
89,
273,
3142,
11775,
12,
11209,... |
child[self.VISIBLE] = True | child[self.visible] = True | def filter(self, query): LOG.info("Filter", query) if not query: """show alll""" for line in self.model: line[self.VISIBLE] = True for child in line.iterchildren(): child[self.VISIBLE] = True self.collapse_all() return True | fcaacfbe5c762e99a2eecead8e3e837d5ad2c36b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/fcaacfbe5c762e99a2eecead8e3e837d5ad2c36b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
843,
4672,
2018,
18,
1376,
2932,
1586,
3113,
843,
13,
309,
486,
843,
30,
3536,
4500,
777,
80,
8395,
364,
980,
316,
365,
18,
2284,
30,
980,
63,
2890,
18,
29588,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
16,
843,
4672,
2018,
18,
1376,
2932,
1586,
3113,
843,
13,
309,
486,
843,
30,
3536,
4500,
777,
80,
8395,
364,
980,
316,
365,
18,
2284,
30,
980,
63,
2890,
18,
29588,
65... |
return browser | return GenericBrowser(browser) | def get(using=None): """Return a browser launcher instance appropriate for the environment.""" if using: alternatives = [using] else: alternatives = _tryorder for browser in alternatives: if browser.find('%s') > -1: # User gave us a command line, don't mess with it. return browser else: # User gave us a browser name. command = _browsers[browser.lower()] if command[1] is None: return command[0]() else: return command[1] raise Error("could not locate runnable browser") | 797cf038610cd8a38786e542c2bcfe0768e1f6b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/797cf038610cd8a38786e542c2bcfe0768e1f6b9/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
9940,
33,
7036,
4672,
3536,
990,
279,
4748,
26618,
791,
5505,
364,
326,
3330,
12123,
309,
1450,
30,
20699,
273,
306,
9940,
65,
469,
30,
20699,
273,
389,
698,
1019,
364,
4748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9940,
33,
7036,
4672,
3536,
990,
279,
4748,
26618,
791,
5505,
364,
326,
3330,
12123,
309,
1450,
30,
20699,
273,
306,
9940,
65,
469,
30,
20699,
273,
389,
698,
1019,
364,
4748,
... |
if open('%s/worksheet.txt'%self.__dir).read() == E: | worksheet_txt = '%s/worksheet.txt'%self.__dir if os.path.exists(worksheet_txt) and open(worksheet_txt).read() == E: | def save_snapshot(self, user, E=None): self.uncache_snapshot_data() path = self.snapshot_directory() basename = str(int(time.time())) filename = '%s/%s.bz2'%(path, basename) if E is None: E = self.edit_text() if open('%s/worksheet.txt'%self.__dir).read() == E: # we already wrote it out... return open(filename, 'w').write(bz2.compress(E)) open('%s/worksheet.txt'%self.__dir, 'w').write(E) try: X = self.__saved_by_info except AttributeError: X = {} self.__saved_by_info = X X[basename] = user if self.is_auto_publish(): self.notebook().publish_worksheet(self, user) | 3e5811b10f5bb211dd322846c47f89e77565bf8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3e5811b10f5bb211dd322846c47f89e77565bf8a/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
11171,
12,
2890,
16,
729,
16,
512,
33,
7036,
4672,
365,
18,
551,
807,
67,
11171,
67,
892,
1435,
589,
273,
365,
18,
11171,
67,
5149,
1435,
4882,
273,
609,
12,
474,
12,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
11171,
12,
2890,
16,
729,
16,
512,
33,
7036,
4672,
365,
18,
551,
807,
67,
11171,
67,
892,
1435,
589,
273,
365,
18,
11171,
67,
5149,
1435,
4882,
273,
609,
12,
474,
12,
957,
... |
return (ret,"", "", "Warning: citation search functionality is experimental."+voutput) | return ((),"", "", "Warning: citation search functionality is experimental.."+voutput) | def find_citations(rank_method_code, recID, hitset, verbose): """Rank by the amount of citations.""" #calculate the cited-by values for all the members of the hitset #returns: voutput = "" recweightdic = {} for m in hitset: #put stuff in a dict key -> weight wlist = calculate_cited_by_list(int(m), "a") recweightdic[m] = len(wlist) #fix this.. should be by weight not by lenght #voutput = voutput + str(m)+":"+str(wlist)+" " ret = [ (key, value) for key, value in recweightdic.iteritems() ] #sort according to values ret.reverse() #voutput = voutput + str(ret) if ret: return (ret,"(", ")", "Warning: citation search functionality is experimental."+voutput) else: return (ret,"", "", "Warning: citation search functionality is experimental."+voutput) | 3ceb851948219f6cb4d4ad8f0f46ed347a9bdd16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/3ceb851948219f6cb4d4ad8f0f46ed347a9bdd16/bibrank_record_sorter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
71,
18282,
12,
11500,
67,
2039,
67,
710,
16,
1950,
734,
16,
6800,
542,
16,
3988,
4672,
3536,
12925,
635,
326,
3844,
434,
276,
18282,
12123,
468,
11162,
326,
276,
16261,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
71,
18282,
12,
11500,
67,
2039,
67,
710,
16,
1950,
734,
16,
6800,
542,
16,
3988,
4672,
3536,
12925,
635,
326,
3844,
434,
276,
18282,
12123,
468,
11162,
326,
276,
16261,
17,
1... |
@type content: L{Object} | @type content: L{Content} | def end(self, content): """ Processing of I{content} has ended, mirror the change in the resolver. @param content: The content for which proccessing has ended. @type content: L{Object} """ log.debug('ending content:\n%s', content) current = self.resolver.top().type if current == content.type: self.resolver.pop() else: raise Exception( 'content (end) mismatch: top=(%s) cont=(%s)' % \ (current, content)) | 119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
16,
913,
4672,
3536,
19652,
434,
467,
95,
1745,
97,
711,
16926,
16,
15593,
326,
2549,
316,
326,
5039,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
16,
913,
4672,
3536,
19652,
434,
467,
95,
1745,
97,
711,
16926,
16,
15593,
326,
2549,
316,
326,
5039,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
... |
CppText += NextIndent + "wrapper_DrawLineSegment(tt_TurtlePos, NewPos, tt_UseWrap);\n" | CppText += NextIndent + "wrapper_glDrawLineWrap(tt_TurtlePos, NewPos, tt_UseWrap);\n" | def GetCppBuiltinJump(self, IndentText, UpdateTurtleText): NextIndent = IndentText + " " * self.IndentSize NumTypeGL = self.LogoState.NumType[0] CppText = "" # fill in missing # write code to draw the line if self.LogoState.bUseWrap: CppText += IndentText + "if (tt_PenDown)\n" + IndentText + "{\n" CppText += NextIndent + "%s NewPos[2];\n" % self.LogoState.NumType CppText += UpdateTurtleText.replace('tt_TurtlePos', 'NewPos') if UpdateTurtleText.find('tt_TurtlePos[0]') < 0: CppText += NextIndent + "NewPos[0] = tt_TurtlePos[0];\n" if UpdateTurtleText.find('tt_TurtlePos[1]') < 0: CppText += NextIndent + "NewPos[1] = tt_TurtlePos[1];\n" CppText += NextIndent + "wrapper_DrawLineSegment(tt_TurtlePos, NewPos, tt_UseWrap);\n" CppText += NextIndent + "tt_TurtlePos[0] = NewPos[0];\n" + NextIndent + "tt_TurtlePos[1] = NewPos[1];\n" CppText += IndentText + "} else {\n" else: CppText += IndentText + "if (tt_PenDown)\n" + IndentText + "{\n" CppText += NextIndent + "glVertex2%s(tt_TurtlePos[0], tt_TurtlePos[1]);\n" % NumTypeGL CppText += UpdateTurtleText CppText += NextIndent + "glVertex2%s(tt_TurtlePos[0], tt_TurtlePos[1]);\n" % NumTypeGL CppText += IndentText + "} else {\n" # write code for the PenUp case CppText += UpdateTurtleText CppText += IndentText + "}\n" return CppText | bababbffcfffb2cb7b8c7a966a17e88685da5c1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2419/bababbffcfffb2cb7b8c7a966a17e88685da5c1d/tt_cppwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
39,
11858,
28032,
26743,
12,
2890,
16,
28653,
1528,
16,
2315,
56,
295,
5929,
1528,
4672,
4804,
7790,
273,
28653,
1528,
397,
315,
315,
380,
365,
18,
7790,
1225,
6805,
559,
11261,
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,
968,
39,
11858,
28032,
26743,
12,
2890,
16,
28653,
1528,
16,
2315,
56,
295,
5929,
1528,
4672,
4804,
7790,
273,
28653,
1528,
397,
315,
315,
380,
365,
18,
7790,
1225,
6805,
559,
11261,
273... |
day_field = create_day_selectbox('msg_send_day', | day_field = create_day_selectbox('msg_send_day', | def tmpl_write(self, msg_to="", msg_to_group="", msg_id=0, msg_subject="", msg_body="", msg_send_year=0, msg_send_month=0, msg_send_day=0, warnings=[], search_results_list=[], search_pattern="", results_field=CFG_WEBMESSAGE_RESULTS_FIELD['NONE'], ln=cdslang): """ Displays a writing message form with optional prefilled fields @param msg_to: nick of the user (prefills the To: field) @param msg_subject: subject of the message (prefills the Subject: field) @param msg_body: body of the message (prefills the Message: field) @param msg_send_year: prefills to year field @param msg_send_month: prefills the month field @param msg_send_day: prefills the day field @param warnings: display warnings on top of page @param search_results_list: list of tuples. (user/groupname, is_selected) @param search_pattern: pattern used for searching @param results_field: 'none', 'user' or 'group', see CFG_WEBMESSAGE_RESULTS_FIELD @param ln: language of the form @return the form in HTML format """ _ = gettext_set_language(ln) write_box = self.tmpl_warning(warnings) | f4a9e182650614f9c75111360ff7aaa98e5eeb52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f4a9e182650614f9c75111360ff7aaa98e5eeb52/webmessage_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2626,
12,
2890,
16,
1234,
67,
869,
1546,
3113,
1234,
67,
869,
67,
1655,
1546,
3113,
1234,
67,
350,
33,
20,
16,
1234,
67,
7857,
1546,
3113,
1234,
67,
3432,
1546,
3113,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2626,
12,
2890,
16,
1234,
67,
869,
1546,
3113,
1234,
67,
869,
67,
1655,
1546,
3113,
1234,
67,
350,
33,
20,
16,
1234,
67,
7857,
1546,
3113,
1234,
67,
3432,
1546,
3113,
1234,
... |
print "\n".join(scope["delay_loaded"]) | print "\n".join(expected_delay_loaded) | def VerifyDependents(pe_name, dependents, delay_loaded, list_file, verbose): """Compare the actual dependents to the expected ones.""" scope = {} try: execfile(list_file, scope) except: raise Error("Failed to load " + list_file) if verbose: print "Expected dependents:" print "\n".join(scope["dependents"]) print "Expected delayloaded:" print "\n".join(scope["delay_loaded"]) deps_result = Diff(pe_name, "dll", dependents, scope["dependents"], list_file) delayed_result = Diff(pe_name, "delay loaded dll", delay_loaded, scope["delay_loaded"], list_file) return max(deps_result, delayed_result) | 3b89a9d679792f6875be3f1a7051ff0275d88306 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/3b89a9d679792f6875be3f1a7051ff0275d88306/dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
4584,
4877,
12,
347,
67,
529,
16,
2447,
4877,
16,
4624,
67,
4230,
16,
666,
67,
768,
16,
3988,
4672,
3536,
8583,
326,
3214,
2447,
4877,
358,
326,
2665,
5945,
12123,
2146,
273,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
4584,
4877,
12,
347,
67,
529,
16,
2447,
4877,
16,
4624,
67,
4230,
16,
666,
67,
768,
16,
3988,
4672,
3536,
8583,
326,
3214,
2447,
4877,
358,
326,
2665,
5945,
12123,
2146,
273,
261... |
if (body[i][0:5] == 'key "'): body[i] = body[i].replace('key "', "\\backslash\nnocite{") body[i] = body[i].replace('"', "}") | m = r.match(body[i]) if m: body[i:i+1] = ["\\backslash", "nocite{" + m.group(1) + "}"] | def revert_nocite_key(body, start, end): 'key "..." -> \nocite{...}' for i in range(start, end): if (body[i][0:5] == 'key "'): body[i] = body[i].replace('key "', "\\backslash\nnocite{") body[i] = body[i].replace('"', "}") else: body[i] = "" | 983c002dd54cdf61dbcfc56523513bd4c3efb95d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/983c002dd54cdf61dbcfc56523513bd4c3efb95d/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
31470,
1137,
67,
856,
12,
3432,
16,
787,
16,
679,
4672,
296,
856,
26456,
317,
521,
31470,
1137,
95,
2777,
1713,
364,
277,
316,
1048,
12,
1937,
16,
679,
4672,
312,
273,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
31470,
1137,
67,
856,
12,
3432,
16,
787,
16,
679,
4672,
296,
856,
26456,
317,
521,
31470,
1137,
95,
2777,
1713,
364,
277,
316,
1048,
12,
1937,
16,
679,
4672,
312,
273,
436,
... |
self.assertRaises(ValueError, time.strftime, '', (1900, 1, 0, 0, 0, 0, 0, 1, -1)) | self.assertRaises(ValueError, time.strftime, '', (1900, 1, -1, 0, 0, 0, 0, 1, -1)) | def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple. | 8543a308afe19921c1847cf310049ec751535704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8543a308afe19921c1847cf310049ec751535704/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
18,
2,
-100,
-100,
-100,
... |
br=document.createElement("br"); br.id = 'break_' + c.id; b.parentNode.insertBefore(c,b.parentNode.lastChild); b.parentNode.insertBefore(removeLink, b.parentNode.lastChild); b.parentNode.insertBefore(br,b.parentNode.lastChild); | last_input.parentNode.insertBefore(removeLink, insertBeforeElement); // Insert the final line break. br = document.createElement("br"); br.id = 'break_' + input_to_add.id; last_input.parentNode.insertBefore(br, insertBeforeElement); | def js(self, name, value, count, attrs=None): """ Renders a bit of Javascript to add more file input boxes. """ return u""" <script> <!-- %(id)s_counter=%(count)d; function new_%(name)s() { b=document.getElementById('%(id)s' + (%(id)s_counter - 1)); c=document.createElement("input"); c.type="file"; c.name="files[]"; c.id='%(id)s'+(%(id)s_counter++); removeLink = document.createElement("a"); removeLink.id='remove_' + c.id; removeLink.setAttribute('onclick', "javascript:remove_%(name)s('" + c.id + "'); return false;"); removeLink.innerHTML = ' Remove this file.'; /** TODO: style this instead of using nbsp **/ br=document.createElement("br"); br.id = 'break_' + c.id; b.parentNode.insertBefore(c,b.parentNode.lastChild); b.parentNode.insertBefore(removeLink, b.parentNode.lastChild); b.parentNode.insertBefore(br,b.parentNode.lastChild); } function remove_%(name)s(id) { | 6ae7faa213e17172084fdb7962083441fd249c91 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2706/6ae7faa213e17172084fdb7962083441fd249c91/multifile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
12,
2890,
16,
508,
16,
460,
16,
1056,
16,
3422,
33,
7036,
4672,
3536,
534,
10130,
279,
2831,
434,
22326,
358,
527,
1898,
585,
810,
14356,
18,
3536,
327,
582,
8395,
411,
4263,
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,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
12,
2890,
16,
508,
16,
460,
16,
1056,
16,
3422,
33,
7036,
4672,
3536,
534,
10130,
279,
2831,
434,
22326,
358,
527,
1898,
585,
810,
14356,
18,
3536,
327,
582,
8395,
411,
4263,
34,... |
self.elements[key] = start, val | self.elements[tag] = start, getattr(self, key) | def __fixdict(self, dict): for key, val in dict.items(): if key[:6] == 'start_': key = key[6:] start, end = self.elements.get(key, (None, None)) if start is None: self.elements[key] = val, end elif key[:4] == 'end_': key = key[4:] start, end = self.elements.get(key, (None, None)) if end is None: self.elements[key] = start, val | 6bb175fa9cd87d3abd82d49829892e9dd90b7790 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6bb175fa9cd87d3abd82d49829892e9dd90b7790/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
904,
1576,
12,
2890,
16,
2065,
4672,
364,
498,
16,
1244,
316,
2065,
18,
3319,
13332,
309,
498,
10531,
26,
65,
422,
296,
1937,
67,
4278,
498,
273,
498,
63,
26,
26894,
787,
16,
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,
1001,
904,
1576,
12,
2890,
16,
2065,
4672,
364,
498,
16,
1244,
316,
2065,
18,
3319,
13332,
309,
498,
10531,
26,
65,
422,
296,
1937,
67,
4278,
498,
273,
498,
63,
26,
26894,
787,
16,
6... |
self.update_cdrom(data["ACTION"]) | self.update_cdrom(data['DEVNAME'], action=data["ACTION"]) | def do_udev_event(self, *args): data=args[0] print_debug ("do_udev_event() data=%s" %data) if data.has_key("ID_BUS") and data["ID_BUS"] == "usb": self.usb(data) if data.has_key("DEVPATH") and "/block/hd" in data["DEVPATH"]: if len(data["DEVPATH"].split('/')) > 3: # we have a hdd self.update_hdd(data["ACTION"]) else: # we have a cdrom self.update_cdrom(data["ACTION"]) if data.has_key("DEVPATH") and "/block/fd" in data["DEVPATH"]: self.update_floppy(data["ACTION"]) if data.has_key("DEVPATH") and "/block/sd" in data["DEVPATH"]: # FIXME SATA devices not detected as HDD self.update_usb(data) | f6481a9bf6d1ad54b61316f301adff761203e5c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/f6481a9bf6d1ad54b61316f301adff761203e5c8/tcos-devices-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1317,
90,
67,
2575,
12,
2890,
16,
380,
1968,
4672,
501,
33,
1968,
63,
20,
65,
1172,
67,
4148,
7566,
2896,
67,
1317,
90,
67,
2575,
1435,
501,
5095,
87,
6,
738,
892,
13,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1317,
90,
67,
2575,
12,
2890,
16,
380,
1968,
4672,
501,
33,
1968,
63,
20,
65,
1172,
67,
4148,
7566,
2896,
67,
1317,
90,
67,
2575,
1435,
501,
5095,
87,
6,
738,
892,
13,
309... |
space_group=params.crystal_symmetry.space_group, | space_group_info=params.crystal_symmetry.space_group, | def run2 (args, log=sys.stdout, check_params=True) : import iotbx.pdb.fetch parameter_interpreter = libtbx.phil.command_line.argument_interpreter( master_phil=master_phil, home_scope="") pdb_file = None cif_file = None sources = [] for arg in args : if os.path.isfile(arg) : if iotbx.pdb.is_pdb_file(arg) : pdb_files = os.path.abspath(arg) elif arg.endswith(".cif") or arg.endswith(".cif.txt") : cif_file = os.path.abspath(arg) else : try : user_phil = iotbx.phil.parse(file_name=arg) except RuntimeError : print "Unrecognizable file format for %s" % arg else : sources.append(user_phil) else : if arg.startswith("--") : arg = arg[2:] + "=True" try : user_phil = parameter_interpreter.process(arg=arg) sources.append(user_phil) except RuntimeError : print "Unrecognizable parameter %s" % arg params = master_phil.fetch(sources=sources).extract() symm = None if params.input.pdb_id is not None : params.input.pdb_file = iotbx.pdb.fetch.run(args=[params.input.pdb_id], log=log) params.input.cif_file = iotbx.pdb.fetch.run( args=["-x", params.input.pdb_id], log=log) symm = crystal_symmetry_from_any.extract_from(params.input.pdb_file) params.crystal_symmetry.space_group = symm.space_group() params.crystal_symmetry.unit_cell = symm.unit_cell() params.input.pdb_id = None if check_params : validate_params(params) if params.output_file_name is None : base, ext = os.path.splitext(params.input.cif_file) params.output_file_name = os.path.join(os.getcwd(), base + ".mtz") if not params.options.use_model : params.input.pdb_file = None if symm is None : symm = crystal.symmetry( space_group=params.crystal_symmetry.space_group, unit_cell=params.crystal_symmetry.unit_cell) process_files( file_name=params.input.cif_file, crystal_symmetry=symm, pdb_file_name=params.input.pdb_file, output_file_name=params.output_file_name, wavelength_id=params.input.wavelength_id, crystal_id=params.input.crystal_id, show_details_if_error=params.options.show_details_if_error) return params.output_file_name | 0c86c68724abcf9b12ff1bdb817683645fb9fcb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/0c86c68724abcf9b12ff1bdb817683645fb9fcb1/cif_as_mtz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22,
261,
1968,
16,
613,
33,
9499,
18,
10283,
16,
866,
67,
2010,
33,
5510,
13,
294,
1930,
30956,
70,
92,
18,
17414,
18,
5754,
1569,
67,
2761,
11599,
273,
2561,
18587,
92,
18,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22,
261,
1968,
16,
613,
33,
9499,
18,
10283,
16,
866,
67,
2010,
33,
5510,
13,
294,
1930,
30956,
70,
92,
18,
17414,
18,
5754,
1569,
67,
2761,
11599,
273,
2561,
18587,
92,
18,
84... |
title=item.getp('legend'), binary=0, with='l palette') | **kwargs) | def _add_contours(self, item, placement=None): # The placement keyword can be either None or 'bottom'. The # latter specifies that the contours should be placed at the # bottom (as in meshc or surfc). if DEBUG: print "Adding contours" x = item.getp('xdata') # grid component in x-direction y = item.getp('ydata') # grid component in y-direction z = item.getp('zdata') # scalar field | e1eae8a026c35517220eaf929a751e68d18ca571 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4727/e1eae8a026c35517220eaf929a751e68d18ca571/gnuplot_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
1213,
4390,
12,
2890,
16,
761,
16,
12607,
33,
7036,
4672,
468,
1021,
12607,
4932,
848,
506,
3344,
599,
578,
296,
9176,
10332,
1021,
468,
23740,
11470,
716,
326,
28109,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
1213,
4390,
12,
2890,
16,
761,
16,
12607,
33,
7036,
4672,
468,
1021,
12607,
4932,
848,
506,
3344,
599,
578,
296,
9176,
10332,
1021,
468,
23740,
11470,
716,
326,
28109,
141... |
authKey='', privKey='', authProtocol=usmNoAuthProtocol, privProtocol=usmNoPrivProtocol): | authKey=None, privKey=None, authProtocol=None, privProtocol=None): | def __init__(self, securityName, authKey='', privKey='', authProtocol=usmNoAuthProtocol, privProtocol=usmNoPrivProtocol): self.securityName = securityName if authKey: self.authKey = authKey if authProtocol == usmNoAuthProtocol: self.authProtocol = usmHMACMD5AuthProtocol else: self.authProtocol = authProtocol if self.securityLevel != 'authPriv': self.securityLevel = 'authNoPriv' else: self.authProtocol = usmNoAuthProtocol self.privProtocol = usmNoPrivProtocol if privKey: self.privKey = privKey if self.authProtocol == usmNoAuthProtocol: raise error.PySnmpError('Privacy implies authenticity') self.securityLevel = 'authPriv' if privProtocol == usmNoPrivProtocol: self.privProtocol = usmDESPrivProtocol else: self.privProtocol = privProtocol else: self.privProtocol = usmNoPrivProtocol | acc19df5bb0be833bdeca2731a697a9996a252bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/acc19df5bb0be833bdeca2731a697a9996a252bd/cmdgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4373,
461,
16,
1357,
653,
33,
7036,
16,
22849,
33,
7036,
16,
1357,
5752,
33,
7036,
16,
6015,
5752,
33,
7036,
4672,
365,
18,
7462,
461,
273,
4373,
461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4373,
461,
16,
1357,
653,
33,
7036,
16,
22849,
33,
7036,
16,
1357,
5752,
33,
7036,
16,
6015,
5752,
33,
7036,
4672,
365,
18,
7462,
461,
273,
4373,
461,
... |
mf = repo.changectx(rev).manifest() | ctx = repo.changectx(rev) | def display(fn, rev, states, prevstates): datefunc = ui.quiet and util.shortdate or util.datestr found = False filerevmatches = {} r = prev.get(fn, -1) if opts['all']: iter = difflinestates(states, prevstates) else: iter = [('', l) for l in prevstates] for change, l in iter: cols = [fn, str(r)] if opts['line_number']: cols.append(str(l.linenum)) if opts['all']: cols.append(change) if opts['user']: cols.append(ui.shortuser(get(r)[1])) if opts.get('date'): cols.append(datefunc(get(r)[2])) if opts['files_with_matches']: c = (fn, r) if c in filerevmatches: continue filerevmatches[c] = 1 else: cols.append(l.line) ui.write(sep.join(cols), eol) found = True return found | a8196fba1e3aa518e4fbd81e18558e053743f598 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/a8196fba1e3aa518e4fbd81e18558e053743f598/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
1509,
644,
273,
5915,
18,
20380,
471,
1709,
18,
6620,
712,
578,
1709,
18,
9683,
313,
1392,
273,
1083,
661,
822,
90,
8436,
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,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
1509,
644,
273,
5915,
18,
20380,
471,
1709,
18,
6620,
712,
578,
1709,
18,
9683,
313,
1392,
273,
1083,
661,
822,
90,
8436,
273,... |
def readDescFile(self): | def readDescFile(self, doProcessing = False): | def readDescFile(self): """ Reads the existing package.xml file and stores it in this class for later rewriting. Returns true on success, false on failure. """ | 6b0f19f13eaefba82c196a0b6b9074980a4bdbba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/6b0f19f13eaefba82c196a0b6b9074980a4bdbba/PatchMaker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
4217,
812,
12,
2890,
16,
741,
7798,
273,
1083,
4672,
3536,
29185,
326,
2062,
2181,
18,
2902,
585,
471,
9064,
518,
316,
333,
667,
364,
5137,
283,
14345,
18,
225,
2860,
638,
603,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
4217,
812,
12,
2890,
16,
741,
7798,
273,
1083,
4672,
3536,
29185,
326,
2062,
2181,
18,
2902,
585,
471,
9064,
518,
316,
333,
667,
364,
5137,
283,
14345,
18,
225,
2860,
638,
603,
22... |
else : | else : | def collectionApiJdl( self, task, requirements='' ): """ build a collection jdl easy to be handled by the wmproxy API interface and gives back the list of input files for a better handling """ # general part for task jdl = "[\n" jdl += 'Type = "collection";\n' | 227e3d6d6a99a4034b9739cd095690028165b4e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/227e3d6d6a99a4034b9739cd095690028165b4e8/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1849,
3064,
46,
5761,
12,
365,
16,
1562,
16,
8433,
2218,
11,
262,
30,
3536,
1361,
279,
1849,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1849,
3064,
46,
5761,
12,
365,
16,
1562,
16,
8433,
2218,
11,
262,
30,
3536,
1361,
279,
1849,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
326,
... |
"AND (l.reconcile_id is NULL) ") | "AND (l.reconcile_id is NULL) "\ "AND (l.partner_id is NOT NULL) ") | def _get_partners(self, cr, uid, data, context): cr.execute( "SELECT distinct l.partner_id "\ "FROM account_move_line AS l LEFT JOIN account_account AS a "\ "ON (l.account_id=a.id) "\ "WHERE (l.reconcile_id IS NULL) "\ "AND (a.type='receivable') "\ "AND (l.state<>'draft') "\ "AND (l.reconcile_id is NULL) ") ids = map(lambda x: x[0], cr.fetchall()) return {'partner_ids': ids} | bf646ec861133f6b7aaedf50127728399260b9cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/bf646ec861133f6b7aaedf50127728399260b9cd/wizard_followup_print.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2680,
9646,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
4422,
18,
8837,
12,
315,
4803,
10217,
328,
18,
31993,
67,
350,
1548,
315,
11249,
2236,
67,
8501,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2680,
9646,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
4422,
18,
8837,
12,
315,
4803,
10217,
328,
18,
31993,
67,
350,
1548,
315,
11249,
2236,
67,
8501,
67,
1... |
if os.name == 'nt': latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) | if LATEX != '': if os.name == 'nt': latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) else: latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """) | def checkTeXAllowSpaces(): ''' Let's check whether spaces are allowed in TeX file names ''' tex_allows_spaces = 'false' if lyx_check_config: msg = "Checking whether TeX allows spaces in file names... " writeToFile('a b.tex', r'\message{working^^J}' ) if os.name == 'nt': latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """) else: latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """) if 'working' in latex_out: logger.info(msg + 'yes') tex_allows_spaces = 'true' else: logger.info(msg + 'no') tex_allows_spaces = 'false' addToRC(r'\tex_allows_spaces ' + tex_allows_spaces) removeFiles( [ 'a b.tex', 'a b.log', 'texput.log' ]) | ac33a77dac3f13dbebc14a8759bd5b02d6e98bfa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/ac33a77dac3f13dbebc14a8759bd5b02d6e98bfa/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
21575,
60,
7009,
12077,
13332,
9163,
10559,
1807,
866,
2856,
7292,
854,
2935,
316,
28602,
60,
585,
1257,
9163,
16573,
67,
5965,
87,
67,
9554,
273,
296,
5743,
11,
309,
18519,
92,
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,
866,
21575,
60,
7009,
12077,
13332,
9163,
10559,
1807,
866,
2856,
7292,
854,
2935,
316,
28602,
60,
585,
1257,
9163,
16573,
67,
5965,
87,
67,
9554,
273,
296,
5743,
11,
309,
18519,
92,
67,... |
self.haltBeforeMargin = 1800 self.vmLoadAvgTimespan = 2 | def __getCSConfig( self ): self.vmName = gConfig.getValue( "/LocalSite/VirtualMachineName", "" ) if not self.vmName: return S_ERROR( "/LocalSite/VirtualMachineName is not defined" ) #Variables coming from the vm imgPath = "/Resources/VirtualMachines/Images/%s" % self.vmName for csOption, csDefault, varName in ( ( "Flavor", "", "vmFlavor" ), ( "MinWorkingLoad", 1, "vmMinWorkingLoad" ), ( "LoadAverageTimespan", 900, "vmLoadAvgTimespan" ) ): | 8c8c1ba65a8ff1820b1570d81cd38801bbe3657e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/8c8c1ba65a8ff1820b1570d81cd38801bbe3657e/VirtualMachineMonitorAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4596,
809,
12,
365,
262,
30,
365,
18,
3489,
461,
273,
314,
809,
18,
24805,
12,
2206,
2042,
4956,
19,
27454,
461,
3113,
1408,
262,
309,
486,
365,
18,
3489,
461,
30,
327,
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,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4596,
809,
12,
365,
262,
30,
365,
18,
3489,
461,
273,
314,
809,
18,
24805,
12,
2206,
2042,
4956,
19,
27454,
461,
3113,
1408,
262,
309,
486,
365,
18,
3489,
461,
30,
327,
34... | |
options.func or options.perf): | options.func or options.perf or options.recorded): | def checkOptions(options): """ Sanity check options. Some options may be changed, and some combinations will be warned about while some combinations will result in program exit. >>> options = parseOptions() >>> checkOptions(options) >>> d = eval(str(options)) >>> keys = d.keys() >>> keys.sort() >>> for key in keys: ... print key, d[key], args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False params None parcelPath tools/cats/DataFiles perf False profile False profileDir test_profile recorded False repeat 0 runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunChandler...'} runpython {'debug': '.../debug/RunPython...', 'release': '.../release/RunPython...'} selftest True single tbox False testcase None toolsDir tools unit False unitSuite False verbose False """ if options.help: print __doc__ sys.exit(2) if options.dryrun: options.verbose = True if 'CHANDLERHOME' in os.environ: options.chandlerHome = os.environ['CHANDLERHOME'] else: options.chandlerHome = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) if 'CHANDLERBIN' in os.environ: options.chandlerBin = os.environ['CHANDLERBIN'] else: options.chandlerBin = options.chandlerHome options.toolsDir = os.path.join('tools') options.parcelPath = os.path.join(options.toolsDir, 'cats', 'DataFiles') options.profileDir = os.path.join('test_profile') if not os.path.isdir(options.chandlerBin): log('Unable to locate CHANDLERBIN directory', error=True) sys.exit(3) if options.single and \ (options.unit or options.unitSuite or options.funcSuite or \ options.func or options.perf): log('Single test run (-t) only allowed by itself', error=True) sys.exit(1) if options.single: newsingle = [] for single in options.single.split(','): if single[-3:] != '.py': newsingle.append(single + '.py') else: newsingle.append(single) options.single = ','.join(newsingle) options.sysPython = build_lib.findInPath(os.environ['PATH'], 'python') options.runpython = {} options.runchandler = {} for mode in [ 'debug', 'release' ]: if os.name == 'nt' or sys.platform == 'cygwin': options.runpython[mode] = os.path.join(options.chandlerBin, mode, 'RunPython.bat') options.runchandler[mode] = os.path.join(options.chandlerBin, mode, 'RunChandler.bat') else: options.runpython[mode] = os.path.join(options.chandlerBin, mode, 'RunPython') options.runchandler[mode] = os.path.join(options.chandlerBin, mode, 'RunChandler') if options.noEnv: for item in _ignoreEnvNames: try: if item in os.environ: os.environ.pop(item) except: log('Unable to remove "%s" from the environment' % item) | 63f73f853db0d7b499017f3c68837c061369483b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/63f73f853db0d7b499017f3c68837c061369483b/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1320,
12,
2116,
4672,
3536,
23123,
866,
702,
18,
10548,
702,
2026,
506,
3550,
16,
471,
2690,
17265,
903,
506,
1894,
329,
2973,
1323,
2690,
17265,
903,
563,
316,
5402,
2427,
18,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1320,
12,
2116,
4672,
3536,
23123,
866,
702,
18,
10548,
702,
2026,
506,
3550,
16,
471,
2690,
17265,
903,
506,
1894,
329,
2973,
1323,
2690,
17265,
903,
563,
316,
5402,
2427,
18,
225,... |
def __init__(self, host='', port=None): | def __init__(self, host='', port=None, strict=None): | def __init__(self, host='', port=None): "Provide a default host, since the superclass requires one." | 02cb24e9179066f7e11c810f45981beb3c445379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/02cb24e9179066f7e11c810f45981beb3c445379/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
5490,
33,
7036,
4672,
315,
20632,
279,
805,
1479,
16,
3241,
326,
12098,
4991,
1245,
1199,
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,
0,
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,
1479,
2218,
2187,
1756,
33,
7036,
16,
5490,
33,
7036,
4672,
315,
20632,
279,
805,
1479,
16,
3241,
326,
12098,
4991,
1245,
1199,
2,
-100,
-100,
-100,
-100,
... |
def OnInstrumentConnectonsDialog(self, widget): | def OnInstrumentConnectionsDialog(self, widget): """ Creates and shows the "Instrument Connections Dialog". Parameters: widget -- reserved for GTK callbacks, don't use it explicitly. """ | def OnInstrumentConnectonsDialog(self, widget): InstrumentConnectionsDialog.InstrumentConnectionsDialog(self.project, self) | d98c0166f58a20c11dd843ed644fda9b8e03dc8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/d98c0166f58a20c11dd843ed644fda9b8e03dc8b/JokosherApp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
19228,
9314,
6353,
12,
2890,
16,
3604,
4672,
3536,
10210,
471,
17975,
326,
315,
19228,
4050,
87,
17242,
9654,
225,
7012,
30,
3604,
1493,
8735,
364,
19688,
47,
6689,
16,
2727,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
19228,
9314,
6353,
12,
2890,
16,
3604,
4672,
3536,
10210,
471,
17975,
326,
315,
19228,
4050,
87,
17242,
9654,
225,
7012,
30,
3604,
1493,
8735,
364,
19688,
47,
6689,
16,
2727,
1404,
... |
ui.write(_('Finish with ^D or a dot on a line by itself.\n\n')) body = [] while True: try: l = raw_input() except EOFError: break if l == '.': break body.append(l) | body = '' | def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()] | 4e22cb90d3c7236f9f382aaff4f194e4038d8edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4e22cb90d3c7236f9f382aaff4f194e4038d8edf/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
63,
3838,
65,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
2272,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
63,
3838,
65,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
2272,
70,
... |
Result: A list of TestCaseRun objects on success or a dictionary containing values for the keys, "faultcode" and "faultstring". | Result: A list of TestCaseRun objects on success | def testrun_get_test_case_runs(self, run_id): """Get A List of TestCase Runs For An Existing Test Run. | 83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
281,
313,
318,
67,
588,
67,
3813,
67,
3593,
67,
20152,
12,
2890,
16,
1086,
67,
350,
4672,
3536,
967,
432,
987,
434,
7766,
2449,
1939,
87,
2457,
1922,
28257,
7766,
1939,
18,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
281,
313,
318,
67,
588,
67,
3813,
67,
3593,
67,
20152,
12,
2890,
16,
1086,
67,
350,
4672,
3536,
967,
432,
987,
434,
7766,
2449,
1939,
87,
2457,
1922,
28257,
7766,
1939,
18,
2,
-... |
'mail from %s must pass SPF: http://spf.pobox.com/why.html' % q.o, | 'mail from %s must pass SPF: http://openspf.org/why.html' % q.o, | def check_spf(self): receiver = self.receiver for tf in trusted_forwarder: q = spf.query(self.connectip,'',tf,receiver=receiver,strict=False) res,code,txt = q.check() if res == 'pass': self.log("TRUSTED_FORWARDER:",tf) break else: q = spf.query(self.connectip,self.canon_from,self.hello_name, receiver=receiver,strict=False) q.set_default_explanation( | 36a7dce2e5a553b3b597aea6cb12dd8c67a57266 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/139/36a7dce2e5a553b3b597aea6cb12dd8c67a57266/bms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1752,
74,
12,
2890,
4672,
5971,
273,
365,
18,
24454,
364,
3253,
316,
13179,
67,
1884,
20099,
30,
1043,
273,
1694,
74,
18,
2271,
12,
2890,
18,
3612,
625,
11189,
2187,
6632,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1752,
74,
12,
2890,
4672,
5971,
273,
365,
18,
24454,
364,
3253,
316,
13179,
67,
1884,
20099,
30,
1043,
273,
1694,
74,
18,
2271,
12,
2890,
18,
3612,
625,
11189,
2187,
6632,
16,... |
return | return False | def read_request_headers(self): # then all the http headers try: read_headers(self.rfile, self.inheaders) except ValueError, ex: self.simple_response("400 Bad Request", ex.args[0]) return mrbs = self.server.max_request_body_size if mrbs and int(self.inheaders.get("Content-Length", 0)) > mrbs: self.simple_response("413 Request Entity Too Large", "The entity sent with the request exceeds the maximum " "allowed bytes.") return # Persistent connection support if self.response_protocol == "HTTP/1.1": # Both server and client are HTTP/1.1 if self.inheaders.get("Connection", "") == "close": self.close_connection = True else: # Either the server or client (or both) are HTTP/1.0 if self.inheaders.get("Connection", "") != "Keep-Alive": self.close_connection = True # Transfer-Encoding support te = None if self.response_protocol == "HTTP/1.1": te = self.inheaders.get("Transfer-Encoding") if te: te = [x.strip().lower() for x in te.split(",") if x.strip()] self.chunked_read = False if te: for enc in te: if enc == "chunked": self.chunked_read = True else: # Note that, even if we see "chunked", we must reject # if there is an extension we don't recognize. self.simple_response("501 Unimplemented") self.close_connection = True return # From PEP 333: # "Servers and gateways that implement HTTP 1.1 must provide # transparent support for HTTP 1.1's "expect/continue" mechanism. # This may be done in any of several ways: # 1. Respond to requests containing an Expect: 100-continue request # with an immediate "100 Continue" response, and proceed normally. # 2. Proceed with the request normally, but provide the application # with a wsgi.input stream that will send the "100 Continue" # response if/when the application first attempts to read from # the input stream. The read request must then remain blocked # until the client responds. # 3. Wait until the client decides that the server does not support # expect/continue, and sends the request body on its own. # (This is suboptimal, and is not recommended.) # # We used to do 3, but are now doing 1. Maybe we'll do 2 someday, # but it seems like it would be a big slowdown for such a rare case. if self.inheaders.get("Expect", "") == "100-continue": # Don't use simple_response here, because it emits headers # we don't want. See http://www.cherrypy.org/ticket/951 msg = self.server.protocol + " 100 Continue\r\n\r\n" try: self.conn.wfile.sendall(msg) except socket.error, x: if x.args[0] not in socket_errors_to_ignore: raise | 0b96a20cd7422d233e0802f40b063ebbc42a5b7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/82/0b96a20cd7422d233e0802f40b063ebbc42a5b7d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2293,
67,
2485,
12,
2890,
4672,
225,
468,
1508,
777,
326,
1062,
1607,
775,
30,
855,
67,
2485,
12,
2890,
18,
86,
768,
16,
365,
18,
267,
2485,
13,
1335,
2068,
16,
431,
30,
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,
855,
67,
2293,
67,
2485,
12,
2890,
4672,
225,
468,
1508,
777,
326,
1062,
1607,
775,
30,
855,
67,
2485,
12,
2890,
18,
86,
768,
16,
365,
18,
267,
2485,
13,
1335,
2068,
16,
431,
30,
3... |
self.ui.redraw() | self.ui.redraw_window() | def redraw(self): """Redraw the window""" self.ui.redraw() | 1bc3dd5931da7474332d421418dffdba39de7b50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5729/1bc3dd5931da7474332d421418dffdba39de7b50/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16540,
12,
2890,
4672,
3536,
3715,
1899,
326,
2742,
8395,
365,
18,
4881,
18,
1118,
1899,
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,
... | [
1,
1,
1,
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,
16540,
12,
2890,
4672,
3536,
3715,
1899,
326,
2742,
8395,
365,
18,
4881,
18,
1118,
1899,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""This draws a (British) stop sign. possible attributes: 'x', 'y', 'size' """ _attrMap = AttrMap(BASE=ETriangle0, UNWANTED=('strokeColor', 'color'), ) def __init__(self): self.x = 0 self.y = 0 self.size = 100 def demo(self): D = shapes.Drawing(200, 100) ss = StopSign0() ss.x=50 ss.y=0 ss.draw() D.add(ss) labelFontSize = 10 D.add(shapes.String(ss.x+(ss.size/2),(ss.y-(1.2*labelFontSize)), self.__class__.__name__, fillColor=colors.black, textAnchor='middle', fontSize=labelFontSize)) return D def draw(self): s = self.size g = shapes.Group() athird=s/3 outerOctagon = shapes.Polygon(points=[self.x+athird, self.y, self.x, self.y+athird, self.x, self.y+(athird*2), self.x+athird, self.y+s, self.x+(athird*2), self.y+s, self.x+s, self.y+(athird*2), self.x+s, self.y+athird, self.x+(athird*2), self.y], strokeColor = colors.black, fillColor = None, strokeWidth=1) g.add(outerOctagon) innerOctagon = shapes.Polygon(points=[self.x+athird+(s/75), self.y+(s/75), self.x+(s/75), self.y+athird+(s/75), self.x+(s/75), self.y+(athird*2)-(s/75), self.x+athird+(s/75), self.y+s-(s/75), self.x+(athird*2)-(s/75), (self.y+s)-(s/75), (self.x+s)-(s/75), self.y+(athird*2)-(s/75), (self.x+s)-(s/75), self.y+athird+(s/75), self.x+(athird*2)-(s/75), self.y+(s/75)], strokeColor = None, fillColor = colors.orangered, strokeWidth=0) g.add(innerOctagon) g.add(shapes.String(self.x+(s*0.5),self.y+(s*0.4), 'STOP', fillColor=colors.ghostwhite, textAnchor='middle', fontSize=s/3, fontName="Helvetica-Bold")) return g | """This draws a (British) stop sign. possible attributes: 'x', 'y', 'size' """ _attrMap = AttrMap(BASE=ETriangle0, UNWANTED=('strokeColor', 'color'), ) def __init__(self): self.x = 0 self.y = 0 self.size = 100 def draw(self): s = float(self.size) g = shapes.Group() athird=s/3 outerOctagon = shapes.Polygon(points=[self.x+athird, self.y, self.x, self.y+athird, self.x, self.y+(athird*2), self.x+athird, self.y+s, self.x+(athird*2), self.y+s, self.x+s, self.y+(athird*2), self.x+s, self.y+athird, self.x+(athird*2), self.y], strokeColor = colors.black, fillColor = None, strokeWidth=1) g.add(outerOctagon) innerOctagon = shapes.Polygon(points=[self.x+athird+(s/75), self.y+(s/75), self.x+(s/75), self.y+athird+(s/75), self.x+(s/75), self.y+(athird*2)-(s/75), self.x+athird+(s/75), self.y+s-(s/75), self.x+(athird*2)-(s/75), (self.y+s)-(s/75), (self.x+s)-(s/75), self.y+(athird*2)-(s/75), (self.x+s)-(s/75), self.y+athird+(s/75), self.x+(athird*2)-(s/75), self.y+(s/75)], strokeColor = None, fillColor = colors.orangered, strokeWidth=0) g.add(innerOctagon) g.add(shapes.String(self.x+(s*0.5),self.y+(s*0.4), 'STOP', fillColor=colors.ghostwhite, textAnchor='middle', fontSize=s/3, fontName="Helvetica-Bold")) return g | def draw(self): # general widget bits s = self.size # abbreviate as we will use this a lot g = shapes.Group() # SmileyFace specific bits outerCircle = shapes.Circle(cx = (self.x+(s/2)), cy = (self.y+(s/2)), r = s/2, fillColor = self.color, strokeColor = colors.black, strokeWidth=s/38.) g.add(outerCircle) | c27976c5171e645ff5be68e37e0b9fb2951cab57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/c27976c5171e645ff5be68e37e0b9fb2951cab57/signsandsymbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
468,
7470,
3604,
4125,
272,
273,
365,
18,
1467,
225,
468,
1223,
7379,
340,
487,
732,
903,
999,
333,
279,
17417,
314,
273,
14736,
18,
1114,
1435,
225,
468,
9425,
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,
3724,
12,
2890,
4672,
468,
7470,
3604,
4125,
272,
273,
365,
18,
1467,
225,
468,
1223,
7379,
340,
487,
732,
903,
999,
333,
279,
17417,
314,
273,
14736,
18,
1114,
1435,
225,
468,
9425,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.