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, 3126, 15926, 3113, 13666, 3319, 4278, 1516, 16, 296, 5548, 4278, 365, 18, 3980, 2532, 289, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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532, 289, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 273, 5687, 3292, 5506, 3546, 913, 273, 5378, 711, 67, 1745, 273, 1083, 2110, 18, 6923, 12443, 2692, 67, 529, 16, 1677, 16, 599, 3719, 225, 1323, 1053, 30, 871, 16, 460, 16, 980, 67, 2696, 273, 1407, 67, 4285, 12, 3256, 13, 309, 871, 422, 599, 30, 898, 11849, 7, 10485, 13424, 11849, 7, 309, 871, 422, 10485, 67, 10976, 30, 1172, 9744, 67, 25728, 738, 7707, 5457, 2187, 980, 67, 2696, 16, 1047, 67, 529, 13, 2110, 18, 6923, 12443, 2692, 67, 529, 16, 1677, 16, 599, 3719, 225, 11849, 7, 7273, 13424, 11849, 7, 1327, 871, 422, 7273, 67, 10976, 30, 1047, 67, 1650, 16, 1047, 67, 529, 273, 460, 309, 1047, 67, 529, 422, 296, 1484, 4278, 327, 752, 67, 1484, 14897, 12, 7699, 67, 19403, 16, 10615, 2110, 18, 5120, 9334, 913, 13, 469, 30, 1172, 9744, 67, 25728, 738, 7707, 5457, 2187, 980, 67, 2696, 16, 1047, 67, 529, 13, 468, 5917, 1047, 2110, 18, 6923, 12443, 2692, 67, 529, 16, 1677, 16, 599, 3719, 225, 11849, 7, 9204, 13424, 11849, 7, 1327, 871, 422, 9204, 30, 309, 2110, 30, 468, 732, 14046, 2569, 326, 533, 15431, 675, 14897, 3604, 460, 273, 3167, 18, 3015, 12, 16532, 18, 3922, 12, 1132, 16, 2688, 3719, 468, 5140, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 5687, 3292, 5506, 3546, 913, 273, 5378, 711, 67, 1745, 273, 1083, 2110, 18, 6923, 12443, 2692, 67, 529, 16, 1677, 16, 599, 3719, 225, 1323, 1053, 30, 871, 16, 460, 16, 980, 67, 2696, 273, 1407, 67, 4285, 12, 3256, 13, 309, 871, 422, 599, 30, 898, 11849, 7, 10485, 13424, 11849, 7, 309, 871, 422, 10485, 67, 10976, 30, 1172, 9744, 67, 25728, 738, 7707, 5457, 2187, 980, 67, 2696, 16, 1047, 67, 529, 13, 2110, 18, 6923, 12443, 2692, 67, 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, 7766, 87, 6134, 365, 18, 5040, 67, 1098, 67, 7848, 273, 365, 18, 13267, 18, 967, 4029, 682, 8141, 1435, 365, 18, 5040, 67, 350, 273, 365, 18, 5040, 67, 1098, 67, 7848, 18, 4099, 63, 20, 8009, 967, 4029, 548, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 7766, 87, 6134, 365, 18, 5040, 67, 1098, 67, 7848, 273, 365, 18, 13267, 18, 967, 4029, 682, 8141, 1435, 365, 18, 5040, 67, 350, 273, 365, 18, 5040, 67, 1098, 67, 7848, 18, 4099, 63, 20, 8009, 967, 4029, 548, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 5419, 3514, 578, 12667, 1076, 3816, 20, 16, 374, 16, 365, 18, 9095, 14434, 16, 365, 18, 2433, 4210, 5717, 309, 486, 365, 18, 11280, 87, 30, 365, 18, 11280, 87, 273, 599, 469, 30, 468, 1188, 365, 18, 11280, 87, 468, 11628, 2068, 16, 315, 14670, 486, 283, 21099, 4671, 6, 309, 618, 12, 2890, 18, 11280, 87, 13, 353, 486, 1953, 18, 29123, 30, 365, 18, 11280, 87, 273, 12667, 1076, 12, 2890, 18, 11280, 87, 13, 309, 486, 365, 18, 6323, 30, 1407, 273, 365, 18, 3256, 309, 486, 1407, 30, 365, 18, 6323, 273, 1842, 3256, 1435, 469, 30, 348, 273, 12667, 1228, 1435, 309, 365, 18, 23766, 30, 348, 18, 6348, 273, 306, 17508, 62, 16552, 16, 12667, 2171, 7140, 5509, 65, 348, 18, 1745, 273, 1407, 348, 16186, 4469, 972, 273, 315, 2433, 1407, 6, 365, 18, 6323, 273, 348, 309, 486, 365, 18, 3805, 30, 2703, 273, 12667, 1420, 10905, 1435, 468, 16450, 5, 2703, 18, 13240, 5711, 87, 1435, 309, 365, 18, 5332, 8946, 30, 2703, 18, 454, 626, 2143, 1435, 469, 30, 2703, 18, 13240, 626, 2143, 1435, 309, 365, 18, 60, 4710, 30, 468, 1188, 315, 60, 4710, 3113, 365, 18, 60, 4710, 18, 1576, 2703, 18, 60, 921, 273, 365, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5419, 3514, 578, 12667, 1076, 3816, 20, 16, 374, 16, 365, 18, 9095, 14434, 16, 365, 18, 2433, 4210, 5717, 309, 486, 365, 18, 11280, 87, 30, 365, 18, 11280, 87, 273, 599, 469, 30, 468, 1188, 365, 18, 11280, 87, 468, 11628, 2068, 16, 315, 14670, 486, 283, 21099, 4671, 6, 309, 618, 12, 2890, 18, 11280, 87, 13, 353, 486, 1953, 18, 29123, 30, 365, 18, 11280, 87, 273, 12667, 1076, 12, 2890, 18, 11280, 87, 13, 309, 486, 365, 18, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 &quot;Mark as done&quot; button. If the task is not relevant any-more, simply press &quot;Dismiss&quot;.") 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 &quot;-&quot;, it will be considered as a &quot;subtask&quot;, something that needs to be done in order to accomplish your task. Just try to write &quot;- test subtask&quot; on the next line and press enter.") text2 += "\n\n" text2 += _("You can also use the &quot;insert subtask&quot; 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 &quot;@&quot;.") 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 &quot;Workview&quot; 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 &quot;start-able&quot;, 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 &quot;someday&quot; 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, 19688, 43, 7923, 977, 21, 273, 389, 2932, 59, 16312, 316, 26602, 935, 899, 611, 82, 1742, 5, 16, 3433, 394, 1562, 3301, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 382, 19688, 43, 16, 7756, 353, 279, 1562, 18, 6338, 10504, 279, 10105, 1879, 326, 453, 1077, 1507, 531, 31393, 358, 12770, 279, 9052, 30353, 70, 578, 15501, 6894, 279, 18285, 18, 5203, 1846, 3874, 279, 1562, 16, 518, 353, 6635, 5198, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 12212, 279, 1562, 353, 2731, 16, 1846, 848, 1817, 326, 473, 9270, 31, 3882, 487, 2731, 10, 9270, 31, 3568, 18, 971, 326, 1562, 353, 486, 9368, 1281, 17, 10161, 16, 8616, 11779, 473, 9270, 31, 1669, 3105, 10, 9270, 31, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 37, 1562, 4825, 506, 18673, 434, 3229, 720, 9416, 716, 9788, 487, 4716, 316, 326, 2477, 18, 9587, 1283, 4682, 603, 326, 3751, 1692, 294, 7923, 977, 21, 1011, 1548, 82, 6, 977, 21, 1011, 3532, 1717, 4146, 34, 21, 36, 21, 1757, 1717, 4146, 5333, 82, 6, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19688, 43, 7923, 977, 21, 273, 389, 2932, 59, 16312, 316, 26602, 935, 899, 611, 82, 1742, 5, 16, 3433, 394, 1562, 3301, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 382, 19688, 43, 16, 7756, 353, 279, 1562, 18, 6338, 10504, 279, 10105, 1879, 326, 453, 1077, 1507, 531, 31393, 358, 12770, 279, 9052, 30353, 70, 578, 15501, 6894, 279, 18285, 18, 5203, 1846, 3874, 279, 1562, 16, 518, 353, 6635, 5198, 1199, 13, 977, 21, 2 ]
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, 12, 4923, 13, 353, 609, 13, 365, 18, 11231, 67, 12, 1897, 12, 701, 13, 405, 374, 13, 365, 18, 11231, 67, 12, 1897, 12, 701, 13, 411, 2468, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 12, 4923, 13, 353, 609, 13, 365, 18, 11231, 67, 12, 1897, 12, 701, 13, 405, 374, 13, 365, 18, 11231, 67, 12, 1897, 12, 701, 13, 411, 2468, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 16807, 715, 24118, 635, 468, 25077, 4739, 557, 807, 13, 4671, 1592, 67, 11089, 273, 1140, 18, 588, 11089, 1435, 775, 30, 7239, 273, 13275, 18, 24816, 72, 5814, 1435, 775, 30, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 1550, 3292, 16235, 20131, 4211, 3546, 273, 7239, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 16807, 715, 24118, 635, 468, 25077, 4739, 557, 807, 13, 4671, 1592, 67, 11089, 273, 1140, 18, 588, 11089, 1435, 775, 30, 7239, 273, 13275, 18, 24816, 72, 5814, 1435, 775, 30, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 1550, 3292, 16235, 20131, 4211, 3546, 273, 7239, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 25847, 1043, 22, 16, 3159, 272, 22, 16, 293, 1527, 293, 22, 16, 471, 7182, 5578, 998, 22, 18, 971, 14671, 353, 1083, 380, 280, 14, 326, 729, 11307, 315, 979, 4988, 3086, 7361, 6, 353, 486, 3170, 16, 1508, 741, 486, 14671, 31, 225, 2537, 10915, 358, 326, 2929, 1476, 18, 9163, 225, 468, 20646, 3377, 17997, 1342, 4259, 833, 316, 326, 7194, 1353, 18, 225, 10559, 1807, 618, 1893, 2182, 18, 618, 1893, 1767, 2615, 12, 85, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 13, 225, 468, 10229, 2856, 358, 10915, 261, 19752, 1404, 14671, 13, 358, 326, 2929, 1476, 18, 309, 486, 14671, 578, 486, 1550, 18, 1484, 2556, 63, 304, 4988, 8336, 9959, 67, 1484, 2556, 67, 856, 14542, 365, 18, 28449, 774, 1767, 12, 85, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 13, 327, 225, 468, 4344, 13200, 434, 326, 783, 1476, 1472, 18, 1043, 21, 273, 2238, 12, 2890, 18, 372, 270, 13, 272, 21, 273, 365, 18, 5864, 293, 21, 273, 776, 12, 2890, 18, 84, 1527, 63, 20, 6487, 365, 18, 84, 1527, 63, 21, 6487, 365, 18, 84, 1527, 63, 22, 5717, 998, 21, 273, 365, 18, 14932, 6837, 225, 468, 8155, 326, 2212, 3806, 364, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25847, 1043, 22, 16, 3159, 272, 22, 16, 293, 1527, 293, 22, 16, 471, 7182, 5578, 998, 22, 18, 971, 14671, 353, 1083, 380, 280, 14, 326, 729, 11307, 315, 979, 4988, 3086, 7361, 6, 353, 486, 3170, 16, 1508, 741, 486, 14671, 31, 225, 2537, 10915, 358, 326, 2929, 1476, 18, 9163, 225, 468, 20646, 3377, 17997, 1342, 4259, 833, 316, 326, 7194, 1353, 18, 225, 10559, 1807, 618, 1893, 2182, 18, 618, 1893, 1767, 2615, 12, 85, 22, 16, 272, 22, 2 ]
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, 2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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 6874, 6134, 15324, 771, 6908, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 6908, 6134, 15324, 771, 6874, 67, 2232, 273, 5378, 15324, 771, 6908, 67, 2232, 273, 5378, 2172, 67, 70, 287, 273, 819, 18, 588, 2668, 6769, 67, 70, 287, 2187, 1083, 13, 9395, 67, 18128, 273, 1408, 309, 819, 18, 588, 2668, 16840, 67, 350, 2187, 1083, 4672, 9395, 67, 18128, 273, 315, 4116, 315, 397, 2603, 9078, 18, 16840, 67, 350, 273, 738, 87, 6, 738, 819, 18, 588, 2668, 16840, 67, 350, 2187, 1083, 13, 309, 486, 819, 18, 588, 2668, 74, 291, 771, 6874, 2187, 1083, 4672, 15324, 771, 6874, 67, 2232, 273, 15324, 771, 6874, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2019, 2187, 15196, 2187, 296, 17153, 6134, 5717, 469, 30, 309, 2172, 67, 70, 287, 30, 15324, 771, 6874, 67, 712, 67, 1937, 273, 15324, 771, 6874, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 819, 3292, 74, 291, 771, 6874, 17337, 10228, 712, 67, 1937, 19486, 3292, 712, 67, 1937, 3546, 15324, 771, 6874, 67, 2232, 273, 15324, 771, 6874, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 712, 67, 5681, 2187, 2368, 2187, 15324, 771, 6874, 67, 712, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6874, 6134, 15324, 771, 6908, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 6908, 6134, 15324, 771, 6874, 67, 2232, 273, 5378, 15324, 771, 6908, 67, 2232, 273, 5378, 2172, 67, 70, 287, 273, 819, 18, 588, 2668, 6769, 67, 70, 287, 2187, 1083, 13, 9395, 67, 18128, 273, 1408, 309, 819, 18, 588, 2668, 16840, 67, 350, 2187, 1083, 4672, 9395, 67, 18128, 273, 315, 4116, 315, 397, 2603, 9078, 18, 16840, 67, 350, 273, 738, 87, 6, 738, 2 ]
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, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 903, 741, 326, 11522, 13917, 18, 4603, 3452, 300, 467, 17784, 4885, 268, 2921, 2145, 2037, 358, 15507, 333, 3059, 18, 14024, 518, 1410, 506, 2731, 326, 1308, 4031, 6740, 16, 5023, 17965, 598, 326, 316, 82, 28055, 11522, 35, 3536, 859, 273, 5378, 11013, 273, 404, 11522, 273, 1408, 1323, 11013, 405, 374, 30, 11522, 1011, 365, 18, 896, 67, 12198, 2932, 9338, 13, 309, 11522, 18919, 21, 65, 422, 4144, 6877, 11013, 1011, 404, 1327, 11522, 18919, 21, 65, 422, 11883, 30, 11013, 3947, 404, 469, 30, 1002, 1068, 12, 2890, 16, 315, 984, 12204, 11522, 7923, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 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, 903, 741, 326, 11522, 13917, 18, 4603, 3452, 300, 467, 17784, 4885, 268, 2921, 2145, 2037, 358, 15507, 333, 3059, 18, 14024, 518, 1410, 506, 2731, 326, 1308, 4031, 6740, 16, 5023, 17965, 598, 326, 316, 82, 28055, 11522, 35, 3536, 859, 273, 5378, 11013, 273, 404, 11522, 273, 1408, 1323, 11013, 405, 374, 30, 11522, 1011, 365, 18, 896, 67, 12198, 2932, 9338, 13, 309, 11522, 18919, 21, 65, 422, 4144, 6877, 11013, 1011, 404, 1327, 11522, 18919, 21, 65, 422, 11883, 30, 11013, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 30, 8253, 1011, 2213, 17, 3600, 87, 738, 17, 3600, 87, 738, 17, 3600, 87, 738, 17, 3600, 87, 738, 17, 3600, 87, 64, 82, 6, 738, 261, 80, 12799, 12, 2758, 3631, 328, 12799, 12, 959, 79, 3631, 14662, 16, 9751, 13, 327, 8253, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1545, 29, 30, 1045, 67, 2150, 2932, 19213, 3853, 628, 6980, 3696, 364, 6171, 707, 1199, 13, 400, 273, 1086, 67, 4669, 2932, 4803, 1849, 18, 529, 4571, 1849, 16, 5548, 67, 27639, 79, 5327, 16, 27639, 79, 5327, 4852, 1849, 18, 350, 33, 350, 67, 5548, 471, 612, 67, 27639, 79, 5327, 33, 27639, 79, 5327, 18, 350, 471, 20594, 79, 5327, 18, 529, 28713, 87, 4970, 738, 225, 498, 13, 328, 67, 792, 67, 1293, 3251, 273, 5378, 364, 4508, 316, 400, 30, 328, 67, 792, 67, 1293, 3251, 18, 6923, 12, 12910, 63, 20, 5717, 468, 430, 562, 12, 80, 67, 792, 67, 1293, 3251, 13, 405, 374, 30, 225, 468, 12107, 30, 468, 565, 1950, 5103, 273, 5378, 923, 273, 670, 305, 694, 1435, 923, 18, 1289, 1098, 12, 3927, 5103, 13, 327, 923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1545, 29, 30, 1045, 67, 2150, 2932, 19213, 3853, 628, 6980, 3696, 364, 6171, 707, 1199, 13, 400, 273, 1086, 67, 4669, 2932, 4803, 1849, 18, 529, 4571, 1849, 16, 5548, 67, 27639, 79, 5327, 16, 27639, 79, 5327, 4852, 1849, 18, 350, 33, 350, 67, 5548, 471, 612, 67, 27639, 79, 5327, 33, 27639, 79, 5327, 18, 350, 471, 20594, 79, 5327, 18, 529, 28713, 87, 4970, 738, 225, 498, 13, 328, 67, 792, 67, 1293, 3251, 273, 5378, 364, 4508, 316, 400, 2 ]
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, 15213, 883, 30, 9369, 1172, 12, 3576, 13, 5803, 273, 365, 18, 4110, 67, 3576, 12, 3576, 1769, 1172, 2932, 87, 2846, 5803, 30, 9369, 1172, 12, 13490, 13, 365, 18, 952, 18, 1655, 67, 10629, 12, 3074, 16, 5803, 13, 469, 30, 365, 18, 8704, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0 ]
[ 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, 15213, 883, 30, 9369, 1172, 12, 3576, 13, 5803, 273, 365, 18, 4110, 67, 3576, 12, 3576, 1769, 1172, 2932, 87, 2846, 5803, 30, 9369, 1172, 12, 13490, 13, 365, 18, 952, 18, 1655, 67, 10629, 12, 3074, 16, 5803, 13, 469, 30, 365, 18, 8704, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 854, 3115, 316, 326, 263, 8683, 585, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 21, 469, 30, 327, 374, 3222, 18, 3804, 12, 9625, 13, 468, 527, 1982, 1241, 312, 4099, 273, 365, 18, 4165, 67, 345, 67, 4099, 1435, 312, 4099, 18, 27439, 313, 273, 312, 4099, 18, 27439, 313, 18, 2079, 2668, 1695, 82, 2187, 875, 2934, 80, 6406, 1435, 3222, 273, 306, 81, 4099, 65, 397, 3222, 3222, 67, 1897, 273, 562, 12, 8219, 13, 364, 425, 316, 3222, 30, 468, 2457, 1517, 533, 16, 732, 1608, 963, 471, 585, 1384, 18, 225, 8315, 533, 353, 468, 423, 1506, 14127, 31, 326, 423, 1506, 1552, 486, 1056, 1368, 326, 963, 18, 24389, 273, 365, 6315, 3015, 12, 73, 18, 3576, 350, 13, 309, 425, 18, 3576, 350, 67, 15203, 30, 24389, 273, 24389, 397, 2337, 20, 11, 397, 365, 6315, 3015, 12, 73, 18, 3576, 350, 67, 15203, 13, 5596, 273, 425, 18, 27439, 313, 67, 15203, 18, 2452, 1435, 5596, 18, 3804, 1435, 8733, 313, 273, 5378, 364, 770, 316, 5596, 30, 8733, 313, 18, 6923, 12, 2890, 6315, 3015, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 854, 3115, 316, 326, 263, 8683, 585, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 21, 469, 30, 327, 374, 3222, 18, 3804, 12, 9625, 13, 468, 527, 1982, 1241, 312, 4099, 273, 365, 18, 4165, 67, 345, 67, 4099, 1435, 312, 4099, 18, 27439, 313, 273, 312, 4099, 18, 27439, 313, 18, 2079, 2668, 1695, 82, 2 ]
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, 16, 880, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 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, 16, 880, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1493, 279, 666, 434, 2064, 4191, 1842, 1257, 261, 10444, 13, 1842, 1214, 1493, 326, 1867, 316, 1492, 358, 2324, 364, 7434, 261, 10444, 13, 225, 12109, 1308, 2353, 326, 6600, 1842, 11371, 903, 8626, 715, 2545, 358, 4800, 1842, 1214, 31, 309, 518, 1807, 16195, 16, 326, 1867, 4191, 326, 6600, 1842, 11371, 353, 19242, 364, 18, 225, 971, 326, 7434, 1237, 353, 16195, 16, 326, 7434, 12889, 603, 326, 1296, 17, 1369, 903, 506, 1399, 18, 225, 971, 716, 1807, 1008, 16, 4885, 16, 1508, 777, 380, 18, 2074, 1390, 8435, 598, 1842, 67, 903, 506, 1399, 18, 225, 3536, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 20105, 85, 13713, 6134, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 1172, 1234, 1172, 1001, 2434, 972, 327, 576, 3988, 273, 374, 10902, 273, 374, 2103, 273, 374, 4433, 273, 374, 2202, 273, 374, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 422, 2400, 90, 4278, 3988, 273, 3988, 15, 21, 309, 320, 422, 2400, 85, 4278, 10902, 273, 404, 31, 3988, 273, 374, 309, 320, 422, 2400, 75, 4278, 2103, 273, 404, 309, 320, 422, 2400, 92, 4278, 4433, 273, 404, 309, 320, 422, 2400, 87, 4278, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1493, 279, 666, 434, 2064, 4191, 1842, 1257, 261, 10444, 13, 1842, 1214, 1493, 326, 1867, 316, 1492, 358, 2324, 364, 7434, 261, 10444, 13, 225, 12109, 1308, 2353, 326, 6600, 1842, 11371, 903, 8626, 715, 2545, 358, 4800, 1842, 1214, 31, 309, 518, 1807, 16195, 16, 326, 1867, 4191, 326, 6600, 1842, 11371, 353, 19242, 364, 18, 225, 971, 326, 7434, 1237, 353, 16195, 16, 326, 7434, 12889, 603, 326, 1296, 17, 1369, 903, 506, 1399, 18, 225, 971, 716, 1807, 1008, 16, 4885, 2 ]
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, 1479, 18, 1021, 1142, 9564, 4364, 854, 2106, 1122, 18, 3536, 309, 14169, 264, 2735, 1318, 7675, 20657, 1299, 17944, 1862, 774, 6981, 12, 5900, 18, 8339, 16, 3822, 4672, 1339, 273, 752, 67, 3184, 1435, 843, 273, 1339, 18, 2271, 12, 9127, 2934, 1019, 67, 1637, 12, 5569, 12, 9127, 18, 71, 18, 350, 13, 2934, 1289, 67, 2827, 12, 2890, 18, 7847, 67, 265, 67, 2564, 18, 71, 18, 350, 2934, 1289, 67, 2827, 12, 2890, 18, 7847, 67, 265, 67, 2564, 18, 71, 18, 2972, 67, 2019, 13, 468, 18, 2188, 12, 2890, 18, 7847, 18, 71, 18, 20394, 422, 1103, 18, 8339, 13, 843, 273, 843, 18, 4025, 67, 2080, 12, 2890, 18, 7847, 18, 5701, 12, 2890, 18, 7847, 67, 265, 67, 2564, 2934, 5701, 12, 2890, 18, 3299, 13, 2934, 2188, 12, 2890, 18, 3299, 18, 71, 18, 3299, 67, 7080, 422, 3822, 2934, 2188, 12, 2890, 18, 7847, 67, 265, 67, 2564, 18, 71, 18, 2972, 67, 2019, 422, 296, 8734, 6134, 309, 18553, 480, 875, 30, 843, 273, 843, 18, 2188, 12, 2890, 18, 7847, 18, 71, 18, 2649, 18, 5625, 2668, 8604, 15, 30991, 6797, 8604, 3719, 843, 273, 843, 18, 3348, 12, 474, 12, 1154, 3719, 843, 273, 843, 18, 3595, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1479, 18, 1021, 1142, 9564, 4364, 854, 2106, 1122, 18, 3536, 309, 14169, 264, 2735, 1318, 7675, 20657, 1299, 17944, 1862, 774, 6981, 12, 5900, 18, 8339, 16, 3822, 4672, 1339, 273, 752, 67, 3184, 1435, 843, 273, 1339, 18, 2271, 12, 9127, 2934, 1019, 67, 1637, 12, 5569, 12, 9127, 18, 71, 18, 350, 13, 2934, 1289, 67, 2827, 12, 2890, 18, 7847, 67, 265, 67, 2564, 18, 71, 18, 350, 2934, 1289, 67, 2827, 12, 2890, 18, 7847, 67, 265, 67, 2 ]
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
[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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 468, 1338, 16199, 4995, 2413, 11402, 309, 365, 18, 8443, 480, 599, 471, 365, 18, 4683, 480, 599, 30, 662, 23555, 273, 365, 18, 4683, 18, 28035, 1843, 75, 492, 451, 273, 12449, 24285, 3292, 617, 369, 21712, 87, 504, 20597, 3546, 14, 2890, 18, 87, 1882, 14369, 309, 365, 18, 4683, 18, 617, 369, 405, 374, 578, 1843, 75, 492, 451, 405, 404, 18, 20, 30, 365, 18, 72, 556, 303, 2544, 349, 1435, 1327, 365, 18, 4683, 18, 372, 270, 383, 538, 1545, 365, 18, 588, 8694, 2668, 617, 369, 11, 4672, 365, 18, 72, 556, 303, 2544, 349, 1435, 468, 732, 854, 4859, 7752, 358, 720, 7453, 554, 284, 4773, 12449, 2605, 18, 6923, 12, 26745, 267, 27893, 397, 315, 43, 1527, 88, 18, 2592, 7453, 6894, 478, 4773, 2301, 1242, 7923, 365, 18, 4683, 18, 372, 270, 383, 538, 3947, 365, 18, 588, 8694, 2668, 617, 369, 6134, 365, 18, 4683, 18, 617, 369, 1011, 404, 1327, 7304, 617, 369, 411, 404, 18, 20, 471, 365, 18, 4683, 18, 617, 369, 422, 374, 30, 468, 582, 15008, 76, 16, 26688, 558, 2777, 2605, 18, 6923, 12, 26745, 267, 27893, 397, 315, 18631, 478, 301, 558, 4442, 13, 365, 18, 23555, 273, 509, 12, 1397, 23555, 380, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 1338, 16199, 4995, 2413, 11402, 309, 365, 18, 8443, 480, 599, 471, 365, 18, 4683, 480, 599, 30, 662, 23555, 273, 365, 18, 4683, 18, 28035, 1843, 75, 492, 451, 273, 12449, 24285, 3292, 617, 369, 21712, 87, 504, 20597, 3546, 14, 2890, 18, 87, 1882, 14369, 309, 365, 18, 4683, 18, 617, 369, 405, 374, 578, 1843, 75, 492, 451, 405, 404, 18, 20, 30, 365, 18, 72, 556, 303, 2544, 349, 1435, 1327, 365, 18, 4683, 18, 372, 270, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 8981, 67, 8066, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 6134, 1081, 67, 22644, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 22644, 6134, 1081, 67, 8981, 67, 8066, 67, 710, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 710, 6134, 1081, 67, 8981, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 3202, 6134, 1081, 67, 8981, 67, 8066, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 710, 18, 3202, 6134, 1081, 67, 74, 291, 771, 67, 3276, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 74, 291, 771, 18, 3276, 18, 3202, 6134, 1081, 67, 74, 291, 771, 67, 3276, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 74, 291, 771, 18, 3276, 6134, 392, 7834, 335, 67, 22644, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 304, 7834, 335, 18, 22644, 6134, 1081, 67, 8981, 67, 11563, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 11563, 18, 3202, 6134, 1081, 67, 8981, 67, 22644, 67, 1945, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 22644, 18, 1945, 6134, 681, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8981, 67, 8066, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 6134, 1081, 67, 22644, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 22644, 6134, 1081, 67, 8981, 67, 8066, 67, 710, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 710, 6134, 1081, 67, 8981, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 3202, 6134, 1081, 67, 8981, 67, 8066, 67, 3202, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 2 ]
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, 4172, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, 4172, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 843, 28793, 1686, 33, 7036, 4672, 819, 273, 336, 67, 2472, 1435, 590, 273, 819, 18, 2293, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 843, 28793, 1686, 33, 7036, 4672, 819, 273, 336, 67, 2472, 1435, 590, 273, 819, 18, 2293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 273, 1408, 787, 273, 813, 18, 957, 1435, 1323, 404, 30, 309, 365, 18, 4025, 67, 11018, 13332, 10665, 72, 67, 3890, 273, 365, 18, 7814, 18, 18334, 12, 3825, 300, 562, 12, 4717, 3719, 309, 562, 12, 3927, 16115, 67, 3890, 4672, 1686, 1011, 10665, 72, 67, 3890, 309, 562, 12, 4717, 13, 422, 2665, 30, 327, 1686, 469, 30, 2132, 273, 813, 18, 957, 1435, 309, 261, 5681, 300, 787, 13, 405, 10746, 67, 9503, 30, 1002, 1185, 2932, 15617, 738, 72, 1731, 1496, 738, 72, 1731, 4591, 5941, 1199, 225, 738, 261, 1897, 12, 4717, 3631, 2665, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 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, 273, 1408, 787, 273, 813, 18, 957, 1435, 1323, 404, 30, 309, 365, 18, 4025, 67, 11018, 13332, 10665, 72, 67, 3890, 273, 365, 18, 7814, 18, 18334, 12, 3825, 300, 562, 12, 4717, 3719, 309, 562, 12, 3927, 16115, 67, 3890, 4672, 1686, 1011, 10665, 72, 67, 3890, 309, 562, 12, 4717, 13, 422, 2665, 30, 327, 1686, 469, 30, 2132, 273, 813, 18, 957, 1435, 309, 261, 5681, 300, 787, 13, 405, 10746, 67, 9503, 30, 1002, 1185, 2932, 15617, 738, 72, 1731, 2 ]
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, 2692, 13, 309, 1151, 67, 6429, 353, 486, 599, 471, 1151, 67, 6429, 353, 2177, 30, 775, 30, 666, 18, 6923, 12, 2890, 16, 1151, 67, 6429, 18, 2080, 67, 2956, 12, 3624, 16, 380, 1968, 16, 2826, 4333, 3719, 1335, 13167, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2692, 13, 309, 1151, 67, 6429, 353, 486, 599, 471, 1151, 67, 6429, 353, 2177, 30, 775, 30, 666, 18, 6923, 12, 2890, 16, 1151, 67, 6429, 18, 2080, 67, 2956, 12, 3624, 16, 380, 1968, 16, 2826, 4333, 3719, 1335, 13167, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2828, 2866, 3259, 9, 87, 4713, 82, 6, 738, 1326, 18, 529, 13, 585, 18, 3067, 12, 315, 565, 9088, 509, 1501, 67, 1883, 16, 1866, 314, 1040, 22, 2866, 9, 87, 10, 276, 13, 18890, 82, 6, 738, 1326, 18, 529, 13, 1142, 67, 3175, 273, 1326, 18, 967, 3024, 8176, 4117, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0 ]
[ 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, 2828, 2866, 3259, 9, 87, 4713, 82, 6, 738, 1326, 18, 529, 13, 585, 18, 3067, 12, 315, 565, 9088, 509, 1501, 67, 1883, 16, 1866, 314, 1040, 22, 2866, 9, 87, 10, 276, 13, 18890, 82, 6, 738, 1326, 18, 529, 13, 1142, 67, 3175, 273, 1326, 18, 967, 3024, 8176, 4117, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 13, 791, 18, 291, 2404, 273, 1053, 327, 791, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 13, 791, 18, 291, 2404, 273, 1053, 327, 791, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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('&', '&amp;') data = data.replace('>', '&gt;') data = data.replace('<', '&lt;') 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2668, 32, 2187, 5183, 5618, 4359, 13, 327, 501, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def check_cdata_content(self):
def test_cdata_content(self):
def check_cdata_content(self): s = """<script> <!-- not a comment --> &not-an-entity-ref; </script>""" self._run_check(s, [ ("starttag", "script", []), ("data", " <!-- not a comment --> &not-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, 6315, 2681, 67, 1893, 12, 87, 16, 306, 7566, 1937, 2692, 3113, 315, 4263, 3113, 5378, 3631, 7566, 892, 3113, 315, 5719, 413, 486, 279, 2879, 15431, 473, 902, 17, 304, 17, 1096, 17, 1734, 31, 315, 3631, 7566, 409, 2692, 3113, 315, 4263, 6, 3631, 308, 13, 272, 273, 3536, 32, 4263, 34, 411, 902, 279, 2218, 1937, 1047, 29256, 7765, 4263, 2984, 3660, 365, 6315, 2681, 67, 1893, 12, 87, 16, 306, 7566, 1937, 2692, 3113, 315, 4263, 3113, 5378, 3631, 7566, 892, 3113, 315, 411, 902, 279, 2218, 1937, 1047, 29256, 315, 3631, 7566, 409, 2692, 3113, 315, 4263, 6, 3631, 308, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 6315, 2681, 67, 1893, 12, 87, 16, 306, 7566, 1937, 2692, 3113, 315, 4263, 3113, 5378, 3631, 7566, 892, 3113, 315, 5719, 413, 486, 279, 2879, 15431, 473, 902, 17, 304, 17, 1096, 17, 1734, 31, 315, 3631, 7566, 409, 2692, 3113, 315, 4263, 6, 3631, 308, 13, 272, 273, 3536, 32, 4263, 34, 411, 902, 279, 2218, 1937, 1047, 29256, 7765, 4263, 2984, 3660, 365, 6315, 2681, 67, 1893, 12, 87, 16, 306, 7566, 1937, 2692, 3113, 315, 4263, 3113, 5378, 3631, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 9987, 7093, 2674, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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400, 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, 9987, 7093, 2674, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 18, 588, 67, 768, 67, 892, 1435, 8232, 67, 2354, 273, 1018, 18, 588, 67, 768, 67, 892, 1435, 225, 1686, 273, 5378, 2078, 67, 9996, 273, 374, 225, 309, 1549, 12, 1734, 67, 1969, 16, 609, 4672, 1278, 67, 1969, 273, 1278, 67, 1969, 18, 80, 6406, 2932, 4898, 13, 225, 328, 2163, 82, 67, 8532, 273, 7566, 31834, 3113, 315, 4738, 3113, 315, 26341, 3113, 315, 8767, 3113, 315, 9523, 7923, 13249, 429, 67, 8532, 273, 7566, 31834, 3113, 315, 4738, 7923, 225, 364, 508, 16, 585, 67, 892, 316, 1278, 67, 2354, 18, 3319, 13332, 225, 1522, 67, 1883, 273, 374, 225, 468, 6611, 1867, 3222, 18, 309, 508, 18, 5839, 1918, 2932, 4898, 4672, 468, 10878, 30, 1158, 5590, 1324, 468, 8049, 1390, 486, 7399, 2114, 1390, 18, 309, 1278, 67, 1969, 353, 486, 599, 471, 486, 508, 18, 17514, 1918, 12, 1734, 67, 1969, 4672, 1324, 225, 2710, 273, 508, 18, 4939, 2932, 1199, 13, 18919, 21, 65, 309, 2710, 486, 316, 328, 2163, 82, 67, 8532, 30, 1324, 13249, 429, 273, 2710, 316, 13249, 429, 67, 8532, 225, 309, 13249, 429, 30, 1278, 67, 2434, 273, 389, 2670, 67, 80, 2163, 82, 67, 2434, 12, 529, 16, 2114, 18, 896, 12, 529, 3631, 1158, 67, 5999, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18, 588, 67, 768, 67, 892, 1435, 8232, 67, 2354, 273, 1018, 18, 588, 67, 768, 67, 892, 1435, 225, 1686, 273, 5378, 2078, 67, 9996, 273, 374, 225, 309, 1549, 12, 1734, 67, 1969, 16, 609, 4672, 1278, 67, 1969, 273, 1278, 67, 1969, 18, 80, 6406, 2932, 4898, 13, 225, 328, 2163, 82, 67, 8532, 273, 7566, 31834, 3113, 315, 4738, 3113, 315, 26341, 3113, 315, 8767, 3113, 315, 9523, 7923, 13249, 429, 67, 8532, 273, 7566, 31834, 3113, 315, 4738, 7923, 2 ]
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, 6406, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 538, 18, 803, 18, 6054, 3239, 3816, 803, 16, 2728, 22643, 309, 261, 6054, 422, 3632, 67, 4481, 578, 2975, 18, 17514, 1918, 12, 538, 18, 803, 18, 5701, 12, 11626, 67, 4481, 16, 875, 3719, 262, 30, 327, 315, 5701, 12, 1969, 16, 738, 86, 2225, 738, 389, 11626, 67, 803, 12, 6054, 16, 589, 13, 469, 30, 327, 8480, 12, 803, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 538, 18, 803, 18, 6054, 3239, 3816, 803, 16, 2728, 22643, 309, 261, 6054, 422, 3632, 67, 4481, 578, 2975, 18, 17514, 1918, 12, 538, 18, 803, 18, 5701, 12, 11626, 67, 4481, 16, 875, 3719, 262, 30, 327, 315, 5701, 12, 1969, 16, 738, 86, 2225, 738, 389, 11626, 67, 803, 12, 6054, 16, 589, 13, 469, 30, 327, 8480, 12, 803, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 3459, 3719, 365, 18, 6870, 984, 2656, 12, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5113, 803, 12, 3459, 20349, 365, 18, 6870, 984, 2656, 12, 538, 18, 803, 18, 291, 768, 12, 538, 18, 803, 18, 5113, 803, 12, 3459, 20349, 1140, 18, 343, 1711, 12, 3459, 16, 16660, 13, 1140, 18, 322, 494, 12, 3459, 16, 599, 13, 1140, 18, 322, 494, 12, 3459, 16, 261, 957, 18, 957, 9334, 813, 18, 957, 1435, 3719, 468, 5631, 19, 18539, 5527, 7434, 1450, 326, 1967, 1544, 365, 6315, 2896, 67, 3530, 1468, 12, 3459, 16, 1544, 13, 468, 16671, 1410, 9788, 316, 4715, 876, 365, 18, 6870, 984, 2656, 12, 1140, 18, 803, 18, 5113, 803, 12, 3459, 13, 631, 538, 18, 803, 18, 5113, 803, 12, 10581, 18, 10581, 12, 3459, 25146, 20, 22643, 468, 4882, 1410, 9788, 316, 13529, 18, 589, 16, 1026, 273, 1140, 18, 803, 18, 4939, 12, 538, 18, 803, 18, 5113, 803, 12, 3459, 3719, 309, 261, 291, 1336, 261, 3459, 16, 609, 3719, 30, 394, 67, 1969, 273, 1026, 18, 3922, 12, 16961, 19793, 67, 14672, 13, 585, 67, 1098, 273, 306, 74, 18, 3922, 12, 16961, 19793, 67, 14672, 13, 364, 284, 316, 1140, 18, 1098, 1214, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3459, 3719, 365, 18, 6870, 984, 2656, 12, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5113, 803, 12, 3459, 20349, 365, 18, 6870, 984, 2656, 12, 538, 18, 803, 18, 291, 768, 12, 538, 18, 803, 18, 5113, 803, 12, 3459, 20349, 1140, 18, 343, 1711, 12, 3459, 16, 16660, 13, 1140, 18, 322, 494, 12, 3459, 16, 599, 13, 1140, 18, 322, 494, 12, 3459, 16, 261, 957, 18, 957, 9334, 813, 18, 957, 1435, 3719, 468, 5631, 2 ]
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, 11411, 19, 2972, 17, 1252, 21067, 361, 3482, 2577, 2075, 468, 11329, 605, 11214, 1109, 668, 2743, 595, 3927, 10206, 18, 508, 273, 1147, 9614, 529, 11929, 1323, 1053, 30, 468, 8693, 404, 10190, 404, 279, 3030, 1046, 273, 365, 18, 3413, 18, 2956, 382, 3896, 23974, 3471, 12, 1147, 9614, 529, 6, 5717, 309, 486, 279, 3030, 1046, 578, 261, 2513, 1046, 316, 365, 18, 3413, 18, 3190, 3471, 471, 486, 365, 18, 3413, 18, 2956, 382, 3876, 12, 2513, 1046, 18, 529, 3719, 30, 365, 18, 4288, 18, 2670, 668, 2932, 361, 3482, 17, 346, 2075, 17, 21, 18, 21, 3113, 12528, 529, 6877, 1147, 9614, 529, 11929, 6792, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 11411, 19, 2972, 17, 1252, 21067, 361, 3482, 2577, 2075, 468, 11329, 605, 11214, 1109, 668, 2743, 595, 3927, 10206, 18, 508, 273, 1147, 9614, 529, 11929, 1323, 1053, 30, 468, 8693, 404, 10190, 404, 279, 3030, 1046, 273, 365, 18, 3413, 18, 2956, 382, 3896, 23974, 3471, 12, 1147, 9614, 529, 6, 5717, 309, 486, 279, 3030, 1046, 578, 261, 2513, 1046, 316, 365, 18, 3413, 18, 3190, 3471, 471, 486, 365, 18, 3413, 18, 2956, 382, 3876, 12, 2513, 1046, 18, 529, 3719, 2 ]
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, 1844, 93, 701, 20642, 3113, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 2164, 326, 7323, 3104, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 1062, 2207, 26240, 18, 332, 70, 18, 1077, 18, 2196, 19, 98, 80, 830, 22335, 307, 19, 844, 93, 701, 20642, 17, 2434, 18, 7699, 3104, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 471, 326, 10137, 1844, 93, 701, 20642, 471, 1844, 93, 701, 20642, 17, 2434, 622, 3104, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 1062, 2207, 75, 1811, 22774, 18, 3341, 19, 98, 81, 601, 93, 64, 82, 3113, 3276, 13, 225, 667, 27519, 12, 1612, 4672, 1652, 1001, 2738, 972, 12, 2649, 16, 2696, 4672, 365, 18, 2649, 273, 2077, 365, 18, 2696, 273, 1300, 365, 18, 26264, 67, 710, 33, 8526, 365, 18, 1289, 67, 26264, 67, 1369, 2932, 16407, 15, 2649, 13, 1652, 527, 67, 26264, 67, 1369, 12, 2890, 16, 1369, 4672, 365, 18, 26264, 67, 710, 18, 6923, 12, 1369, 9078, 64, 82, 7923, 1652, 981, 12, 2890, 4672, 327, 1408, 18, 5701, 12, 2890, 18, 26264, 67, 710, 13, 1652, 1001, 9625, 972, 12, 2890, 16, 3011, 4672, 309, 365, 18, 2696, 411, 1308, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1844, 93, 701, 20642, 3113, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 2164, 326, 7323, 3104, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 1062, 2207, 26240, 18, 332, 70, 18, 1077, 18, 2196, 19, 98, 80, 830, 22335, 307, 19, 844, 93, 701, 20642, 17, 2434, 18, 7699, 3104, 3276, 13, 433, 5286, 18, 1289, 67, 26264, 67, 1369, 27188, 471, 326, 10137, 1844, 93, 701, 20642, 471, 1844, 93, 701, 20642, 17, 2434, 622, 3104, 2 ]
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, 16, 296, 2135, 4278, 374, 16, 296, 5743, 4278, 374, 16, 296, 3674, 4278, 374, 97, 331, 273, 365, 18, 588, 12, 3464, 16, 1456, 13, 309, 331, 18, 8167, 1435, 486, 316, 365, 6315, 6494, 67, 7992, 30, 1002, 2068, 16, 296, 1248, 279, 1250, 30, 738, 87, 11, 738, 331, 327, 5493, 63, 90, 18, 8167, 1435, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 16, 296, 2135, 4278, 374, 16, 296, 5743, 4278, 374, 16, 296, 3674, 4278, 374, 97, 331, 273, 365, 18, 588, 12, 3464, 16, 1456, 13, 309, 331, 18, 8167, 1435, 486, 316, 365, 6315, 6494, 67, 7992, 30, 1002, 2068, 16, 296, 1248, 279, 1250, 30, 738, 87, 11, 738, 331, 327, 5493, 63, 90, 18, 8167, 1435, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""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/0bc8432bfe956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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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(" ", "&nbsp;") 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, 273, 813, 18, 345, 21261, 12, 957, 18, 75, 10838, 12, 4099, 18, 712, 3719, 9388, 273, 1709, 18, 19153, 81, 67, 957, 12, 957, 18, 957, 1435, 17, 4099, 18, 712, 13, 225, 268, 273, 268, 18, 2079, 2932, 3104, 7830, 10600, 4868, 13, 225, 2824, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 273, 813, 18, 345, 21261, 12, 957, 18, 75, 10838, 12, 4099, 18, 712, 3719, 9388, 273, 1709, 18, 19153, 81, 67, 957, 12, 957, 18, 957, 1435, 17, 4099, 18, 712, 13, 225, 268, 273, 268, 18, 2079, 2932, 3104, 7830, 10600, 4868, 13, 225, 2824, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1002, 10195, 16, 315, 659, 434, 1048, 6, 268, 273, 261, 6976, 21, 16, 404, 16, 761, 15, 21, 16, 2593, 16, 374, 16, 374, 16, 761, 16, 761, 15, 21, 16, 374, 13, 327, 10405, 12, 2890, 18, 2139, 16, 268, 2934, 5909, 7053, 554, 1435, 1327, 1549, 12, 1726, 16, 618, 12, 6665, 12, 20, 3719, 4672, 327, 306, 2890, 63, 73, 65, 364, 425, 316, 1048, 12, 2890, 18, 1897, 13, 8009, 972, 588, 6665, 972, 12, 1726, 18, 1937, 16, 761, 18, 5681, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1002, 10195, 16, 315, 659, 434, 1048, 6, 268, 273, 261, 6976, 21, 16, 404, 16, 761, 15, 21, 16, 2593, 16, 374, 16, 374, 16, 761, 16, 761, 15, 21, 16, 374, 13, 327, 10405, 12, 2890, 18, 2139, 16, 268, 2934, 5909, 7053, 554, 1435, 1327, 1549, 12, 1726, 16, 618, 12, 6665, 12, 20, 3719, 4672, 327, 306, 2890, 63, 73, 65, 364, 425, 316, 1048, 12, 2890, 18, 1897, 13, 8009, 972, 588, 6665, 972, 12, 1726, 18, 1937, 2 ]
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, 972, 12, 2890, 16, 4200, 28, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 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, 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, 972, 12, 2890, 16, 4200, 28, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(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, 4662, 18366, 91, 452, 8, 1886, 67, 70, 528, 281, 67, 6231, 7923, 31923, 67, 1969, 273, 1140, 18, 803, 18, 5701, 12, 13552, 18, 892, 67, 5149, 16, 4662, 18366, 91, 452, 8, 1886, 67, 2150, 67, 6231, 7923, 25294, 273, 5378, 364, 1110, 316, 3552, 84, 363, 3113, 3552, 1966, 6877, 25294, 18, 6923, 12, 70, 528, 281, 67, 1969, 15, 408, 13, 25294, 18, 6923, 12, 27574, 67, 1969, 15, 408, 13, 642, 18, 31837, 18, 5814, 67, 17584, 67, 1973, 273, 25294, 468, 4199, 1492, 1319, 3301, 358, 999, 16, 471, 752, 518, 18, 8558, 797, 273, 3301, 18, 967, 3245, 1318, 797, 1435, 1319, 67, 4181, 273, 8558, 797, 12, 70, 528, 281, 67, 1969, 16, 31923, 67, 1969, 13, 14622, 67, 892, 273, 3301, 18, 13860, 751, 12, 1966, 67, 4181, 16, 13333, 13, 14622, 67, 892, 18, 2570, 1908, 1435, 225, 400, 3644, 273, 642, 18, 17584, 18, 455, 3644, 225, 309, 400, 3644, 30, 20298, 273, 7566, 14527, 3113, 263, 23, 3631, 7566, 24660, 3113, 263, 21, 3631, 7566, 1541, 6053, 3113, 263, 26, 13, 469, 30, 20298, 273, 7566, 14527, 3113, 263, 29, 3631, 7566, 24660, 3113, 263, 21, 13, 4007, 18, 542, 67, 334, 1023, 12, 334, 1023, 13, 225, 1172, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4662, 18366, 91, 452, 8, 1886, 67, 70, 528, 281, 67, 6231, 7923, 31923, 67, 1969, 273, 1140, 18, 803, 18, 5701, 12, 13552, 18, 892, 67, 5149, 16, 4662, 18366, 91, 452, 8, 1886, 67, 2150, 67, 6231, 7923, 25294, 273, 5378, 364, 1110, 316, 3552, 84, 363, 3113, 3552, 1966, 6877, 25294, 18, 6923, 12, 70, 528, 281, 67, 1969, 15, 408, 13, 25294, 18, 6923, 12, 27574, 67, 1969, 15, 408, 13, 642, 18, 31837, 18, 5814, 67, 17584, 67, 2 ]
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, 468, 2632, 2026, 1366, 315, 318, 11982, 3263, 3478, 6, 365, 18, 11628, 67, 12, 7422, 18, 8791, 668, 24899, 2932, 6206, 1278, 3668, 30, 738, 87, 7923, 738, 302, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 468, 2632, 2026, 1366, 315, 318, 11982, 3263, 3478, 6, 365, 18, 11628, 67, 12, 7422, 18, 8791, 668, 24899, 2932, 6206, 1278, 3668, 30, 738, 87, 7923, 738, 302, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1680, 18183, 326, 25939, 3879, 603, 279, 1661, 17, 7525, 761, 3377, 1430, 468, 333, 8572, 296, 1726, 13506, 732, 5614, 775, 358, 2027, 326, 315, 14307, 6, 13083, 468, 23838, 1372, 1815, 293, 381, 18, 5332, 67, 14317, 12, 1726, 16, 293, 381, 18, 1133, 8860, 13, 225, 871, 273, 293, 381, 18, 1133, 8860, 12, 1726, 13, 4171, 273, 871, 18, 588, 7786, 1435, 25939, 734, 273, 871, 18, 266, 17131, 734, 578, 871, 18, 1937, 950, 225, 309, 460, 422, 868, 17131, 1499, 6946, 18, 8243, 1016, 30, 871, 18, 4479, 426, 17131, 1435, 469, 30, 1592, 1016, 273, 365, 18, 967, 14942, 12, 2575, 16, 9734, 13, 225, 468, 971, 5083, 711, 3550, 16, 327, 18, 1220, 24192, 10504, 468, 279, 7339, 394, 25303, 16, 471, 326, 28196, 434, 15698, 16, 468, 487, 316, 16907, 21483, 5558, 309, 1592, 1016, 422, 460, 30, 327, 225, 3673, 273, 404, 309, 460, 422, 868, 17131, 1499, 6946, 18, 13266, 10741, 715, 1016, 30, 3673, 273, 576, 460, 273, 868, 17131, 1499, 6946, 18, 10741, 715, 1016, 9978, 14485, 273, 868, 17131, 18, 869, 1626, 1304, 13865, 4713, 868, 17131, 1499, 6946, 18, 5414, 42, 26387, 63, 1132, 5717, 436, 7482, 278, 273, 868, 17131, 18, 426, 17131, 21474, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1680, 18183, 326, 25939, 3879, 603, 279, 1661, 17, 7525, 761, 3377, 1430, 468, 333, 8572, 296, 1726, 13506, 732, 5614, 775, 358, 2027, 326, 315, 14307, 6, 13083, 468, 23838, 1372, 1815, 293, 381, 18, 5332, 67, 14317, 12, 1726, 16, 293, 381, 18, 1133, 8860, 13, 225, 871, 273, 293, 381, 18, 1133, 8860, 12, 1726, 13, 4171, 273, 871, 18, 588, 7786, 1435, 25939, 734, 273, 871, 18, 266, 17131, 734, 578, 871, 18, 1937, 950, 225, 309, 460, 422, 2 ]
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, 1966, 22, 18, 4939, 67, 3076, 67, 1369, 67, 803, 67, 3459, 67, 1968, 12, 3076, 67, 1369, 13, 389, 5113, 67, 803, 273, 1140, 18, 803, 18, 5113, 803, 24899, 803, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 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, 1966, 22, 18, 4939, 67, 3076, 67, 1369, 67, 803, 67, 3459, 67, 1968, 12, 3076, 67, 1369, 13, 389, 5113, 67, 803, 273, 1140, 18, 803, 18, 5113, 803, 24899, 803, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2668, 967, 17222, 2187, 859, 16, 306, 2668, 17222, 2187, 25466, 3631, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2668, 967, 17222, 2187, 859, 16, 306, 2668, 17222, 2187, 25466, 3631, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
- ``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, 471, 508, 18, 225, 12943, 30, 282, 300, 225, 12176, 529, 10335, 300, 2190, 508, 225, 300, 225, 12176, 77, 10335, 300, 3643, 1300, 300, 225, 12176, 80, 10335, 300, 769, 434, 2190, 666, 261, 1886, 30, 12176, 7036, 10335, 273, 436, 64, 14, 71, 13, 225, 5675, 21373, 2866, 225, 272, 410, 30, 9133, 273, 18327, 18, 10090, 12, 23, 16, 404, 16, 404, 16, 1725, 16, 13828, 22, 33, 5510, 13, 272, 410, 30, 9133, 18, 1518, 67, 3915, 13602, 87, 2668, 92, 2187, 576, 13, 306, 92, 6976, 66, 22, 397, 619, 6976, 16, 619, 6734, 66, 22, 397, 619, 6734, 16, 619, 18212, 66, 22, 397, 619, 18212, 16, 619, 3462, 23, 66, 22, 397, 619, 3462, 23, 16, 619, 21573, 66, 22, 397, 619, 21573, 16, 619, 31777, 66, 22, 397, 619, 31777, 16, 619, 3462, 26, 66, 22, 397, 619, 3462, 26, 16, 619, 3462, 27, 66, 22, 397, 619, 3462, 27, 65, 225, 493, 225, 272, 410, 30, 9133, 273, 18327, 18, 10090, 12, 23, 16, 404, 16, 404, 16, 1725, 16, 13828, 22, 33, 5510, 16, 7573, 70, 280, 77, 33, 5510, 13, 272, 410, 30, 9133, 18, 1518, 67, 3915, 13602, 87, 2668, 92, 2187, 576, 13, 5378, 3536, 436, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 471, 508, 18, 225, 12943, 30, 282, 300, 225, 12176, 529, 10335, 300, 2190, 508, 225, 300, 225, 12176, 77, 10335, 300, 3643, 1300, 300, 225, 12176, 80, 10335, 300, 769, 434, 2190, 666, 261, 1886, 30, 12176, 7036, 10335, 273, 436, 64, 14, 71, 13, 225, 5675, 21373, 2866, 225, 272, 410, 30, 9133, 273, 18327, 18, 10090, 12, 23, 16, 404, 16, 404, 16, 1725, 16, 13828, 22, 33, 5510, 13, 272, 410, 30, 9133, 18, 1518, 67, 3915, 13602, 2 ]
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, 628, 365, 18, 2470, 1810, 3910, 1211, 3536, 468, 2503, 1703, 1416, 596, 434, 365, 18, 2470, 1810, 3910, 1211, 1435, 225, 468, 16154, 358, 463, 2908, 890, 11, 10170, 1381, 11, 578, 1381, 11, 10170, 890, 11, 263, 1660, 1818, 866, 326, 468, 430, 2269, 316, 365, 225, 309, 261, 3190, 67, 26425, 21, 18, 291, 28019, 23327, 3678, 9807, 1435, 471, 521, 1696, 67, 26425, 22, 18, 291, 42, 688, 23327, 3678, 9807, 10756, 578, 521, 261, 3190, 67, 26425, 21, 18, 291, 42, 688, 23327, 3678, 9807, 1435, 225, 471, 521, 1696, 67, 26425, 22, 18, 291, 28019, 23327, 3678, 9807, 1435, 4672, 279, 21, 273, 1696, 67, 26425, 21, 18, 3011, 12, 87, 21, 13, 279, 22, 273, 1696, 67, 26425, 22, 18, 3011, 12, 87, 22, 13, 468, 1660, 21187, 603, 2691, 1435, 358, 866, 716, 312, 3528, 854, 486, 326, 1967, 18, 468, 2691, 2546, 1686, 316, 10480, 326, 16706, 5740, 326, 1967, 18, 225, 468, 1986, 3751, 24436, 7934, 576, 4700, 20, 468, 694, 326, 2036, 434, 326, 7339, 31702, 16706, 1114, 358, 326, 2036, 434, 326, 468, 701, 464, 16, 8272, 8427, 1153, 16, 353, 14611, 1879, 358, 326, 8427, 70, 763, 434, 326, 468, 3011, 16706, 6551, 261, 451, 407, 21239, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 628, 365, 18, 2470, 1810, 3910, 1211, 3536, 468, 2503, 1703, 1416, 596, 434, 365, 18, 2470, 1810, 3910, 1211, 1435, 225, 468, 16154, 358, 463, 2908, 890, 11, 10170, 1381, 11, 578, 1381, 11, 10170, 890, 11, 263, 1660, 1818, 866, 326, 468, 430, 2269, 316, 365, 225, 309, 261, 3190, 67, 26425, 21, 18, 291, 28019, 23327, 3678, 9807, 1435, 471, 521, 1696, 67, 26425, 22, 18, 291, 42, 688, 23327, 3678, 9807, 10756, 578, 521, 261, 3190, 67, 26425, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 11, 4672, 316, 542, 273, 756, 18, 588, 2668, 20122, 2187, 20, 13, 578, 756, 18, 588, 2668, 1176, 2187, 20, 13, 468, 2660, 30, 16826, 2813, 8581, 353, 486, 3260, 635, 399, 1766, 62, 18, 4037, 358, 589, 35, 619, 273, 1431, 12, 2159, 18, 588, 2668, 92, 2187, 20, 3719, 677, 273, 1431, 12, 2159, 18, 588, 2668, 93, 2187, 20, 3719, 468, 852, 628, 9804, 358, 268, 1766, 94, 225, 1835, 273, 1431, 12, 2159, 18, 588, 2668, 2819, 2187, 20, 3719, 2072, 273, 1431, 12, 2159, 18, 588, 2668, 4210, 2187, 20, 3719, 309, 261, 2819, 631, 20, 18, 20, 578, 2072, 631, 20, 18, 20, 4672, 1172, 315, 7036, 6, 327, 599, 16, 599, 309, 316, 542, 30, 468, 2660, 30, 11055, 5725, 353, 486, 12304, 635, 22116, 42, 18, 19884, 26920, 225, 11769, 18, 2116, 273, 8247, 27561, 18398, 5095, 87, 6, 738, 365, 18, 6547, 3816, 5659, 12, 267, 542, 13, 5717, 65, 327, 7707, 2607, 2187, 12, 92, 16, 93, 16, 2819, 16, 4210, 13, 3631, 2116, 1327, 756, 18, 2692, 316, 306, 754, 338, 18, 1289, 3156, 2668, 16353, 1369, 17023, 11451, 19899, 316, 79, 338, 18, 1289, 3156, 2668, 20917, 17023, 11451, 19899, 308, 30, 3143, 273, 756, 18, 588, 2668, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11, 4672, 316, 542, 273, 756, 18, 588, 2668, 20122, 2187, 20, 13, 578, 756, 18, 588, 2668, 1176, 2187, 20, 13, 468, 2660, 30, 16826, 2813, 8581, 353, 486, 3260, 635, 399, 1766, 62, 18, 4037, 358, 589, 35, 619, 273, 1431, 12, 2159, 18, 588, 2668, 92, 2187, 20, 3719, 677, 273, 1431, 12, 2159, 18, 588, 2668, 93, 2187, 20, 3719, 468, 852, 628, 9804, 358, 268, 1766, 94, 225, 1835, 273, 1431, 12, 2159, 18, 588, 2668, 2819, 2187, 2 ]
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, 22023, 3163, 12, 2890, 18, 3074, 2934, 588, 67, 16282, 67, 2821, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 22023, 3163, 12, 2890, 18, 3074, 2934, 588, 67, 16282, 67, 2821, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 326, 2181, 716, 711, 326, 4904, 603, 326, 23432, 537, 716, 353, 3832, 6445, 8905, 18, 632, 891, 316, 292, 16057, 30, 657, 292, 16057, 23432, 3324, 854, 23432, 3324, 716, 4591, 24589, 316, 2245, 41, 5648, 858, 17858, 1865, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 3536, 12864, 358, 2245, 12933, 22038, 5030, 635, 9702, 326, 2181, 716, 711, 326, 4904, 603, 326, 23432, 537, 716, 353, 3832, 6445, 8905, 18, 632, 891, 316, 292, 16057, 30, 657, 292, 16057, 23432, 3324, 854, 23432, 3324, 716, 4591, 24589, 316, 2245, 41, 5648, 858, 17858, 1865, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 12, 1467, 22850, 3361, 16, 3361, 16, 6625, 6487, 293, 383, 29609, 33, 22, 16, 1515, 77, 22850, 23, 16, 24, 6487, 1123, 2314, 273, 10228, 22083, 67, 869, 3546, 3631, 2744, 49, 1776, 9334, 2071, 33, 23, 13, 4196, 273, 30188, 12, 5141, 22850, 63, 20, 29257, 22, 29257, 21, 6487, 63, 18, 2947, 16, 20, 29257, 21, 6487, 63, 18, 21, 29257, 22, 16, 20, 65, 6487, 1965, 33, 858, 25598, 13, 610, 280, 273, 610, 12, 5120, 1225, 33, 21, 16, 6009, 33, 1386, 49, 1776, 13, 3142, 89, 18, 14965, 5390, 12, 675, 8132, 273, 306, 2738, 55, 338, 1435, 6487, 6727, 273, 306, 4196, 16, 610, 280, 16, 569, 11532, 387, 2668, 63, 92, 636, 22, 364, 619, 316, 720, 7049, 1225, 65, 2187, 635, 18933, 33, 5510, 16, 5657, 33, 2163, 16, 1089, 33, 25, 16, 18447, 22850, 20, 16, 12619, 6487, 2774, 2218, 4755, 487, 16, 890, 2071, 16, 890, 5740, 2187, 677, 7411, 2218, 1752, 2187, 1923, 1463, 2218, 27928, 18, 13058, 6134, 308, 16, 3157, 273, 8231, 262, 364, 284, 316, 1048, 12, 25, 16, 6938, 16, 25, 4672, 365, 18, 11231, 5812, 12, 538, 18, 803, 18, 291, 768, 2668, 27928, 10185, 72, 18, 13058, 11, 738, 284, 3631, 1053, 13, 1140, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 1467, 22850, 3361, 16, 3361, 16, 6625, 6487, 293, 383, 29609, 33, 22, 16, 1515, 77, 22850, 23, 16, 24, 6487, 1123, 2314, 273, 10228, 22083, 67, 869, 3546, 3631, 2744, 49, 1776, 9334, 2071, 33, 23, 13, 4196, 273, 30188, 12, 5141, 22850, 63, 20, 29257, 22, 29257, 21, 6487, 63, 18, 2947, 16, 20, 29257, 21, 6487, 63, 18, 21, 29257, 22, 16, 20, 65, 6487, 1965, 33, 858, 25598, 13, 610, 280, 273, 610, 12, 5120, 1225, 33, 21, 16, 2 ]
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, 273, 1053, 364, 1151, 316, 980, 18, 2165, 5906, 13332, 1151, 63, 2890, 18, 8613, 65, 273, 1053, 365, 18, 21405, 67, 454, 1435, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 273, 1053, 364, 1151, 316, 980, 18, 2165, 5906, 13332, 1151, 63, 2890, 18, 8613, 65, 273, 1053, 365, 18, 21405, 67, 454, 1435, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 316, 20699, 30, 309, 4748, 18, 4720, 29909, 87, 6134, 405, 300, 21, 30, 468, 2177, 314, 836, 584, 279, 1296, 980, 16, 2727, 1404, 12755, 598, 518, 18, 327, 7928, 9132, 12, 11213, 13, 469, 30, 468, 2177, 314, 836, 584, 279, 4748, 508, 18, 1296, 273, 389, 70, 13221, 63, 11213, 18, 8167, 1435, 65, 309, 1296, 63, 21, 65, 353, 599, 30, 327, 1296, 63, 20, 65, 1435, 469, 30, 327, 1296, 63, 21, 65, 1002, 1068, 2932, 15195, 486, 10627, 14685, 4748, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 364, 4748, 316, 20699, 30, 309, 4748, 18, 4720, 29909, 87, 6134, 405, 300, 21, 30, 468, 2177, 314, 836, 584, 279, 1296, 980, 16, 2727, 1404, 12755, 598, 518, 18, 327, 7928, 9132, 12, 11213, 13, 469, 30, 468, 2177, 314, 836, 584, 279, 4748, 508, 18, 1296, 273, 389, 70, 13221, 63, 11213, 18, 8167, 1435, 65, 309, 1296, 63, 21, 65, 353, 599, 30, 327, 1296, 63, 20, 65, 1435, 469, 30, 327, 1296, 63, 21, 65, 1002, 1068, 2932, 15195, 486, 10627, 2 ]
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, 18, 957, 1435, 3719, 1544, 273, 1995, 87, 5258, 87, 18, 25292, 22, 11, 17105, 803, 16, 4882, 13, 309, 512, 353, 599, 30, 512, 273, 365, 18, 4619, 67, 955, 1435, 13622, 67, 5830, 273, 1995, 87, 19, 1252, 8118, 18, 5830, 11, 9, 2890, 16186, 1214, 309, 1140, 18, 803, 18, 1808, 12, 1252, 8118, 67, 5830, 13, 471, 1696, 12, 1252, 8118, 67, 5830, 2934, 896, 1435, 422, 512, 30, 468, 732, 1818, 341, 21436, 518, 596, 2777, 327, 1696, 12, 3459, 16, 296, 91, 16063, 2626, 12, 25292, 22, 18, 14706, 12, 41, 3719, 1696, 29909, 87, 19, 1252, 8118, 18, 5830, 11, 9, 2890, 16186, 1214, 16, 296, 91, 16063, 2626, 12, 41, 13, 775, 30, 1139, 273, 365, 16186, 14077, 67, 1637, 67, 1376, 1335, 6394, 30, 1139, 273, 2618, 365, 16186, 14077, 67, 1637, 67, 1376, 273, 1139, 1139, 63, 13909, 65, 273, 729, 309, 365, 18, 291, 67, 6079, 67, 6543, 13332, 365, 18, 24422, 7675, 6543, 67, 1252, 8118, 12, 2890, 16, 729, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 18, 957, 1435, 3719, 1544, 273, 1995, 87, 5258, 87, 18, 25292, 22, 11, 17105, 803, 16, 4882, 13, 309, 512, 353, 599, 30, 512, 273, 365, 18, 4619, 67, 955, 1435, 13622, 67, 5830, 273, 1995, 87, 19, 1252, 8118, 18, 5830, 11, 9, 2890, 16186, 1214, 309, 1140, 18, 803, 18, 1808, 12, 1252, 8118, 67, 5830, 13, 471, 1696, 12, 1252, 8118, 67, 5830, 2934, 896, 1435, 422, 512, 30, 468, 732, 1818, 341, 21436, 518, 596, 2777, 327, 2 ]
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, 1637, 924, 364, 777, 326, 4833, 434, 326, 6800, 542, 468, 6154, 30, 331, 2844, 273, 1408, 1950, 4865, 15859, 273, 2618, 364, 312, 316, 6800, 542, 30, 468, 458, 10769, 316, 279, 2065, 498, 317, 3119, 341, 1098, 273, 4604, 67, 71, 16261, 67, 1637, 67, 1098, 12, 474, 12, 81, 3631, 315, 69, 7923, 1950, 4865, 15859, 63, 81, 65, 273, 562, 12, 91, 1098, 13, 377, 468, 904, 333, 838, 1410, 506, 635, 3119, 486, 635, 562, 75, 647, 468, 90, 2844, 273, 331, 2844, 397, 609, 12, 81, 13, 9078, 2773, 15, 701, 12, 91, 1098, 13, 9078, 315, 225, 325, 273, 306, 261, 856, 16, 460, 13, 364, 498, 16, 460, 316, 1950, 4865, 15859, 18, 2165, 3319, 1435, 308, 468, 3804, 4888, 358, 924, 325, 18, 9845, 1435, 468, 90, 2844, 273, 331, 2844, 397, 609, 12, 1349, 13, 225, 309, 325, 30, 327, 261, 1349, 10837, 2932, 16, 7310, 16, 315, 6210, 30, 21145, 1623, 14176, 353, 23070, 1199, 15, 90, 2844, 13, 469, 30, 327, 261, 9334, 6, 3113, 23453, 315, 6210, 30, 21145, 1623, 14176, 353, 23070, 18460, 15, 90, 2844, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1637, 924, 364, 777, 326, 4833, 434, 326, 6800, 542, 468, 6154, 30, 331, 2844, 273, 1408, 1950, 4865, 15859, 273, 2618, 364, 312, 316, 6800, 542, 30, 468, 458, 10769, 316, 279, 2065, 498, 317, 3119, 341, 1098, 273, 4604, 67, 71, 16261, 67, 1637, 67, 1098, 12, 474, 12, 81, 3631, 315, 69, 7923, 1950, 4865, 15859, 63, 81, 65, 273, 562, 12, 91, 1098, 13, 377, 468, 904, 333, 838, 1410, 506, 635, 3119, 486, 635, 562, 75, 647, 468, 90, 2 ]
@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, 16926, 18, 632, 723, 913, 30, 511, 95, 1350, 97, 3536, 613, 18, 4148, 2668, 2846, 913, 5581, 82, 9, 87, 2187, 913, 13, 783, 273, 365, 18, 14122, 18, 3669, 7675, 723, 309, 783, 422, 913, 18, 723, 30, 365, 18, 14122, 18, 5120, 1435, 469, 30, 1002, 1185, 12, 296, 1745, 261, 409, 13, 13484, 30, 1760, 33, 9275, 87, 13, 466, 33, 9275, 87, 2506, 738, 521, 261, 2972, 16, 913, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0 ]
[ 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, 16926, 18, 632, 723, 913, 30, 511, 95, 1350, 97, 3536, 613, 18, 4148, 2668, 2846, 913, 5581, 82, 9, 87, 2187, 913, 13, 783, 273, 365, 18, 14122, 18, 3669, 7675, 723, 309, 783, 422, 913, 18, 723, 30, 365, 18, 14122, 18, 5120, 1435, 469, 30, 1002, 1185, 12, 296, 1745, 261, 409, 13, 13484, 30, 1760, 33, 9275, 87, 13, 466, 33, 9275, 87, 2506, 738, 521, 261, 2972, 16, 913, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100 ]
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, 365, 18, 26604, 1119, 18, 2578, 559, 63, 20, 65, 385, 11858, 1528, 273, 1408, 468, 3636, 316, 3315, 468, 1045, 981, 358, 3724, 326, 980, 309, 365, 18, 26604, 1119, 18, 70, 3727, 2964, 30, 385, 11858, 1528, 1011, 28653, 1528, 397, 315, 430, 261, 748, 67, 24251, 4164, 5153, 82, 6, 397, 28653, 1528, 397, 4144, 64, 82, 6, 385, 11858, 1528, 1011, 4804, 7790, 397, 2213, 87, 1166, 1616, 63, 22, 65, 9747, 82, 6, 738, 365, 18, 26604, 1119, 18, 2578, 559, 385, 11858, 1528, 1011, 2315, 56, 295, 5929, 1528, 18, 2079, 2668, 748, 67, 56, 295, 5929, 1616, 2187, 296, 1908, 1616, 6134, 309, 2315, 56, 295, 5929, 1528, 18, 4720, 2668, 748, 67, 56, 295, 5929, 1616, 63, 20, 3864, 13, 411, 374, 30, 385, 11858, 1528, 1011, 4804, 7790, 397, 315, 1908, 1616, 63, 20, 65, 273, 3574, 67, 56, 295, 5929, 1616, 63, 20, 65, 9747, 82, 6, 309, 2315, 56, 295, 5929, 1528, 18, 4720, 2668, 748, 67, 56, 295, 5929, 1616, 63, 21, 3864, 13, 411, 374, 30, 385, 11858, 1528, 1011, 4804, 7790, 397, 315, 1908, 1616, 63, 21, 65, 273, 3574, 67, 56, 295, 5929, 1616, 63, 21, 65, 9747, 82, 6, 385, 11858, 1528, 1011, 4804, 7790, 397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 26604, 1119, 18, 2578, 559, 63, 20, 65, 385, 11858, 1528, 273, 1408, 468, 3636, 316, 3315, 468, 1045, 981, 358, 3724, 326, 980, 309, 365, 18, 26604, 1119, 18, 70, 3727, 2964, 30, 385, 11858, 1528, 1011, 28653, 1528, 397, 315, 430, 261, 748, 67, 24251, 4164, 5153, 82, 6, 397, 28653, 1528, 397, 4144, 64, 82, 6, 385, 11858, 1528, 1011, 4804, 7790, 397, 2213, 87, 1166, 1616, 63, 22, 65, 9747, 82, 6, 738, 365, 18, 26604, 1119, 18, 2 ]
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, 67, 4661, 67, 6874, 33, 20, 16, 1234, 67, 4661, 67, 7496, 33, 20, 16, 1234, 67, 4661, 67, 2881, 33, 20, 16, 5599, 22850, 6487, 1623, 67, 4717, 67, 1098, 22850, 6487, 1623, 67, 4951, 1546, 3113, 1686, 67, 1518, 33, 19727, 67, 14778, 8723, 67, 20602, 67, 6776, 3292, 9826, 17337, 7211, 33, 4315, 2069, 539, 4672, 3536, 9311, 87, 279, 7410, 883, 646, 598, 3129, 675, 13968, 1466, 632, 891, 1234, 67, 869, 30, 10909, 434, 326, 729, 261, 1484, 5935, 87, 326, 2974, 30, 652, 13, 632, 891, 1234, 67, 7857, 30, 3221, 434, 326, 883, 261, 1484, 5935, 87, 326, 9912, 30, 652, 13, 632, 891, 1234, 67, 3432, 30, 1417, 434, 326, 883, 261, 1484, 5935, 87, 326, 2350, 30, 652, 13, 632, 891, 1234, 67, 4661, 67, 6874, 30, 675, 5935, 87, 358, 3286, 652, 632, 891, 1234, 67, 4661, 67, 7496, 30, 675, 5935, 87, 326, 3138, 652, 632, 891, 1234, 67, 4661, 67, 2881, 30, 675, 5935, 87, 326, 2548, 652, 632, 891, 5599, 30, 2562, 5599, 603, 1760, 434, 1363, 632, 891, 1623, 67, 4717, 67, 1098, 30, 666, 434, 10384, 18, 261, 1355, 19, 1655, 529, 16, 353, 67, 8109, 13, 632, 891, 1623, 67, 4951, 30, 1936, 1399, 364, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4661, 67, 6874, 33, 20, 16, 1234, 67, 4661, 67, 7496, 33, 20, 16, 1234, 67, 4661, 67, 2881, 33, 20, 16, 5599, 22850, 6487, 1623, 67, 4717, 67, 1098, 22850, 6487, 1623, 67, 4951, 1546, 3113, 1686, 67, 1518, 33, 19727, 67, 14778, 8723, 67, 20602, 67, 6776, 3292, 9826, 17337, 7211, 33, 4315, 2069, 539, 4672, 3536, 9311, 87, 279, 7410, 883, 646, 598, 3129, 675, 13968, 1466, 632, 891, 1234, 67, 869, 30, 10909, 434, 326, 729, 261, 1484, 2 ]
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, 2618, 775, 30, 1196, 768, 12, 1098, 67, 768, 16, 2146, 13, 1335, 30, 1002, 1068, 2932, 2925, 358, 1262, 315, 397, 666, 67, 768, 13, 309, 3988, 30, 1172, 315, 6861, 2447, 4877, 2773, 1172, 1548, 82, 9654, 5701, 12, 4887, 9614, 5817, 4877, 6, 5717, 1172, 315, 6861, 4624, 4230, 2773, 1172, 1548, 82, 9654, 5701, 12, 3825, 67, 10790, 67, 4230, 13, 225, 8740, 67, 2088, 273, 13008, 12, 347, 67, 529, 16, 315, 27670, 3113, 2447, 4877, 16, 2146, 9614, 5817, 4877, 6, 6487, 666, 67, 768, 13, 15278, 67, 2088, 273, 13008, 12, 347, 67, 529, 16, 315, 10790, 4203, 302, 2906, 3113, 4624, 67, 4230, 16, 2146, 9614, 10790, 67, 4230, 6, 6487, 666, 67, 768, 13, 327, 943, 12, 14877, 67, 2088, 16, 15278, 67, 2088, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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624, 67, 4230, 16, 666, 67, 768, 16, 3988, 4672, 3536, 8583, 326, 3214, 2447, 4877, 358, 326, 2665, 5945, 12123, 2146, 273, 2618, 775, 30, 1196, 768, 12, 1098, 67, 768, 16, 2146, 13, 1335, 30, 1002, 1068, 2932, 2925, 358, 1262, 315, 397, 666, 67, 768, 13, 309, 3988, 30, 1172, 315, 6861, 2447, 4877, 2773, 1172, 1548, 82, 9654, 5701, 12, 4887, 9614, 5817, 4877, 6, 5717, 1172, 315, 6861, 4624, 4230, 2773, 1172, 1548, 82, 9654, 5701, 12, 3825, 67, 10790, 67, 4230, 13, 225, 8740, 67, 2088, 273, 13008, 12, 347, 67, 529, 16, 315, 27670, 3113, 2447, 4877, 16, 2146, 9614, 2 ]
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, 18, 1916, 12, 3432, 63, 77, 5717, 309, 312, 30, 1417, 63, 77, 30, 77, 15, 21, 65, 273, 8247, 1695, 823, 12877, 3113, 315, 31470, 1137, 16711, 397, 312, 18, 1655, 12, 21, 13, 397, 11883, 65, 469, 30, 1417, 63, 77, 65, 273, 1408, 282, 2, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 1916, 12, 3432, 63, 77, 5717, 309, 312, 30, 1417, 63, 77, 30, 77, 15, 21, 65, 273, 8247, 1695, 823, 12877, 3113, 315, 31470, 1137, 16711, 397, 312, 18, 1655, 12, 21, 13, 397, 11883, 65, 469, 30, 1417, 63, 77, 65, 273, 1408, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 = '&nbsp;&nbsp;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, 5719, 413, 8975, 350, 13, 87, 67, 7476, 5095, 12, 1883, 13, 72, 31, 445, 394, 10185, 12, 529, 13, 87, 1435, 288, 324, 33, 5457, 18, 24135, 2668, 17105, 350, 13, 87, 11, 397, 6142, 12, 350, 13, 87, 67, 7476, 300, 404, 10019, 276, 33, 5457, 18, 2640, 1046, 2932, 2630, 8863, 276, 18, 723, 1546, 768, 14432, 276, 18, 529, 1546, 2354, 63, 4279, 31, 276, 18, 350, 2218, 17105, 350, 13, 87, 11, 15, 9275, 12, 350, 13, 87, 67, 7476, 9904, 1769, 1206, 2098, 273, 1668, 18, 2640, 1046, 2932, 69, 8863, 1206, 2098, 18, 350, 2218, 4479, 4623, 397, 276, 18, 350, 31, 1206, 2098, 18, 542, 1499, 2668, 265, 7475, 2187, 315, 11242, 30, 4479, 10185, 12, 529, 13, 87, 22076, 397, 276, 18, 350, 397, 2491, 1769, 327, 629, 4868, 1769, 1206, 2098, 18, 7872, 4870, 273, 5183, 10600, 23480, 10600, 31, 3288, 333, 585, 1093, 31, 1783, 2660, 30, 2154, 333, 3560, 434, 1450, 4264, 1752, 26013, 1142, 67, 2630, 18, 2938, 907, 18, 6387, 4649, 12, 4479, 2098, 16, 18004, 1046, 1769, 225, 368, 8040, 326, 727, 980, 898, 18, 225, 5186, 273, 1668, 18, 2640, 1046, 2932, 2848, 8863, 5186, 18, 350, 273, 296, 8820, 4623, 397, 810, 67, 869, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5719, 413, 8975, 350, 13, 87, 67, 7476, 5095, 12, 1883, 13, 72, 31, 445, 394, 10185, 12, 529, 13, 87, 1435, 288, 324, 33, 5457, 18, 24135, 2668, 17105, 350, 13, 87, 11, 397, 6142, 12, 350, 13, 87, 67, 7476, 300, 404, 10019, 276, 33, 5457, 18, 2640, 1046, 2932, 2630, 8863, 276, 18, 723, 1546, 768, 14432, 276, 18, 529, 1546, 2354, 63, 4279, 31, 276, 18, 350, 2218, 17105, 350, 13, 87, 11, 15, 9275, 12, 350, 13, 87, 2 ]
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, 679, 273, 365, 18, 6274, 18, 588, 12, 856, 16, 261, 7036, 16, 599, 3719, 309, 787, 353, 599, 30, 365, 18, 6274, 63,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 679, 273, 365, 18, 6274, 18, 588, 12, 856, 16, 261, 7036, 16, 599, 3719, 309, 787, 353, 599, 30, 365, 18, 6274, 63, 856, 65, 273, 1244, 16, 679, 1327, 498, 10531, 24, 65, 422, 296, 409, 67, 4278, 498, 273, 498, 63, 24, 26894, 787, 16, 679, 273, 365, 18, 6274, 18, 588, 12, 856, 16, 261, 7036, 16, 599, 3719, 309, 679, 353, 599, 30, 365, 18, 6274, 63, 856, 65, 273, 787, 16, 1244, 2, -100, -100, -100, -100, -100 ]
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, 501, 18, 5332, 67, 856, 2932, 734, 67, 3000, 55, 7923, 471, 501, 9614, 734, 67, 3000, 55, 11929, 422, 315, 25525, 6877, 365, 18, 25525, 12, 892, 13, 225, 309, 501, 18, 5332, 67, 856, 2932, 15301, 4211, 7923, 471, 2206, 2629, 19, 22057, 6, 316, 501, 9614, 15301, 4211, 11929, 30, 309, 562, 12, 892, 9614, 15301, 4211, 6, 8009, 4939, 2668, 2473, 3719, 405, 890, 30, 468, 732, 1240, 279, 366, 449, 365, 18, 2725, 67, 76, 449, 12, 892, 9614, 12249, 6, 5717, 469, 30, 468, 732, 1240, 279, 7976, 520, 365, 18, 2725, 67, 4315, 520, 12, 892, 3292, 15301, 1985, 17337, 1301, 33, 892, 9614, 12249, 6, 5717, 225, 309, 501, 18, 5332, 67, 856, 2932, 15301, 4211, 7923, 471, 2206, 2629, 19, 8313, 6, 316, 501, 9614, 15301, 4211, 11929, 30, 365, 18, 2725, 67, 74, 16884, 2074, 12, 892, 9614, 12249, 6, 5717, 225, 309, 501, 18, 5332, 67, 856, 2932, 15301, 4211, 7923, 471, 2206, 2629, 19, 6427, 6, 316, 501, 9614, 15301, 4211, 11929, 30, 468, 9852, 348, 3706, 7166, 486, 8316, 487, 670, 5698, 365, 18, 2725, 67, 25525, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 501, 18, 5332, 67, 856, 2932, 734, 67, 3000, 55, 7923, 471, 501, 9614, 734, 67, 3000, 55, 11929, 422, 315, 25525, 6877, 365, 18, 25525, 12, 892, 13, 225, 309, 501, 18, 5332, 67, 856, 2932, 15301, 4211, 7923, 471, 2206, 2629, 19, 22057, 6, 316, 501, 9614, 15301, 4211, 11929, 30, 309, 562, 12, 892, 9614, 15301, 4211, 6, 8009, 4939, 2668, 2473, 3719, 405, 890, 30, 468, 732, 1240, 279, 366, 449, 365, 18, 2725, 67, 76, 449, 2 ]
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, 844, 330, 18, 3076, 67, 1369, 18, 3446, 67, 2761, 11599, 12, 4171, 67, 844, 330, 33, 7525, 67, 844, 330, 16, 6382, 67, 4887, 1546, 7923, 10892, 67, 768, 273, 599, 276, 430, 67, 768, 273, 599, 5550, 273, 5378, 364, 1501, 316, 833, 294, 309, 1140, 18, 803, 18, 291, 768, 12, 3175, 13, 294, 309, 30956, 70, 92, 18, 17414, 18, 291, 67, 17414, 67, 768, 12, 3175, 13, 294, 10892, 67, 2354, 273, 1140, 18, 803, 18, 5113, 803, 12, 3175, 13, 1327, 1501, 18, 5839, 1918, 2932, 18, 30674, 7923, 578, 1501, 18, 5839, 1918, 2932, 18, 30674, 18, 5830, 7923, 294, 276, 430, 67, 768, 273, 1140, 18, 803, 18, 5113, 803, 12, 3175, 13, 469, 294, 775, 294, 729, 67, 844, 330, 273, 30956, 70, 92, 18, 844, 330, 18, 2670, 12, 768, 67, 529, 33, 3175, 13, 1335, 7265, 294, 1172, 315, 984, 3927, 4198, 6934, 585, 740, 364, 738, 87, 6, 738, 1501, 469, 294, 5550, 18, 6923, 12, 1355, 67, 844, 330, 13, 469, 294, 309, 1501, 18, 17514, 1918, 2932, 413, 7923, 294, 1501, 273, 1501, 63, 22, 26894, 397, 29199, 5510, 6, 775, 294, 729, 67, 844, 330, 273, 1569, 67, 2761, 11599, 18, 2567, 12, 3175, 33, 3175, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 844, 330, 18, 3076, 67, 1369, 18, 3446, 67, 2761, 11599, 12, 4171, 67, 844, 330, 33, 7525, 67, 844, 330, 16, 6382, 67, 4887, 1546, 7923, 10892, 67, 768, 273, 599, 276, 430, 67, 768, 273, 599, 5550, 273, 5378, 364, 1501, 316, 833, 294, 309, 1140, 18, 803, 18, 291, 768, 12, 3175, 13, 294, 309, 30956, 70, 92, 18, 17414, 18, 291, 67, 17414, 67, 768, 12, 3175, 13, 294, 10892, 67, 2354, 273, 1140, 18, 803, 18, 5113, 803, 2 ]
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, 1410, 506, 15235, 622, 326, 468, 5469, 261, 345, 316, 6986, 71, 578, 5056, 7142, 2934, 309, 6369, 30, 1172, 315, 13962, 28109, 6, 619, 273, 761, 18, 588, 84, 2668, 92, 892, 6134, 225, 468, 3068, 1794, 316, 619, 17, 9855, 677, 273, 761, 18, 588, 84, 2668, 93, 892, 6134, 225, 468, 3068, 1794, 316, 677, 17, 9855, 998, 273, 761, 18, 588, 84, 2668, 94, 892, 6134, 225, 468, 4981, 652, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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
[ 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, 1410, 506, 15235, 622, 326, 468, 5469, 261, 345, 316, 6986, 71, 578, 5056, 7142, 2934, 309, 6369, 30, 1172, 315, 13962, 28109, 6, 619, 273, 761, 18, 588, 84, 2668, 92, 892, 6134, 225, 468, 3068, 1794, 316, 619, 17, 9855, 677, 273, 761, 18, 588, 84, 2668, 93, 892, 6134, 225, 468, 3068, 1794, 316, 677, 17, 9855, 998, 273, 761, 18, 588, 84, 2668, 94, 892, 6134, 225, 468, 4981, 652, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 309, 1357, 653, 30, 365, 18, 1944, 653, 273, 1357, 653, 309, 1357, 5752, 422, 584, 81, 2279, 1730, 5752, 30, 365, 18, 1944, 5752, 273, 584, 81, 25624, 6188, 25, 1730, 5752, 469, 30, 365, 18, 1944, 5752, 273, 1357, 5752, 309, 365, 18, 7462, 2355, 480, 296, 1944, 15475, 4278, 365, 18, 7462, 2355, 273, 296, 1944, 2279, 15475, 11, 469, 30, 365, 18, 1944, 5752, 273, 584, 81, 2279, 1730, 5752, 365, 18, 11365, 5752, 273, 584, 81, 2279, 15475, 5752, 309, 22849, 30, 365, 18, 11365, 653, 273, 22849, 309, 365, 18, 1944, 5752, 422, 584, 81, 2279, 1730, 5752, 30, 1002, 555, 18, 9413, 10461, 1291, 668, 2668, 15475, 3505, 24168, 21784, 560, 6134, 365, 18, 7462, 2355, 273, 296, 1944, 15475, 11, 309, 6015, 5752, 422, 584, 81, 2279, 15475, 5752, 30, 365, 18, 11365, 5752, 273, 584, 81, 26463, 15475, 5752, 469, 30, 365, 18, 11365, 5752, 273, 6015, 5752, 469, 30, 365, 18, 11365, 5752, 273, 584, 81, 2279, 15475, 5752, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 309, 1357, 653, 30, 365, 18, 1944, 653, 273, 1357, 653, 309, 1357, 5752, 422, 584, 81, 2279, 1730, 5752, 30, 365, 18, 1944, 5752, 273, 584, 81, 25624, 6188, 25, 1730, 5752, 469, 30, 365, 18, 1944, 5752, 273, 1357, 5752, 309, 365, 18, 7462, 2355, 480, 296, 1944, 15475, 4278, 365, 18, 7462, 2355, 273, 296, 1944, 2279, 15475, 11, 469, 30, 365, 18, 1944, 5752, 273, 584, 81, 2279, 1730, 5752, 365, 18, 11365, 5752, 273, 584, 81, 2279, 15475, 2 ]
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, 2618, 436, 273, 2807, 18, 588, 12, 4293, 16, 300, 21, 13, 309, 1500, 3292, 454, 3546, 30, 1400, 273, 1901, 2242, 267, 395, 815, 12, 7992, 16, 2807, 7992, 13, 469, 30, 1400, 273, 306, 2668, 2187, 328, 13, 364, 328, 316, 2807, 7992, 65, 364, 2549, 16, 328, 316, 1400, 30, 5347, 273, 306, 4293, 16, 609, 12, 86, 25887, 309, 1500, 3292, 1369, 67, 2696, 3546, 30, 5347, 18, 6923, 12, 701, 12, 80, 18, 7511, 7924, 3719, 309, 1500, 3292, 454, 3546, 30, 5347, 18, 6923, 12, 3427, 13, 309, 1500, 3292, 1355, 3546, 30, 5347, 18, 6923, 12, 4881, 18, 6620, 1355, 12, 588, 12, 86, 25146, 21, 22643, 309, 1500, 18, 588, 2668, 712, 11, 4672, 5347, 18, 6923, 12, 712, 644, 12, 588, 12, 86, 25146, 22, 22643, 309, 1500,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 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, 2618, 436, 273, 2807, 18, 588, 12, 4293, 16, 300, 21, 13, 309, 1500, 3292, 454, 3546, 30, 1400, 273, 1901, 2242, 267, 395, 815, 12, 7992, 16, 2807, 7992, 13, 469, 30, 1400, 273, 306, 2668, 2187, 328, 13, 364, 328, 316, 2807, 7992, 65, 364, 2549, 16, 328, 316, 1400, 30, 5347, 273, 306, 4293, 16, 609, 12, 86, 25887, 309, 1500, 3292, 1369, 67, 2696, 3546, 30, 5347, 18, 6923, 12, 701, 12, 80, 18, 7511, 7924, 3719, 309, 1500, 2 ]
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, 2216, 16, 629, 603, 5166, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 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, 2216, 16, 629, 603, 5166, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 666, 434, 810, 1390, 364, 279, 7844, 5057, 3536, 225, 468, 7470, 1087, 364, 1562, 525, 5761, 273, 5158, 64, 82, 6, 525, 5761, 1011, 296, 559, 273, 315, 5548, 6, 9747, 82, 11, 2, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 666, 434, 810, 1390, 364, 279, 7844, 5057, 3536, 225, 468, 7470, 1087, 364, 1562, 525, 5761, 273, 5158, 64, 82, 6, 525, 5761, 1011, 296, 559, 273, 315, 5548, 6, 9747, 82, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"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, 1369, 5355, 328, 9686, 7645, 2236, 67, 4631, 5355, 279, 1548, 315, 673, 261, 80, 18, 4631, 67, 350, 33, 69, 18, 350, 13, 1548, 315, 12299, 261, 80, 18, 266, 11504, 398, 67, 350, 4437, 3206, 13, 1548, 315, 4307, 261, 69, 18, 723, 2218, 8606, 427, 429, 6134, 1548, 315, 4307, 261, 80, 18, 2019, 32, 1870, 17153, 6134, 1548, 315, 4307, 261, 80, 18, 266, 11504, 398, 67, 350, 353, 3206, 13, 1548, 315, 4307, 261, 80, 18, 31993, 67, 350, 353, 4269, 3206, 13, 9369, 3258, 273, 852, 12, 14661, 619, 30, 619, 63, 20, 6487, 4422, 18, 5754, 454, 10756, 327, 13666, 31993, 67, 2232, 4278, 3258, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1369, 5355, 328, 9686, 7645, 2236, 67, 4631, 5355, 279, 1548, 315, 673, 261, 80, 18, 4631, 67, 350, 33, 69, 18, 350, 13, 1548, 315, 12299, 261, 80, 18, 266, 11504, 398, 67, 350, 4437, 3206, 13, 1548, 315, 4307, 261, 69, 18, 723, 2218, 8606, 427, 429, 6134, 1548, 315, 4307, 261, 80, 18, 2019, 32, 1870, 17153, 6134, 1548, 315, 4307, 261, 80, 18, 266, 11504, 398, 67, 350, 353, 3206, 13, 1548, 315, 4307, 261, 80, 18, 31993, 67, 2 ]
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, 1893, 67, 1425, 30, 1234, 273, 315, 14294, 2856, 28602, 60, 5360, 7292, 316, 585, 1257, 2777, 315, 12870, 812, 2668, 69, 324, 18, 21763, 2187, 436, 8314, 2150, 95, 20478, 12800, 46, 1713, 262, 309, 511, 1777, 60, 480, 875, 30, 309, 1140, 18, 529, 422, 296, 496, 4278, 25079, 67, 659, 273, 1797, 1447, 12, 10512, 60, 397, 436, 8395, 1548, 5836, 5681, 3188, 64, 2630, 95, 2412, 69, 324, 2412, 1532, 3536, 13, 469, 30, 25079, 67, 659, 273, 1797, 1447, 12, 10512, 60, 397, 436, 8395, 2337, 5836, 5681, 3188, 64, 2630, 16711, 69, 324, 6, 1713, 3536, 13, 469, 30, 25079, 67, 659, 273, 1797, 1447, 12, 10512, 60, 397, 436, 8395, 2337, 5836, 5681, 3188, 64, 2630, 16711, 69, 324, 6, 1713, 3536, 13, 309, 296, 20478, 11, 316, 25079, 67, 659, 30, 1194, 18, 1376, 12, 3576, 397, 296, 9707, 6134, 16573, 67, 5965, 87, 67, 9554, 273, 296, 3767, 11, 469, 30, 1194, 18, 1376, 12, 3576, 397, 296, 2135, 6134, 16573, 67, 5965, 87, 67, 9554, 273, 296, 5743, 11, 9604, 11529, 12, 86, 8314, 21763, 67, 5965, 87, 67, 9554, 296, 397, 16573, 67, 5965, 87, 67, 9554, 13, 1206, 2697, 12, 306, 296, 69, 324, 18, 21763, 2187, 296, 69, 324, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 1425, 30, 1234, 273, 315, 14294, 2856, 28602, 60, 5360, 7292, 316, 585, 1257, 2777, 315, 12870, 812, 2668, 69, 324, 18, 21763, 2187, 436, 8314, 2150, 95, 20478, 12800, 46, 1713, 262, 309, 511, 1777, 60, 480, 875, 30, 309, 1140, 18, 529, 422, 296, 496, 4278, 25079, 67, 659, 273, 1797, 1447, 12, 10512, 60, 397, 436, 8395, 1548, 5836, 5681, 3188, 64, 2630, 95, 2412, 69, 324, 2412, 1532, 3536, 13, 469, 30, 25079, 67, 659, 273, 1797, 1447, 2 ]
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, 348, 67, 3589, 12, 2206, 2042, 4956, 19, 27454, 461, 353, 486, 2553, 6, 262, 468, 6158, 19283, 628, 326, 4268, 3774, 743, 273, 2206, 3805, 19, 6466, 25222, 19, 8946, 5258, 87, 6, 738, 365, 18, 3489, 461, 364, 2873, 1895, 16, 2873, 1868, 16, 13722, 316, 261, 261, 315, 2340, 9444, 3113, 23453, 315, 3489, 2340, 9444, 6, 262, 16, 261, 315, 2930, 14836, 2563, 3113, 404, 16, 315, 3489, 2930, 14836, 2563, 6, 262, 16, 261, 315, 2563, 17115, 10694, 7355, 3113, 2468, 713, 16, 315, 3489, 2563, 22823, 10694, 7355, 6, 262, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 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, 348, 67, 3589, 12, 2206, 2042, 4956, 19, 27454, 461, 353, 486, 2553, 6, 262, 468, 6158, 19283, 628, 326, 4268, 3774, 743, 273, 2206, 3805, 19, 6466, 25222, 19, 8946, 5258, 87, 6, 738, 365, 18, 3489, 461, 364, 2873, 1895, 16, 2873, 1868, 16, 13722, 316, 261, 261, 315, 2340, 9444, 3113, 23453, 315, 3489, 2340, 9444, 6, 262, 16, 261, 315, 2930, 14836, 2563, 3113, 404, 16, 315, 3489, 2930, 14836, 2563, 6, 262, 16, 261, 315, 2563, 17115, 10694, 2 ]
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, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 302, 273, 5302, 12, 701, 12, 2116, 3719, 4080, 1311, 273, 302, 18, 2452, 1435, 4080, 1311, 18, 3804, 1435, 4080, 364, 498, 316, 1311, 30, 1372, 377, 1172, 498, 16, 302, 63, 856, 6487, 833, 5378, 462, 464, 749, 9913, 1372, 462, 464, 749, 8684, 1372, 10299, 2681, 1083, 1326, 1083, 1326, 13587, 1083, 2809, 1083, 1965, 599, 1158, 3491, 1083, 1158, 4947, 1083, 859, 599, 779, 2183, 743, 8513, 19, 24750, 19, 751, 2697, 14184, 1083, 3042, 1083, 3042, 1621, 1842, 67, 5040, 16421, 1083, 7666, 374, 1086, 343, 464, 749, 13666, 4148, 4278, 296, 2777, 19, 4148, 19, 1997, 782, 464, 749, 7821, 16, 296, 9340, 4278, 296, 2777, 19, 9340, 19, 1997, 782, 464, 749, 7821, 97, 1086, 8103, 13666, 4148, 4278, 296, 2777, 19, 4148, 19, 1997, 15774, 7821, 16, 296, 9340, 4278, 296, 2777, 19, 9340, 19, 1997, 15774, 7821, 97, 365, 3813, 1053, 2202, 225, 268, 2147, 1083, 1842, 3593, 599, 8513, 1621, 8513, 2836, 1083, 2836, 13587, 1083, 3988, 1083, 3536, 309, 702, 18, 5201, 30, 1172, 1001, 2434, 972, 2589, 18, 8593, 12, 22, 13, 225, 309, 702, 18, 25011, 2681, 30, 702, 18, 11369, 273, 1053, 225, 309, 296, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 302, 273, 5302, 12, 701, 12, 2116, 3719, 4080, 1311, 273, 302, 18, 2452, 1435, 4080, 1311, 18, 3804, 1435, 4080, 364, 498, 316, 1311, 30, 1372, 377, 1172, 498, 16, 302, 63, 856, 6487, 833, 5378, 462, 464, 749, 9913, 1372, 462, 464, 749, 8684, 1372, 10299, 2681, 1083, 1326, 1083, 1326, 13587, 1083, 2809, 1083, 1965, 599, 1158, 3491, 1083, 1158, 4947, 1083, 859, 599, 779, 2183, 743, 8513, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 999, 518, 8122, 18, 3536, 25565, 9314, 6353, 18, 19228, 9314, 6353, 12, 2890, 18, 4406, 16, 365, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 999, 518, 8122, 18, 3536, 25565, 9314, 6353, 18, 19228, 9314, 6353, 12, 2890, 18, 4406, 16, 365, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 16659, 2187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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 16659, 2187, 2153, 13, 578, 6866, 12, 683, 337, 16, 805, 273, 805, 13, 2934, 4939, 12, 2187, 6134, 327, 306, 69, 18, 6406, 1435, 364, 279, 316, 11755, 309, 279, 18, 6406, 1435, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
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,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'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, 24454, 33, 24454, 16, 13948, 33, 8381, 13, 400, 16, 710, 16, 5830, 273, 1043, 18, 1893, 1435, 309, 400, 422, 296, 5466, 4278, 365, 18, 1330, 2932, 4349, 5996, 2056, 67, 7473, 16777, 4179, 2773, 16, 6632, 13, 898, 469, 30, 1043, 273, 1694, 74, 18, 2271, 12, 2890, 18, 3612, 625, 16, 2890, 18, 4169, 265, 67, 2080, 16, 2890, 18, 23711, 67, 529, 16, 5971, 33, 24454, 16, 13948, 33, 8381, 13, 1043, 18, 542, 67, 1886, 67, 338, 15854, 12, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 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, 24454, 33, 24454, 16, 13948, 33, 8381, 13, 400, 16, 710, 16, 5830, 273, 1043, 18, 1893, 1435, 309, 400, 422, 296, 5466, 4278, 365, 18, 1330, 2932, 4349, 5996, 2056, 67, 7473, 16777, 4179, 2773, 16, 6632, 13, 898, 469, 30, 1043, 273, 1694, 74, 18, 2271, 12, 2890, 18, 3612, 625, 16, 2890, 18, 4169, 265, 67, 2080, 16, 2890, 18, 23711, 67, 529, 16, 5971, 33, 24454, 16, 13948, 33, 8381, 13, 1043, 18, 542, 67, 1886, 67, 338, 15854, 2 ]
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, 365, 18, 9647, 67, 2740, 2932, 16010, 6107, 1567, 3113, 431, 18, 1968, 63, 20, 5717, 327, 1083, 225, 9752, 2038, 273, 365, 18, 3567, 18, 1896, 67, 2293, 67, 3432, 67, 1467, 309, 9752, 2038, 471, 509, 12, 2890, 18, 267, 2485, 18, 588, 2932, 1350, 17, 1782, 3113, 374, 3719, 405, 9752, 2038, 30, 365, 18, 9647, 67, 2740, 2932, 24, 3437, 1567, 3887, 15869, 16236, 908, 3113, 315, 1986, 1522, 3271, 598, 326, 590, 14399, 326, 4207, 315, 315, 8151, 1731, 1199, 13, 327, 1083, 225, 468, 11049, 1459, 2865, 309, 365, 18, 2740, 67, 8373, 422, 315, 3693, 19, 21, 18, 21, 6877, 468, 19118, 1438, 471, 1004, 854, 2239, 19, 21, 18, 21, 309, 365, 18, 267, 2485, 18, 588, 2932, 1952, 3113, 1408, 13, 422, 315, 4412, 6877, 365, 18, 4412, 67, 4071, 273, 1053, 469, 30, 468, 14635, 326, 1438, 578, 1004, 261, 280, 3937, 13, 854, 2239, 19, 21, 18, 20, 309, 365, 18, 267, 2485, 18, 588, 2932, 1952, 3113, 1408, 13, 480, 315, 11523, 17, 10608, 6877, 365, 18, 4412, 67, 4071, 273, 1053, 225, 468, 12279, 17, 4705, 2865, 6489, 273, 599, 309, 365, 18, 2740, 67, 8373, 422, 315, 3693, 19, 21, 18, 21, 6877, 6489, 273, 365, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 9647, 67, 2740, 2932, 16010, 6107, 1567, 3113, 431, 18, 1968, 63, 20, 5717, 327, 1083, 225, 9752, 2038, 273, 365, 18, 3567, 18, 1896, 67, 2293, 67, 3432, 67, 1467, 309, 9752, 2038, 471, 509, 12, 2890, 18, 267, 2485, 18, 588, 2932, 1350, 17, 1782, 3113, 374, 3719, 405, 9752, 2038, 30, 365, 18, 9647, 67, 2740, 2932, 24, 3437, 1567, 3887, 15869, 16236, 908, 3113, 315, 1986, 1522, 3271, 598, 326, 590, 14399, 326, 4207, 315, 315, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18, 4881, 18, 1118, 1899, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 398, 93, 11824, 2923, 4125, 6390, 19490, 273, 14736, 18, 19490, 12, 71, 92, 273, 261, 2890, 18, 92, 15, 12, 87, 19, 22, 13, 3631, 6143, 273, 261, 2890, 18, 93, 15, 12, 87, 19, 22, 13, 3631, 436, 273, 272, 19, 22, 16, 3636, 2957, 273, 365, 18, 3266, 16, 11040, 2957, 273, 5740, 18, 11223, 16, 11040, 2384, 33, 87, 19, 7414, 12998, 314, 18, 1289, 12, 14068, 19490, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 398, 93, 11824, 2923, 4125, 6390, 19490, 273, 14736, 18, 19490, 12, 71, 92, 273, 261, 2890, 18, 92, 15, 12, 87, 19, 22, 13, 3631, 6143, 273, 261, 2890, 18, 93, 15, 12, 87, 19, 22, 13, 3631, 436, 273, 272, 19, 22, 16, 3636, 2957, 273, 365, 18, 3266, 16, 11040, 2957, 273, 5740, 18, 11223, 16, 11040, 2384, 33, 87, 19, 7414, 12998, 314, 18, 1289, 12, 14068, 19490, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]