rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
if experiment_summ_id in self.zero_lag_ids[experiment_id].values():
|
if experiment_id in self.zero_lag_ids and experiment_summ_id in self.zero_lag_ids[experiment_id].values():
|
def add_to_bkg_stats(self, experiment_id, experiment_summ_id, ifos, param_group, stat): """ Adds a stat to bkg_stats and sngl_slide_stats. What stat is added is determined on the command line by the ranking-stat option. """ if experiment_summ_id in self.zero_lag_ids[experiment_id].values(): self.sngl_slide_stats[(experiment_id, experiment_summ_id, ifos, param_group)] = [] else: if (experiment_id, ifos, param_group) not in self.bkg_stats: self.bkg_stats[(experiment_id, ifos, param_group)] = [] if (experiment_id, experiment_summ_id, ifos, param_group) not in self.sngl_slide_stats: self.sngl_slide_stats[(experiment_id, experiment_summ_id, ifos, param_group)] = [] self.bkg_stats[(experiment_id, ifos, param_group)].append( stat ) self.sngl_slide_stats[(experiment_id, experiment_summ_id, ifos, param_group)].append(stat)
|
0b6d3201037295b6d1b3819247b26b441a88c768 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b6d3201037295b6d1b3819247b26b441a88c768/ligolw_sqlutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
869,
67,
70,
14931,
67,
5296,
12,
2890,
16,
8724,
67,
350,
16,
8724,
67,
1364,
81,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
16,
610,
4672,
3536,
15605,
279,
610,
358,
324,
14931,
67,
5296,
471,
272,
3368,
80,
67,
26371,
67,
5296,
18,
18734,
610,
353,
3096,
353,
11383,
603,
326,
1296,
980,
635,
326,
23087,
17,
5642,
1456,
18,
3536,
309,
8724,
67,
350,
316,
365,
18,
7124,
67,
22532,
67,
2232,
471,
8724,
67,
1364,
81,
67,
350,
316,
365,
18,
7124,
67,
22532,
67,
2232,
63,
18142,
67,
350,
8009,
2372,
13332,
365,
18,
87,
3368,
80,
67,
26371,
67,
5296,
63,
12,
18142,
67,
350,
16,
8724,
67,
1364,
81,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
25887,
273,
5378,
469,
30,
309,
261,
18142,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
13,
486,
316,
365,
18,
70,
14931,
67,
5296,
30,
365,
18,
70,
14931,
67,
5296,
63,
12,
18142,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
25887,
273,
5378,
309,
261,
18142,
67,
350,
16,
8724,
67,
1364,
81,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
13,
486,
316,
365,
18,
87,
3368,
80,
67,
26371,
67,
5296,
30,
365,
18,
87,
3368,
80,
67,
26371,
67,
5296,
63,
12,
18142,
67,
350,
16,
8724,
67,
1364,
81,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
25887,
273,
5378,
365,
18,
70,
14931,
67,
5296,
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,
869,
67,
70,
14931,
67,
5296,
12,
2890,
16,
8724,
67,
350,
16,
8724,
67,
1364,
81,
67,
350,
16,
309,
538,
16,
579,
67,
1655,
16,
610,
4672,
3536,
15605,
279,
610,
358,
324,
14931,
67,
5296,
471,
272,
3368,
80,
67,
26371,
67,
5296,
18,
18734,
610,
353,
3096,
353,
11383,
603,
326,
1296,
980,
635,
326,
23087,
17,
5642,
1456,
18,
3536,
309,
8724,
67,
350,
316,
365,
18,
7124,
67,
22532,
67,
2232,
471,
8724,
67,
1364,
81,
67,
350,
316,
365,
18,
7124,
67,
22532,
67,
2232,
63,
18142,
67,
350,
8009,
2372,
13332,
365,
18,
87,
3368,
80,
67,
26371,
67,
5296,
63,
12,
18142,
67,
350,
16,
8724,
67,
2
] |
self.platform.clearPlatformSearchPaths()
|
self.platform.clearAutoLoadRecipes()
|
def clearPlatformAutoLoadRecipes(self): """ Clear the list of auto load recipes for the platform """ if self.platform is None: return self.platform.clearPlatformSearchPaths() return self
|
52bc736bccd14f83beab207fb20d38f1485d24dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7634/52bc736bccd14f83beab207fb20d38f1485d24dc/api1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
8201,
4965,
2563,
426,
3449,
281,
12,
2890,
4672,
3536,
10121,
326,
666,
434,
3656,
1262,
5863,
281,
364,
326,
4072,
3536,
309,
365,
18,
9898,
353,
599,
30,
327,
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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,
2424,
8201,
4965,
2563,
426,
3449,
281,
12,
2890,
4672,
3536,
10121,
326,
666,
434,
3656,
1262,
5863,
281,
364,
326,
4072,
3536,
309,
365,
18,
9898,
353,
599,
30,
327,
365,
18,
9898,
18,
8507,
4965,
2563,
426,
3449,
281,
1435,
327,
365,
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
] |
os.path.unlink(path)
|
os.unlink(path)
|
def remove_ipc_socket(path): os = __import__('os') if os.path.exists(path): os.path.unlink(path)
|
6ece3eb10bf2f37db6ff288b817ce86786ae5591 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/6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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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
625,
71,
67,
7814,
12,
803,
4672,
1140,
273,
1001,
5666,
972,
2668,
538,
6134,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1140,
18,
318,
1232,
12,
803,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.timer = VS.GetGameTime()+47 self.practice = 2 if (self.practice==2 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==2 and VS.GetGameTime()>=self.timer): self.practice = 3 if (self.practice==3 and self.player.getDistance(self.jump)<=10000):
|
self.timer = VS.GetGameTime()+52 self.practice = 3 if (self.practice==3 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) if (VS.GetGameTime()-self.talktime<=self.sequence[index][0]+1): VS.playSound(self.speech[index], self.player.Position(), Vector.Sub(self.player.Position(),self.drone.Position())) self.anitime = VS.GetGameTime()+2 if (self.practice==3 and VS.GetGameTime()>=self.timer): self.practice = 4 if (self.practice==4 and self.player.getDistance(self.jump)<=10000):
|
def practiceSpec (self): # practice intro if (self.practice==0): #self.jump = universe.getRandomJumppoint() self.jump = unit.getUnitByName('JumpToOldziey') nam = unit.getUnitFullName(self.jump) self.objective = VS.addObjective("Target %s" % nam) self.objectives+=[int(self.objective)] VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Let's practice some faster than light (FTL) travel now.") VS.IOmessage (2,"Oswald","Privateer",self.msgColor+"Target "+unit.getUnitFullName(self.jump)+" using the #9999FFN"+self.msgColor+" or the #9999FFShift+N"+self.msgColor+" keys.") self.player.commAnimation("com_tutorial_oswald.ani") self.player.commAnimation("com_tutorial_oswald.ani") self.timer = VS.GetGameTime()+4 self.practice = 1 if (self.practice==1 and self.player.GetTarget()==self.jump): VS.setCompleteness(self.objectives[self.objective],1.0) VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Set your velocity to maximum with the #9999FF\\"+self.msgColor+" key and activate the SPEC auto pilot with the #9999FFA"+self.msgColor+" key to get there. Hang on for a while, as this might take a while if you are close to massive objects.") VS.IOmessage (10,"Oswald","Privateer",self.msgColor+"You will notice that your SPEC drive indicator (S) is flashing, which indicates that it is active.") VS.IOmessage (15,"Oswald","Privateer",self.msgColor+"During FTL travel your shields become inactive, as you can see below on your ship VDU.") VS.IOmessage (20,"Oswald","Privateer",self.msgColor+"You will also notice that your steering has no effect on your vessel since the auto pilot has taken over the controls.") VS.IOmessage (26,"Oswald","Privateer",self.msgColor+"You can always interrupt and resume the auto pilot toggling the #9999FFA"+self.msgColor+" key. You may try that, if you wish.") VS.IOmessage (35,"Oswald","Privateer",self.msgColor+"In the lower left corner, just above your ship staus you will notice two indicators.") VS.IOmessage (40,"Oswald","Privateer",self.msgColor+"SPEC shows you if your SPEC drive is enabled.") VS.IOmessage (45,"Oswald","Privateer",self.msgColor+"AUTO tells you if auto pilot is engaged.") name = unit.getUnitFullName(self.jump) self.objective = VS.addObjective("Approach %s" % name) self.objectives+=[int(self.objective)] # set comm animation parameters self.sequence = [[0,10,0],[10,4,0],[15,4,0],[20,5,0],[26,6,0],[35,4,0],[40,3,0],[45,2,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+47 self.practice = 2 if (self.practice==2 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==2 and VS.GetGameTime()>=self.timer): self.practice = 3 if (self.practice==3 and self.player.getDistance(self.jump)<=10000): VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Almost there.") VS.IOmessage (2,"Oswald","Privateer",self.msgColor+"The auto pilot only gives back control only some time after the SPEC auto pilot light stopped flashing.") VS.IOmessage (8,"Oswald","Privateer",self.msgColor+"Notice also how your shields start recharing when leaving FTL travel mode.") # set comm animation parameters self.sequence = [[0,1,0],[2,4,0],[8,4,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+12 self.practice = 4 if (self.practice==4 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==4 and VS.GetGameTime()>=self.timer): self.practice = 5 if (self.practice==5 and self.player.getDistance(self.jump)<=3000): VS.setCompleteness(self.objectives[self.objective],1.0) VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Here we are.") VS.IOmessage (2,"Oswald","Privateer",self.msgColor+"You may try out manual FTL travel at this point in time.") VS.IOmessage (8,"Oswald","Privateer",self.msgColor+"Target planet Atlantis using your significant objects targetting keys #9999FFN"+self.msgColor+" and #9999FFShift+N"+self.msgColor+".") # set comm animation parameters self.sequence = [[0,1,0],[2,4,0],[8,4,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+12 self.practice += 1 if (self.practice==6 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==6 and VS.GetGameTime()>=self.timer): self.practice = 7 if (self.practice==7 and VS.GetGameTime()>self.timer): self.destination = unit.getUnitByName('Atlantis') self.distance = self.player.getDistance(self.destination) name = unit.getUnitFullName(self.destination) self.objective = VS.addObjective("Target %s" % name) self.objectives+=[int(self.objective)] self.timer = VS.GetGameTime() self.practice += 1 if (self.practice==8 and self.player.GetTarget()==self.destination): VS.setCompleteness(self.objectives[self.objective],1.0) VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Roger that. Turn towards the planet, set your velocity to maximum with the #9999FF\\"+self.msgColor+" key, and enable the manual SPEC with the #9999FFShift+A"+self.msgColor+" key to approach the planet.") VS.IOmessage (8,"Oswald","Privateer",self.msgColor+"Make sure that the planet is fairly well centered in your targetting reticule.") VS.IOmessage (12,"Oswald","Privateer",self.msgColor+"Notice how your speed starts increasing gradually after leaving the jump point range.") self.objective = VS.addObjective("Enable manual SPEC") self.objectives+=[int(self.objective)] # set comm animation parameters self.sequence = [[0,8,0],[8,4,0],[12,3,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+15 self.practice += 1 if (self.practice==9 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==9 and VS.GetGameTime()>=self.timer): self.practice = 10 if (self.practice==10 and self.player.GetTarget()==self.destination): #disabled for now, since max velocity does not return the spec values #velocity = Vector.Mag(self.player.GetVelocity()) #print "velocity=" + str(self.player.GetVelocity()) #print "magnitude=" + str(velocity) #if (velocity>=5000): if (self.player.getDistance(self.destination)<=(self.distance*0.97)): VS.setCompleteness(self.objectives[self.objective],1.0) VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"If your are getting too much off course, stop the SPEC drive toggling the #9999FFShift+A"+self.msgColor+" key, recenter your target, and then re-enable the manual SPEC drive again with the same keys.") VS.IOmessage (8,"Oswald","Privateer",self.msgColor+"When you have approched Atlantis to 10000km please disble the SPEC drive toggling the #9999FFShift+A"+self.msgColor+" key again and then stop your ship.") name = unit.getUnitFullName(self.destination) self.objective = VS.addObjective("Approach %s" % name) self.objectives+=[int(self.objective)] # set comm animation parameters self.sequence = [[0,6,0],[8,6,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+14 self.practice += 1 #else: # self.practice += 2 if (self.practice==11 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==11 and VS.GetGameTime()>=self.timer): self.practice = 12 if (self.practice==12 and self.player.getDistance(self.destination)<=10000000): VS.setCompleteness(self.objectives[self.objective],1.0) VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"All right.") VS.IOmessage (2,"Oswald","Privateer",self.msgColor+"You have learned how to conveniently travel within the system.") self.player.commAnimation("com_tutorial_oswald.ani") self.timer = VS.GetGameTime()+2 self.practice += 1 if (self.practice==13): velocity = Vector.Mag(self.player.GetVelocity()) if (velocity>=10 and self.player.getDistance(self.destination)<=2000000): VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Bring your ship to full stop before crashing into the planet.") self.player.commAnimation("com_tutorial_oswald.ani") self.objective = VS.addObjective("Stop your ship") self.objectives+=[int(self.objective)] self.timer = VS.GetGameTime()+10 self.practice += 1 else: self.practice += 2 if (self.practice==14): velocity = Vector.Mag(self.player.GetVelocity()) if (velocity<=10): VS.setCompleteness(self.objectives[self.objective],1.0) self.practice += 1 if (self.practice==15): VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"Now dock to the planet, go to the mission computer, and save your game.") VS.IOmessage (7,"Oswald","Privateer",self.msgColor+"Then get yourself a Jump Drive and an Overdrive and come back for more tutoring if you wish.") VS.IOmessage (15,"Oswald","Privateer",self.msgColor+"To dock, turn towards the planet and press the docking clearance request key #9999FFD"+self.msgColor+". A green docking frame will appear.") VS.IOmessage (25,"Oswald","Privateer",self.msgColor+"You may still enable the SPEC drive until you close up on the planet and your velocity matches the set velocity.") VS.IOmessage (35,"Oswald","Privateer",self.msgColor+"Press again the #9999FFD"+self.msgColor+" key to dock. The docking distance will depend on the planet or station size that you are docking to.") VS.IOmessage (42,"Oswald","Privateer",self.msgColor+"The larger the object the further away you can dock.") VS.IOmessage (45,"Oswald","Privateer",self.msgColor+"For Atlantis the docking distance is roughly about 990 kilometers.") # set comm animation parameters self.sequence = [[0,4,0],[7,4,0],[15,6,0],[25,4,0],[35,6,0],[42,2,0],[45,4,0]] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+49 self.practice += 1 if (self.practice==16 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[index][1]): self.player.commAnimation(self.animations[self.sequence[index][2]][0]) self.anitime = VS.GetGameTime()+2 if (self.practice==16 and VS.GetGameTime()>=self.timer): self.practice += 1 if (self.practice==17 and self.destination.isDocked(self.player)): VS.IOmessage (0,"Oswald","Privateer",self.msgColor+"That concludes the navigation part of the tutorial.") self.player.commAnimation("com_tutorial_oswald.ani") self.timer = VS.GetGameTime()+0 self.practice = 99 if (self.practice>=99): # make sure to reset the counter for the next practice loops self.practice = 0 self.stage = COMPLETE_TUTORIAL4 self.putSaveValue(self.stage) return 0
|
66c46e79ea501cbc68b49d8dd0a03a57988f1683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/66c46e79ea501cbc68b49d8dd0a03a57988f1683/quest_tutorial.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27164,
1990,
261,
2890,
4672,
468,
27164,
13079,
309,
261,
2890,
18,
84,
14266,
1812,
631,
20,
4672,
468,
2890,
18,
24574,
273,
29235,
18,
588,
8529,
26743,
1153,
1435,
365,
18,
24574,
273,
2836,
18,
588,
2802,
5911,
2668,
26743,
774,
7617,
94,
77,
402,
6134,
15135,
273,
2836,
18,
588,
2802,
19223,
12,
2890,
18,
24574,
13,
365,
18,
20174,
273,
776,
55,
18,
1289,
921,
688,
2932,
2326,
738,
87,
6,
738,
15135,
13,
365,
18,
1612,
3606,
15,
22850,
474,
12,
2890,
18,
20174,
25887,
776,
55,
18,
4294,
2150,
261,
20,
10837,
51,
5328,
287,
72,
15937,
6014,
264,
3113,
2890,
18,
3576,
2957,
9078,
24181,
1807,
27164,
2690,
12063,
2353,
9052,
261,
4464,
48,
13,
29090,
2037,
1199,
13,
776,
55,
18,
4294,
2150,
261,
22,
10837,
51,
5328,
287,
72,
15937,
6014,
264,
3113,
2890,
18,
3576,
2957,
9078,
2326,
13773,
4873,
18,
588,
2802,
19223,
12,
2890,
18,
24574,
13,
9078,
1450,
326,
468,
7991,
2246,
50,
6,
15,
2890,
18,
3576,
2957,
9078,
578,
326,
468,
7991,
2246,
10544,
15,
50,
6,
15,
2890,
18,
3576,
2957,
9078,
1311,
1199,
13,
365,
18,
14872,
18,
5702,
10816,
2932,
832,
67,
88,
22378,
67,
538,
91,
287,
72,
18,
28662,
7923,
365,
18,
14872,
18,
5702,
10816,
2932,
832,
67,
88,
22378,
67,
538,
91,
287,
72,
18,
28662,
7923,
365,
18,
12542,
273,
776,
55,
18,
967,
12496,
950,
1435,
15,
24,
365,
18,
84,
14266,
1812,
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,
27164,
1990,
261,
2890,
4672,
468,
27164,
13079,
309,
261,
2890,
18,
84,
14266,
1812,
631,
20,
4672,
468,
2890,
18,
24574,
273,
29235,
18,
588,
8529,
26743,
1153,
1435,
365,
18,
24574,
273,
2836,
18,
588,
2802,
5911,
2668,
26743,
774,
7617,
94,
77,
402,
6134,
15135,
273,
2836,
18,
588,
2802,
19223,
12,
2890,
18,
24574,
13,
365,
18,
20174,
273,
776,
55,
18,
1289,
921,
688,
2932,
2326,
738,
87,
6,
738,
15135,
13,
365,
18,
1612,
3606,
15,
22850,
474,
12,
2890,
18,
20174,
25887,
776,
55,
18,
4294,
2150,
261,
20,
10837,
51,
5328,
287,
72,
15937,
6014,
264,
3113,
2890,
18,
3576,
2957,
9078,
24181,
1807,
27164,
2690,
12063,
2353,
9052,
261,
2
] |
if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1) result = [] else: result = self.resolveDependencies(include, block, variants) if len(explicitInclude) > 0 or len(explicitExclude) > 0: self._console.info("Processing explicitely configured includes/excludes...") for entry in explicitInclude: if not entry in result: result.append(entry) for entry in explicitExclude: if entry in result: result.remove(entry)
|
def resolveDepsSmartCludes(): if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1) result = [] else: result = self.resolveDependencies(include, block, variants) return result def processExplicitCludes(result): if len(explicitInclude) > 0 or len(explicitExclude) > 0: self._console.info("Processing explicitely configured includes/excludes...") for entry in explicitInclude: if not entry in result: result.append(entry) for entry in explicitExclude: if entry in result: result.remove(entry) return result result = resolveDepsSmartCludes() result = processExplicitCludes(result)
|
def getClassList(self, include, block, explicitInclude, explicitExclude, variants): # Resolve intelli include depdendencies if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1)
|
39021e8f538ea21eaaca166327458f978af29f06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/39021e8f538ea21eaaca166327458f978af29f06/DependencyLoader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2900,
682,
12,
2890,
16,
2341,
16,
1203,
16,
5515,
8752,
16,
5515,
12689,
16,
12935,
4672,
468,
9910,
509,
292,
549,
2341,
5993,
72,
409,
3209,
309,
562,
12,
6702,
13,
422,
374,
471,
562,
12,
16511,
8752,
13,
405,
374,
30,
309,
562,
12,
2629,
13,
405,
374,
30,
365,
6315,
8698,
18,
1636,
2932,
8728,
353,
486,
3260,
1347,
1338,
5515,
6104,
854,
2553,
4442,
1769,
2589,
18,
8593,
12,
21,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2900,
682,
12,
2890,
16,
2341,
16,
1203,
16,
5515,
8752,
16,
5515,
12689,
16,
12935,
4672,
468,
9910,
509,
292,
549,
2341,
5993,
72,
409,
3209,
309,
562,
12,
6702,
13,
422,
374,
471,
562,
12,
16511,
8752,
13,
405,
374,
30,
309,
562,
12,
2629,
13,
405,
374,
30,
365,
6315,
8698,
18,
1636,
2932,
8728,
353,
486,
3260,
1347,
1338,
5515,
6104,
854,
2553,
4442,
1769,
2589,
18,
8593,
12,
21,
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
] |
rev_item = self.revision
|
rev = self.revisions[0]["revision"].value
|
def compare_previous_revision(self, widget, data=None): rev_item = self.revision path_item = self.paths[0] url = self.caller.root_url + path_item self.caller.view_diff_for_path(url, rev_item.value, sidebyside=True)
|
254cf90c673c32fc3faafcde068598e8de07eeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/254cf90c673c32fc3faafcde068598e8de07eeee/log.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
11515,
67,
13057,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
5588,
273,
365,
18,
29892,
63,
20,
6362,
6,
13057,
6,
8009,
1132,
589,
67,
1726,
273,
365,
18,
4481,
63,
20,
65,
880,
273,
365,
18,
16140,
18,
3085,
67,
718,
397,
589,
67,
1726,
365,
18,
16140,
18,
1945,
67,
5413,
67,
1884,
67,
803,
12,
718,
16,
5588,
67,
1726,
18,
1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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
11515,
67,
13057,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
5588,
273,
365,
18,
29892,
63,
20,
6362,
6,
13057,
6,
8009,
1132,
589,
67,
1726,
273,
365,
18,
4481,
63,
20,
65,
880,
273,
365,
18,
16140,
18,
3085,
67,
718,
397,
589,
67,
1726,
365,
18,
16140,
18,
1945,
67,
5413,
67,
1884,
67,
803,
12,
718,
16,
5588,
67,
1726,
18,
1132,
16,
4889,
1637,
5564,
33,
5510,
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
] |
print "\t-d, --download_dir\t\t\tOverride the default download directory"
|
print "\t-d, --download_dir\t\tOverride the default download directory"
|
def usage(): print "sofabuddy.py [options]" print 'Example' print '\tsofabuddy.py -d "/media/downloads" -h "192.168.1.1"' print "Options" print "\t-?, --help\t\t\tWill bring up this message" print "\t-d, --download_dir\t\t\tOverride the default download directory" print "\t-h, --host=HOST\t\t\tChoose the ip address of your XBMC box (default=127.0.0.1)" pass
|
d980e351d61a854ab2f62963548b755646b43fb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/d980e351d61a854ab2f62963548b755646b43fb9/sofabuddy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
87,
792,
12941,
449,
93,
18,
2074,
306,
2116,
4279,
1172,
296,
10908,
11,
1172,
2337,
3428,
792,
12941,
449,
93,
18,
2074,
300,
72,
2206,
5829,
19,
7813,
87,
6,
300,
76,
315,
15561,
18,
23329,
18,
21,
18,
21,
5187,
1172,
315,
1320,
6,
1172,
1548,
88,
17,
35,
16,
1493,
5201,
64,
88,
64,
88,
64,
88,
13670,
5186,
310,
731,
333,
883,
6,
1172,
1548,
88,
17,
72,
16,
1493,
7813,
67,
1214,
64,
88,
64,
88,
6618,
326,
805,
4224,
1867,
6,
1172,
1548,
88,
17,
76,
16,
1493,
2564,
33,
8908,
64,
88,
64,
88,
64,
88,
24529,
326,
2359,
1758,
434,
3433,
1139,
38,
20022,
3919,
261,
1886,
33,
14260,
18,
20,
18,
20,
18,
21,
2225,
1342,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
87,
792,
12941,
449,
93,
18,
2074,
306,
2116,
4279,
1172,
296,
10908,
11,
1172,
2337,
3428,
792,
12941,
449,
93,
18,
2074,
300,
72,
2206,
5829,
19,
7813,
87,
6,
300,
76,
315,
15561,
18,
23329,
18,
21,
18,
21,
5187,
1172,
315,
1320,
6,
1172,
1548,
88,
17,
35,
16,
1493,
5201,
64,
88,
64,
88,
64,
88,
13670,
5186,
310,
731,
333,
883,
6,
1172,
1548,
88,
17,
72,
16,
1493,
7813,
67,
1214,
64,
88,
64,
88,
6618,
326,
805,
4224,
1867,
6,
1172,
1548,
88,
17,
76,
16,
1493,
2564,
33,
8908,
64,
88,
64,
88,
64,
88,
24529,
326,
2359,
1758,
434,
3433,
1139,
38,
20022,
3919,
261,
2
] |
if "source" in fields and fields["source"] == "freshmeat":
|
if "source" in fields and fields["source"].value == "freshmeat":
|
def _getMetadata(self, fields, troveName, branch): branch = self.repServer.thawVersion(branch)
|
f536a0fb072aa939f48e4c75dfb6a0d1cfaecd08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f536a0fb072aa939f48e4c75dfb6a0d1cfaecd08/http.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2277,
12,
2890,
16,
1466,
16,
23432,
537,
461,
16,
3803,
4672,
3803,
273,
365,
18,
14462,
2081,
18,
451,
2219,
1444,
12,
7500,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2277,
12,
2890,
16,
1466,
16,
23432,
537,
461,
16,
3803,
4672,
3803,
273,
365,
18,
14462,
2081,
18,
451,
2219,
1444,
12,
7500,
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,
-100
] |
f = self.open(support.TESTFN, "wb") f.write(data) f.close() f = self.open(support.TESTFN, "r", encoding="utf-8") f._CHUNK_SIZE f._CHUNK_SIZE = 2 f.readline() f.tell()
|
with self.open(support.TESTFN, "wb") as f: f.write(data) with self.open(support.TESTFN, "r", encoding="utf-8") as f: f._CHUNK_SIZE f._CHUNK_SIZE = 2 f.readline() f.tell()
|
def test_seeking_too(self): # Regression test for a specific bug data = b'\xe0\xbf\xbf\n' f = self.open(support.TESTFN, "wb") f.write(data) f.close() f = self.open(support.TESTFN, "r", encoding="utf-8") f._CHUNK_SIZE # Just test that it exists f._CHUNK_SIZE = 2 f.readline() f.tell()
|
ebe5d8ae3b43f03a48aa02eb11862d234678a01f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ebe5d8ae3b43f03a48aa02eb11862d234678a01f/test_io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16508,
310,
67,
16431,
12,
2890,
4672,
468,
868,
2329,
285,
1842,
364,
279,
2923,
7934,
501,
273,
324,
8314,
6554,
20,
64,
6114,
74,
64,
6114,
74,
64,
82,
11,
284,
273,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
9464,
7923,
284,
18,
2626,
12,
892,
13,
284,
18,
4412,
1435,
284,
273,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
86,
3113,
2688,
1546,
3158,
17,
28,
7923,
284,
6315,
26464,
67,
4574,
225,
468,
12526,
1842,
716,
518,
1704,
284,
6315,
26464,
67,
4574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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16508,
310,
67,
16431,
12,
2890,
4672,
468,
868,
2329,
285,
1842,
364,
279,
2923,
7934,
501,
273,
324,
8314,
6554,
20,
64,
6114,
74,
64,
6114,
74,
64,
82,
11,
284,
273,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
9464,
7923,
284,
18,
2626,
12,
892,
13,
284,
18,
4412,
1435,
284,
273,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
86,
3113,
2688,
1546,
3158,
17,
28,
7923,
284,
6315,
26464,
67,
4574,
225,
468,
12526,
1842,
716,
518,
1704,
284,
6315,
26464,
67,
4574,
273,
576,
284,
18,
896,
1369,
1435,
284,
18,
88,
1165,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
BASELINE_SUFFIXES = ['.txt', '.png', '.checksum']
|
def LogDashedString(text, platform, logging_level=logging.INFO): """Log text message with dashes on both sides.""" msg = '%s: %s' % (text, platform) if len(msg) < 78: dashes = '-' * ((78 - len(msg)) / 2) msg = '%s %s %s' % (dashes, msg, dashes) if logging_level == logging.ERROR: logging.error(msg) elif logging_level == logging.WARNING: logging.warn(msg) else: logging.info(msg)
|
bde066cf969da31c2e385b05815f0a7b2fb63cba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/bde066cf969da31c2e385b05815f0a7b2fb63cba/rebaseline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1827,
40,
13912,
780,
12,
955,
16,
4072,
16,
2907,
67,
2815,
33,
11167,
18,
5923,
4672,
3536,
1343,
977,
883,
598,
25523,
603,
3937,
22423,
12123,
225,
1234,
273,
1995,
87,
30,
738,
87,
11,
738,
261,
955,
16,
4072,
13,
309,
562,
12,
3576,
13,
411,
22860,
30,
25523,
273,
4014,
380,
14015,
8285,
300,
562,
12,
3576,
3719,
342,
576,
13,
1234,
273,
1995,
87,
738,
87,
738,
87,
11,
738,
261,
72,
7690,
16,
1234,
16,
25523,
13,
225,
309,
2907,
67,
2815,
422,
2907,
18,
3589,
30,
2907,
18,
1636,
12,
3576,
13,
1327,
2907,
67,
2815,
422,
2907,
18,
9511,
30,
2907,
18,
8935,
12,
3576,
13,
469,
30,
2907,
18,
1376,
12,
3576,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1827,
40,
13912,
780,
12,
955,
16,
4072,
16,
2907,
67,
2815,
33,
11167,
18,
5923,
4672,
3536,
1343,
977,
883,
598,
25523,
603,
3937,
22423,
12123,
225,
1234,
273,
1995,
87,
30,
738,
87,
11,
738,
261,
955,
16,
4072,
13,
309,
562,
12,
3576,
13,
411,
22860,
30,
25523,
273,
4014,
380,
14015,
8285,
300,
562,
12,
3576,
3719,
342,
576,
13,
1234,
273,
1995,
87,
738,
87,
738,
87,
11,
738,
261,
72,
7690,
16,
1234,
16,
25523,
13,
225,
309,
2907,
67,
2815,
422,
2907,
18,
3589,
30,
2907,
18,
1636,
12,
3576,
13,
1327,
2907,
67,
2815,
422,
2907,
18,
9511,
30,
2907,
18,
8935,
12,
3576,
13,
469,
30,
2907,
18,
1376,
2
] |
|
verbose = True
|
logSys.set_loglevel(log4py.LOGLEVEL_VERBOSE)
|
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the new process # is guaranteed not to be a process group leader. We have this guarantee # because the process GID of the parent is inherited by the child, but # the child gets a new PID, making it impossible for its PID to equal its # PGID. pid = os.fork() except OSError, e: return((e.errno, e.strerror)) # ERROR (return a tuple) if (pid == 0): # The first child. # Next we call os.setsid() to become the session leader of this new # session. The process also becomes the process group leader of the # new process group. Since a controlling terminal is associated with a # session, and this new session has not yet acquired a controlling # terminal our process now has no controlling terminal. This shouldn't # fail, since we're guaranteed that the child is not a process group # leader. os.setsid() # When the first child terminates, all processes in the second child # are sent a SIGHUP, so it's ignored. signal.signal(signal.SIGHUP, signal.SIG_IGN) try: # Fork a second child to prevent zombies. Since the first child is # a session leader without a controlling terminal, it's possible for # it to acquire one by opening a terminal in the future. This second # fork guarantees that the child is no longer a session leader, thus # preventing the daemon from ever acquiring a controlling terminal. pid = os.fork() # Fork a second child. except OSError, e: return((e.errno, e.strerror)) # ERROR (return a tuple) if (pid == 0): # The second child. # Ensure that the daemon doesn't keep any directory in use. Failure # to do this could make a filesystem unmountable. #os.chdir("/") # Give the child complete control over permissions. os.umask(0) else: os._exit(0) # Exit parent (the first child) of the second child. else: os._exit(0) # Exit parent of the first child. # Close all open files. Try the system configuration variable, SC_OPEN_MAX, # for the maximum number of open files to close. If it doesn't exist, use # the default value (configurable). try: maxfd = os.sysconf("SC_OPEN_MAX") except (AttributeError, ValueError): maxfd = 256 # default maximum for fd in range(0, maxfd): try: os.close(fd) except OSError: # ERROR (ignore) pass # Redirect the standard file descriptors to /dev/null. os.open("/dev/null", os.O_RDONLY) # standard input (0) #os.open("/dev/null", os.O_RDWR) # standard output (1) os.open("/tmp/fail2ban.log", os.O_CREAT|os.O_APPEND|os.O_RDWR) # standard output (1) #os.open("/dev/null", os.O_RDWR) # standard error (2) os.open("/tmp/fail2ban.log", os.O_CREAT|os.O_APPEND|os.O_RDWR) # standard error (2) return(0)
|
f0a01914acbd661a7ffa92b051597816095159bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/f0a01914acbd661a7ffa92b051597816095159bf/fail2ban.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12858,
13332,
3536,
17650,
279,
1207,
628,
326,
3325,
2456,
8651,
471,
1086,
518,
316,
326,
5412,
487,
279,
8131,
18,
225,
1062,
2207,
345,
7449,
18,
11422,
395,
340,
18,
832,
19,
3033,
15124,
19,
39,
1184,
3618,
19,
15774,
19,
5650,
3151,
19,
5324,
11035,
6938,
3536,
225,
775,
30,
468,
27599,
279,
1151,
1207,
1427,
326,
982,
848,
2427,
18,
225,
1220,
903,
327,
3325,
468,
358,
326,
1296,
980,
578,
5972,
18,
225,
1220,
353,
1931,
1427,
716,
326,
394,
1207,
468,
353,
15403,
486,
358,
506,
279,
1207,
1041,
10302,
18,
225,
1660,
1240,
333,
18779,
468,
2724,
326,
1207,
611,
734,
434,
326,
982,
353,
12078,
635,
326,
1151,
16,
1496,
468,
326,
1151,
5571,
279,
394,
14788,
16,
10480,
518,
23343,
364,
2097,
14788,
358,
3959,
2097,
468,
22116,
734,
18,
4231,
273,
1140,
18,
23335,
1435,
1335,
10002,
16,
425,
30,
327,
12443,
73,
18,
19088,
16,
425,
18,
701,
1636,
3719,
202,
468,
5475,
261,
2463,
279,
3193,
13,
225,
309,
261,
6610,
422,
374,
4672,
202,
282,
468,
1021,
1122,
1151,
18,
225,
468,
4804,
732,
745,
1140,
18,
4424,
350,
1435,
358,
12561,
326,
1339,
10302,
434,
333,
394,
468,
1339,
18,
225,
1021,
1207,
2546,
12724,
326,
1207,
1041,
10302,
434,
326,
468,
394,
1207,
1041,
18,
225,
7897,
279,
3325,
2456,
8651,
353,
3627,
598,
279,
468,
1339,
16,
471,
333,
394,
1339,
711,
486,
4671,
20598,
279,
3325,
2456,
468,
8651,
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,
752,
12858,
13332,
3536,
17650,
279,
1207,
628,
326,
3325,
2456,
8651,
471,
1086,
518,
316,
326,
5412,
487,
279,
8131,
18,
225,
1062,
2207,
345,
7449,
18,
11422,
395,
340,
18,
832,
19,
3033,
15124,
19,
39,
1184,
3618,
19,
15774,
19,
5650,
3151,
19,
5324,
11035,
6938,
3536,
225,
775,
30,
468,
27599,
279,
1151,
1207,
1427,
326,
982,
848,
2427,
18,
225,
1220,
903,
327,
3325,
468,
358,
326,
1296,
980,
578,
5972,
18,
225,
1220,
353,
1931,
1427,
716,
326,
394,
1207,
468,
353,
15403,
486,
358,
506,
279,
1207,
1041,
10302,
18,
225,
1660,
1240,
333,
18779,
468,
2724,
326,
1207,
611,
734,
434,
326,
982,
353,
12078,
635,
326,
1151,
16,
1496,
2
] |
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
|
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
|
b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
2828,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
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,
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
] |
|
gobject.idle_add(self.ParseSettings) return True
|
gobject.idle_add (self.ParseSettings) return False
|
def Wait(self): if len(self.PluginList) == 0: return False gobject.idle_add(self.ParseSettings) return True
|
d41d2649e29df75d37782fcada647667abe8b68b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/d41d2649e29df75d37782fcada647667abe8b68b/Utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5838,
12,
2890,
4672,
309,
562,
12,
2890,
18,
3773,
682,
13,
422,
374,
30,
327,
1083,
225,
314,
1612,
18,
20390,
67,
1289,
261,
2890,
18,
3201,
2628,
13,
225,
327,
1083,
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,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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,
5838,
12,
2890,
4672,
309,
562,
12,
2890,
18,
3773,
682,
13,
422,
374,
30,
327,
1083,
225,
314,
1612,
18,
20390,
67,
1289,
261,
2890,
18,
3201,
2628,
13,
225,
327,
1083,
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
] |
Returns a list of manifestitem names that are updates for
|
Returns a list of manifestitem names that are updates for
|
def lookForUpdates(manifestitem, cataloglist, installinfo): """ Looks for updates for a given manifest item that is either installed or scheduled to be installed. This handles not only specific application updates, but also updates that aren't simply later versions of the manifest item. For example, AdobeCameraRaw is an update for Adobe Photoshop, but doesn't update the version of Adobe Photoshop. Returns a list of manifestitem names that are updates for manifestitem. """ nameWithVersion = os.path.split(manifestitem)[1] (name, includedversion) = nameAndVersion(nameWithVersion) # get a list of catalog items that are updates for other items update_list = [] for catalogname in cataloglist: updaters = catalog[catalogname]['updaters'] # list comprehension coming up... update_items = [catalogitem['name'] for catalogitem in updaters if (name in catalogitem.get('update_for',[]) or nameWithVersion in catalogitem.get('update_for',[]))] if update_items: update_list.extend(update_items) if update_list: # make sure the list has only unique items: update_list = list(set(update_list)) return update_list
|
5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
7372,
486,
1338,
2923,
2521,
4533,
16,
1496,
2546,
4533,
716,
11526,
1404,
8616,
5137,
5244,
434,
326,
5643,
761,
18,
2457,
3454,
16,
4052,
947,
73,
16521,
4809,
353,
392,
1089,
364,
4052,
947,
73,
4360,
12440,
18444,
16,
1496,
3302,
1404,
1089,
326,
1177,
434,
4052,
947,
73,
4360,
12440,
18444,
18,
2860,
279,
666,
434,
5643,
1726,
1257,
716,
854,
4533,
364,
5643,
1726,
18,
3536,
508,
1190,
1444,
273,
1140,
18,
803,
18,
4939,
12,
14357,
1726,
25146,
21,
65,
261,
529,
16,
5849,
1589,
13,
273,
508,
1876,
1444,
12,
529,
1190,
1444,
13,
468,
336,
279,
666,
434,
6222,
1516,
716,
854,
4533,
364,
1308,
1516,
1089,
67,
1098,
273,
5378,
364,
6222,
529,
316,
6222,
1098,
30,
2166,
31302,
273,
6222,
63,
7199,
529,
23962,
416,
3404,
414,
3546,
468,
666,
1161,
266,
76,
1451,
19283,
731,
2777,
1089,
67,
3319,
273,
306,
7199,
1726,
3292,
529,
3546,
364,
6222,
1726,
316,
2166,
31302,
309,
261,
529,
316,
6222,
1726,
18,
588,
2668,
2725,
67,
1884,
2187,
63,
5717,
578,
508,
1190,
1444,
316,
6222,
1726,
18,
588,
2668,
2725,
67,
1884,
2187,
8526,
3719,
65,
309,
1089,
67,
3319,
30,
1089,
67,
1098,
18,
14313,
12,
2725,
67,
3319,
13,
309,
1089,
67,
1098,
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,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
7372,
486,
1338,
2923,
2521,
4533,
16,
1496,
2546,
4533,
716,
11526,
1404,
8616,
5137,
5244,
434,
326,
5643,
761,
18,
2457,
3454,
16,
4052,
947,
73,
16521,
4809,
353,
392,
1089,
364,
4052,
947,
73,
4360,
12440,
18444,
16,
1496,
3302,
1404,
1089,
326,
1177,
434,
4052,
947,
73,
4360,
12440,
18444,
18,
2860,
279,
666,
434,
5643,
1726,
1257,
716,
854,
4533,
364,
5643,
1726,
18,
3536,
508,
1190,
1444,
273,
1140,
18,
803,
18,
4939,
12,
14357,
1726,
25146,
21,
65,
2
] |
imgdata = self.rescaleOriginal(value, **kwargs)
|
data = self.rescaleOriginal(value, **kwargs)
|
def set(self, instance, value, **kwargs): if not value: return
|
809657aff1e48a9eb15209837cdae668475834bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/809657aff1e48a9eb15209837cdae668475834bc/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
309,
486,
460,
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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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
] |
def _loadPickle(self,fname):
|
def _loadPickle(self, fileName):
|
def _loadPickle(self,fname): '''Load data from a file in pickle format.''' f = open(fname,'rb') newStore = cPickle.load(f) #this should also work for derived classes self.__dict__ = newStore.__dict__ #copy the (all) data attributes f.close()
|
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
17968,
298,
12,
2890,
16,
3968,
4672,
9163,
2563,
501,
628,
279,
585,
316,
13379,
740,
1093,
6309,
284,
273,
1696,
12,
12749,
11189,
6731,
6134,
394,
2257,
273,
276,
17968,
298,
18,
945,
12,
74,
13,
468,
2211,
1410,
2546,
1440,
364,
10379,
3318,
365,
16186,
1576,
972,
273,
394,
2257,
16186,
1576,
972,
468,
3530,
326,
261,
454,
13,
501,
1677,
284,
18,
4412,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
17968,
298,
12,
2890,
16,
3968,
4672,
9163,
2563,
501,
628,
279,
585,
316,
13379,
740,
1093,
6309,
284,
273,
1696,
12,
12749,
11189,
6731,
6134,
394,
2257,
273,
276,
17968,
298,
18,
945,
12,
74,
13,
468,
2211,
1410,
2546,
1440,
364,
10379,
3318,
365,
16186,
1576,
972,
273,
394,
2257,
16186,
1576,
972,
468,
3530,
326,
261,
454,
13,
501,
1677,
284,
18,
4412,
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
] |
this = apply(_quickfix.new_PriorityIndicator, args)
|
this = _quickfix.new_PriorityIndicator(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_PriorityIndicator, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8183,
13140,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8183,
13140,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
method(self)
|
visitor.dispatch_visit(self, self.__class__.__name__)
|
def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called.
|
5f61b1a9b47ca28d544232f9f82b373f45fe9d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/5f61b1a9b47ca28d544232f9f82b373f45fe9d32/nodes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
10335,
2590,
1865,
15702,
1517,
756,
18,
971,
1915,
353,
1158,
12176,
323,
2680,
67,
2680,
335,
2490,
67,
2159,
10335,
707,
364,
279,
756,
434,
618,
12176,
2680,
335,
2490,
67,
2159,
68,
9191,
326,
12176,
8172,
67,
323,
2680,
594,
10335,
707,
353,
2566,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
10335,
2590,
1865,
15702,
1517,
756,
18,
971,
1915,
353,
1158,
12176,
323,
2680,
67,
2680,
335,
2490,
67,
2159,
10335,
707,
364,
279,
756,
434,
618,
12176,
2680,
335,
2490,
67,
2159,
68,
9191,
326,
12176,
8172,
67,
323,
2680,
594,
10335,
707,
353,
2566,
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
] |
with closing(self.browser.open_novisit(url, timeout=self.timeout)) as f:
|
open_func = getattr(self.browser, 'open_novisit', self.browser.open) with closing(open_func(url, timeout=self.timeout)) as f:
|
def fetch_url(self, url): data = None self.log.debug('Fetching', url) delta = time.time() - self.last_fetch_at if delta < self.delay: time.sleep(delta) if re.search(r'\s+|,', url) is not None: purl = list(urlparse.urlparse(url)) for i in range(2, 6): purl[i] = quote(purl[i]) url = urlparse.urlunparse(purl) try: with closing(self.browser.open_novisit(url, timeout=self.timeout)) as f: data = response(f.read()+f.read()) data.newurl = f.geturl() except urllib2.URLError, err: if hasattr(err, 'code') and responses.has_key(err.code): raise FetchError, responses[err.code] if getattr(err, 'reason', [0])[0] == 104 or \ getattr(getattr(err, 'args', [None])[0], 'errno', None) == -2: # Connection reset by peer or Name or service not know self.log.debug('Temporary error, retrying in 1 second') time.sleep(1) with closing(self.browser.open(url, timeout=self.timeout)) as f: data = response(f.read()+f.read()) data.newurl = f.geturl() else: raise err finally: self.last_fetch_at = time.time() return data
|
611231ea59272ffb671a324fe20df574dbc5eebd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/611231ea59272ffb671a324fe20df574dbc5eebd/simple.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
718,
12,
2890,
16,
880,
4672,
501,
273,
599,
365,
18,
1330,
18,
4148,
2668,
30806,
2187,
880,
13,
3622,
273,
813,
18,
957,
1435,
300,
365,
18,
2722,
67,
5754,
67,
270,
309,
225,
3622,
411,
365,
18,
10790,
30,
813,
18,
19607,
12,
9878,
13,
309,
283,
18,
3072,
12,
86,
8314,
87,
15,
96,
16,
2187,
880,
13,
353,
486,
599,
30,
293,
718,
273,
666,
12,
718,
2670,
18,
718,
2670,
12,
718,
3719,
364,
277,
316,
1048,
12,
22,
16,
1666,
4672,
293,
718,
63,
77,
65,
273,
3862,
12,
84,
718,
63,
77,
5717,
880,
273,
15185,
18,
718,
318,
2670,
12,
84,
718,
13,
775,
30,
1696,
67,
644,
273,
3869,
12,
2890,
18,
11213,
16,
296,
3190,
67,
82,
1527,
291,
305,
2187,
365,
18,
11213,
18,
3190,
13,
598,
7647,
12,
3190,
67,
644,
12,
718,
16,
2021,
33,
2890,
18,
4538,
3719,
487,
284,
30,
501,
273,
766,
12,
74,
18,
896,
1435,
15,
74,
18,
896,
10756,
501,
18,
2704,
718,
273,
284,
18,
588,
718,
1435,
1335,
11527,
22,
18,
1785,
668,
16,
393,
30,
309,
3859,
12,
370,
16,
296,
710,
6134,
471,
7220,
18,
5332,
67,
856,
12,
370,
18,
710,
4672,
1002,
8065,
668,
16,
7220,
63,
370,
18,
710,
65,
309,
3869,
12,
370,
16,
296,
10579,
2187,
306,
20,
5717,
63,
20,
65,
422,
21856,
578,
521,
3869,
12,
588,
1747,
12,
370,
16,
296,
1968,
2187,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2158,
67,
718,
12,
2890,
16,
880,
4672,
501,
273,
599,
365,
18,
1330,
18,
4148,
2668,
30806,
2187,
880,
13,
3622,
273,
813,
18,
957,
1435,
300,
365,
18,
2722,
67,
5754,
67,
270,
309,
225,
3622,
411,
365,
18,
10790,
30,
813,
18,
19607,
12,
9878,
13,
309,
283,
18,
3072,
12,
86,
8314,
87,
15,
96,
16,
2187,
880,
13,
353,
486,
599,
30,
293,
718,
273,
666,
12,
718,
2670,
18,
718,
2670,
12,
718,
3719,
364,
277,
316,
1048,
12,
22,
16,
1666,
4672,
293,
718,
63,
77,
65,
273,
3862,
12,
84,
718,
63,
77,
5717,
880,
273,
15185,
18,
718,
318,
2670,
12,
84,
718,
13,
775,
30,
1696,
67,
644,
2
] |
token = self.query.get('token', '')
|
token = request['query'].get('token', '')
|
def do_process(self): """Handle the redirect from the OpenID server. """ oidconsumer = self.oidconsumer
|
3613973e0dba8bc750646a30918b4dc7828ea1b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3613973e0dba8bc750646a30918b4dc7828ea1b1/open_id.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2567,
12,
2890,
4672,
3536,
3259,
326,
3136,
628,
326,
25781,
1438,
18,
3536,
7764,
13230,
273,
365,
18,
839,
13230,
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,
0,
0,
0,
0,
0,
0,
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,
2567,
12,
2890,
4672,
3536,
3259,
326,
3136,
628,
326,
25781,
1438,
18,
3536,
7764,
13230,
273,
365,
18,
839,
13230,
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
] |
args = args[1:]
|
del args[0]
|
def get_spig(arg, args): if arg == "pi": return spigot(3, 4, pi_matrix) elif arg == "e": return spigot(0, 2, e_matrix) elif arg == "phi": return spigot(1, 2, phi_matrix) elif arg == "root": if len(args) > 0: radicand = args[0] del args[0] else: sys.stderr.write("input type 'root' requires an argument\n") sys.exit(1) radicand = long(radicand) return spigot(0, None, root_matrix(radicand)) elif arg == "frac": if len(args) >= 2: numerator = args[0] denominator = args[1] del args[0:2] else: sys.stderr.write("input type 'frac' requires two arguments\n") sys.exit(1) numerator = long(numerator) denominator = long(denominator) return spigot(numerator/denominator, \ (numerator+denominator-1)/denominator, \ frac_matrix(numerator, denominator)) elif arg == "cfrac": # Read a list of continued fraction terms on standard # input, and spigot them into some ordinary number base on # output. # `None' here represents infinity; the general continued # fraction transformation x -> k+1/x always maps # [0,infinity] to a subinterval of itself. return spigot(0, None, cfrac_matrix) elif arg == "base": # Read a number in a specified integer base on standard # input, and spigot it into a different base or a continued # fraction. if len(args) > 0: ibase = args[0] args = args[1:] else: sys.stderr.write("input type 'base' requires an argument\n") sys.exit(1) ibase = long(ibase) return spigot(0, ibase, base_matrix(ibase)) elif arg == "add" or arg == "sub" or arg == "mul" or arg == "div": # Read two other spigot definitions, and produce a spigot # giving their sum. if len(args) < 1: sys.stderr.write("input type 'add' requires operands\n") sys.exit(1) x = args[0] del args[0] spig1 = get_spig(x, args) if len(args) < 1: sys.stderr.write("input type 'add' requires two operands\n") sys.exit(1) x = args[0] del args[0] spig2 = get_spig(x, args) if arg == "add": numbers = (0,1,1,0,0,0,0,1) elif arg == "sub": numbers = (0,1,-1,0,0,0,0,1) elif arg == "mul": numbers = (1,0,0,0,0,0,0,1) elif arg == "div": numbers = (0,1,0,0,0,0,1,0) return spigot(0, None, gosper_matrix(numbers, spig1, spig2)) elif arg == "reciprocal": # Read another spigot definition, and produce a spigot # giving its reciprocal. if len(args) < 1: sys.stderr.write("input type 'reciprocal' requires operands\n") sys.exit(1) x = args[0] del args[0] spig1 = get_spig(x, args) return spigot(0, None, recip_matrix(spig1)) else: try: number = long(arg) except ValueError: sys.stderr.write("unrecognised argument '%s'\n" % arg) sys.exit(1) return spigot(number, number, frac_matrix(number, 1))
|
6925ecc67fae0690ed0577a81909ce96855b6771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7420/6925ecc67fae0690ed0577a81909ce96855b6771/spigot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1752,
360,
12,
3175,
16,
833,
4672,
309,
1501,
422,
315,
7259,
6877,
327,
1694,
360,
352,
12,
23,
16,
1059,
16,
4790,
67,
5667,
13,
1327,
1501,
422,
315,
73,
6877,
327,
1694,
360,
352,
12,
20,
16,
576,
16,
425,
67,
5667,
13,
1327,
1501,
422,
315,
9973,
6877,
327,
1694,
360,
352,
12,
21,
16,
576,
16,
7706,
67,
5667,
13,
1327,
1501,
422,
315,
3085,
6877,
309,
562,
12,
1968,
13,
405,
374,
30,
6719,
335,
464,
273,
833,
63,
20,
65,
1464,
833,
63,
20,
65,
469,
30,
2589,
18,
11241,
18,
2626,
2932,
2630,
618,
296,
3085,
11,
4991,
392,
1237,
64,
82,
7923,
2589,
18,
8593,
12,
21,
13,
6719,
335,
464,
273,
1525,
12,
6012,
335,
464,
13,
327,
1694,
360,
352,
12,
20,
16,
599,
16,
1365,
67,
5667,
12,
6012,
335,
464,
3719,
1327,
1501,
422,
315,
22187,
6877,
309,
562,
12,
1968,
13,
1545,
576,
30,
16730,
273,
833,
63,
20,
65,
15030,
273,
833,
63,
21,
65,
1464,
833,
63,
20,
30,
22,
65,
469,
30,
2589,
18,
11241,
18,
2626,
2932,
2630,
618,
296,
22187,
11,
4991,
2795,
1775,
64,
82,
7923,
2589,
18,
8593,
12,
21,
13,
16730,
273,
1525,
12,
2107,
7385,
13,
15030,
273,
1525,
12,
13002,
26721,
13,
327,
1694,
360,
352,
12,
2107,
7385,
19,
13002,
26721,
16,
521,
261,
2107,
7385,
15,
13002,
26721,
17,
21,
13176,
13002,
26721,
16,
521,
12445,
67,
5667,
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,
336,
67,
1752,
360,
12,
3175,
16,
833,
4672,
309,
1501,
422,
315,
7259,
6877,
327,
1694,
360,
352,
12,
23,
16,
1059,
16,
4790,
67,
5667,
13,
1327,
1501,
422,
315,
73,
6877,
327,
1694,
360,
352,
12,
20,
16,
576,
16,
425,
67,
5667,
13,
1327,
1501,
422,
315,
9973,
6877,
327,
1694,
360,
352,
12,
21,
16,
576,
16,
7706,
67,
5667,
13,
1327,
1501,
422,
315,
3085,
6877,
309,
562,
12,
1968,
13,
405,
374,
30,
6719,
335,
464,
273,
833,
63,
20,
65,
1464,
833,
63,
20,
65,
469,
30,
2589,
18,
11241,
18,
2626,
2932,
2630,
618,
296,
3085,
11,
4991,
392,
1237,
64,
82,
7923,
2589,
18,
8593,
12,
21,
13,
2
] |
def check_cgc(CGC): if not os.path.exists(CGC): print >>sys.stderr, CGC+' is not found, use --cgc option to specify its'
|
def check_cgc(cgc_path): if not os.path.exists(cgc_path): print >>sys.stderr, (cgc_path + ' is not found, use --cgc option to specify its')
|
def check_cgc(CGC): if not os.path.exists(CGC): print >>sys.stderr, CGC+' is not found, use --cgc option to specify its' print >>sys.stderr, 'location. You may need to install nvidia cg toolkit.' sys.exit(1)
|
2a3a06654561be5d0a871c950e7a791bea57bb75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2a3a06654561be5d0a871c950e7a791bea57bb75/convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
71,
13241,
12,
71,
13241,
67,
803,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
71,
13241,
67,
803,
4672,
1172,
1671,
9499,
18,
11241,
16,
261,
71,
13241,
67,
803,
397,
296,
353,
486,
1392,
16,
999,
1493,
71,
13241,
1456,
358,
4800,
2097,
6134,
1172,
1671,
9499,
18,
11241,
16,
296,
3562,
18,
225,
4554,
2026,
1608,
358,
3799,
290,
1246,
1155,
14947,
5226,
8691,
1093,
2589,
18,
8593,
12,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
71,
13241,
12,
71,
13241,
67,
803,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
71,
13241,
67,
803,
4672,
1172,
1671,
9499,
18,
11241,
16,
261,
71,
13241,
67,
803,
397,
296,
353,
486,
1392,
16,
999,
1493,
71,
13241,
1456,
358,
4800,
2097,
6134,
1172,
1671,
9499,
18,
11241,
16,
296,
3562,
18,
225,
4554,
2026,
1608,
358,
3799,
290,
1246,
1155,
14947,
5226,
8691,
1093,
2589,
18,
8593,
12,
21,
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
] |
Using `savez` with \\*args, the arrays are saved with default names.
|
Using `savez` with *args, the arrays are saved with default names.
|
def savez(file, *args, **kwds): """ Save several arrays into a single, archive file in ``.npz`` format. If arguments are passed in with no keywords, the corresponding variable names, in the .npz file, are 'arr_0', 'arr_1', etc. If keyword arguments are given, the corresponding variable names, in the ``.npz`` file will match the keyword names. Parameters ---------- file : str or file Either the file name (string) or an open file (file-like object) where the data will be saved. If file is a string, the ``.npz`` extension will be appended to the file name if it is not already there. \\*args : Arguments, optional Arrays to save to the file. Since it is not possible for Python to know the names of the arrays outside `savez`, the arrays will be saved with names "arr_0", "arr_1", and so on. These arguments can be any expression. \\*\\*kwds : Keyword arguments, optional Arrays to save to the file. Arrays will be saved in the file with the keyword names. Returns ------- None See Also -------- save : Save a single array to a binary file in NumPy format. savetxt : Save an array to a file as plain text. Notes ----- The ``.npz`` file format is a zipped archive of files named after the variables they contain. The archive is not compressed and each file in the archive contains one variable in ``.npy`` format. For a description of the ``.npy`` format, see `format`. When opening the saved ``.npz`` file with `load` a `NpzFile` object is returned. This is a dictionary-like object which can be queried for its list of arrays (with the ``.files`` attribute), and for the arrays themselves. Examples -------- >>> from tempfile import TemporaryFile >>> outfile = TemporaryFile() >>> x = np.arange(10) >>> y = np.sin(x) Using `savez` with \\*args, the arrays are saved with default names. >>> np.savez(outfile, x, y) >>> outfile.seek(0) # Only needed here to simulate closing & reopening file >>> npzfile = np.load(outfile) >>> npzfile.files ['arr_1', 'arr_0'] >>> npzfile['arr_0'] array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) Using `savez` with \\*\\*kwds, the arrays are saved with the keyword names. >>> outfile = TemporaryFile() >>> np.savez(outfile, x=x, y=y) >>> outfile.seek(0) >>> npzfile = np.load(outfile) >>> npzfile.files ['y', 'x'] >>> npzfile['x'] array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) """ # Import is postponed to here since zipfile depends on gzip, an optional # component of the so-called standard library. import zipfile # Import deferred for startup time improvement import tempfile if isinstance(file, basestring): if not file.endswith('.npz'): file = file + '.npz' namedict = kwds for i, val in enumerate(args): key = 'arr_%d' % i if key in namedict.keys(): raise ValueError, "Cannot use un-named variables and keyword %s" % key namedict[key] = val zip = zipfile.ZipFile(file, mode="w") # Stage arrays in a temporary file on disk, before writing to zip. fd, tmpfile = tempfile.mkstemp(suffix='-numpy.npy') os.close(fd) try: for key, val in namedict.iteritems(): fname = key + '.npy' fid = open(tmpfile, 'wb') try: format.write_array(fid, np.asanyarray(val)) fid.close() fid = None zip.write(tmpfile, arcname=fname) finally: if fid: fid.close() finally: os.remove(tmpfile) zip.close()
|
8630830bb05bd13aab0fcd869c8339c1515460de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8630830bb05bd13aab0fcd869c8339c1515460de/npyio.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
94,
12,
768,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
7074,
11392,
5352,
1368,
279,
2202,
16,
5052,
585,
316,
1375,
8338,
6782,
94,
10335,
740,
18,
225,
971,
1775,
854,
2275,
316,
598,
1158,
7093,
16,
326,
4656,
2190,
1257,
16,
316,
326,
263,
6782,
94,
585,
16,
854,
296,
5399,
67,
20,
2187,
296,
5399,
67,
21,
2187,
5527,
18,
971,
4932,
1775,
854,
864,
16,
326,
4656,
2190,
1257,
16,
316,
326,
1375,
8338,
6782,
94,
10335,
585,
903,
845,
326,
4932,
1257,
18,
225,
7012,
12181,
585,
294,
609,
578,
585,
14635,
326,
585,
508,
261,
1080,
13,
578,
392,
1696,
585,
261,
768,
17,
5625,
733,
13,
1625,
326,
501,
903,
506,
5198,
18,
971,
585,
353,
279,
533,
16,
326,
1375,
8338,
6782,
94,
10335,
2710,
903,
506,
12317,
358,
326,
585,
508,
309,
518,
353,
486,
1818,
1915,
18,
1736,
14,
1968,
294,
13599,
16,
3129,
5647,
358,
1923,
358,
326,
585,
18,
7897,
518,
353,
486,
3323,
364,
6600,
358,
5055,
326,
1257,
434,
326,
5352,
8220,
1375,
5688,
94,
9191,
326,
5352,
903,
506,
5198,
598,
1257,
315,
5399,
67,
20,
3113,
315,
5399,
67,
21,
3113,
471,
1427,
603,
18,
8646,
1775,
848,
506,
1281,
2652,
18,
1736,
14,
1695,
14,
25577,
294,
18317,
1775,
16,
3129,
5647,
358,
1923,
358,
326,
585,
18,
5647,
903,
506,
5198,
316,
326,
585,
598,
326,
4932,
1257,
18,
225,
2860,
18365,
599,
225,
2164,
8080,
27093,
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,
1923,
94,
12,
768,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
7074,
11392,
5352,
1368,
279,
2202,
16,
5052,
585,
316,
1375,
8338,
6782,
94,
10335,
740,
18,
225,
971,
1775,
854,
2275,
316,
598,
1158,
7093,
16,
326,
4656,
2190,
1257,
16,
316,
326,
263,
6782,
94,
585,
16,
854,
296,
5399,
67,
20,
2187,
296,
5399,
67,
21,
2187,
5527,
18,
971,
4932,
1775,
854,
864,
16,
326,
4656,
2190,
1257,
16,
316,
326,
1375,
8338,
6782,
94,
10335,
585,
903,
845,
326,
4932,
1257,
18,
225,
7012,
12181,
585,
294,
609,
578,
585,
14635,
326,
585,
508,
261,
1080,
13,
578,
392,
1696,
585,
261,
768,
17,
5625,
733,
13,
1625,
326,
501,
903,
2
] |
if skin_name == "No Selection Made":
|
if skin_name == "No Selection Made":
|
def get_mobile_skin_name(site, request): """ @return: Mobile theme name for a Plone site object """ properties = site.portal_properties if hasattr(properties, "mobile_properties"): # Plone Mobile quickinstaller has been run # and we have mobile theme specifc files registeed mobile_properties = properties.mobile_properties # Enable mobile specific skin layer skin_name = mobile_properties.mobile_skin #print "Got skin:" + skin_name if not check_skin_exists(site, skin_name): if skin_name == "No Selection Made": # Uninstalled mobile theme marker string return None raise RuntimeError("Current selected mobile theme " + skin_name + " is not installed on the site. Please install a mobile theme add-on using Add On installer in site setup.") return skin_name else: # Happens when the site is still being constructed, # or when ZMI interface is accessed, # or on some views which do not travese Plone site. return None
|
96ab5b60f3acc0d0bb8d77001d241b0fe2136956 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10164/96ab5b60f3acc0d0bb8d77001d241b0fe2136956/monkeypatch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
18386,
67,
7771,
267,
67,
529,
12,
4256,
16,
590,
4672,
3536,
632,
2463,
30,
20428,
5006,
508,
364,
279,
3008,
476,
2834,
733,
3536,
225,
1790,
273,
2834,
18,
24386,
67,
4738,
225,
309,
3859,
12,
4738,
16,
315,
18386,
67,
4738,
6,
4672,
468,
3008,
476,
20428,
9549,
20163,
711,
2118,
1086,
468,
471,
732,
1240,
13411,
5006,
857,
430,
71,
1390,
960,
376,
73,
329,
225,
13411,
67,
4738,
273,
1790,
18,
18386,
67,
4738,
225,
468,
9677,
13411,
2923,
18705,
3018,
18705,
67,
529,
273,
13411,
67,
4738,
18,
18386,
67,
7771,
267,
225,
468,
1188,
315,
15617,
18705,
2773,
397,
18705,
67,
529,
309,
486,
866,
67,
7771,
267,
67,
1808,
12,
4256,
16,
18705,
67,
529,
4672,
225,
309,
18705,
67,
529,
422,
315,
2279,
12977,
490,
2486,
6877,
468,
1351,
13435,
13411,
5006,
5373,
533,
327,
599,
225,
1002,
7265,
2932,
3935,
3170,
13411,
5006,
315,
397,
18705,
67,
529,
397,
315,
353,
486,
5876,
603,
326,
2834,
18,
7801,
3799,
279,
13411,
5006,
527,
17,
265,
1450,
1436,
2755,
16050,
316,
2834,
3875,
1199,
13,
225,
327,
18705,
67,
529,
469,
30,
468,
670,
10345,
1347,
326,
2834,
353,
4859,
3832,
15688,
16,
468,
578,
1347,
2285,
7492,
1560,
353,
15539,
16,
468,
578,
603,
2690,
7361,
1492,
741,
486,
1284,
3324,
73,
3008,
476,
2834,
18,
327,
599,
282,
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,
336,
67,
18386,
67,
7771,
267,
67,
529,
12,
4256,
16,
590,
4672,
3536,
632,
2463,
30,
20428,
5006,
508,
364,
279,
3008,
476,
2834,
733,
3536,
225,
1790,
273,
2834,
18,
24386,
67,
4738,
225,
309,
3859,
12,
4738,
16,
315,
18386,
67,
4738,
6,
4672,
468,
3008,
476,
20428,
9549,
20163,
711,
2118,
1086,
468,
471,
732,
1240,
13411,
5006,
857,
430,
71,
1390,
960,
376,
73,
329,
225,
13411,
67,
4738,
273,
1790,
18,
18386,
67,
4738,
225,
468,
9677,
13411,
2923,
18705,
3018,
18705,
67,
529,
273,
13411,
67,
4738,
18,
18386,
67,
7771,
267,
225,
468,
1188,
315,
15617,
18705,
2773,
397,
18705,
67,
529,
309,
486,
866,
67,
7771,
267,
67,
1808,
2
] |
self.disconnect(self._padd_hid) self.disconnect(self._prem_hid)
|
def _remove_functions(self): self._setup_done = False for name in self._proxy_names: delattr(self, name) self._proxy_names = [] self._ins = None
|
4b6b08e81d1083e4456ceda350354402e9c578bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/4b6b08e81d1083e4456ceda350354402e9c578bb/insproxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
10722,
12,
2890,
4672,
365,
6315,
8401,
67,
8734,
273,
1083,
364,
508,
316,
365,
6315,
5656,
67,
1973,
30,
1464,
1747,
12,
2890,
16,
508,
13,
365,
6315,
5656,
67,
1973,
273,
5378,
365,
6315,
2679,
273,
599,
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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
67,
1973,
30,
1464,
1747,
12,
2890,
16,
508,
13,
365,
6315,
5656,
67,
1973,
273,
5378,
365,
6315,
2679,
273,
599,
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
] |
|
size = self.footprint//np.nbytes[np.float]
|
size = self.footprint//np.nbytes[self.dtype]
|
def setUp(self): UTConversionDataArrayNumPy.setUp(self) size = self.footprint//np.nbytes[np.float] self.shape = (size//3, 3)
|
88b603ff621e2ad746a5d41f5fd968d468f8b565 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/88b603ff621e2ad746a5d41f5fd968d468f8b565/vtk_data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
4732,
6814,
751,
1076,
2578,
9413,
18,
542,
1211,
12,
2890,
13,
963,
273,
365,
18,
10923,
1188,
759,
6782,
18,
82,
3890,
63,
2890,
18,
8972,
65,
365,
18,
4867,
273,
261,
1467,
759,
23,
16,
890,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
4732,
6814,
751,
1076,
2578,
9413,
18,
542,
1211,
12,
2890,
13,
963,
273,
365,
18,
10923,
1188,
759,
6782,
18,
82,
3890,
63,
2890,
18,
8972,
65,
365,
18,
4867,
273,
261,
1467,
759,
23,
16,
890,
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
] |
if pyfile.package.data["id"] or pid: self.list.packager.pushPackage2Queue(pyfile.package.data["id"] or pid)
|
def jobFinished(self, pyfile): """manage completing download""" self.lock.acquire()
|
99aba5bf50874a1040964d69e08111cb2707d3c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/99aba5bf50874a1040964d69e08111cb2707d3c7/ThreadManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
10577,
12,
2890,
16,
2395,
768,
4672,
3536,
12633,
2302,
310,
4224,
8395,
365,
18,
739,
18,
1077,
1039,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
10577,
12,
2890,
16,
2395,
768,
4672,
3536,
12633,
2302,
310,
4224,
8395,
365,
18,
739,
18,
1077,
1039,
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
] |
|
def _insert(self, something): "Insert some text. We might deprecate this interface!" self.widget.insert(something)
|
def _append(self, something): "Append some text. We might deprecate this interface!" self.widget.append(something) self.widget.scrollToBottom()
|
def _insert(self, something): "Insert some text. We might deprecate this interface!" self.widget.insert(something)
|
c555aeae1edba3b50309a5fcff9df49485b9e013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c555aeae1edba3b50309a5fcff9df49485b9e013/HistoryMegaw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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,
389,
6387,
12,
2890,
16,
5943,
4672,
315,
4600,
2690,
977,
18,
1660,
4825,
443,
29246,
333,
1560,
4442,
365,
18,
6587,
18,
6387,
12,
30289,
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,
-100
] |
if image.width > self.max_size[0] or \ image.height > self.max_size[1]:
|
if image.width > self.max_size[0] or image.height > self.max_size[1]:
|
def set(self, instance, value, **kwargs): # Do we have to delete the image? if value=="DELETE_IMAGE": ObjectField.set(self, instance, None, **kwargs) return
|
6c49241026527d58ec33dad69b98fdf197a65ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6c49241026527d58ec33dad69b98fdf197a65ae4/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
468,
2256,
732,
1240,
358,
1430,
326,
1316,
35,
309,
460,
31713,
6460,
67,
13603,
6877,
1033,
974,
18,
542,
12,
2890,
16,
791,
16,
599,
16,
2826,
4333,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
468,
2256,
732,
1240,
358,
1430,
326,
1316,
35,
309,
460,
31713,
6460,
67,
13603,
6877,
1033,
974,
18,
542,
12,
2890,
16,
791,
16,
599,
16,
2826,
4333,
13,
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
] |
url, body = url.split("?")
|
url, body = url.split("?") ct = 'application/x-www-form-urlencoded' headers['content-type'] = ct + '; charset=utf-8'
|
def _httpreq(self, service_path, method='GET', body=None, form=None, headers=None): """ make an http request to the service. form arguments are encoded in the url, even for POST, if a non-form content-type is given for the body. returns a pair (resp, body) resp is the response object and may be different depending on whether urllib2 or httplib2 is in use? """ if method == 'GET': assert body is None if method != "GET" and method != "POST": assert 0, 'unknown method %s' % method url = self.service_url + service_path if headers is None: headers = {} else: headers = _normalize_headers(headers) # this is a lousy way to parse Content-Type, where is the library? ct = headers.get('content-type', None) if ct is not None: ct = ct.split(';')[0] if body is not None: # if body is provided, content-type had better be too assert ct is not None if form is not None: qstr = '&'.join(['%s=%s' % (urlencode_weak(unicode(k)), urlencode_weak(unicode(v))) for k,v in form.items()]) if method == 'POST': # put the args on the url if we're putting something else # in the body. this is used to add args to raw uploads. if body is not None: url += '?' + qstr else: if ct is None: ct = 'application/x-www-form-urlencoded' headers['content-type'] = ct + '; charset=utf-8' if ct == 'multipart/form-encoded': # TODO handle this case raise NotImplementedError elif ct == 'application/x-www-form-urlencoded': body = qstr else: # for all methods other than POST, use the url url += '?' + qstr
|
04c3782c6ed7da33bdd8b37e8902e5a90648abac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11603/04c3782c6ed7da33bdd8b37e8902e5a90648abac/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2022,
1484,
85,
12,
2890,
16,
1156,
67,
803,
16,
707,
2218,
3264,
2187,
1417,
33,
7036,
16,
646,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
1221,
392,
1062,
590,
358,
326,
1156,
18,
225,
646,
1775,
854,
3749,
316,
326,
880,
16,
5456,
364,
5485,
16,
309,
279,
1661,
17,
687,
913,
17,
723,
353,
864,
364,
326,
1417,
18,
225,
1135,
279,
3082,
261,
12243,
16,
1417,
13,
225,
1718,
353,
326,
766,
733,
471,
2026,
506,
3775,
8353,
603,
2856,
11527,
22,
578,
15851,
6673,
22,
353,
316,
999,
35,
3536,
225,
309,
707,
422,
296,
3264,
4278,
1815,
1417,
353,
599,
309,
707,
480,
315,
3264,
6,
471,
707,
480,
315,
3798,
6877,
1815,
374,
16,
296,
8172,
707,
738,
87,
11,
738,
707,
225,
880,
273,
365,
18,
3278,
67,
718,
397,
1156,
67,
803,
225,
309,
1607,
353,
599,
30,
1607,
273,
2618,
469,
30,
1607,
273,
389,
12237,
67,
2485,
12,
2485,
13,
225,
468,
333,
353,
279,
437,
407,
93,
4031,
358,
1109,
3697,
17,
559,
16,
1625,
353,
326,
5313,
35,
5691,
273,
1607,
18,
588,
2668,
1745,
17,
723,
2187,
599,
13,
309,
5691,
353,
486,
599,
30,
5691,
273,
5691,
18,
4939,
2668,
4359,
25146,
20,
65,
225,
309,
1417,
353,
486,
599,
30,
468,
309,
1417,
353,
2112,
16,
913,
17,
723,
9323,
7844,
506,
4885,
1815,
5691,
353,
486,
599,
225,
309,
646,
353,
486,
599,
30,
1043,
701,
273,
9824,
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,
2022,
1484,
85,
12,
2890,
16,
1156,
67,
803,
16,
707,
2218,
3264,
2187,
1417,
33,
7036,
16,
646,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
1221,
392,
1062,
590,
358,
326,
1156,
18,
225,
646,
1775,
854,
3749,
316,
326,
880,
16,
5456,
364,
5485,
16,
309,
279,
1661,
17,
687,
913,
17,
723,
353,
864,
364,
326,
1417,
18,
225,
1135,
279,
3082,
261,
12243,
16,
1417,
13,
225,
1718,
353,
326,
766,
733,
471,
2026,
506,
3775,
8353,
603,
2856,
11527,
22,
578,
15851,
6673,
22,
353,
316,
999,
35,
3536,
225,
309,
707,
422,
296,
3264,
4278,
1815,
1417,
353,
599,
309,
707,
480,
315,
3264,
6,
471,
707,
480,
315,
3798,
2
] |
"""Remove a lock. Useful if a locking thread failed to unlock. >>> lock = FileLock(_testfile()) >>> lock.acquire() >>> lock2 = FileLock(_testfile()) >>> lock2.is_locked() True >>> lock2.break_lock() >>> lock2.is_locked() False >>> try: ... lock.release() ... except NotLocked: ... pass ... except Exception, e: ... print 'unexpected exception', repr(e) ... else: ... print 'break lock failed' """ pass
|
""" Remove a lock. Useful if a locking thread failed to unlock. """ raise NotImplemented("implement in subclass")
|
def break_lock(self): """Remove a lock. Useful if a locking thread failed to unlock.
|
4d7069c0b1e38967a5ca43aa3218600793f56c5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11515/4d7069c0b1e38967a5ca43aa3218600793f56c5b/lockfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
67,
739,
12,
2890,
4672,
3536,
3288,
279,
2176,
18,
225,
19256,
309,
279,
18887,
2650,
2535,
358,
7186,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
898,
67,
739,
12,
2890,
4672,
3536,
3288,
279,
2176,
18,
225,
19256,
309,
279,
18887,
2650,
2535,
358,
7186,
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,
-100,
-100
] |
print >> sys.stderr, abcs
|
def dash_R(the_module, test, indirect_test, huntrleaks): # This code is hackish and inelegant, but it seems to do the job. import copy_reg, _abcoll if not hasattr(sys, 'gettotalrefcount'): raise Exception("Tracking reference leaks requires a debug build " "of Python") # Save current values for dash_R_cleanup() to restore. fs = warnings.filters[:] ps = copy_reg.dispatch_table.copy() pic = sys.path_importer_cache.copy() abcs = {} for abc in [getattr(_abcoll, a) for a in _abcoll.__all__]: for obj in abc.__subclasses__() + [abc]: abcs[obj] = obj._abc_registry.copy() print >> sys.stderr, abcs if indirect_test: def run_the_test(): indirect_test() else: def run_the_test(): reload(the_module) deltas = [] nwarmup, ntracked, fname = huntrleaks repcount = nwarmup + ntracked print >> sys.stderr, "beginning", repcount, "repetitions" print >> sys.stderr, ("1234567890"*(repcount//10 + 1))[:repcount] dash_R_cleanup(fs, ps, pic, abcs) for i in range(repcount): rc = sys.gettotalrefcount() run_the_test() sys.stderr.write('.') dash_R_cleanup(fs, ps, pic, abcs) if i >= nwarmup: deltas.append(sys.gettotalrefcount() - rc - 2) print >> sys.stderr if any(deltas): msg = '%s leaked %s references, sum=%s' % (test, deltas, sum(deltas)) print >> sys.stderr, msg refrep = open(fname, "a") print >> refrep, msg refrep.close()
|
ec76da8827ddb54210f8548f5e098cf10ad67c0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ec76da8827ddb54210f8548f5e098cf10ad67c0d/regrtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12558,
67,
54,
12,
5787,
67,
2978,
16,
1842,
16,
16807,
67,
3813,
16,
366,
318,
313,
298,
581,
87,
4672,
468,
1220,
981,
353,
11769,
1468,
471,
316,
13451,
970,
16,
1496,
518,
12001,
358,
741,
326,
1719,
18,
1930,
1610,
67,
1574,
16,
389,
378,
12910,
225,
309,
486,
3859,
12,
9499,
16,
296,
588,
4963,
1734,
1883,
11,
4672,
1002,
1185,
2932,
12642,
2114,
20891,
87,
4991,
279,
1198,
1361,
315,
315,
792,
6600,
7923,
225,
468,
7074,
783,
924,
364,
12558,
67,
54,
67,
16732,
1435,
358,
5217,
18,
2662,
273,
5599,
18,
6348,
10531,
65,
4250,
273,
1610,
67,
1574,
18,
10739,
67,
2121,
18,
3530,
1435,
19189,
273,
2589,
18,
803,
67,
381,
7988,
67,
2493,
18,
3530,
1435,
1223,
2143,
273,
2618,
364,
20011,
316,
306,
588,
1747,
24899,
378,
12910,
16,
279,
13,
364,
279,
316,
389,
378,
12910,
16186,
454,
972,
14542,
364,
1081,
316,
20011,
16186,
1717,
4701,
972,
1435,
397,
306,
18947,
14542,
1223,
2143,
63,
2603,
65,
273,
1081,
6315,
18947,
67,
9893,
18,
3530,
1435,
225,
309,
16807,
67,
3813,
30,
1652,
1086,
67,
5787,
67,
3813,
13332,
16807,
67,
3813,
1435,
469,
30,
1652,
1086,
67,
5787,
67,
3813,
13332,
7749,
12,
5787,
67,
2978,
13,
225,
20113,
273,
5378,
290,
13113,
416,
16,
290,
31420,
16,
5299,
273,
366,
318,
313,
298,
581,
87,
2071,
1883,
273,
290,
13113,
416,
397,
290,
31420,
1172,
1671,
2589,
18,
11241,
16,
315,
10086,
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,
12558,
67,
54,
12,
5787,
67,
2978,
16,
1842,
16,
16807,
67,
3813,
16,
366,
318,
313,
298,
581,
87,
4672,
468,
1220,
981,
353,
11769,
1468,
471,
316,
13451,
970,
16,
1496,
518,
12001,
358,
741,
326,
1719,
18,
1930,
1610,
67,
1574,
16,
389,
378,
12910,
225,
309,
486,
3859,
12,
9499,
16,
296,
588,
4963,
1734,
1883,
11,
4672,
1002,
1185,
2932,
12642,
2114,
20891,
87,
4991,
279,
1198,
1361,
315,
315,
792,
6600,
7923,
225,
468,
7074,
783,
924,
364,
12558,
67,
54,
67,
16732,
1435,
358,
5217,
18,
2662,
273,
5599,
18,
6348,
10531,
65,
4250,
273,
1610,
67,
1574,
18,
10739,
67,
2121,
18,
3530,
1435,
19189,
273,
2589,
18,
803,
67,
2
] |
|
sites = Sites(self.api, [site_id_or_abbrev_name], Site.all_fields) if not sites :
|
sites = Sites(self.api, [site_id_or_login_base]) if not sites:
|
def call(self, auth, site_id_or_abbrev_name, update_fields):
|
622cf139ee4c246aea624dd40b56419a640a25b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/622cf139ee4c246aea624dd40b56419a640a25b1/AdmUpdateSite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
2834,
67,
350,
67,
280,
67,
378,
27216,
67,
529,
16,
1089,
67,
2821,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
2834,
67,
350,
67,
280,
67,
378,
27216,
67,
529,
16,
1089,
67,
2821,
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
] |
gMonitor.registerActivity("Iteration", "Agent Loops", "RemovalAgent", "Loops/min", gMonitor.OP_SUM) gMonitor.registerActivity("Execute", "Request Processed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM) gMonitor.registerActivity("Done", "Request Completed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM) gMonitor.registerActivity("PhysicalRemovalAtt", "Physical removals attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("PhysicalRemovalDone","Successful physical removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("PhysicalRemovalFail","Failed physical removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("PhysicalRemovalSize","Physically removed size", "RemovalAgent", "Bytes", gMonitor.OP_ACUM) gMonitor.registerActivity("ReplicaRemovalAtt", "Replica removal attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("ReplicaRemovalDone", "Successful replica removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("ReplicaRemovalFail", "Failed replica removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("RemoveFileAtt", "File removal attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("RemoveFileDone", "File removal done", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) gMonitor.registerActivity("RemoveFileFail", "File removal failed", "RemovalAgent", "Removal/min", gMonitor.OP_SUM) self.maxNumberOfThreads = self.am_getOption('NumberOfThreads',0) self.threadPoolDepth = self.am_getOption('ThreadPoolDepth',0) self.threadPool = ThreadPool(1,self.maxNumberOfThreads) self.useProxies = self.am_getOption('UseProxies','True').lower() in ( "y", "yes", "true" ) self.proxyLocation = self.am_getOption('ProxyLocation', '' )
|
gMonitor.registerActivity( "Iteration", "Agent Loops", "RemovalAgent", "Loops/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "Execute", "Request Processed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "Done", "Request Completed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "PhysicalRemovalAtt", "Physical removals attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "PhysicalRemovalDone", "Successful physical removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "PhysicalRemovalFail", "Failed physical removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "PhysicalRemovalSize", "Physically removed size", "RemovalAgent", "Bytes", gMonitor.OP_ACUM ) gMonitor.registerActivity( "ReplicaRemovalAtt", "Replica removal attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "ReplicaRemovalDone", "Successful replica removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "ReplicaRemovalFail", "Failed replica removals", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "RemoveFileAtt", "File removal attempted", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "RemoveFileDone", "File removal done", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "RemoveFileFail", "File removal failed", "RemovalAgent", "Removal/min", gMonitor.OP_SUM ) self.maxNumberOfThreads = self.am_getOption( 'NumberOfThreads', 0 ) self.threadPoolDepth = self.am_getOption( 'ThreadPoolDepth', 0 ) self.threadPool = ThreadPool( 1, self.maxNumberOfThreads ) self.useProxies = self.am_getOption( 'UseProxies', 'True' ).lower() in ( "y", "yes", "true" ) self.proxyLocation = self.am_getOption( 'ProxyLocation', '' )
|
def initialize(self):
|
639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
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,
-100,
-100,
-100
] |
os.makedirs(foldername, 0700)
|
if os.path.isdir(foldername): for subdir in ['cur', 'new', 'tmp']: assert not os.path.isdir(os.path.join(foldername, subdir)), \ "Tried to create folder %s but it already had dir %s" %\ (foldername, subdir) else: os.makedirs(foldername, 0700)
|
def makefolder(self, foldername): # Do the chdir thing so the call to makedirs does not make the # self.root directory (we'd prefer to raise an error in that case), # but will make the (relative) paths underneath it. Need to use # makedirs to support a / separator. if self.getsep() == '/': for invalid in ['new', 'cur', 'tmp', 'offlineimap.uidvalidity']: for component in foldername.split('/'): assert component != invalid, "When using nested folders (/ as a separator in the account config), your folder names may not contain 'new', 'cur', 'tmp', or 'offlineimap.uidvalidity'."
|
29d64f7dbe4bb8297774c01ad823fcd6f523a380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/29d64f7dbe4bb8297774c01ad823fcd6f523a380/Maildir.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5609,
12,
2890,
16,
3009,
529,
4672,
468,
2256,
326,
14029,
7757,
1427,
326,
745,
358,
12151,
1552,
486,
1221,
326,
468,
365,
18,
3085,
1867,
261,
1814,
14271,
13256,
358,
1002,
392,
555,
316,
716,
648,
3631,
468,
1496,
903,
1221,
326,
261,
11626,
13,
2953,
3613,
4644,
421,
518,
18,
225,
12324,
358,
999,
468,
12151,
358,
2865,
279,
342,
4182,
18,
309,
365,
18,
588,
10814,
1435,
422,
2023,
30,
364,
2057,
316,
10228,
2704,
2187,
296,
1397,
2187,
296,
5645,
2187,
296,
23787,
12161,
18,
1911,
877,
560,
3546,
30,
364,
1794,
316,
3009,
529,
18,
4939,
2668,
2473,
4672,
1815,
1794,
480,
2057,
16,
315,
9434,
1450,
4764,
9907,
261,
19,
487,
279,
4182,
316,
326,
2236,
642,
3631,
3433,
3009,
1257,
2026,
486,
912,
296,
2704,
2187,
296,
1397,
2187,
296,
5645,
2187,
578,
296,
23787,
12161,
18,
1911,
877,
560,
14550,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5609,
12,
2890,
16,
3009,
529,
4672,
468,
2256,
326,
14029,
7757,
1427,
326,
745,
358,
12151,
1552,
486,
1221,
326,
468,
365,
18,
3085,
1867,
261,
1814,
14271,
13256,
358,
1002,
392,
555,
316,
716,
648,
3631,
468,
1496,
903,
1221,
326,
261,
11626,
13,
2953,
3613,
4644,
421,
518,
18,
225,
12324,
358,
999,
468,
12151,
358,
2865,
279,
342,
4182,
18,
309,
365,
18,
588,
10814,
1435,
422,
2023,
30,
364,
2057,
316,
10228,
2704,
2187,
296,
1397,
2187,
296,
5645,
2187,
296,
23787,
12161,
18,
1911,
877,
560,
3546,
30,
364,
1794,
316,
3009,
529,
18,
4939,
2668,
2473,
4672,
1815,
1794,
480,
2057,
16,
315,
9434,
1450,
4764,
9907,
261,
19,
487,
2
] |
clist = [] for aliases, table_e in choice: if aliases[0].startswith(cmd): clist.append(aliases[0]) for a in aliases[1:]: if a.startswith(cmd) and not aliases[0].startswith(a): clist.append(a)
|
clist = choice.keys()
|
def find(cmd): """Return (aliases, command table entry) for command string.""" choice = [] debugchoice = [] for e in table.keys(): aliases = e.lstrip("^").split("|") if cmd in aliases: return aliases, table[e] for a in aliases: if a.startswith(cmd): if aliases[0].startswith("debug"): debugchoice.append([aliases, table[e]]) else: choice.append([aliases, table[e]]) break if not choice and debugchoice: choice = debugchoice if len(choice) > 1: clist = [] for aliases, table_e in choice: if aliases[0].startswith(cmd): clist.append(aliases[0]) for a in aliases[1:]: if a.startswith(cmd) and not aliases[0].startswith(a): clist.append(a) clist.sort() raise AmbiguousCommand(cmd, clist) if choice: return choice[0] raise UnknownCommand(cmd)
|
2f91110ed2b019bb5294f56ed72354c1cd7bf6fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/2f91110ed2b019bb5294f56ed72354c1cd7bf6fb/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
4172,
4672,
3536,
990,
261,
13831,
16,
1296,
1014,
1241,
13,
364,
1296,
533,
12123,
6023,
273,
5378,
1198,
11569,
273,
5378,
364,
425,
316,
1014,
18,
2452,
13332,
6900,
273,
425,
18,
80,
6406,
2932,
66,
20387,
4939,
2932,
96,
7923,
309,
1797,
316,
6900,
30,
327,
6900,
16,
1014,
63,
73,
65,
364,
279,
316,
6900,
30,
309,
279,
18,
17514,
1918,
12,
4172,
4672,
309,
6900,
63,
20,
8009,
17514,
1918,
2932,
4148,
6,
4672,
1198,
11569,
18,
6923,
3816,
13831,
16,
1014,
63,
73,
65,
5717,
469,
30,
6023,
18,
6923,
3816,
13831,
16,
1014,
63,
73,
65,
5717,
898,
225,
309,
486,
6023,
471,
1198,
11569,
30,
6023,
273,
1198,
11569,
225,
309,
562,
12,
11569,
13,
405,
404,
30,
927,
376,
273,
6023,
18,
2452,
1435,
927,
376,
18,
3804,
1435,
1002,
432,
1627,
10623,
2189,
12,
4172,
16,
927,
376,
13,
225,
309,
6023,
30,
327,
6023,
63,
20,
65,
225,
1002,
9077,
2189,
12,
4172,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
4172,
4672,
3536,
990,
261,
13831,
16,
1296,
1014,
1241,
13,
364,
1296,
533,
12123,
6023,
273,
5378,
1198,
11569,
273,
5378,
364,
425,
316,
1014,
18,
2452,
13332,
6900,
273,
425,
18,
80,
6406,
2932,
66,
20387,
4939,
2932,
96,
7923,
309,
1797,
316,
6900,
30,
327,
6900,
16,
1014,
63,
73,
65,
364,
279,
316,
6900,
30,
309,
279,
18,
17514,
1918,
12,
4172,
4672,
309,
6900,
63,
20,
8009,
17514,
1918,
2932,
4148,
6,
4672,
1198,
11569,
18,
6923,
3816,
13831,
16,
1014,
63,
73,
65,
5717,
469,
30,
6023,
18,
6923,
3816,
13831,
16,
1014,
63,
73,
65,
5717,
898,
225,
309,
486,
6023,
471,
1198,
11569,
30,
6023,
273,
1198,
11569,
2
] |
builds_to_delete.append(build)
|
self.log.info('Scheduling build of configuration "%s" at ' 'revision [%s] on %r for deletion', config.name, rev, platform.name) builds_to_delete.append(build)
|
def get_build_for_slave(self, name, properties): """Check whether one of the pending builds can be built by the build slave. :param name: the name of the slave :type name: `basestring` :param properties: the slave configuration :type properties: `dict` :return: the allocated build, or `None` if no build was found :rtype: `Build` """ log.debug('Checking for pending builds...')
|
e2d25a68fff43a3f77eb2cea84a8b1fd1aeeb56d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/e2d25a68fff43a3f77eb2cea84a8b1fd1aeeb56d/queue.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3510,
67,
1884,
67,
27352,
12,
2890,
16,
508,
16,
1790,
4672,
3536,
1564,
2856,
1245,
434,
326,
4634,
10736,
848,
506,
6650,
635,
326,
1361,
11735,
18,
225,
294,
891,
508,
30,
326,
508,
434,
326,
11735,
294,
723,
508,
30,
1375,
18602,
371,
68,
294,
891,
1790,
30,
326,
11735,
1664,
294,
723,
1790,
30,
1375,
1576,
68,
294,
2463,
30,
326,
11977,
1361,
16,
578,
1375,
7036,
68,
309,
1158,
1361,
1703,
1392,
294,
86,
723,
30,
1375,
3116,
68,
3536,
613,
18,
4148,
2668,
14294,
364,
4634,
10736,
7821,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3510,
67,
1884,
67,
27352,
12,
2890,
16,
508,
16,
1790,
4672,
3536,
1564,
2856,
1245,
434,
326,
4634,
10736,
848,
506,
6650,
635,
326,
1361,
11735,
18,
225,
294,
891,
508,
30,
326,
508,
434,
326,
11735,
294,
723,
508,
30,
1375,
18602,
371,
68,
294,
891,
1790,
30,
326,
11735,
1664,
294,
723,
1790,
30,
1375,
1576,
68,
294,
2463,
30,
326,
11977,
1361,
16,
578,
1375,
7036,
68,
309,
1158,
1361,
1703,
1392,
294,
86,
723,
30,
1375,
3116,
68,
3536,
613,
18,
4148,
2668,
14294,
364,
4634,
10736,
7821,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
paramList["title"] = obj.getTitle().encode('utf-8')
|
paramList["title"] = obj.getTitle()
|
def videoBombExternally(self, item): obj = db.getObjectByID(int(item)) paramList = {} paramList["title"] = obj.getTitle().encode('utf-8') paramList["info_url"] = obj.getLink() paramList["hookup_url"] = obj.getPaymentLink() try: rss_url = obj.getFeed().getURL() if (not rss_url.startswith(u'dtv:')): paramList["rss_url"] = rss_url except: pass thumb_url = obj.getThumbnailURL() if thumb_url is not None: paramList["thumb_url"] = thumb_url
|
4dfe2a61c28f9e027aa86371e5c535aa3d042134 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/4dfe2a61c28f9e027aa86371e5c535aa3d042134/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6191,
38,
16659,
29764,
1230,
12,
2890,
16,
761,
4672,
1081,
273,
1319,
18,
588,
921,
13331,
12,
474,
12,
1726,
3719,
579,
682,
273,
2618,
579,
682,
9614,
2649,
11929,
273,
1081,
18,
588,
4247,
1435,
579,
682,
9614,
1376,
67,
718,
11929,
273,
1081,
18,
588,
2098,
1435,
579,
682,
9614,
4476,
416,
67,
718,
11929,
273,
1081,
18,
588,
6032,
2098,
1435,
775,
30,
18817,
67,
718,
273,
1081,
18,
588,
8141,
7675,
588,
1785,
1435,
309,
261,
902,
18817,
67,
718,
18,
17514,
1918,
12,
89,
14271,
24161,
2497,
3719,
30,
579,
682,
9614,
25151,
67,
718,
11929,
273,
18817,
67,
718,
1335,
30,
1342,
11156,
67,
718,
273,
1081,
18,
588,
16270,
1785,
1435,
309,
11156,
67,
718,
353,
486,
599,
30,
579,
682,
9614,
21639,
67,
718,
11929,
273,
11156,
67,
718,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6191,
38,
16659,
29764,
1230,
12,
2890,
16,
761,
4672,
1081,
273,
1319,
18,
588,
921,
13331,
12,
474,
12,
1726,
3719,
579,
682,
273,
2618,
579,
682,
9614,
2649,
11929,
273,
1081,
18,
588,
4247,
1435,
579,
682,
9614,
1376,
67,
718,
11929,
273,
1081,
18,
588,
2098,
1435,
579,
682,
9614,
4476,
416,
67,
718,
11929,
273,
1081,
18,
588,
6032,
2098,
1435,
775,
30,
18817,
67,
718,
273,
1081,
18,
588,
8141,
7675,
588,
1785,
1435,
309,
261,
902,
18817,
67,
718,
18,
17514,
1918,
12,
89,
14271,
24161,
2497,
3719,
30,
579,
682,
9614,
25151,
67,
718,
11929,
273,
18817,
67,
718,
1335,
30,
1342,
11156,
67,
718,
273,
1081,
18,
588,
16270,
1785,
2
] |
None,
|
# typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*);
|
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
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
] |
|
gl.mapcolor(index, r, g, b)
|
map.append(index, r, g, b)
|
def _initcmap(self): if self.format in ('mono', 'grey4') and self.mustunpack: convcolor = conv_grey else: convcolor = choose_conversion(self.format) maxbits = gl.getgdesc(GL.GD_BITS_NORM_SNG_CMODE) if maxbits > 11: maxbits = 11 c0bits = self.c0bits c1bits = self.c1bits c2bits = self.c2bits if c0bits+c1bits+c2bits > maxbits: if self.fallback and c0bits < maxbits: # Cannot display frames in this mode, use grey self.skipchrom = 1 c1bits = c2bits = 0 convcolor = choose_conversion('grey') else: raise Error, 'Sorry, '+`maxbits`+ \ ' bits max on this machine' maxc0 = 1 << c0bits maxc1 = 1 << c1bits maxc2 = 1 << c2bits if self.offset == 0 and maxbits == 11: offset = 2048 else: offset = self.offset if maxbits <> 11: offset = offset & ((1<<maxbits)-1) self.color0 = None self.fixcolor0 = 0 for c0 in range(maxc0): c0v = c0/float(maxc0-1) for c1 in range(maxc1): if maxc1 == 1: c1v = 0 else: c1v = c1/float(maxc1-1) for c2 in range(maxc2): if maxc2 == 1: c2v = 0 else: c2v = c2/float(maxc2-1) index = offset + c0 + (c1<<c0bits) + \ (c2 << (c0bits+c1bits)) if index < MAXMAP: rv, gv, bv = \ convcolor(c0v, c1v, c2v) r, g, b = int(rv*255.0), \ int(gv*255.0), \ int(bv*255.0) gl.mapcolor(index, r, g, b) if self.color0 == None: self.color0 = \ index, r, g, b # Permanently make the first color index current gl.color(self.color0[0]) gl.gflush() # send the colormap changes to the X server
|
b1a5afa1c5e01fd8ca8c53cf97ce4b6d30a13ac8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b1a5afa1c5e01fd8ca8c53cf97ce4b6d30a13ac8/VFile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
22738,
12,
2890,
4672,
309,
365,
18,
2139,
316,
7707,
2586,
83,
2187,
296,
11556,
93,
24,
6134,
471,
365,
18,
11926,
17309,
30,
6292,
3266,
273,
6292,
67,
11556,
93,
469,
30,
6292,
3266,
273,
9876,
67,
20990,
12,
2890,
18,
2139,
13,
943,
6789,
273,
5118,
18,
588,
75,
5569,
12,
11261,
18,
27338,
67,
25171,
67,
50,
3466,
67,
55,
4960,
67,
39,
7038,
13,
309,
943,
6789,
405,
4648,
30,
943,
6789,
273,
4648,
276,
20,
6789,
273,
365,
18,
71,
20,
6789,
276,
21,
6789,
273,
365,
18,
71,
21,
6789,
276,
22,
6789,
273,
365,
18,
71,
22,
6789,
309,
276,
20,
6789,
15,
71,
21,
6789,
15,
71,
22,
6789,
405,
943,
6789,
30,
309,
365,
18,
16471,
471,
276,
20,
6789,
411,
943,
6789,
30,
468,
14143,
2562,
7793,
316,
333,
1965,
16,
999,
5174,
93,
365,
18,
7457,
16298,
273,
404,
276,
21,
6789,
273,
276,
22,
6789,
273,
374,
6292,
3266,
273,
9876,
67,
20990,
2668,
11556,
93,
6134,
469,
30,
1002,
1068,
16,
296,
28898,
16,
15126,
68,
1896,
6789,
68,
15,
521,
296,
4125,
943,
603,
333,
5228,
11,
943,
71,
20,
273,
404,
2296,
276,
20,
6789,
943,
71,
21,
273,
404,
2296,
276,
21,
6789,
943,
71,
22,
273,
404,
2296,
276,
22,
6789,
309,
365,
18,
3348,
422,
374,
471,
943,
6789,
422,
4648,
30,
1384,
273,
21907,
469,
30,
1384,
273,
365,
18,
3348,
309,
943,
6789,
2813,
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,
2738,
22738,
12,
2890,
4672,
309,
365,
18,
2139,
316,
7707,
2586,
83,
2187,
296,
11556,
93,
24,
6134,
471,
365,
18,
11926,
17309,
30,
6292,
3266,
273,
6292,
67,
11556,
93,
469,
30,
6292,
3266,
273,
9876,
67,
20990,
12,
2890,
18,
2139,
13,
943,
6789,
273,
5118,
18,
588,
75,
5569,
12,
11261,
18,
27338,
67,
25171,
67,
50,
3466,
67,
55,
4960,
67,
39,
7038,
13,
309,
943,
6789,
405,
4648,
30,
943,
6789,
273,
4648,
276,
20,
6789,
273,
365,
18,
71,
20,
6789,
276,
21,
6789,
273,
365,
18,
71,
21,
6789,
276,
22,
6789,
273,
365,
18,
71,
22,
6789,
309,
276,
20,
6789,
15,
71,
21,
6789,
15,
71,
22,
2
] |
print "Select(\"%s\");" % glyph print "Clear();"
|
fout.write("Select(\"%s\");\n" % glyph) fout.write("Clear();\n")
|
def end_font(): global current_glyph_number global current_font_number global count for glyph in toremove: print "Select(\"%s\");" % glyph print "Clear();" if (current_font_number!=0): for glyph in initial_glyphs: print "Select(\"%s\");" % glyph print "Clear();" else: # we suppress empty glyphs for i in range(395-len(initial_glyphs),395): print "Select(\"NameMe.%d\");" % i print "Clear();" # 66537 is for generating an afm and a tfm file #print "Generate(\"gregorio-%d.pfb\",\"\",66537);" % current_font_number print "Save(\"gregorio-%d.sfd\");" % current_font_number print "Close();" print "Open(\"gregorio-base.sfd\");" current_glyph_number=0 current_font_number=current_font_number+1 count=139
|
da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7096/da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b/sqarize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
5776,
13332,
2552,
783,
67,
19426,
67,
2696,
2552,
783,
67,
5776,
67,
2696,
2552,
1056,
364,
9440,
316,
358,
4479,
30,
17382,
18,
2626,
2932,
3391,
23031,
9,
87,
2412,
20472,
82,
6,
738,
9440,
13,
17382,
18,
2626,
2932,
9094,
5621,
64,
82,
7923,
309,
261,
2972,
67,
5776,
67,
2696,
5,
33,
20,
4672,
364,
9440,
316,
2172,
67,
19426,
87,
30,
17382,
18,
2626,
2932,
3391,
23031,
9,
87,
2412,
20472,
82,
6,
738,
9440,
13,
17382,
18,
2626,
2932,
9094,
5621,
64,
82,
7923,
469,
30,
468,
732,
12257,
1008,
23404,
364,
277,
316,
1048,
12,
5520,
25,
17,
1897,
12,
6769,
67,
19426,
87,
3631,
5520,
25,
4672,
1172,
315,
3391,
23031,
461,
4667,
7866,
72,
2412,
12171,
738,
277,
1172,
315,
9094,
26994,
468,
1666,
9222,
6418,
353,
364,
12516,
392,
10073,
81,
471,
279,
3253,
81,
585,
468,
1188,
315,
4625,
23031,
2810,
280,
1594,
6456,
72,
18,
14241,
70,
22564,
2412,
22564,
6028,
25,
6418,
12171,
738,
783,
67,
5776,
67,
2696,
1172,
315,
4755,
23031,
2810,
280,
1594,
6456,
72,
18,
87,
8313,
2412,
12171,
738,
783,
67,
5776,
67,
2696,
1172,
315,
4605,
26994,
1172,
315,
3678,
23031,
2810,
280,
1594,
17,
1969,
18,
87,
8313,
2412,
12171,
783,
67,
19426,
67,
2696,
33,
20,
783,
67,
5776,
67,
2696,
33,
2972,
67,
5776,
67,
2696,
15,
21,
1056,
33,
24347,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
5776,
13332,
2552,
783,
67,
19426,
67,
2696,
2552,
783,
67,
5776,
67,
2696,
2552,
1056,
364,
9440,
316,
358,
4479,
30,
17382,
18,
2626,
2932,
3391,
23031,
9,
87,
2412,
20472,
82,
6,
738,
9440,
13,
17382,
18,
2626,
2932,
9094,
5621,
64,
82,
7923,
309,
261,
2972,
67,
5776,
67,
2696,
5,
33,
20,
4672,
364,
9440,
316,
2172,
67,
19426,
87,
30,
17382,
18,
2626,
2932,
3391,
23031,
9,
87,
2412,
20472,
82,
6,
738,
9440,
13,
17382,
18,
2626,
2932,
9094,
5621,
64,
82,
7923,
469,
30,
468,
732,
12257,
1008,
23404,
364,
277,
316,
1048,
12,
5520,
25,
17,
1897,
12,
6769,
67,
19426,
87,
3631,
5520,
25,
4672,
1172,
315,
2
] |
tx.setXPos(offset)
|
def _justifyDrawParaLineX( tx, offset, line, last=0): if last: #last one, left align tx.setXPos(offset) _putFragLine(tx, line.words) else: tx.setXPos(offset) nSpaces = line.wordCount - 1 if nSpaces: tx.setWordSpace(line.extraSpace / float(nSpaces)) _putFragLine(tx, line.words) tx.setWordSpace(0) else: _putFragLine(tx, line.words)
|
8f8ad2094f390b0f1bc05d368540a202a73fdeef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8f8ad2094f390b0f1bc05d368540a202a73fdeef/paragraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3732,
1164,
6493,
23529,
1670,
60,
12,
2229,
16,
1384,
16,
980,
16,
1142,
33,
20,
4672,
309,
1142,
30,
468,
2722,
1245,
16,
2002,
5689,
389,
458,
19509,
1670,
12,
978,
16,
980,
18,
3753,
13,
469,
30,
290,
12077,
273,
980,
18,
1095,
1380,
300,
404,
309,
290,
12077,
30,
2229,
18,
542,
3944,
3819,
12,
1369,
18,
7763,
3819,
342,
1431,
12,
82,
12077,
3719,
389,
458,
19509,
1670,
12,
978,
16,
980,
18,
3753,
13,
2229,
18,
542,
3944,
3819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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,
389,
3732,
1164,
6493,
23529,
1670,
60,
12,
2229,
16,
1384,
16,
980,
16,
1142,
33,
20,
4672,
309,
1142,
30,
468,
2722,
1245,
16,
2002,
5689,
389,
458,
19509,
1670,
12,
978,
16,
980,
18,
3753,
13,
469,
30,
290,
12077,
273,
980,
18,
1095,
1380,
300,
404,
309,
290,
12077,
30,
2229,
18,
542,
3944,
3819,
12,
1369,
18,
7763,
3819,
342,
1431,
12,
82,
12077,
3719,
389,
458,
19509,
1670,
12,
978,
16,
980,
18,
3753,
13,
2229,
18,
542,
3944,
3819,
12,
20,
13,
469,
30,
389,
458,
19509,
1670,
12,
978,
16,
980,
18,
3753,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
xy_data_arrays = map(lambda g: [[g(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)], g) xy_data_array = map(lambda *rows: map(lambda *vals: mangle_neg(vals), *rows), *xy_data_arrays)
|
xy_data_arrays = numpy.asarray([[[func(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)] for func in g],dtype=float) xy_data_array=numpy.abs(xy_data_arrays.prod(axis=0)) neg_indices = (xy_data_arrays<0).all(axis=0) xy_data_array[neg_indices]=-xy_data_array[neg_indices]
|
def region_plot(f, xrange, yrange, plot_points, incol, outcol, bordercol, borderstyle, borderwidth): r""" ``region_plot`` takes a boolean function of two variables, `f(x,y)` and plots the region where f is True over the specified ``xrange`` and ``yrange`` as demonstrated below. ``region_plot(f, (xmin, xmax), (ymin, ymax), ...)`` INPUT: - ``f`` -- a boolean function of two variables - ``(xmin, xmax)`` -- 2-tuple, the range of ``x`` values OR 3-tuple ``(x,xmin,xmax)`` - ``(ymin, ymax)`` -- 2-tuple, the range of ``y`` values OR 3-tuple ``(y,ymin,ymax)`` - ``plot_points`` -- integer (default: 100); number of points to plot in each direction of the grid - ``incol`` -- a color (default: ``'blue'``), the color inside the region - ``outcol`` -- a color (default: ``'white'``), the color of the outside of the region If any of these options are specified, the border will be shown as indicated, otherwise it is only implicit (with color ``incol``) as the border of the inside of the region. - ``bordercol`` -- a color (default: ``None``), the color of the border (``'black'`` if ``borderwidth`` or ``borderstyle`` is specified but not ``bordercol``) - ``borderstyle`` -- string (default: 'solid'), one of 'solid', 'dashed', 'dotted', 'dashdot' - ``borderwidth`` -- integer (default: None), the width of the border in pixels EXAMPLES: Here we plot a simple function of two variables:: sage: x,y = var('x,y') sage: region_plot(cos(x^2+y^2) <= 0, (x, -3, 3), (y, -3, 3)) Here we play with the colors:: sage: region_plot(x^2+y^3 < 2, (x, -2, 2), (y, -2, 2), incol='lightblue', bordercol='gray') An even more complicated plot, with dashed borders:: sage: region_plot(sin(x)*sin(y) >= 1/4, (x,-10,10), (y,-10,10), incol='yellow', bordercol='black', borderstyle='dashed', plot_points=250) A disk centered at the origin:: sage: region_plot(x^2+y^2<1, (x,-1,1), (y,-1,1)).show(aspect_ratio=1) A plot with more than one condition:: sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2)) Since it doesn't look very good, let's increase plot_points:: sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2), plot_points=400).show(aspect_ratio=1) #long time The first quadrant of the unit circle:: sage: region_plot([y>0, x>0, x^2+y^2<1], (x,-1.1, 1.1), (y,-1.1, 1.1), plot_points = 400).show(aspect_ratio=1) Here is another plot, with a huge border:: sage: region_plot(x*(x-1)*(x+1)+y^2<0, (x, -3, 2), (y, -3, 3), incol='lightblue', bordercol='gray', borderwidth=10, plot_points=50) If we want to keep only the region where x is positive:: sage: region_plot([x*(x-1)*(x+1)+y^2<0, x>-1], (x, -3, 2), (y, -3, 3), incol='lightblue', plot_points=50) Here we have a cut circle:: sage: region_plot([x^2+y^2<4, x>-1], (x, -2, 2), (y, -2, 2), incol='lightblue', bordercol='gray', plot_points=200).show(aspect_ratio=1) """ from sage.plot.plot import Graphics from sage.plot.misc import setup_for_eval_on_grid if not isinstance(f, (list, tuple)): f = [f] f = [equify(g) for g in f] g, ranges = setup_for_eval_on_grid(f, [xrange, yrange], plot_points) xrange,yrange=[r[:2] for r in ranges] xy_data_arrays = map(lambda g: [[g(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)], g) xy_data_array = map(lambda *rows: map(lambda *vals: mangle_neg(vals), *rows), *xy_data_arrays) from matplotlib.colors import ListedColormap incol = rgbcolor(incol) outcol = rgbcolor(outcol) cmap = ListedColormap([incol, outcol]) cmap.set_over(outcol) cmap.set_under(incol) g = Graphics() opt = contour_plot.options.copy() opt.pop('plot_points') opt.pop('fill') opt.pop('contours') opt.pop('frame') g.add_primitive(ContourPlot(xy_data_array, xrange,yrange, dict(plot_points=plot_points, contours=[-1e307, 0, 1e307], cmap=cmap, fill=True, **opt))) if bordercol or borderstyle or borderwidth: cmap = [rgbcolor(bordercol)] if bordercol else ['black'] linestyles = [borderstyle] if borderstyle else None linewidths = [borderwidth] if borderwidth else None opt.pop('linestyles') opt.pop('linewidths') g.add_primitive(ContourPlot(xy_data_array, xrange, yrange, dict(plot_points=plot_points, linestyles=linestyles, linewidths=linewidths, contours=[0], cmap=[bordercol], fill=False, **opt))) return g
|
74c5cab11c38d207f9706bcaeba8f6b2cdf5d3b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/74c5cab11c38d207f9706bcaeba8f6b2cdf5d3b7/contour_plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
16,
5795,
4060,
16,
5795,
2819,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,
434,
2795,
3152,
16,
1375,
74,
12,
92,
16,
93,
22025,
471,
17931,
326,
3020,
1625,
284,
353,
1053,
1879,
326,
1269,
12176,
92,
3676,
10335,
471,
12176,
93,
3676,
10335,
487,
302,
4758,
701,
690,
5712,
18,
225,
12176,
6858,
67,
4032,
12,
74,
16,
261,
92,
1154,
16,
14016,
3631,
261,
93,
1154,
16,
15275,
3631,
1372,
13,
10335,
225,
12943,
30,
225,
300,
12176,
74,
10335,
1493,
279,
1250,
445,
434,
2795,
3152,
225,
300,
12176,
12,
92,
1154,
16,
14016,
13,
10335,
1493,
576,
17,
8052,
16,
326,
1048,
434,
12176,
92,
10335,
924,
4869,
890,
17,
8052,
12176,
12,
92,
16,
92,
1154,
16,
92,
1896,
13,
10335,
225,
300,
12176,
12,
93,
1154,
16,
15275,
13,
10335,
1493,
576,
17,
8052,
16,
326,
1048,
434,
12176,
93,
10335,
924,
4869,
890,
17,
8052,
12176,
12,
93,
16,
93,
1154,
16,
93,
1896,
13,
10335,
225,
300,
12176,
4032,
67,
4139,
10335,
225,
1493,
3571,
261,
1886,
30,
2130,
1769,
1300,
434,
3143,
358,
3207,
316,
1517,
4068,
434,
326,
3068,
225,
300,
12176,
267,
1293,
10335,
1493,
279,
2036,
261,
1886,
30,
1375,
11294,
14081,
11,
10335,
3631,
326,
2036,
4832,
326,
3020,
225,
300,
12176,
659,
1293,
10335,
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,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
16,
5795,
4060,
16,
5795,
2819,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,
434,
2795,
3152,
16,
1375,
74,
12,
92,
16,
93,
22025,
471,
17931,
326,
3020,
1625,
284,
353,
1053,
1879,
326,
1269,
12176,
92,
3676,
10335,
471,
12176,
93,
3676,
10335,
487,
302,
4758,
701,
690,
5712,
18,
225,
12176,
6858,
67,
4032,
12,
74,
16,
261,
92,
1154,
16,
14016,
3631,
261,
93,
1154,
16,
15275,
3631,
1372,
13,
10335,
225,
12943,
30,
225,
300,
12176,
74,
10335,
1493,
279,
1250,
445,
434,
2795,
3152,
225,
2
] |
'displayName' : cn, 'sn' : cn, 'cn' : cn,
|
'displayName' : str(cn).encode('utf8'), 'sn' : str(cn).encode('utf8'), 'cn' : str(cn).encode('utf8'),
|
def newPerson(self, cn, givenName, mail, telephoneNumber, postalAddress): ''' Create a new user ''' dt = datetime.datetime.now() now = '%.2i-%.2i-%.2i %.2i:%.2i:%.2i.%.2i' % (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.microsecond) attributes = { 'cn' : cn, 'objectClass' : ('fedoraPerson', 'inetOrgPerson', 'organizationalPerson', 'person', 'top'), 'displayName' : cn, 'sn' : cn, 'cn' : cn, 'fedoraPersonSshKey' : '', 'facsimileTelephoneNumber' : '', 'fedoraPersonApprovalStatus' : 'approved', 'givenName' : givenName, 'mail' : mail, 'fedoraPersonKeyId' : '', 'description' : '', 'fedoraPersonCreationDate' : now, 'telephoneNumber' : telephoneNumber, 'fedoraPersonBugzillaMail' : mail, 'postalAddress' : postalAddress, 'fedoraPersonIrcNick' : '', 'userPassword' : 'Disabled' } self.__server.add('cn=%s,%s' % (cn, self.__base), attributes) attributes = { 'objectClass' : ('organizationalUnit', 'top'), 'ou' : 'Roles' } self.__server.add('ou=Roles,cn=%s,%s' % (cn, self.__base), attributes) return 0
|
da01ec3a79104df23a127ceac3e1101be0247b25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9952/da01ec3a79104df23a127ceac3e1101be0247b25/fasLDAP.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
8346,
12,
2890,
16,
6227,
16,
864,
461,
16,
4791,
16,
268,
6516,
10540,
1854,
16,
30553,
1887,
4672,
9163,
1788,
279,
394,
729,
9163,
3681,
273,
3314,
18,
6585,
18,
3338,
1435,
2037,
273,
22036,
22,
77,
6456,
18,
22,
77,
6456,
18,
22,
77,
12639,
22,
77,
5319,
18,
22,
77,
5319,
18,
22,
77,
7866,
18,
22,
77,
11,
738,
261,
7510,
18,
6874,
16,
3681,
18,
7496,
16,
3681,
18,
2881,
16,
3681,
18,
12091,
16,
3681,
18,
17637,
16,
3681,
18,
8538,
16,
3681,
18,
14458,
8538,
13,
1677,
273,
288,
296,
10305,
11,
294,
6227,
16,
296,
1612,
797,
11,
294,
7707,
74,
15534,
8346,
2187,
296,
23864,
6001,
8346,
2187,
296,
15336,
287,
8346,
2187,
296,
12479,
2187,
296,
3669,
19899,
296,
5417,
461,
11,
294,
609,
12,
10305,
2934,
3015,
2668,
3158,
28,
19899,
296,
8134,
11,
294,
609,
12,
10305,
2934,
3015,
2668,
3158,
28,
19899,
296,
10305,
11,
294,
609,
12,
10305,
2934,
3015,
2668,
3158,
28,
19899,
296,
74,
15534,
8346,
27364,
653,
11,
294,
10226,
296,
507,
2143,
381,
398,
56,
6516,
10540,
1854,
11,
294,
10226,
296,
74,
15534,
8346,
23461,
1482,
11,
294,
296,
25990,
2187,
296,
10822,
461,
11,
294,
864,
461,
16,
296,
4408,
11,
294,
4791,
16,
296,
74,
15534,
8346,
14140,
11,
294,
10226,
296,
3384,
11,
294,
10226,
296,
74,
15534,
8346,
9906,
1626,
11,
294,
2037,
16,
296,
29170,
10540,
1854,
11,
294,
268,
6516,
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,
394,
8346,
12,
2890,
16,
6227,
16,
864,
461,
16,
4791,
16,
268,
6516,
10540,
1854,
16,
30553,
1887,
4672,
9163,
1788,
279,
394,
729,
9163,
3681,
273,
3314,
18,
6585,
18,
3338,
1435,
2037,
273,
22036,
22,
77,
6456,
18,
22,
77,
6456,
18,
22,
77,
12639,
22,
77,
5319,
18,
22,
77,
5319,
18,
22,
77,
7866,
18,
22,
77,
11,
738,
261,
7510,
18,
6874,
16,
3681,
18,
7496,
16,
3681,
18,
2881,
16,
3681,
18,
12091,
16,
3681,
18,
17637,
16,
3681,
18,
8538,
16,
3681,
18,
14458,
8538,
13,
1677,
273,
288,
296,
10305,
11,
294,
6227,
16,
296,
1612,
797,
11,
294,
7707,
74,
15534,
8346,
2187,
296,
23864,
6001,
8346,
2187,
2
] |
StudentRegistration.objects.filter(section=self, end_date__gte=now).update(end_date=now)
|
qs = StudentRegistration.objects.filter(section=self, end_date__gte=now) qs.update(end_date=now) for reg in qs: signals.post_save.send(sender=StudentRegistration, instance=reg)
|
def clearStudents(self): from esp.program.models import StudentRegistration now = datetime.datetime.now() StudentRegistration.objects.filter(section=self, end_date__gte=now).update(end_date=now)
|
1af4aef373a2b174dfd7f35cccdcf2f97383915e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/1af4aef373a2b174dfd7f35cccdcf2f97383915e/class_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
19943,
4877,
12,
2890,
4672,
628,
5001,
84,
18,
12890,
18,
7665,
1930,
934,
1100,
319,
7843,
2037,
273,
3314,
18,
6585,
18,
3338,
1435,
934,
1100,
319,
7843,
18,
6911,
18,
2188,
12,
3464,
33,
2890,
16,
679,
67,
712,
972,
27225,
33,
3338,
2934,
2725,
12,
409,
67,
712,
33,
3338,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
19943,
4877,
12,
2890,
4672,
628,
5001,
84,
18,
12890,
18,
7665,
1930,
934,
1100,
319,
7843,
2037,
273,
3314,
18,
6585,
18,
3338,
1435,
934,
1100,
319,
7843,
18,
6911,
18,
2188,
12,
3464,
33,
2890,
16,
679,
67,
712,
972,
27225,
33,
3338,
2934,
2725,
12,
409,
67,
712,
33,
3338,
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
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 858) else quickfix.DoubleField.__init__(self, 858, 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,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
8204,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
8204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
8204,
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,
-100
] |
else:
|
elif not buddy.startswith('sip:'):
|
def read_queue(account): global user_quit, lock, queue, xcap_client, service_uri lock.acquire() try: xcap_client = XCAPClient(account.xcap_root, account.id, password=account.password, auth=None) print 'Retrieving current RLS services from %s' % account.xcap_root get_rls_services() if show_xml and rls_services is not None: print "RLS services document:" print rls_services.toxml(pretty_print=True) print 'Managing service URI %s' % service_uri print_rls_services() while True: command, data = queue.get() if command == "print": print data if command == "core_event": event_name, args = data if command == "user_input": key = data if key == 'a': buddy = getstr('new buddy') if buddy != '': if '@' not in buddy: buddy = 'sip:%s@%s' % (buddy, account.id.domain) else: buddy = 'sip:%s' % buddy add_buddy(buddy) elif key == 'r': buddy = getstr('buddy to delete') if buddy != '': if '@' not in buddy: buddy = 'sip:%s@%s' % (buddy, account.id.domain) else: buddy = 'sip:%s' % buddy remove_buddy(buddy) elif key == 's': if rls_services is not None: print "RLS services document:" print rls_services.toxml(pretty_print=True) elif key == 'd': delete_service() if key != 'd': print_rls_services() if command == "eof": command = "end" want_quit = True if command == "quit" or command == "end": user_quit = False break except: user_quit = False traceback.print_exc() finally: if not user_quit: os.kill(os.getpid(), signal.SIGINT) lock.release()
|
733f12f30148651690ccba933e2fbf56485d5b11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/733f12f30148651690ccba933e2fbf56485d5b11/xcap_rls_services.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
4000,
12,
4631,
4672,
2552,
729,
67,
27176,
16,
2176,
16,
2389,
16,
619,
5909,
67,
2625,
16,
1156,
67,
1650,
2176,
18,
1077,
1039,
1435,
775,
30,
619,
5909,
67,
2625,
273,
1139,
17296,
1227,
12,
4631,
18,
92,
5909,
67,
3085,
16,
2236,
18,
350,
16,
2201,
33,
4631,
18,
3664,
16,
1357,
33,
7036,
13,
1172,
296,
3848,
6282,
783,
534,
3045,
4028,
628,
738,
87,
11,
738,
2236,
18,
92,
5909,
67,
3085,
336,
67,
1321,
87,
67,
8387,
1435,
309,
2405,
67,
2902,
471,
436,
3251,
67,
8387,
353,
486,
599,
30,
1172,
315,
54,
3045,
4028,
1668,
2773,
1172,
436,
3251,
67,
8387,
18,
869,
2902,
12,
19073,
67,
1188,
33,
5510,
13,
1172,
296,
49,
940,
310,
1156,
3699,
738,
87,
11,
738,
1156,
67,
1650,
1172,
67,
1321,
87,
67,
8387,
1435,
225,
1323,
1053,
30,
1296,
16,
501,
273,
2389,
18,
588,
1435,
309,
1296,
422,
315,
1188,
6877,
1172,
501,
309,
1296,
422,
315,
3644,
67,
2575,
6877,
871,
67,
529,
16,
833,
273,
501,
309,
1296,
422,
315,
1355,
67,
2630,
6877,
498,
273,
501,
309,
498,
422,
296,
69,
4278,
324,
29017,
273,
336,
701,
2668,
2704,
324,
29017,
6134,
309,
324,
29017,
480,
875,
30,
309,
9175,
486,
316,
324,
29017,
30,
324,
29017,
273,
296,
28477,
5319,
87,
36,
9,
87,
11,
738,
261,
70,
29017,
16,
2236,
18,
350,
18,
4308,
13,
1327,
486,
324,
29017,
18,
17514,
1918,
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,
4000,
12,
4631,
4672,
2552,
729,
67,
27176,
16,
2176,
16,
2389,
16,
619,
5909,
67,
2625,
16,
1156,
67,
1650,
2176,
18,
1077,
1039,
1435,
775,
30,
619,
5909,
67,
2625,
273,
1139,
17296,
1227,
12,
4631,
18,
92,
5909,
67,
3085,
16,
2236,
18,
350,
16,
2201,
33,
4631,
18,
3664,
16,
1357,
33,
7036,
13,
1172,
296,
3848,
6282,
783,
534,
3045,
4028,
628,
738,
87,
11,
738,
2236,
18,
92,
5909,
67,
3085,
336,
67,
1321,
87,
67,
8387,
1435,
309,
2405,
67,
2902,
471,
436,
3251,
67,
8387,
353,
486,
599,
30,
1172,
315,
54,
3045,
4028,
1668,
2773,
1172,
436,
3251,
67,
8387,
18,
869,
2902,
12,
19073,
67,
1188,
2
] |
sym = ncf.variables['UseSymmetry'][:]
|
sym = nc.variables['UseSymmetry'][:]
|
def get_symmetry(self): '''return the type of symmetry used''' nc = netCDF(self.nc,'r') if 'UseSymmetry' in nc.variables: sym = ncf.variables['UseSymmetry'][:] else: sym = None nc.close() return sym
|
33319abb7a7e499885d15fc2d8f13114bdf95a38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/33319abb7a7e499885d15fc2d8f13114bdf95a38/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8117,
18042,
12,
2890,
4672,
9163,
2463,
326,
618,
434,
26144,
1399,
26418,
8194,
273,
2901,
39,
4577,
12,
2890,
18,
14202,
11189,
86,
6134,
309,
296,
3727,
11901,
18042,
11,
316,
8194,
18,
7528,
30,
5382,
273,
8194,
18,
7528,
3292,
3727,
11901,
18042,
3546,
10531,
65,
469,
30,
5382,
273,
599,
225,
8194,
18,
4412,
1435,
327,
5382,
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,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
7528,
30,
5382,
273,
8194,
18,
7528,
3292,
3727,
11901,
18042,
3546,
10531,
65,
469,
30,
5382,
273,
599,
225,
8194,
18,
4412,
1435,
327,
5382,
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
] |
for item in page._getContentsAndSupercats(newrecurse, purge):
|
for item in page._getContentsAndSupercats( newrecurse, purge, cache=cache):
|
def _getContentsAndSupercats(self, recurse=False, purge=False, startFrom=None, cache=[]): """ Cache results of _parseCategory for a second call.
|
5afb2f2f9cd7b97e901eba042ad6c30778279e51 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/5afb2f2f9cd7b97e901eba042ad6c30778279e51/catlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
6323,
1876,
8051,
24750,
12,
2890,
16,
11502,
33,
8381,
16,
11668,
33,
8381,
16,
787,
1265,
33,
7036,
16,
1247,
33,
8526,
4672,
3536,
4379,
1686,
434,
389,
2670,
4457,
364,
279,
2205,
745,
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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,
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,
6323,
1876,
8051,
24750,
12,
2890,
16,
11502,
33,
8381,
16,
11668,
33,
8381,
16,
787,
1265,
33,
7036,
16,
1247,
33,
8526,
4672,
3536,
4379,
1686,
434,
389,
2670,
4457,
364,
279,
2205,
745,
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
] |
tag_('Please review your configuration, ' 'probably starting with %(section)s ' 'in your %(tracini)s.', section = tag.pre('[ticket]', tag.br(), 'workflow = ...'), tracini = tag.tt('trac.ini')))
|
tag_("Please review your configuration, " "probably starting with %(section)s " "in your %(tracini)s.", section=tag.pre('[ticket]', tag.br(), 'workflow = ...'), tracini=tag.tt('trac.ini')))
|
def _process_ticket_request(self, req): id = int(req.args.get('id')) version = req.args.get('version', None) if version is not None: try: version = int(version) except ValueError: version = None
|
8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
16282,
67,
2293,
12,
2890,
16,
1111,
4672,
612,
273,
509,
12,
3658,
18,
1968,
18,
588,
2668,
350,
26112,
1177,
273,
1111,
18,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
16282,
67,
2293,
12,
2890,
16,
1111,
4672,
612,
273,
509,
12,
3658,
18,
1968,
18,
588,
2668,
350,
26112,
1177,
273,
1111,
18,
1968,
18,
588,
2668,
1589,
2187,
599,
13,
309,
1177,
353,
486,
599,
30,
775,
30,
1177,
273,
509,
12,
1589,
13,
1335,
2068,
30,
1177,
273,
599,
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
] |
recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3]) ] )
|
recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3]) ], gen=1 )
|
def testConversionRate(self): 'Testing to see if we actually convert at this rate ' a1, a2 = 0, 1 pop = population(10000, loci=[3,4]) InitByValue(pop, value=[a1]*7+[a2]*7) simu = simulator(pop, randomMating()) rec = recombinator(rate = 0.4, convProb=1, loci=[1,3], convParam=1) simu.step( [ stat( haploFreq = [[0,1], [1,2], [2,3], [3,4], [4,5], [5,6]]), rec ] ) #print simu.dvars(0).haploFreq #print rec.convCounts() # 0.5 assert abs(simu.dvars(0).haploFreq['0-1']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['0-1']['1-1'] - 0.5) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['1-2']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-1'] - 0.30) < 0.01 # 0.25 assert abs(simu.dvars(0).haploFreq['2-3']['0-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['0-1'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-1'] - 0.25) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['3-4']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-1'] - 0.30) < 0.01 # r/2 recombination induced recombination assert abs(simu.dvars(0).haploFreq['4-5']['0-0'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['4-5']['0-1'] - 0.2) < 0.01 assert abs(simu.dvars(0).haploFreq['4-5']['1-1'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['4-5']['1-0'] - 0.2) < 0.01 # copied assert abs(simu.dvars(0).haploFreq['5-6']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['1-1'] - 0.5) < 0.01 # # length 2 pop = population(10000, loci=[3,4]) InitByValue(pop, value=[a1]*7+[a2]*7) simu = simulator(pop, randomMating()) simu.step( [ stat( haploFreq = [[0,1], [1,2], [2,3], [3,4], [4,5], [5,6]]), recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3]) ] ) # assert abs(simu.dvars(0).haploFreq['0-1']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['0-1']['1-1'] - 0.5) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['1-2']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-1'] - 0.30) < 0.01 # 0.25 assert abs(simu.dvars(0).haploFreq['2-3']['0-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['0-1'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-1'] - 0.25) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['3-4']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-1'] - 0.30) < 0.01 # copied assert abs(simu.dvars(0).haploFreq['4-5']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['4-5']['1-1'] - 0.5) < 0.01 # r/2 recombination induced recombination assert abs(simu.dvars(0).haploFreq['5-6']['0-0'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['0-1'] - 0.2) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['1-1'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['1-0'] - 0.2) < 0.01 # # algorithm 0?? pop = population(10000, loci=[3,10]) InitByValue(pop, value=[a1]*13+[a2]*13) simu = simulator(pop, randomMating()) simu.step( [ stat( haploFreq = [[0,1], [1,2], [2,3], [3,4], [4,5], [5,6]]), recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3,8]) ] ) # assert abs(simu.dvars(0).haploFreq['0-1']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['0-1']['1-1'] - 0.5) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['1-2']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['1-2']['1-1'] - 0.30) < 0.01 # 0.25 assert abs(simu.dvars(0).haploFreq['2-3']['0-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['0-1'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-0'] - 0.25) < 0.01 assert abs(simu.dvars(0).haploFreq['2-3']['1-1'] - 0.25) < 0.01 # r/2 assert abs(simu.dvars(0).haploFreq['3-4']['0-1'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-0'] - 0.20) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['0-0'] - 0.30) < 0.01 assert abs(simu.dvars(0).haploFreq['3-4']['1-1'] - 0.30) < 0.01 # copied assert abs(simu.dvars(0).haploFreq['4-5']['0-0'] - 0.5) < 0.01 assert abs(simu.dvars(0).haploFreq['4-5']['1-1'] - 0.5) < 0.01 # r/2 recombination induced recombination assert abs(simu.dvars(0).haploFreq['5-6']['0-0'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['0-1'] - 0.2) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['1-1'] - 0.3) < 0.01 assert abs(simu.dvars(0).haploFreq['5-6']['1-0'] - 0.2) < 0.01
|
baf037833eb6d8e211103acc78e7dc0ee60aed65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/baf037833eb6d8e211103acc78e7dc0ee60aed65/test_14_recombination.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6814,
4727,
12,
2890,
4672,
296,
22218,
358,
2621,
309,
732,
6013,
1765,
622,
333,
4993,
296,
279,
21,
16,
279,
22,
273,
374,
16,
404,
1843,
273,
11209,
12,
23899,
16,
1515,
77,
22850,
23,
16,
24,
5717,
4378,
30110,
12,
5120,
16,
460,
22850,
69,
21,
5772,
27,
15,
63,
69,
22,
5772,
27,
13,
3142,
89,
273,
3142,
11775,
12,
5120,
16,
2744,
49,
1776,
10756,
1950,
273,
283,
9301,
4240,
12,
5141,
273,
374,
18,
24,
16,
6292,
9152,
33,
21,
16,
1515,
77,
22850,
21,
16,
23,
6487,
6292,
786,
33,
21,
13,
3142,
89,
18,
4119,
12,
306,
610,
12,
5622,
383,
14485,
273,
12167,
20,
16,
21,
6487,
306,
21,
16,
22,
6487,
306,
22,
16,
23,
6487,
306,
23,
16,
24,
6487,
306,
24,
16,
25,
6487,
306,
25,
16,
26,
13563,
3631,
1950,
308,
262,
468,
1188,
3142,
89,
18,
72,
4699,
12,
20,
2934,
76,
438,
383,
14485,
468,
1188,
1950,
18,
4896,
9211,
1435,
468,
374,
18,
25,
1815,
2417,
12,
9812,
89,
18,
72,
4699,
12,
20,
2934,
76,
438,
383,
14485,
3292,
20,
17,
21,
21712,
20,
17,
20,
3546,
300,
374,
18,
25,
13,
411,
374,
18,
1611,
1815,
2417,
12,
9812,
89,
18,
72,
4699,
12,
20,
2934,
76,
438,
383,
14485,
3292,
20,
17,
21,
21712,
21,
17,
21,
3546,
300,
374,
18,
25,
13,
411,
374,
18,
1611,
468,
436,
19,
22,
1815,
2417,
12,
9812,
89,
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,
1842,
6814,
4727,
12,
2890,
4672,
296,
22218,
358,
2621,
309,
732,
6013,
1765,
622,
333,
4993,
296,
279,
21,
16,
279,
22,
273,
374,
16,
404,
1843,
273,
11209,
12,
23899,
16,
1515,
77,
22850,
23,
16,
24,
5717,
4378,
30110,
12,
5120,
16,
460,
22850,
69,
21,
5772,
27,
15,
63,
69,
22,
5772,
27,
13,
3142,
89,
273,
3142,
11775,
12,
5120,
16,
2744,
49,
1776,
10756,
1950,
273,
283,
9301,
4240,
12,
5141,
273,
374,
18,
24,
16,
6292,
9152,
33,
21,
16,
1515,
77,
22850,
21,
16,
23,
6487,
6292,
786,
33,
21,
13,
3142,
89,
18,
4119,
12,
306,
610,
12,
5622,
383,
14485,
273,
12167,
20,
16,
21,
6487,
306,
21,
2
] |
self.env.doc2path(objects[name][0]),
|
self.env.doc2path(objects[key]),
|
def add_target_and_index(self, name, sig, signode): if name not in self.state.document.ids: signode['names'].append(name) signode['ids'].append(name) signode['first'] = (not self.names) self.state.document.note_explicit_target(signode)
|
8848faea55e18663fe95d1b3d8e897863f1a11d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/8848faea55e18663fe95d1b3d8e897863f1a11d2/rst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3299,
67,
464,
67,
1615,
12,
2890,
16,
508,
16,
3553,
16,
1573,
390,
4672,
309,
508,
486,
316,
365,
18,
2019,
18,
5457,
18,
2232,
30,
1573,
390,
3292,
1973,
29489,
6923,
12,
529,
13,
1573,
390,
3292,
2232,
29489,
6923,
12,
529,
13,
1573,
390,
3292,
3645,
3546,
273,
261,
902,
365,
18,
1973,
13,
365,
18,
2019,
18,
5457,
18,
7652,
67,
16511,
67,
3299,
12,
2977,
390,
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,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,
486,
316,
365,
18,
2019,
18,
5457,
18,
2232,
30,
1573,
390,
3292,
1973,
29489,
6923,
12,
529,
13,
1573,
390,
3292,
2232,
29489,
6923,
12,
529,
13,
1573,
390,
3292,
3645,
3546,
273,
261,
902,
365,
18,
1973,
13,
365,
18,
2019,
18,
5457,
18,
7652,
67,
16511,
67,
3299,
12,
2977,
390,
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
] |
SST, SSR = numpy.sum((y - muY) ** 2), numpy.sum((yEstimated - muY) ** 2) SSE, RSquare = SST-SSR, SSR/SST R = numpy.sqrt(RSquare) RAdjusted = 1 - (1 - RSquare) * (n - 1) / (n - m - 1) F = (SSR / m) / (SST - SSR / (n - m - 1)) df = m - 1 sigmaSquare = SSE / (n-m-1)
|
self.SST, self.SSR = numpy.sum((y - self.muY) ** 2), numpy.sum((yhat - self.muY) ** 2) self.SSE, self.RSquare = self.SST - self.SSR, self.SSR / self.SST self.R = numpy.sqrt(self.RSquare) self.RAdjusted = 1 - (1 - self.RSquare) * (n - 1) / (n - m - 1) self.F = (self.SSR / m) / (self.SST - self.SSR / (n - m - 1)) self.df = m - 1 self.sigmaSquare = self.SSE / (n-m-1)
|
def __call__(self, data, weight=None): # missing values handling (impute missing) imputer = orange.ImputerConstructor_model() imputer.learnerContinuous = orange.MajorityLearner() imputer.learnerDiscrete = orange.BayesLearner() imputer = imputer(data) data = imputer(data)
|
2f0d6c2e9c037aae88c832940eb40e18d9619a80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/2f0d6c2e9c037aae88c832940eb40e18d9619a80/orngRegression.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
501,
16,
3119,
33,
7036,
4672,
468,
3315,
924,
5057,
261,
381,
2507,
3315,
13,
709,
458,
264,
273,
578,
726,
18,
1170,
458,
264,
6293,
67,
2284,
1435,
709,
458,
264,
18,
298,
24834,
26509,
273,
578,
726,
18,
17581,
560,
1682,
24834,
1435,
709,
458,
264,
18,
298,
24834,
1669,
6883,
273,
578,
726,
18,
38,
528,
281,
1682,
24834,
1435,
709,
458,
264,
273,
709,
458,
264,
12,
892,
13,
501,
273,
709,
458,
264,
12,
892,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
501,
16,
3119,
33,
7036,
4672,
468,
3315,
924,
5057,
261,
381,
2507,
3315,
13,
709,
458,
264,
273,
578,
726,
18,
1170,
458,
264,
6293,
67,
2284,
1435,
709,
458,
264,
18,
298,
24834,
26509,
273,
578,
726,
18,
17581,
560,
1682,
24834,
1435,
709,
458,
264,
18,
298,
24834,
1669,
6883,
273,
578,
726,
18,
38,
528,
281,
1682,
24834,
1435,
709,
458,
264,
273,
709,
458,
264,
12,
892,
13,
501,
273,
709,
458,
264,
12,
892,
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
] |
if orngDebugging.orngDebuggingEnabled: self.debugFile = open(orngDebugging.orngDebuggingFileName, "wt") sys.excepthook = self.exceptionHandler sys.stderr = self.debugFile
|
def __init__(self, *args): self.debugFile = None self.verbosity = orngDebugging.orngVerbosity self.stderr = sys.stderr self._seenExceptions = {} #self.stdout = sys.stdout if orngDebugging.orngDebuggingEnabled: self.debugFile = open(orngDebugging.orngDebuggingFileName, "wt") sys.excepthook = self.exceptionHandler sys.stderr = self.debugFile #sys.stdout = self.debugFile
|
c325c998865400045e37c3c3ae2df06746e28713 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2658/c325c998865400045e37c3c3ae2df06746e28713/orngSignalManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
365,
18,
4148,
812,
273,
599,
365,
18,
16629,
8807,
273,
578,
3368,
2829,
1998,
18,
280,
3368,
30594,
365,
18,
11241,
273,
2589,
18,
11241,
365,
6315,
15156,
11416,
273,
2618,
468,
2890,
18,
10283,
273,
2589,
18,
10283,
377,
468,
9499,
18,
10283,
273,
365,
18,
4148,
812,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
365,
18,
4148,
812,
273,
599,
365,
18,
16629,
8807,
273,
578,
3368,
2829,
1998,
18,
280,
3368,
30594,
365,
18,
11241,
273,
2589,
18,
11241,
365,
6315,
15156,
11416,
273,
2618,
468,
2890,
18,
10283,
273,
2589,
18,
10283,
377,
468,
9499,
18,
10283,
273,
365,
18,
4148,
812,
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
] |
|
if not package.readDescFile():
|
if not package.readDescFile(doProcessing = False):
|
def readPackageDescFile(self, descFilename): """ Reads a desc file associated with a particular package, and adds the package to self.packages. Returns the Package object, or None 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,
2261,
4217,
812,
12,
2890,
16,
3044,
5359,
4672,
3536,
29185,
279,
3044,
585,
3627,
598,
279,
6826,
2181,
16,
471,
4831,
326,
2181,
358,
365,
18,
10308,
18,
225,
2860,
326,
7508,
733,
16,
578,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
2261,
4217,
812,
12,
2890,
16,
3044,
5359,
4672,
3536,
29185,
279,
3044,
585,
3627,
598,
279,
6826,
2181,
16,
471,
4831,
326,
2181,
358,
365,
18,
10308,
18,
225,
2860,
326,
7508,
733,
16,
578,
599,
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
] |
"""Coercion from the base ring.
|
""" Coercion from the base ring.
|
def _coerce_impl(self, x): """Coercion from the base ring. EXAMPLES: sage: R = WeylCharacterRing(['G',2]) sage: 2 in R True """ if x in self._base_ring: return self.__call__(x) raise TypeError, "no canonical coercion of x"
|
0a30ee9b10542e4dc66149f6ffe87504cb679b84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0a30ee9b10542e4dc66149f6ffe87504cb679b84/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2894,
2765,
67,
11299,
12,
2890,
16,
619,
4672,
3536,
7695,
12610,
285,
628,
326,
1026,
9221,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
273,
678,
402,
80,
7069,
10369,
12,
3292,
43,
2187,
22,
5717,
272,
410,
30,
576,
316,
534,
1053,
3536,
309,
619,
316,
365,
6315,
1969,
67,
8022,
30,
327,
365,
16186,
1991,
972,
12,
92,
13,
1002,
3580,
16,
315,
2135,
7378,
1825,
12610,
285,
434,
619,
6,
2,
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,
389,
2894,
2765,
67,
11299,
12,
2890,
16,
619,
4672,
3536,
7695,
12610,
285,
628,
326,
1026,
9221,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
273,
678,
402,
80,
7069,
10369,
12,
3292,
43,
2187,
22,
5717,
272,
410,
30,
576,
316,
534,
1053,
3536,
309,
619,
316,
365,
6315,
1969,
67,
8022,
30,
327,
365,
16186,
1991,
972,
12,
92,
13,
1002,
3580,
16,
315,
2135,
7378,
1825,
12610,
285,
434,
619,
6,
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
] |
return self.msg
|
return self.headers
|
def info(self): return self.msg
|
481fa18e5223136b5a882a755e68fec724cbabb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7001/481fa18e5223136b5a882a755e68fec724cbabb7/keepalive.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
4672,
327,
365,
18,
3576,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1123,
12,
2890,
4672,
327,
365,
18,
3576,
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
] |
child = self.endDim()
|
self.endDim()
|
def endElement(self, name): if name == AdcData.tagName: child = self.endAdcData() elif name == AdcInterval.tagName: child = self.endAdcInterval() elif name == Array.tagName: child = self.endArray() elif name == Column.tagName: child = self.endColumn() elif name == Comment.tagName: child = self.endComment() elif name == Detector.tagName: child = self.endDetector() elif name == Dim.tagName: child = self.endDim() elif name == IGWDFrame.tagName: child = self.endIGWDFrame() elif name == LIGO_LW.tagName: child = self.endLIGO_LW() elif name == Param.tagName: child = self.endParam() elif name == Stream.tagName: child = self.endStream() elif name == Table.tagName: child = self.endTable() elif name == Time.tagName: child = self.endTime() else: raise ElementError, "unknown element tag %s" % name self.current = self.current.parentNode
|
19c70d9d2433f3385423e26af544f557b0c477a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/19c70d9d2433f3385423e26af544f557b0c477a4/ligolw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
4006,
1435,
1327,
508,
422,
1510,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1076,
1435,
1327,
508,
422,
4753,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1494,
1435,
1327,
508,
422,
9821,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
4469,
1435,
1327,
508,
422,
22198,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
12594,
1435,
1327,
508,
422,
463,
381,
18,
2692,
461,
30,
365,
18,
409,
5225,
1435,
1327,
508,
422,
13102,
16006,
3219,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
3047,
16006,
3219,
1435,
1327,
508,
422,
511,
3047,
51,
67,
48,
59,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
2053,
16387,
67,
48,
59,
1435,
1327,
508,
422,
3014,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
786,
1435,
1327,
508,
422,
3961,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1228,
1435,
1327,
508,
422,
3555,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1388,
1435,
1327,
508,
422,
2647,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
950,
1435,
469,
30,
1002,
3010,
668,
16,
315,
8172,
930,
1047,
738,
87,
6,
738,
508,
365,
18,
2972,
273,
365,
18,
2972,
18,
2938,
907,
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,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
4006,
1435,
1327,
508,
422,
1510,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1076,
1435,
1327,
508,
422,
4753,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1494,
1435,
1327,
508,
422,
9821,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
4469,
1435,
1327,
508,
422,
22198,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
12594,
1435,
1327,
508,
422,
463,
381,
18,
2692,
461,
30,
365,
18,
409,
5225,
1435,
2
] |
cm=ContentMetadata(elem, top)
|
cm=ContentMetadata(elem, top, self)
|
def __init__(self,url,xml): self.version='1.1.0' self.url = url # initialize from saved capability document or access the server reader = WCSCapabilitiesReader(self.version) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) #build metadata objects: #serviceIdentification metadata elem=self._capabilities.find('{http://www.opengis.net/wcs/1.1/ows}ServiceIdentification') self.identification=ServiceIdentification(elem) #serviceProvider elem=self._capabilities.find('{http://www.opengis.net/ows}ServiceProvider') self.provider=ServiceProvider(elem) #serviceOperations self.operations = [] for elem in self._capabilities.findall('{http://www.opengis.net/wcs/1.1/ows}OperationsMetadata/{http://www.opengis.net/wcs/1.1/ows}Operation/'): self.operations.append(Operation(elem)) # exceptions - ***********TO DO ************* self.exceptions = [f.text for f \ in self._capabilities.findall('Capability/Exception/Format')] # serviceContents: our assumption is that services use a top-level layer # as a metadata organizer, nothing more. self.contents = {} top = self._capabilities.find('{http://www.opengis.net/wcs/1.1}Contents/{http://www.opengis.net/wcs/1.1}CoverageSummary') for elem in self._capabilities.findall('{http://www.opengis.net/wcs/1.1}Contents/{http://www.opengis.net/wcs/1.1}CoverageSummary/{http://www.opengis.net/wcs/1.1}CoverageSummary'): cm=ContentMetadata(elem, top, self) self.contents[cm.id]=cm if self.contents=={}: #non-hierarchical. top=None for elem in self._capabilities.findall('{http://www.opengis.net/wcs/1.1}Contents/{http://www.opengis.net/wcs/1.1}CoverageSummary'): cm=ContentMetadata(elem, top) #make the describeCoverage requests to populate the supported formats/crs attributes self.contents[cm.id]=cm
|
643f2979a6c0e34743fd82e849861f7a49844533 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11708/643f2979a6c0e34743fd82e849861f7a49844533/wcs110.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
718,
16,
2902,
4672,
365,
18,
1589,
2218,
21,
18,
21,
18,
20,
11,
365,
18,
718,
273,
880,
468,
4046,
628,
5198,
12593,
1668,
578,
2006,
326,
1438,
2949,
273,
678,
39,
2312,
438,
5756,
2514,
12,
2890,
18,
1589,
13,
309,
2025,
30,
365,
6315,
22140,
273,
2949,
18,
896,
780,
12,
2902,
13,
469,
30,
365,
6315,
22140,
273,
2949,
18,
896,
12,
2890,
18,
718,
13,
225,
468,
3510,
1982,
2184,
30,
225,
468,
3278,
24371,
1982,
3659,
33,
2890,
6315,
22140,
18,
4720,
2668,
95,
2505,
2207,
5591,
18,
20580,
18,
2758,
19,
18577,
19,
21,
18,
21,
19,
543,
87,
97,
1179,
24371,
6134,
365,
18,
6392,
1480,
33,
1179,
24371,
12,
10037,
13,
225,
468,
3278,
2249,
3659,
33,
2890,
6315,
22140,
18,
4720,
2668,
95,
2505,
2207,
5591,
18,
20580,
18,
2758,
19,
543,
87,
97,
16300,
6134,
365,
18,
6778,
33,
16300,
12,
10037,
13,
225,
468,
3278,
9343,
365,
18,
17542,
273,
5378,
364,
3659,
316,
365,
6315,
22140,
18,
4720,
454,
2668,
95,
2505,
2207,
5591,
18,
20580,
18,
2758,
19,
18577,
19,
21,
18,
21,
19,
543,
87,
97,
9343,
2277,
4938,
2505,
2207,
5591,
18,
20580,
18,
2758,
19,
18577,
19,
21,
18,
21,
19,
543,
87,
97,
2988,
2473,
4672,
365,
18,
17542,
18,
6923,
12,
2988,
12,
10037,
3719,
225,
468,
4798,
300,
380,
1644,
636,
4296,
5467,
380,
1644,
1007,
365,
18,
11855,
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,
1001,
2738,
972,
12,
2890,
16,
718,
16,
2902,
4672,
365,
18,
1589,
2218,
21,
18,
21,
18,
20,
11,
365,
18,
718,
273,
880,
468,
4046,
628,
5198,
12593,
1668,
578,
2006,
326,
1438,
2949,
273,
678,
39,
2312,
438,
5756,
2514,
12,
2890,
18,
1589,
13,
309,
2025,
30,
365,
6315,
22140,
273,
2949,
18,
896,
780,
12,
2902,
13,
469,
30,
365,
6315,
22140,
273,
2949,
18,
896,
12,
2890,
18,
718,
13,
225,
468,
3510,
1982,
2184,
30,
225,
468,
3278,
24371,
1982,
3659,
33,
2890,
6315,
22140,
18,
4720,
2668,
95,
2505,
2207,
5591,
18,
20580,
18,
2758,
19,
18577,
19,
21,
18,
21,
19,
543,
87,
97,
1179,
24371,
6134,
365,
18,
2
] |
if time:
|
if time:
|
def servermsg(self, time, what, text): """Output a generic server message.
|
6676e2400f0ca3479cc06dc09d9e8288ea884518 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9464/6676e2400f0ca3479cc06dc09d9e8288ea884518/irclog2html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
3576,
12,
2890,
16,
813,
16,
4121,
16,
977,
4672,
3536,
1447,
279,
5210,
1438,
883,
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,
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
] |
sage: R = RealField() sage: srange(1,5,R('0.5'))
|
sage: srange(1, 5, 0.5)
|
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): r""" Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This provides one way to iterate over Sage integers as opposed to Python int's. It also allows you to specify step sizes for such an iteration. Note, however, that what is returned is a full list of Integers and not an iterator. It is potentially much slower than the Python range function, depending on the application. The function xsrange() provides an iterator with similar functionality which would usually be more efficient than using srange(). INPUT: a -- number b -- number (default: None) step -- number (default: 1) include_endpoint -- whether or not to include the endpoint (default: False) OUTPUT: list If b is None, then b is set equal to a and a is set equal to the 0 in the parent of b. Unlike range, a and b can be any type of numbers, and the resulting list involves numbers of that type. NOTE: This function is called \code{srange} to distinguish it from the builtin Python \code{range} command. The s at the beginning of the name stands for ``Sage''. SEE ALSO: xsrange -- iterator version EXAMPLES: sage: v = srange(5); v [0, 1, 2, 3, 4] sage: type(v[2]) <type 'sage.rings.integer.Integer'> sage: srange(1, 10) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: srange(10, 1, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2] sage: srange(10,1,-1, include_endpoint=True) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] sage: Q = RationalField() sage: srange(1,10,Q('1/2')) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: srange(1,5,R('0.5')) [1.00000000000000, 1.50000000000000, 2.00000000000000, 2.50000000000000, 3.00000000000000, 3.50000000000000, 4.00000000000000, 4.50000000000000] sage: srange(0,1,R('0.4')) [0.000000000000000, 0.400000000000000, 0.800000000000000] sage: srange(1.0, 5.0, include_endpoint=True) [1.00000000000000, 2.00000000000000, 3.00000000000000, 4.00000000000000, 5.00000000000000] sage: srange(1.0, 1.1) [1.00000000000000] sage: srange(1.0, 1.0) [] sage: V = VectorSpace(QQ, 2) sage: srange(V([0,0]), V([5,5]), step=V([2,2])) [(0, 0), (2, 2), (4, 4)] """ from sage.structure.sequence import Sequence from sage.rings.all import ZZ if end is None: end = start start = 0 if check: if universe is None: universe = Sequence([start, end, step]).universe() start, end, step = universe(start), universe(end), universe(step) if include_endpoint: if universe in [int, long, ZZ]: if (end-start) % step == 0: end += step else: count = (end-start)/step if count == int(float(count)): end += step if universe is int or universe is long: return range(start, end, step) elif universe is ZZ: return ZZ.range(start, end, step) else: L = [] sign = 1 if step > 0 else -1 # In order for range to make sense, start, end, and step must lie in a 1-dim real subspace... count = int(math.ceil((float((end-start)/step)))) if count <= 0: return L # we assume that a+b*c = a + b + ... + b if not (start + count * step)*sign > end*sign: # we won't get there by adding, perhaps comparison in the ring is bad # rather than enter an infinite loop, do something sensible # the 'not' is hear because incomparable items return False L = [start + k*step for k in range(count)] # this is slower due to coercion and mult elif step > 0: while start < end: L.append(start) start += step elif step < 0: while start > end: L.append(start) start += step else: raise ValueError, "step must not be 0" return L
|
285dc9c60fd59b5e65432747859dd76b728bb3b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/285dc9c60fd59b5e65432747859dd76b728bb3b8/misc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
436,
8395,
2000,
666,
434,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
1220,
8121,
1245,
4031,
358,
7401,
1879,
348,
410,
12321,
487,
1061,
7423,
358,
6600,
509,
1807,
18,
225,
2597,
2546,
5360,
1846,
358,
4800,
2235,
8453,
364,
4123,
392,
6532,
18,
225,
3609,
16,
14025,
16,
716,
4121,
353,
2106,
353,
279,
1983,
666,
434,
657,
736,
6215,
471,
486,
392,
2775,
18,
225,
2597,
353,
13935,
9816,
27926,
2353,
326,
6600,
1048,
445,
16,
8353,
603,
326,
2521,
18,
225,
1021,
445,
9280,
3676,
1435,
8121,
392,
2775,
598,
7281,
14176,
1492,
4102,
11234,
506,
1898,
14382,
2353,
1450,
272,
3676,
7675,
225,
12943,
30,
279,
1493,
1300,
324,
1493,
1300,
261,
1886,
30,
599,
13,
2235,
1493,
1300,
261,
1886,
30,
404,
13,
2341,
67,
8003,
1493,
2856,
578,
486,
358,
2341,
326,
2494,
261,
1886,
30,
1083,
13,
225,
11550,
30,
666,
225,
971,
324,
353,
599,
16,
1508,
324,
353,
444,
3959,
358,
279,
471,
279,
353,
444,
3959,
358,
326,
374,
316,
326,
982,
434,
324,
18,
225,
25448,
1048,
16,
279,
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,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
436,
8395,
2000,
666,
434,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
1220,
8121,
1245,
4031,
358,
7401,
1879,
348,
410,
12321,
487,
1061,
7423,
358,
6600,
509,
1807,
18,
225,
2597,
2546,
5360,
1846,
358,
4800,
2235,
8453,
364,
4123,
392,
6532,
18,
225,
3609,
16,
14025,
16,
716,
4121,
353,
2
] |
self.size = 0
|
self.size = None
|
def __init__(self, url, filename, opts): self.fo = None self._hdr_dump = '' self._parsed_hdr = None self.url = url self.scheme = urlparse.urlsplit(self.url)[0] self.filename = filename self.append = False self.reget_time = None self.opts = opts if self.opts.reget == 'check_timestamp': raise NotImplementedError, "check_timestamp regets are not implemented in this ver of urlgrabber. Please report this." self._complete = False self._rbuf = '' self._rbufsize = 1024*8 self._ttime = time.time() self._tsize = 0 self._amount_read = 0 self._reget_length = 0 self._prog_running = False self._error = (None, None) self.size = 0 self._do_open()
|
9f899f58eda381b21dacd51897345a836fe7985e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7001/9f899f58eda381b21dacd51897345a836fe7985e/grabber.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
880,
16,
1544,
16,
1500,
4672,
365,
18,
617,
273,
599,
365,
6315,
16587,
67,
8481,
273,
875,
365,
6315,
10817,
67,
16587,
273,
599,
365,
18,
718,
273,
880,
365,
18,
9068,
273,
15185,
18,
718,
4939,
12,
2890,
18,
718,
25146,
20,
65,
365,
18,
3459,
273,
1544,
365,
18,
6923,
273,
1083,
365,
18,
266,
588,
67,
957,
273,
599,
365,
18,
4952,
273,
1500,
309,
365,
18,
4952,
18,
266,
588,
422,
296,
1893,
67,
5508,
4278,
1002,
11206,
16,
315,
1893,
67,
5508,
283,
14665,
854,
486,
8249,
316,
333,
1924,
434,
880,
2752,
23709,
18,
7801,
2605,
333,
1199,
365,
6315,
6226,
273,
1083,
365,
6315,
86,
4385,
273,
875,
365,
6315,
86,
4385,
1467,
273,
6250,
14,
28,
365,
6315,
748,
494,
273,
813,
18,
957,
1435,
365,
6315,
88,
1467,
273,
374,
365,
6315,
8949,
67,
896,
273,
374,
365,
6315,
266,
588,
67,
2469,
273,
374,
365,
6315,
14654,
67,
8704,
273,
1083,
365,
6315,
1636,
273,
261,
7036,
16,
599,
13,
365,
18,
1467,
273,
599,
365,
6315,
2896,
67,
3190,
1435,
282,
2,
0,
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
273,
599,
365,
6315,
16587,
67,
8481,
273,
875,
365,
6315,
10817,
67,
16587,
273,
599,
365,
18,
718,
273,
880,
365,
18,
9068,
273,
15185,
18,
718,
4939,
12,
2890,
18,
718,
25146,
20,
65,
365,
18,
3459,
273,
1544,
365,
18,
6923,
273,
1083,
365,
18,
266,
588,
67,
957,
273,
599,
365,
18,
4952,
273,
1500,
309,
365,
18,
4952,
18,
266,
588,
422,
296,
1893,
67,
5508,
4278,
1002,
11206,
16,
315,
1893,
67,
5508,
283,
14665,
854,
486,
8249,
316,
333,
1924,
434,
880,
2752,
23709,
18,
7801,
2605,
333,
1199,
365,
6315,
6226,
273,
1083,
365,
6315,
2
] |
self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote,
|
self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote,
|
def rerun(self): """ Resubmits the current job. """ self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote, 'submit_job', self._jdict)
|
bd104c29a9f8bb58b2dceba0091f2773e417e98c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/bd104c29a9f8bb58b2dceba0091f2773e417e98c/dsage_interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
19780,
12,
2890,
4672,
3536,
1124,
373,
22679,
326,
783,
1719,
18,
225,
3536,
365,
18,
4688,
67,
350,
273,
9445,
1477,
1265,
3830,
12,
266,
3362,
16,
365,
6315,
7222,
2603,
18,
1991,
5169,
16,
296,
9297,
67,
4688,
2187,
365,
6315,
78,
1576,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
19780,
12,
2890,
4672,
3536,
1124,
373,
22679,
326,
783,
1719,
18,
225,
3536,
365,
18,
4688,
67,
350,
273,
9445,
1477,
1265,
3830,
12,
266,
3362,
16,
365,
6315,
7222,
2603,
18,
1991,
5169,
16,
296,
9297,
67,
4688,
2187,
365,
6315,
78,
1576,
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
] |
args = sys.argv[1:][1] except: args = "" self.console = Console(self, args) elif self.GTK: self.GTK = True self.CONSOLE = False self.icon_theme = gtk.icon_theme_get_default() self.notifier = Notifier(self) if self.specto_gconf.get_entry("always_show_icon") == False: self.notifier_hide = False elif self.specto_gconf.get_entry("show_notifier")==True: self.notifier_hide = False self.toggle_notifier() elif self.specto_gconf.get_entry("show_notifier")==False: self.notifier_hide = True else: self.notifier_keep_hidden = False else: sys.exit(0) self.specto_gconf.notify_entry("debug_mode", self.key_changed, "debug") values = self.watch_io.read_all_watches(True) try: self.watch_db.create(values) except AttributeError, error_fields: self.logger.log(_("Could not create a watch, because it is corrupt."), \ "critical", "specto")
|
self.watch_db.create(values) except AttributeError, error_fields: self.logger.log(_("Could not create a watch, because it is corrupt."), \ "critical", "specto") if self.GTK: for watch in self.watch_db: self.notifier.add_notifier_entry(watch.id) self.notifier.refresh_all_watches() else: self.console.start_watches()
|
def __init__(self): self.DEBUG = DEBUG self.util = util
|
c498cb7e07445e2228d8a6b81133452fed2b59ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/c498cb7e07445e2228d8a6b81133452fed2b59ee/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9394,
273,
6369,
365,
18,
1367,
273,
1709,
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
] |
[
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9394,
273,
6369,
365,
18,
1367,
273,
1709,
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
] |
if self.y <= 0 or self.y >= GAMEBOY_SCREEN_WIDTH:
|
if self.y <= 0 or self.y >= SPRITE_SIZE + GAMEBOY_SCREEN_HEIGHT + SPRITE_SIZE:
|
def hide_check(self): if self.y <= 0 or self.y >= GAMEBOY_SCREEN_WIDTH: self.hidden = True elif self.x <= 0 or self.x >= GAMEBOY_SCREEN_WIDTH+SPRITE_SIZE: self.hidden = True else: self.hidden = False return self.hidden
|
5c55d5354769a5bee3b7b4f62f1d65751443c8ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/5c55d5354769a5bee3b7b4f62f1d65751443c8ba/video_sprite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
67,
1893,
12,
2890,
4672,
309,
365,
18,
93,
1648,
374,
225,
578,
365,
18,
93,
1545,
348,
8025,
5398,
67,
4574,
397,
611,
1642,
5315,
61,
67,
27908,
67,
14595,
397,
348,
8025,
5398,
67,
4574,
30,
365,
18,
6345,
273,
1053,
1327,
365,
18,
92,
1648,
374,
225,
578,
365,
18,
92,
1545,
611,
1642,
5315,
61,
67,
27908,
67,
10023,
15,
3118,
54,
5398,
67,
4574,
30,
365,
18,
6345,
273,
1053,
469,
30,
365,
18,
6345,
273,
1083,
327,
365,
18,
6345,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
67,
1893,
12,
2890,
4672,
309,
365,
18,
93,
1648,
374,
225,
578,
365,
18,
93,
1545,
348,
8025,
5398,
67,
4574,
397,
611,
1642,
5315,
61,
67,
27908,
67,
14595,
397,
348,
8025,
5398,
67,
4574,
30,
365,
18,
6345,
273,
1053,
1327,
365,
18,
92,
1648,
374,
225,
578,
365,
18,
92,
1545,
611,
1642,
5315,
61,
67,
27908,
67,
10023,
15,
3118,
54,
5398,
67,
4574,
30,
365,
18,
6345,
273,
1053,
469,
30,
365,
18,
6345,
273,
1083,
327,
365,
18,
6345,
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
] |
pkg_info.write('License: %s\n' % self.get_licence() )
|
pkg_info.write('License: %s\n' % self.get_license() )
|
def write_pkg_info (self, base_dir): """Write the PKG-INFO file into the release tree. """
|
0ab51f87fe6dcdfc0be201d34a7ceaba3244a142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0ab51f87fe6dcdfc0be201d34a7ceaba3244a142/dist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
10657,
67,
1376,
261,
2890,
16,
1026,
67,
1214,
4672,
3536,
3067,
326,
11327,
43,
17,
5923,
585,
1368,
326,
3992,
2151,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
10657,
67,
1376,
261,
2890,
16,
1026,
67,
1214,
4672,
3536,
3067,
326,
11327,
43,
17,
5923,
585,
1368,
326,
3992,
2151,
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
] |
if result and (s1, s2)==result[:2]:
|
if result and (s1, s2) == result[:2]:
|
def cmp(f1, f2, shallow=1,use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return value: integer -- 1 if the files are the same, 0 otherwise. This function uses a cache for past comparisons and the results, with a cache invalidation mechanism relying on stale signatures. Of course, if 'use_statcache' is true, this mechanism is defeated, and the cache will never grow stale. """ stat_function = (os.stat, statcache.stat)[use_statcache] s1, s2 = _sig(stat_function(f1)), _sig(stat_function(f2)) if s1[0]!=stat.S_IFREG or s2[0]!=stat.S_IFREG: return 0 if shallow and s1 == s2: return 1 if s1[1]!=s2[1]: return 0 result = _cache.get((f1, f2)) if result and (s1, s2)==result[:2]: return result[2] outcome = _do_cmp(f1, f2) _cache[f1, f2] = s1, s2, outcome return outcome
|
5da8500796861ee5ea784f135a5015a0e5f96631 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5da8500796861ee5ea784f135a5015a0e5f96631/filecmp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
12,
74,
21,
16,
284,
22,
16,
18501,
33,
21,
16,
1202,
67,
5642,
2493,
33,
20,
4672,
3536,
8583,
2795,
1390,
18,
225,
13599,
30,
225,
284,
21,
1493,
5783,
585,
508,
225,
284,
22,
1493,
7631,
585,
508,
225,
18501,
1493,
12526,
866,
610,
3372,
261,
2896,
486,
855,
326,
1390,
2934,
3467,
358,
404,
18,
225,
999,
67,
5642,
2493,
1493,
2256,
486,
610,
1435,
1517,
585,
5122,
30,
1960,
3059,
326,
610,
2493,
1605,
364,
1898,
30325,
18,
225,
2000,
460,
30,
225,
3571,
1493,
404,
309,
326,
1390,
854,
326,
1967,
16,
374,
3541,
18,
225,
1220,
445,
4692,
279,
1247,
364,
8854,
23068,
471,
326,
1686,
16,
598,
279,
1247,
22996,
12860,
283,
6291,
603,
14067,
14862,
18,
8031,
4362,
16,
309,
296,
1202,
67,
5642,
2493,
11,
353,
638,
16,
333,
12860,
353,
1652,
73,
690,
16,
471,
326,
1247,
903,
5903,
13334,
14067,
18,
225,
3536,
610,
67,
915,
273,
261,
538,
18,
5642,
16,
610,
2493,
18,
5642,
25146,
1202,
67,
5642,
2493,
65,
272,
21,
16,
272,
22,
273,
389,
7340,
12,
5642,
67,
915,
12,
74,
21,
13,
3631,
389,
7340,
12,
5642,
67,
915,
12,
74,
22,
3719,
309,
272,
21,
63,
20,
65,
5,
33,
5642,
18,
55,
67,
5501,
5937,
578,
272,
22,
63,
20,
65,
5,
33,
5642,
18,
55,
67,
5501,
5937,
30,
327,
374,
309,
18501,
471,
272,
21,
422,
272,
22,
30,
327,
404,
309,
272,
21,
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,
9411,
12,
74,
21,
16,
284,
22,
16,
18501,
33,
21,
16,
1202,
67,
5642,
2493,
33,
20,
4672,
3536,
8583,
2795,
1390,
18,
225,
13599,
30,
225,
284,
21,
1493,
5783,
585,
508,
225,
284,
22,
1493,
7631,
585,
508,
225,
18501,
1493,
12526,
866,
610,
3372,
261,
2896,
486,
855,
326,
1390,
2934,
3467,
358,
404,
18,
225,
999,
67,
5642,
2493,
1493,
2256,
486,
610,
1435,
1517,
585,
5122,
30,
1960,
3059,
326,
610,
2493,
1605,
364,
1898,
30325,
18,
225,
2000,
460,
30,
225,
3571,
1493,
404,
309,
326,
1390,
854,
326,
1967,
16,
374,
3541,
18,
225,
1220,
445,
4692,
279,
1247,
364,
8854,
23068,
471,
326,
1686,
16,
598,
279,
1247,
22996,
2
] |
if nums[2]>31:
|
if nums[2]>50:
|
def getdate(s=""): """Attempt to parse the given string as a date. The format is unknown, but it's assumed that the broken American m/d/y isn't a possibility. It attempts to distinguish between d/m/y and y/m/d using the values, and handles any seperator. if dateorder (global) is 'DMY' or 'YMD', it overrides the last-resort guessing used if the order is ambiguous, but otherwise has no effect. For example, "2003-11-12" is still parsed correctly if dateorder is 'DMY'. returns y,m,d,confidence where confidence is 1 if the date order is definitely correct, and 0 if it's ambiguous. Throws an AssertionError exception if the input is definitely not a date triple. """ nums=re.findall(reuf,s) nums=map(float,nums) #Convert from strings to floats if len(nums)==2: month=0 #May be broken Canopus UTdate with month name s=string.upper(s) for i in range(12): if string.find(s, months[i])>=0: month=i+1 assert month, "Only two numbers and month name not found in '"+s+"'" nums=[nums[0],month,nums[1]] monthname=1 else: monthname=0 assert len(nums)==3, "Too many/few numbers in '"+s+"'" #Now either nums[0] is the year and nums[2] is the day, or vice-versa #either way, nums[1] is the month month=int(nums[1]) assert (month>=1) and (month<=12), "Month invalid in '"+s+"'" if nums[0]>31: #If first number is >31, it must be a year, so the third must be a day assert (nums[2] >= 1) and (nums[2] <= mlen[month-1]), "YMD, Day invalid in '"+s+"'" day=nums[2] if nums[0]<100: year=nums[0]+1900 else: year=nums[0] return (year,month,day),1 #confident it's YMD if nums[2]>31: #If third number is >31, it must be a year, so the first must be a day assert (nums[0] >= 1) and (nums[0] <= mlen[month-1]), "DMY, Day invalid in '"+s+"'" day=nums[0] if nums[2]<100: year=nums[2]+1900 else: year=nums[2] return (year,month,day),1 #confident it's DMY #First and last number are both valid days, so we hope the LARGER one is the day if ( (nums[2]>nums[0]) and (not monthname) ) or (dateorder=='YMD'): assert (nums[2] >= 1) and (nums[2] <= mlen[month-1]), "guess YMD, Day invalid in '"+s+"'" day=nums[2] year=nums[0]+2000 if (day>5) or (dateorder=='YMD'): return (year,month,day),0.5 #Relatively sure since year probably isn't >2005 else: print "Warning - guessing at YMD order for '"+s+"'" return (year,month,day),0 #Only guess it's YMD else: assert (nums[0] >= 1) and (nums[0] <= mlen[month-1]), "guess DMY, Day invalid in '"+s+"'" day=nums[0] year=nums[2]+2000 if (day>5) or (dateorder=='DMY'): return (year,month,day),0.5 #Relatively sure since year probably isn't >2005 else: print "Warning - guessing at DMY order for '"+s+"'" return (year,month,day),0 #Only guess it's DMY
|
77dc1cebf1577c1346bade46be0e5544c237788a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8228/77dc1cebf1577c1346bade46be0e5544c237788a/parseing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
712,
12,
87,
1546,
6,
4672,
3536,
7744,
358,
1109,
326,
864,
533,
487,
279,
1509,
18,
1021,
740,
353,
5917,
16,
1496,
518,
1807,
12034,
716,
326,
12933,
3986,
3036,
304,
312,
19,
72,
19,
93,
5177,
1404,
279,
25547,
18,
2597,
7531,
358,
23926,
3086,
302,
19,
81,
19,
93,
471,
677,
19,
81,
19,
72,
1450,
326,
924,
16,
471,
7372,
1281,
22282,
639,
18,
225,
309,
1509,
1019,
261,
6347,
13,
353,
296,
16125,
61,
11,
578,
296,
61,
6188,
2187,
518,
9515,
326,
1142,
17,
455,
499,
7274,
310,
1399,
309,
326,
1353,
353,
20399,
16,
1496,
3541,
711,
1158,
5426,
18,
2457,
3454,
16,
315,
6976,
23,
17,
2499,
17,
2138,
6,
353,
4859,
2707,
8783,
309,
1509,
1019,
353,
296,
16125,
61,
10332,
225,
1135,
677,
16,
81,
16,
72,
16,
27911,
1625,
15588,
353,
404,
309,
326,
1509,
1353,
353,
2217,
25818,
3434,
16,
471,
374,
309,
518,
1807,
20399,
18,
22435,
392,
12068,
1520,
309,
326,
810,
353,
2217,
25818,
486,
279,
1509,
14543,
18,
3536,
21060,
33,
266,
18,
4720,
454,
12,
266,
696,
16,
87,
13,
21060,
33,
1458,
12,
5659,
16,
21180,
13,
377,
468,
2723,
628,
2064,
358,
19172,
309,
562,
12,
21180,
13,
631,
22,
30,
3138,
33,
20,
468,
49,
528,
506,
12933,
4480,
556,
407,
4732,
712,
598,
3138,
508,
272,
33,
1080,
18,
5797,
12,
87,
13,
364,
277,
316,
1048,
12,
2138,
4672,
309,
533,
18,
4720,
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,
712,
12,
87,
1546,
6,
4672,
3536,
7744,
358,
1109,
326,
864,
533,
487,
279,
1509,
18,
1021,
740,
353,
5917,
16,
1496,
518,
1807,
12034,
716,
326,
12933,
3986,
3036,
304,
312,
19,
72,
19,
93,
5177,
1404,
279,
25547,
18,
2597,
7531,
358,
23926,
3086,
302,
19,
81,
19,
93,
471,
677,
19,
81,
19,
72,
1450,
326,
924,
16,
471,
7372,
1281,
22282,
639,
18,
225,
309,
1509,
1019,
261,
6347,
13,
353,
296,
16125,
61,
11,
578,
296,
61,
6188,
2187,
518,
9515,
326,
1142,
17,
455,
499,
7274,
310,
1399,
309,
326,
1353,
353,
20399,
16,
1496,
3541,
711,
1158,
5426,
18,
2457,
3454,
16,
315,
6976,
23,
17,
2499,
17,
2138,
2
] |
if dosort:
|
if sort:
|
def __init__(self, coeffs, breaks, dosort=False): self.coeffs = np.asarray(coeffs) if dosort: self.breaks = np.sort(breaks) else: self.breaks = np.asarray(breaks) self.N = self.coeffs.shape[0]
|
8bc5f1be89a559ce7e2cf0390ae819158ba045a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/8bc5f1be89a559ce7e2cf0390ae819158ba045a1/interpolate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16530,
16,
16217,
16,
16153,
499,
33,
8381,
4672,
365,
18,
30463,
273,
1130,
18,
345,
1126,
12,
30463,
13,
309,
1524,
30,
365,
18,
29292,
273,
1130,
18,
3804,
12,
29292,
13,
469,
30,
365,
18,
29292,
273,
1130,
18,
345,
1126,
12,
29292,
13,
365,
18,
50,
273,
365,
18,
30463,
18,
4867,
63,
20,
65,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16530,
16,
16217,
16,
16153,
499,
33,
8381,
4672,
365,
18,
30463,
273,
1130,
18,
345,
1126,
12,
30463,
13,
309,
1524,
30,
365,
18,
29292,
273,
1130,
18,
3804,
12,
29292,
13,
469,
30,
365,
18,
29292,
273,
1130,
18,
345,
1126,
12,
29292,
13,
365,
18,
50,
273,
365,
18,
30463,
18,
4867,
63,
20,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
layout_package.path_utils.LayoutDataDir())
|
path_utils.LayoutDataDir())
|
def GetStartHttpdCommand(self, output_dir, apache2=False): """Prepares the config file and output directory to start an httpd server. Returns a list of strings containing the server's command line+args.
|
d074bcc717295e16e2fc48edd7ec5a4641f7cc39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/d074bcc717295e16e2fc48edd7ec5a4641f7cc39/platform_utils_win.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1685,
2940,
72,
2189,
12,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1685,
2940,
72,
2189,
12,
2890,
16,
876,
67,
1214,
16,
12291,
22,
33,
8381,
4672,
3536,
18486,
326,
642,
585,
471,
876,
1867,
358,
787,
392,
1062,
72,
1438,
18,
2860,
279,
666,
434,
2064,
4191,
326,
1438,
1807,
1296,
980,
15,
1968,
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
] |
offset=(-localzone/(60*60))
|
offset=(-localzone/(60*60.0))
|
def _findLocalTimeZoneName(isDST): if not daylight: # Daylight savings does not occur in this time zone. isDST = 0 try: # Get the name of the current time zone depending # on DST. _localzone = _cache._zmap[tzname[isDST].lower()] except: try: # Generate a GMT-offset zone name. if isDST: localzone = altzone else: localzone = timezone offset=(-localzone/(60*60)) majorOffset=int(offset) if majorOffset != 0 : minorOffset=abs(int((offset % majorOffset) * 60.0)) else: minorOffset = 0 m=majorOffset >= 0 and '+' or '' lz='%s%0.02d%0.02d' % (m, majorOffset, minorOffset) _localzone = _cache._zmap[('GMT%s' % lz).lower()] except: _localzone = '' return _localzone
|
b39e614bc46d4c5d2133dcbd9c72faf00ecf638f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b39e614bc46d4c5d2133dcbd9c72faf00ecf638f/DateTime.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
2042,
16760,
461,
12,
291,
40,
882,
4672,
309,
486,
2548,
5099,
30,
468,
13735,
5099,
4087,
899,
1552,
486,
3334,
316,
333,
813,
4157,
18,
353,
40,
882,
273,
374,
775,
30,
468,
968,
326,
508,
434,
326,
783,
813,
4157,
8353,
468,
603,
463,
882,
18,
389,
3729,
3486,
273,
389,
2493,
6315,
94,
1458,
63,
12994,
529,
63,
291,
40,
882,
8009,
8167,
1435,
65,
1335,
30,
775,
30,
468,
6654,
279,
21706,
17,
3348,
4157,
508,
18,
309,
353,
40,
882,
30,
1191,
3486,
273,
3770,
3486,
469,
30,
1191,
3486,
273,
6371,
1384,
33,
19236,
3729,
3486,
19,
12,
4848,
14,
4848,
18,
20,
3719,
7888,
2335,
33,
474,
12,
3348,
13,
309,
7888,
2335,
480,
374,
294,
8439,
2335,
33,
5113,
12,
474,
12443,
3348,
738,
7888,
2335,
13,
380,
4752,
18,
20,
3719,
469,
30,
8439,
2335,
273,
374,
312,
33,
14019,
2335,
1545,
374,
471,
10058,
578,
875,
328,
94,
28713,
87,
9,
20,
18,
3103,
72,
9,
20,
18,
3103,
72,
11,
738,
261,
81,
16,
7888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,
30,
1652,
389,
4720,
2042,
16760,
461,
12,
291,
40,
882,
4672,
309,
486,
2548,
5099,
30,
468,
13735,
5099,
4087,
899,
1552,
486,
3334,
316,
333,
813,
4157,
18,
353,
40,
882,
273,
374,
775,
30,
468,
968,
326,
508,
434,
326,
783,
813,
4157,
8353,
468,
603,
463,
882,
18,
389,
3729,
3486,
273,
389,
2493,
6315,
94,
1458,
63,
12994,
529,
63,
291,
40,
882,
8009,
8167,
1435,
65,
1335,
30,
775,
30,
468,
6654,
279,
21706,
17,
3348,
4157,
508,
18,
309,
353,
40,
882,
30,
1191,
3486,
273,
3770,
3486,
469,
30,
1191,
3486,
273,
6371,
1384,
33,
19236,
3729,
3486,
19,
12,
4848,
14,
4848,
18,
20,
3719,
7888,
2335,
33,
474,
12,
3348,
2
] |
GroupsController.configuration.CheckBaseDirs(minimal, batch, auto_answer)
|
GroupsController.configuration.CheckBaseDirs( minimal, batch, auto_answer)
|
def CheckGroups(self, groups_to_check = [], minimal=True, batch=False, auto_answer=None, force=False): """Check the groups, the cache. If not system, check the shared dir, the resps/guests, the members symlinks."""
|
2c25685af98e96114695a04efeb86385220aeb9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2c25685af98e96114695a04efeb86385220aeb9c/groups.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3621,
12,
2890,
16,
3252,
67,
869,
67,
1893,
273,
5378,
16,
16745,
33,
5510,
16,
2581,
33,
8381,
16,
3656,
67,
13490,
33,
7036,
16,
2944,
33,
8381,
4672,
3536,
1564,
326,
3252,
16,
326,
1247,
18,
971,
486,
2619,
16,
866,
326,
5116,
1577,
16,
326,
400,
1121,
19,
18908,
87,
16,
326,
4833,
23146,
12123,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3621,
12,
2890,
16,
3252,
67,
869,
67,
1893,
273,
5378,
16,
16745,
33,
5510,
16,
2581,
33,
8381,
16,
3656,
67,
13490,
33,
7036,
16,
2944,
33,
8381,
4672,
3536,
1564,
326,
3252,
16,
326,
1247,
18,
971,
486,
2619,
16,
866,
326,
5116,
1577,
16,
326,
400,
1121,
19,
18908,
87,
16,
326,
4833,
23146,
12123,
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
] |
(install_prefix, install_prefix, self.bundle_res_dir, files))
|
(self.prefix, self.prefix, self.bundle_res_dir, files))
|
def make_app_bundle (self): plist_path = os.path.join (self.bundle_skeleton_dir, 'Contents', 'Info.plist') app_name = 'Unknown.app' plist = None if os.path.exists (plist_path): plist = Plist.fromFile (plist_path) app_name = plist['CFBundleExecutable'] else: print 'Warning: no Contents/Info.plist in .app skeleton'
|
fa52d2c9f9fecbc9a31107b5fa854ede37eb02bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14879/fa52d2c9f9fecbc9a31107b5fa854ede37eb02bc/darwinprofile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2910,
67,
9991,
261,
2890,
4672,
21074,
67,
803,
273,
1140,
18,
803,
18,
5701,
261,
2890,
18,
9991,
67,
7771,
12143,
67,
1214,
16,
296,
6323,
2187,
296,
966,
18,
17842,
6134,
595,
67,
529,
273,
296,
4874,
18,
2910,
11,
21074,
273,
599,
309,
1140,
18,
803,
18,
1808,
261,
17842,
67,
803,
4672,
21074,
273,
453,
1098,
18,
2080,
812,
261,
17842,
67,
803,
13,
595,
67,
529,
273,
21074,
3292,
8955,
3405,
17709,
3546,
469,
30,
1172,
296,
6210,
30,
1158,
21290,
19,
966,
18,
17842,
316,
263,
2910,
17761,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2910,
67,
9991,
261,
2890,
4672,
21074,
67,
803,
273,
1140,
18,
803,
18,
5701,
261,
2890,
18,
9991,
67,
7771,
12143,
67,
1214,
16,
296,
6323,
2187,
296,
966,
18,
17842,
6134,
595,
67,
529,
273,
296,
4874,
18,
2910,
11,
21074,
273,
599,
309,
1140,
18,
803,
18,
1808,
261,
17842,
67,
803,
4672,
21074,
273,
453,
1098,
18,
2080,
812,
261,
17842,
67,
803,
13,
595,
67,
529,
273,
21074,
3292,
8955,
3405,
17709,
3546,
469,
30,
1172,
296,
6210,
30,
1158,
21290,
19,
966,
18,
17842,
316,
263,
2910,
17761,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi")
|
sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi")
|
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Willenbring, Stable branching rules for classical symmetric pairs, Trans. Amer. Math. Soc. 357 (2005), no. 4, 1601-1626, McKay and Patera, Tables of Dimensions, Indices and Branching Rules for Representations of Simple Lie Algebras (Marcel Dekker, 1981), and Fauser, Jarvis, King and Wybourne, New branching rules induced by plethysm. J. Phys. A 39 (2006), no. 11, 2611--2655. INPUT: - ``chi`` - a character of G - ``R`` - the Weyl Character Ring of G - ``S`` - the Weyl Character Ring of H - ``rule`` - a set of r dominant weights in H where r is the rank of G. You may use a predefined rule by specifying rule = one of"levi", "automorphic", "symmetric", "extended", "triality" or "miscellaneous". The use of these rules will be explained next. After the examples we will explain how to write your own branching rules for cases that we have omitted. To explain the predefined rules we survey the most important branching rules. These may be classified into several cases, and once this is understood, the detailed classification can be read off from the Dynkin diagrams. Dynkin classified the maximal subgroups of Lie groups in Mat. Sbornik N.S. 30(72):349-462 (1952). We will list give predefined rules that cover most cases where the branching rule is to a maximal subgroup. For convenience, we also give some branching rules to subgroups that are not maximal. For example, a Levi subgroup may or may not be maximal. LEVI TYPE. These can be read off from the Dynkin diagram. If removing a node from the Dynkin diagram produces another Dynkin diagram, there is a branching rule. Currently we require that the smaller diagram be connected. For these rules use the option rule="levi":: ['A',r] => ['A',r-1] ['B',r] => ['A',r-1] ['B',r] => ['B',r-1] ['C',r] => ['A',r-1] ['C',r] => ['C',r-1] ['D',r] => ['A',r-1] ['D',r] => ['D',r-1] ['E',r] => ['A',r-1] r = 7,8 ['E',r] => ['D',r-1] r = 6,7,8 ['E',r] => ['E',r-1] F4 => B3 F4 => C3 G2 => A1 (short root) Not all Levi subgroups are maximal subgroups. If the Levi is not maximal there may or may not be a preprogrammed rule="levi" for it. If there is not, the branching rule may still be obtained by going through an intermediate subgroup that is maximal using rule="extended". Thus the other Levi branching rule from G2 => A1 corresponding to the long root is available by first branching G2 => A_2 then A2 => A1. Similarly the branching rules to the Levi subgroup:: ['E',r] => ['A',r-1] r = 6,7,8 may be obtained by first branching E6=>A5xA1, E7=>A7 or E8=>A8. AUTOMORPHIC TYPE. If the Dynkin diagram has a symmetry, then there is an automorphism that is a special case of a branching rule. There is also an exotic "triality" automorphism of D4 having order 3. Use rule="automorphic" or (for D4) rule="triality":: ['A',r] => ['A',r] ['D',r] => ['D',r] E6 => E6 SYMMETRIC TYPE. Related to the automorphic type, when either the Dynkin diagram or the extended diagram has a symmetry there is a branching rule to the subalgebra (or subgroup) of invariants under the automorphism. Use rule="symmetric". The last branching rule, D4=>G2 is not to a maximal subgroup since D4=>B3=>G2, but it is included for convenience. :: ['A',2r+1] => ['B',r] ['A',2r] => ['C',r] ['A',2r] => ['D',r] ['D',r] => ['B',r-1] E6 => F4 D4 => G2 EXTENDED TYPE. If removing a node from the extended Dynkin diagram results in a Dynkin diagram, then there is a branching rule. Use rule="extended" for these. We will also use this classification for some rules that are not of this type, mainly involving type B, such as D6 => B3xB3. Here is the extended Dynkin diagram for D6:: 0 6 O O | | | | O---O---O---O---O 1 2 3 4 6 Removing the node 3 results in an embedding D3xD3 -> D6. This corresponds to the embedding SO(6)xSO(6) -> SO(12), and is of extended type. On the other hand the embedding SO(5)xSO(7)-->SO(12) (e.g. B2xB3 -> D6) cannot be explained this way but for uniformity is implemented under rule="extended". Using rule="extended" you can get any branching rule SO(n) => SO(a) x SO(b) x SO(c) x ... where n = a+b+c+ ... Sp(2n) => Sp(2a) x Sp(2b) x Sp(2c) x ... where n = a+b+c+ ... where O(a) = ['D',r] (a=2r) or ['B',r] (a=2r+1) and Sp(2r)=['C',r]. The following rules are implemented as special cases of rule="extended". :: E6 => A5xA1, A2xA2xA2 E7 => A7, D6xA1, A3xA3xA1 E8 => A8, D8, E7xA1, A4xA4, D5xA3, E6xA2 F4 => B4, C3xA1, A2xA2, A3xA1 G2 => A1xA1 Note that E8 has only a limited number of representations of reasonably low degree. TENSOR: There are branching rules: :: ['A', rs-1] => ['A',r-1] x ['A',s-1] ['B',2rs+r+s] => ['B',r] x ['B',s] ['D',2rs+s] => ['B',r] x ['D',s] ['D',2rs] => ['D',r] x ['D',s] ['D',2rs] => ['C',r] x ['C',s] ['C',2rs+s] => ['B',r] x ['C',s] ['C',2rs] => ['C',r] x ['D',s]. corresponding to the tensor product homomorphism. For type A, the homomorphism is GL(r) x GL(s) -> GL(rs). For the classical types, the relevant fact is that if V,W are orthogonal or symplectic spaces, that is, spaces endowed with symmetric or skew-symmetric bilinear forms, then V tensor W is also an orthogonal space (if V and W are both orthogonal or both symplectic) or symplectic (if one of V and W is orthogonal and the other symplectic). The corresponding branching rules are obtained using rule="tensor". SYMMETRIC POWER: The k-th symmetric and exterior power homomorphisms map GL(n) --> GL(binomial(n+k-1,k)) and GL(binomial(n,k)). The corresponding branching rules are not implemented but a special case is. The k-th symmetric power homomorphism SL(2) --> GL(k+1) has its image inside of SO(2r+1) if k=2r and inside of Sp(2r) if k=2r-1. Hence there are branching rules:: ['B',r] => A1 ['C',r] => A1 and these may be obtained using the rule "symmetric_power". MISCELLANEOUS: Use rule="miscellaneous" for the following rules:: B3 => G2 F4 => G2xA1 (not implemented yet) BRANCHING RULES FROM PLETHYSMS Nearly all branching rules G => H where G is of type A,B,C or D are covered by the preceding rules. The function branching_rules_from_plethysm covers the remaining cases. ISOMORPHIC TYPE: Although not usually referred to as a branching rule, the effects of the accidental isomorphisms may be handled using rule="isomorphic":: B2 => C2 C2 => B2 A3 => D3 D3 => A3 D2 => A1xA1 B1 => A1 C1 => A1 EXAMPLES: (Levi type) :: sage: A1 = WeylCharacterRing("A1") sage: A2 = WeylCharacterRing("A2") sage: A3 = WeylCharacterRing("A3") sage: A4 = WeylCharacterRing("A4") sage: A5 = WeylCharacterRing("A5") sage: B2 = WeylCharacterRing("B2") sage: B3 = WeylCharacterRing("B3") sage: B4 = WeylCharacterRing("B4") sage: C2 = WeylCharacterRing("C2") sage: C3 = WeylCharacterRing("C3") sage: D3 = WeylCharacterRing("D3") sage: D4 = WeylCharacterRing("D4") sage: D5 = WeylCharacterRing("D5") sage: G2 = WeylCharacterRing("G2") sage: F4 = WeylCharacterRing("F4",style="coroots") # long time sage: E6=WeylCharacterRing("E6",style="coroots") sage: D5=WeylCharacterRing("D5",style="coroots") sage: [B3(w).branch(A2,rule="levi") for w in B3.fundamental_weights()] [A2(0,0,-1) + A2(0,0,0) + A2(1,0,0), A2(0,-1,-1) + A2(0,0,-1) + A2(0,0,0) + A2(1,0,-1) + A2(1,0,0) + A2(1,1,0), A2(-1/2,-1/2,-1/2) + A2(1/2,-1/2,-1/2) + A2(1/2,1/2,-1/2) + A2(1/2,1/2,1/2)] The last example must be understood as follows. The representation of B3 being branched is spin, which is not a representation of SO(7) but of its double cover spin(7). The group A2 is really GL(3) and the double cover of SO(7) induces a cover of GL(3) that is trivial over SL(3) but not over the center of GL(3). The weight lattice for this GL(3) consists of triples (a,b,c) of half integers such that a-b and b-c are in `\ZZ`, and this is reflected in the last decomposition. :: sage: [C3(w).branch(A2,rule="levi") for w in C3.fundamental_weights()] [A2(0,0,-1) + A2(1,0,0), A2(0,-1,-1) + A2(1,0,-1) + A2(1,1,0), A2(-1,-1,-1) + A2(1,-1,-1) + A2(1,1,-1) + A2(1,1,1)] sage: [D4(w).branch(A3,rule="levi") for w in D4.fundamental_weights()] [A3(0,0,0,-1) + A3(1,0,0,0), A3(0,0,-1,-1) + A3(0,0,0,0) + A3(1,0,0,-1) + A3(1,1,0,0), A3(1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,-1/2), A3(-1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,1/2)] sage: [B3(w).branch(B2,rule="levi") for w in B3.fundamental_weights()] [2*B2(0,0) + B2(1,0), B2(0,0) + 2*B2(1,0) + B2(1,1), 2*B2(1/2,1/2)] sage: C3 = WeylCharacterRing(['C',3]) sage: [C3(w).branch(C2,rule="levi") for w in C3.fundamental_weights()] [2*C2(0,0) + C2(1,0), C2(0,0) + 2*C2(1,0) + C2(1,1), C2(1,0) + 2*C2(1,1)] sage: [D5(w).branch(D4,rule="levi") for w in D5.fundamental_weights()] [2*D4(0,0,0,0) + D4(1,0,0,0), D4(0,0,0,0) + 2*D4(1,0,0,0) + D4(1,1,0,0), D4(1,0,0,0) + 2*D4(1,1,0,0) + D4(1,1,1,0), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2)] sage: G2(1,0,-1).branch(A1,rule="levi") A1(0,-1) + A1(1,-1) + A1(1,0) sage: E6=WeylCharacterRing("E6",style="coroots") # long time sage: D5=WeylCharacterRing("D5",style="coroots") # long time sage: fw = E6.fundamental_weights() # long time sage: [E6(fw[i]).branch(D5,rule="levi") for i in [1,2,6]] # long time [D5(0,0,0,0,0) + D5(0,0,0,0,1) + D5(1,0,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(0,0,0,0,1) + D5(0,1,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(1,0,0,0,0)] sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: D6=WeylCharacterRing("D6",style="coroots") # long time sage: fw = E7.fundamental_weights() # long time sage: [E7(fw[i]).branch(D6,rule="levi") for i in [1,2,7]] # long time [3*D6(0,0,0,0,0,0) + 2*D6(0,0,0,0,1,0) + D6(0,1,0,0,0,0), 3*D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0) + 2*D6(0,0,1,0,0,0) + D6(1,0,0,0,1,0), D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0)] sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8=WeylCharacterRing("E8",style="coroots",cache=True) # long time sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8(1,0,0,0,0,0,0,0).branch(D7,rule="levi") # long time 3*D7(0,0,0,0,0,0,0) + 2*D7(0,0,0,0,0,1,0) + 2*D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) + 2*D7(0,0,1,0,0,0,0) + D7(0,0,0,1,0,0,0) + D7(1,0,0,0,0,1,0) + D7(1,0,0,0,0,0,1) + D7(2,0,0,0,0,0,0) sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi") # long time D7(0,0,0,0,0,0,0) + D7(0,0,0,0,0,1,0) + D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] # long time [B3(0,0,0) + 2*B3(1/2,1/2,1/2) + 2*B3(1,0,0) + B3(1,1,0), B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 5*B3(1,0,0) + 7*B3(1,1,0) + 3*B3(1,1,1) + 6*B3(3/2,1/2,1/2) + 2*B3(3/2,3/2,1/2) + B3(2,0,0) + 2*B3(2,1,0) + B3(2,1,1), 3*B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 4*B3(1,0,0) + 3*B3(1,1,0) + B3(1,1,1) + 2*B3(3/2,1/2,1/2), 3*B3(0,0,0) + 2*B3(1/2,1/2,1/2) + B3(1,0,0)] sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()] # long time [3*C3(0,0,0) + 2*C3(1,1,1) + C3(2,0,0), 3*C3(0,0,0) + 6*C3(1,1,1) + 4*C3(2,0,0) + 2*C3(2,1,0) + 3*C3(2,2,0) + C3(2,2,2) + C3(3,1,0) + 2*C3(3,1,1), 2*C3(1,0,0) + 3*C3(1,1,0) + C3(2,0,0) + 2*C3(2,1,0) + C3(2,1,1), 2*C3(1,0,0) + C3(1,1,0)] sage: A1xA1 = WeylCharacterRing("A1xA1") sage: [A3(hwv).branch(A1xA1,rule="levi") for hwv in A3.fundamental_weights()] [A1xA1(0,0,1,0) + A1xA1(1,0,0,0), A1xA1(0,0,1,1) + A1xA1(1,0,1,0) + A1xA1(1,1,0,0), A1xA1(1,0,1,1) + A1xA1(1,1,1,0)] sage: A1xB1=WeylCharacterRing("A1xB1",style="coroots") sage: [B3(x).branch(A1xB1,rule="levi") for x in B3.fundamental_weights()] [A1xB1(0,2) + 2*A1xB1(1,0), 3*A1xB1(0,0) + A1xB1(0,2) + 2*A1xB1(1,2) + A1xB1(2,0), 2*A1xB1(0,1) + A1xB1(1,1)] EXAMPLES: (Automorphic type, including D4 triality) :: sage: [A3(chi).branch(A3,rule="automorphic") for chi in A3.fundamental_weights()] [A3(0,0,0,-1), A3(0,0,-1,-1), A3(0,-1,-1,-1)] sage: [D4(chi).branch(D4,rule="automorphic") for chi in D4.fundamental_weights()] [D4(1,0,0,0), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2)] sage: [D4(chi).branch(D4,rule="triality") for chi in D4.fundamental_weights()] [D4(1/2,1/2,1/2,-1/2), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1,0,0,0)] EXAMPLES: (Symmetric type) :: sage: [w.branch(B2,rule="symmetric") for w in [A4(1,0,0,0,0),A4(1,1,0,0,0),A4(1,1,1,0,0),A4(2,0,0,0,0)]] [B2(1,0), B2(1,1), B2(1,1), B2(0,0) + B2(2,0)] sage: [A5(w).branch(C3,rule="symmetric") for w in A5.fundamental_weights()] [C3(1,0,0), C3(0,0,0) + C3(1,1,0), C3(1,0,0) + C3(1,1,1), C3(0,0,0) + C3(1,1,0), C3(1,0,0)] sage: [A5(w).branch(D3,rule="symmetric") for w in A5.fundamental_weights()] [D3(1,0,0), D3(1,1,0), D3(1,1,-1) + D3(1,1,1), D3(1,1,0), D3(1,0,0)] sage: [D4(x).branch(B3,rule="symmetric") for x in D4.fundamental_weights()] [B3(0,0,0) + B3(1,0,0), B3(1,0,0) + B3(1,1,0), B3(1/2,1/2,1/2), B3(1/2,1/2,1/2)] sage: [D4(x).branch(G2,rule="symmetric") for x in D4.fundamental_weights()] [G2(0,0,0) + G2(1,0,-1), 2*G2(1,0,-1) + G2(2,-1,-1), G2(0,0,0) + G2(1,0,-1), G2(0,0,0) + G2(1,0,-1)] sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] # long time [F4(0,0,0,0) + F4(0,0,0,1), F4(0,0,0,1) + F4(1,0,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(1,0,0,0) + 2*F4(0,0,1,0) + F4(1,0,0,1) + F4(0,1,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(0,0,0,0) + F4(0,0,0,1)] EXAMPLES: (Extended type) :: sage: [B3(x).branch(D3,rule="extended") for x in B3.fundamental_weights()] [D3(0,0,0) + D3(1,0,0), D3(1,0,0) + D3(1,1,0), D3(1/2,1/2,-1/2) + D3(1/2,1/2,1/2)] sage: [G2(w).branch(A2, rule="extended") for w in G2.fundamental_weights()] [A2(0,0,0) + A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3), A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3) + A2(1,0,-1)] sage: [F4(fw).branch(B4,rule="extended") for fw in F4.fundamental_weights()] # long time [B4(1/2,1/2,1/2,1/2) + B4(1,1,0,0), B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2) + B4(3/2,3/2,1/2,1/2) + B4(2,1,1,0), B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0) + B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2), B4(0,0,0,0) + B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0)] sage: E6 = WeylCharacterRing("E6", style="coroots") # long time sage: A2xA2xA2=WeylCharacterRing("A2xA2xA2",style="coroots") sage: A5xA1=WeylCharacterRing("A5xA1",style="coroots") sage: G2 = WeylCharacterRing("G2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: F4 = WeylCharacterRing("F4",style="coroots") sage: A3xA1 = WeylCharacterRing("A3xA1", style="coroots") sage: A2xA2 = WeylCharacterRing("A2xA2", style="coroots") sage: A1xC3 = WeylCharacterRing("A1xC3",style="coroots") sage: E6(1,0,0,0,0,0).branch(A5xA1,rule="extended") # long time A5xA1(0,0,0,1,0,0) + A5xA1(1,0,0,0,0,1) sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended") # long time A2xA2xA2(0,0,0,1,1,0) + A2xA2xA2(0,1,1,0,0,0) + A2xA2xA2(1,0,0,0,0,1) sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: A7=WeylCharacterRing("A7",style="coroots") # long time sage: E7(1,0,0,0,0,0,0).branch(A7,rule="extended") # long time A7(0,0,0,1,0,0,0) + A7(1,0,0,0,0,0,1) sage: E8=WeylCharacterRing("E8",cache=true,style="coroots") # long time sage: D8=WeylCharacterRing("D8",cache=true,style="coroots") # long time sage: E8(0,0,0,0,0,0,0,1).branch(D8,rule="extended") # long time D8(0,0,0,0,0,0,1,0) + D8(0,1,0,0,0,0,0,0) sage: F4(1,0,0,0).branch(A1xC3,rule="extended") # long time A1xC3(0,2,0,0) + A1xC3(1,0,0,1) + A1xC3(2,0,0,0) sage: G2(0,1).branch(A1xA1, rule="extended") A1xA1(0,2) + A1xA1(2,0) + A1xA1(3,1) sage: F4(0,0,0,1).branch(A2xA2, rule="extended") # long time A2xA2(0,0,1,1) + A2xA2(0,1,0,1) + A2xA2(1,0,1,0) sage: F4(0,0,0,1).branch(A3xA1,rule="extended") # long time A3xA1(0,0,0,0) + A3xA1(0,0,0,2) + A3xA1(0,0,1,1) + A3xA1(0,1,0,0) + A3xA1(1,0,0,1) sage: D4=WeylCharacterRing("D4",style="coroots") sage: D2xD2=WeylCharacterRing("D2xD2",style="coroots") # We get D4 => A1xA1xA1xA1 by remembering that A1xA1 = D2. sage: [D4(fw).branch(D2xD2, rule="extended") for fw in D4.fundamental_weights()] [D2xD2(0,0,1,1) + D2xD2(1,1,0,0), D2xD2(0,0,2,0) + D2xD2(0,0,0,2) + D2xD2(2,0,0,0) + D2xD2(1,1,1,1) + D2xD2(0,2,0,0), D2xD2(1,0,0,1) + D2xD2(0,1,1,0), D2xD2(1,0,1,0) + D2xD2(0,1,0,1)] EXAMPLES: (Tensor type) :: sage: A5=WeylCharacterRing("A5", style="coroots") sage: A2xA1=WeylCharacterRing("A2xA1", style="coroots") sage: [A5(hwv).branch(A2xA1, rule="tensor") for hwv in A5.fundamental_weights()] [A2xA1(1,0,1), A2xA1(0,1,2) + A2xA1(2,0,0), A2xA1(0,0,3) + A2xA1(1,1,1), A2xA1(1,0,2) + A2xA1(0,2,0), A2xA1(0,1,1)] sage: B4=WeylCharacterRing("B4",style="coroots") sage: B1xB1=WeylCharacterRing("B1xB1",style="coroots") sage: [B4(f).branch(B1xB1,rule="tensor") for f in B4.fundamental_weights()] [B1xB1(2,2), B1xB1(0,2) + B1xB1(2,0) + B1xB1(2,4) + B1xB1(4,2), B1xB1(0,2) + B1xB1(0,6) + B1xB1(2,0) + B1xB1(2,2) + B1xB1(2,4) + B1xB1(4,2) + B1xB1(4,4) + B1xB1(6,0), B1xB1(1,3) + B1xB1(3,1)] sage: D4=WeylCharacterRing("D4",style="coroots") sage: C2xC1=WeylCharacterRing("C2xC1",style="coroots") sage: [D4(f).branch(C2xC1,rule="tensor") for f in D4.fundamental_weights()] [C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,2) + C2xC1(2,0,0), C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,0)] sage: C3=WeylCharacterRing("C3",style="coroots") sage: B1xC1=WeylCharacterRing("B1xC1",style="coroots") sage: [C3(f).branch(B1xC1,rule="tensor") for f in C3.fundamental_weights()] [B1xC1(2,1), B1xC1(2,2) + B1xC1(4,0), B1xC1(0,3) + B1xC1(4,1)] EXAMPLES: (Symmetric Power) :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: B3=WeylCharacterRing("B3",style="coroots") sage: C3=WeylCharacterRing("C3",style="coroots") sage: [B3(fw).branch(A1,rule="symmetric_power") for fw in B3.fundamental_weights()] [A1(6), A1(2) + A1(6) + A1(10), A1(0) + A1(6)] sage: [C3(fw).branch(A1,rule="symmetric_power") for fw in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] EXAMPLES: (Miscellaneous type) :: sage: G2 = WeylCharacterRing("G2") sage: [fw1, fw2, fw3] = B3.fundamental_weights() sage: B3(fw1+fw3).branch(G2, rule="miscellaneous") G2(1,0,-1) + G2(2,-1,-1) + G2(2,0,-2) EXAMPLES: (Isomorphic type) :: sage: [B2(x).branch(C2, rule="isomorphic") for x in B2.fundamental_weights()] [C2(1,1), C2(1,0)] sage: [C2(x).branch(B2, rule="isomorphic") for x in C2.fundamental_weights()] [B2(1/2,1/2), B2(1,0)] sage: [A3(x).branch(D3,rule="isomorphic") for x in A3.fundamental_weights()] [D3(1/2,1/2,1/2), D3(1,0,0), D3(1/2,1/2,-1/2)] sage: [D3(x).branch(A3,rule="isomorphic") for x in D3.fundamental_weights()] [A3(1/2,1/2,-1/2,-1/2), A3(1/4,1/4,1/4,-3/4), A3(3/4,-1/4,-1/4,-1/4)] Here A3(x,y,z,w) can be understood as a representation of SL(4). The weights x,y,z,w and x+t,y+t,z+t,w+t represent the same representation of SL(4) - though not of GL(4) - since A3(x+t,y+t,z+t,w+t) is the same as A3(x,y,z,w) tensored with `det^t`. So as a representation of SL(4), A3(1/4,1/4,1/4,-3/4) is the same as A3(1,1,1,0). The exterior square representation SL(4) -> GL(6) admits an invariant symmetric bilinear form, so is a representation SL(4) -> SO(6) that lifts to an isomorphism SL(4) -> Spin(6). Conversely, there are two isomorphisms SO(6) -> SL(4), of which we've selected one. In cases like this you might prefer style="coroots". :: sage: A3 = WeylCharacterRing("A3",style="coroots") sage: D3 = WeylCharacterRing("D3",style="coroots") sage: [D3(fw) for fw in D3.fundamental_weights()] [D3(1,0,0), D3(0,1,0), D3(0,0,1)] sage: [D3(fw).branch(A3,rule="isomorphic") for fw in D3.fundamental_weights()] [A3(0,1,0), A3(0,0,1), A3(1,0,0)] sage: D2 = WeylCharacterRing("D2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: [D2(fw).branch(A1xA1,rule="isomorphic") for fw in D2.fundamental_weights()] [A1xA1(1,0), A1xA1(0,1)] EXAMPLES: (Branching rules from plethysms) This is a general rule that includes any branching rule from types A,B,C or D as a special case. Thus it could be used in place of the above rules and would give the same results. However it is most useful when branching from G to a maximal subgroup H such that rank(H) < rank(G)-1. We consider a homomorphism H --> G where G is one of SL(r+1), SO(2r+1), Sp(2r) or SO(2r). The function branching_rule_from_plethysm produces the corresponding branching rule. The main ingredient is the character chi of the representation of H that is the homomorphism to GL(r+1), GL(2r+1) or GL(2r). This rule is so powerful that it contains the other rules implemented above as special cases. First let us consider the symmetric fifth power representation of SL(2). :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: chi=A1([5]) sage: chi.degree() 6 sage: chi.frobenius_schur_indicator() -1 This confirms that the character has degree 6 and is symplectic, so it corresponds to a homomorphism SL(2) --> Sp(6), and there is a corresponding branching rule C3 => A1. :: sage: C3 = WeylCharacterRing("C3",style="coroots") sage: sym5rule = branching_rule_from_plethysm(chi,"C3") sage: [C3(hwv).branch(A1,rule=sym5rule) for hwv in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] This is identical to the results we would obtain using rule="symmetric_power". The next example gives a branching not available by other standard rules. :: sage: G2 = WeylCharacterRing("G2",style="coroots") sage: D7 = WeylCharacterRing("D7",style="coroots") sage: ad=G2(0,1); ad.degree(); ad.frobenius_schur_indicator() 14 1 sage: spin = D7(0,0,0,0,0,1,0); spin.degree() 64 sage: spin.branch(G2, rule=branching_rule_from_plethysm(ad, "D7")) G2(1,1) We have confirmed that the adjoint representation of G2 gives a homomorphism into SO(14), and that the pullback of the one of the two 64 dimensional spin representations to SO(14) is an irreducible representation of G2. BRANCHING FROM A REDUCIBLE ROOT SYSTEM If you are branching from a reducible root system, the rule is a list of rules, one for each component type in the root system. The rules in the list are given in pairs [type, rule], where type is the root system to be branched to, and rule is the branching rule. :: sage: D4 = WeylCharacterRing("D4",style="coroots") sage: D2xD2 = WeylCharacterRing("D2xD2",style="coroots") sage: A1xA1xA1xA1 = WeylCharacterRing("A1xA1xA1xA1",style="coroots") sage: rr = [["A1xA1","isomorphic"],["A1xA1","isomorphic"]] sage: [D4(fw) for fw in D4.fundamental_weights()] [D4(1,0,0,0), D4(0,1,0,0), D4(0,0,1,0), D4(0,0,0,1)] sage: [D4(fw).branch(D2xD2,rule="extended").branch(A1xA1xA1xA1,rule=rr) for fw in D4.fundamental_weights()] [A1xA1xA1xA1(0,0,1,1) + A1xA1xA1xA1(1,1,0,0), A1xA1xA1xA1(0,0,0,2) + A1xA1xA1xA1(0,0,2,0) + A1xA1xA1xA1(0,2,0,0) + A1xA1xA1xA1(1,1,1,1) + A1xA1xA1xA1(2,0,0,0), A1xA1xA1xA1(0,1,1,0) + A1xA1xA1xA1(1,0,0,1), A1xA1xA1xA1(0,1,0,1) + A1xA1xA1xA1(1,0,1,0)] WRITING YOUR OWN RULES Suppose you want to branch from a group G to a subgroup H. Arrange the embedding so that a Cartan subalgebra U of H is contained in a Cartan subalgebra T of G. There is thus a mapping from the weight spaces Lie(T)* --> Lie(U)*. Two embeddings will produce identical branching rules if they differ by an element of the Weyl group of H. The RULE is this map Lie(T)* = G.space() to Lie(U)* = H.space(), which you may implement as a function. As an example, let us consider how to implement the branching rule A3 => C2. Here H = C2 = Sp(4) embedded as a subgroup in A3 = GL(4). The Cartan subalgebra U consists of diagonal matrices with eigenvalues u1, u2, -u2, -u1. The C2.space() is the two dimensional vector spaces consisting of the linear functionals u1 and u2 on U. On the other hand Lie(T) is RR^4. A convenient way to see the restriction is to think of it as the adjoint of the map [u1,u2] -> [u1,u2,-u2,-u1], that is, [x0,x1,x2,x3] -> [x0-x3,x1-x2]. Hence we may encode the rule: :: def rule(x): return [x[0]-x[3],x[1]-x[2]] or simply: :: rule = lambda x : [x[0]-x[3],x[1]-x[2]] EXAMPLES:: sage: A3 = WeylCharacterRing(['A',3]) sage: C2 = WeylCharacterRing(['C',2]) sage: rule = lambda x : [x[0]-x[3],x[1]-x[2]] sage: branch_weyl_character(A3([1,1,0,0]),A3,C2,rule) C2(0,0) + C2(1,1) sage: A3(1,1,0,0).branch(C2, rule) == C2(0,0) + C2(1,1) True """ if type(rule) == str: rule = get_branching_rule(R._cartan_type, S._cartan_type, rule) elif R._cartan_type.is_compound(): Rtypes = R._cartan_type.component_types() Stypes = [CartanType(l[0]) for l in rule] rules = [l[1] for l in rule] ntypes = len(Rtypes) rule_list = [get_branching_rule(Rtypes[i], Stypes[i], rules[i]) for i in range(ntypes)] shifts = R._cartan_type._shifts def rule(x): yl = [] for i in range(ntypes): yl.append(rule_list[i](x[shifts[i]:shifts[i+1]])) return flatten(yl) mdict = {} for k in chi._mdict: if S._style == "coroots": if S._cartan_type.is_atomic() and S._cartan_type[0] == 'E': if S._cartan_type[1] == 6: h = S._space(rule(list(k.to_vector()))) h = S.coerce_to_e6(h) elif S._cartan_type[1] == 7: h = S.coerce_to_e7(S._space(rule(list(k.to_vector())))) else: h = S.coerce_to_sl(S._space(rule(list(k.to_vector())))) else: h = S._space(rule(list(k.to_vector()))) if h in mdict: mdict[h] += chi._mdict[k] else: mdict[h] = chi._mdict[k] hdict = S.char_from_weights(mdict) return WeylCharacter(S, hdict, mdict)
|
7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
524,
29087,
611,
358,
279,
10648,
1245,
18,
2164,
364,
3454,
16,
534,
18,
385,
18,
1475,
310,
16,
15449,
310,
2931,
364,
667,
1706,
511,
1385,
3252,
1450,
8171,
471,
12490,
280,
2590,
18,
804,
18,
4360,
1900,
18,
432,
1725,
261,
3657,
5877,
3631,
27542,
17,
6334,
29,
16,
9017,
73,
16,
399,
304,
471,
9980,
275,
2848,
310,
16,
934,
429,
3803,
310,
2931,
364,
667,
1706,
15108,
5574,
16,
2604,
18,
3986,
264,
18,
2361,
18,
348,
504,
18,
890,
10321,
261,
6976,
25,
3631,
1158,
18,
1059,
16,
2872,
1611,
17,
2313,
5558,
16,
25891,
47,
528,
471,
453,
2045,
69,
16,
30536,
434,
463,
23124,
16,
23046,
471,
15449,
310,
15718,
364,
868,
6706,
1012,
434,
4477,
511,
1385,
2262,
908,
2848,
345,
261,
49,
297,
2183,
1505,
79,
25293,
16,
5342,
11861,
3631,
471,
478,
69,
1355,
16,
15644,
3516,
16,
1475,
310,
471,
29271,
1075,
321,
73,
16,
1166,
3803,
310,
2931,
1547,
26372,
635,
886,
546,
1900,
81,
18,
804,
18,
4360,
1900,
18,
432,
16977,
261,
6976,
26,
3631,
1158,
18,
4648,
16,
10659,
2499,
413,
5558,
2539,
18,
225,
12943,
30,
225,
300,
12176,
24010,
10335,
300,
279,
3351,
434,
611,
225,
300,
12176,
54,
10335,
300,
326,
678,
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,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
524,
29087,
611,
358,
279,
10648,
1245,
18,
2164,
364,
3454,
16,
534,
18,
385,
18,
1475,
310,
16,
15449,
310,
2931,
364,
667,
1706,
511,
1385,
3252,
1450,
8171,
471,
12490,
280,
2590,
18,
804,
18,
4360,
1900,
18,
432,
1725,
261,
3657,
5877,
3631,
27542,
17,
6334,
29,
16,
9017,
73,
16,
399,
304,
471,
9980,
275,
2848,
310,
16,
934,
429,
3803,
310,
2931,
364,
667,
1706,
15108,
5574,
16,
2604,
18,
3986,
264,
18,
2361,
18,
348,
504,
2
] |
msg = '%s.%s : ' % (po.name, po.arch)
|
if self.conf.showdupesfromrepos: msg = '%s : ' % po else: msg = '%s.%s : ' % (po.name, po.arch)
|
def matchcallback(self, po, values, matchfor=None): msg = '%s.%s : ' % (po.name, po.arch) msg = self._outKeyValFill(msg, po.summary) if matchfor: msg = self.term.sub_bold(msg, matchfor) print msg self.verbose_logger.debug(_('Matched from:')) for item in values: if matchfor: item = self.term.sub_bold(item, matchfor) self.verbose_logger.debug('%s', item) self.verbose_logger.debug('\n\n')
|
6fc5187dfc094f14df8696ce418235f545a769b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/6fc5187dfc094f14df8696ce418235f545a769b0/output.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
3394,
12,
2890,
16,
8275,
16,
924,
16,
845,
1884,
33,
7036,
4672,
309,
365,
18,
3923,
18,
4500,
26427,
281,
2080,
15564,
30,
1234,
273,
1995,
87,
294,
296,
738,
8275,
469,
30,
1234,
273,
1995,
87,
7866,
87,
294,
296,
738,
261,
1631,
18,
529,
16,
8275,
18,
991,
13,
1234,
273,
365,
6315,
659,
653,
3053,
8026,
12,
3576,
16,
8275,
18,
7687,
13,
309,
845,
1884,
30,
1234,
273,
365,
18,
6408,
18,
1717,
67,
16390,
12,
3576,
16,
845,
1884,
13,
225,
1172,
1234,
365,
18,
11369,
67,
4901,
18,
4148,
24899,
2668,
15400,
628,
2497,
3719,
364,
761,
316,
924,
30,
309,
845,
1884,
30,
761,
273,
365,
18,
6408,
18,
1717,
67,
16390,
12,
1726,
16,
845,
1884,
13,
365,
18,
11369,
67,
4901,
18,
4148,
29909,
87,
2187,
761,
13,
365,
18,
11369,
67,
4901,
18,
4148,
2668,
64,
82,
64,
82,
6134,
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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
8275,
469,
30,
1234,
273,
1995,
87,
7866,
87,
294,
296,
738,
261,
1631,
18,
529,
16,
8275,
18,
991,
13,
1234,
273,
365,
6315,
659,
653,
3053,
8026,
12,
3576,
16,
8275,
18,
7687,
13,
309,
845,
1884,
30,
1234,
273,
365,
18,
6408,
18,
1717,
67,
16390,
12,
3576,
16,
845,
1884,
13,
225,
1172,
1234,
365,
18,
11369,
67,
4901,
18,
4148,
24899,
2668,
15400,
628,
2497,
3719,
364,
761,
316,
924,
30,
309,
845,
1884,
30,
761,
273,
365,
18,
6408,
18,
2
] |
sf = pygame.Surface ((6, 8), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
|
for bpp in (8, 16, 24, 32): sf = pygame.Surface ((6, 8), 0, bpp) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
|
def test_set_column (self): sf = pygame.Surface ((6, 8), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
|
8c52ec7e2d3c922d31ce5b160f9bf0527da94d40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/8c52ec7e2d3c922d31ce5b160f9bf0527da94d40/pixelarray_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
2827,
261,
2890,
4672,
9033,
273,
2395,
13957,
18,
11508,
14015,
26,
16,
1725,
3631,
374,
16,
3847,
13,
9033,
18,
5935,
14015,
20,
16,
374,
16,
374,
3719,
419,
273,
2395,
13957,
18,
9037,
1076,
261,
21668,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
2827,
261,
2890,
4672,
9033,
273,
2395,
13957,
18,
11508,
14015,
26,
16,
1725,
3631,
374,
16,
3847,
13,
9033,
18,
5935,
14015,
20,
16,
374,
16,
374,
3719,
419,
273,
2395,
13957,
18,
9037,
1076,
261,
21668,
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
] |
raise ValueError, "invalid header"
|
raise ValueError("invalid header")
|
def frombuf(cls, buf): """Construct a TarInfo object from a 512 byte string buffer. """ if len(buf) != BLOCKSIZE: raise ValueError, "truncated header" if buf.count(NUL) == BLOCKSIZE: raise ValueError, "empty header"
|
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
4385,
12,
6429,
16,
1681,
4672,
3536,
7249,
279,
20334,
966,
733,
628,
279,
13908,
1160,
533,
1613,
18,
3536,
309,
562,
12,
4385,
13,
480,
14073,
4574,
30,
1002,
2068,
16,
315,
23558,
690,
1446,
6,
309,
1681,
18,
1883,
12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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
4385,
12,
6429,
16,
1681,
4672,
3536,
7249,
279,
20334,
966,
733,
628,
279,
13908,
1160,
533,
1613,
18,
3536,
309,
562,
12,
4385,
13,
480,
14073,
4574,
30,
1002,
2068,
16,
315,
23558,
690,
1446,
6,
309,
1681,
18,
1883,
12,
50,
1506,
13,
422,
14073,
4574,
30,
1002,
2068,
16,
315,
5531,
1446,
6,
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
] |
self.is_end, self.min_count, self.max_count)
|
self.is_end, self.min_count, self.max_count, self.can_begin, self.can_end)
|
def copy(self): return PrositeTerm(self.letters, self.ignore, self.is_begin, self.is_end, self.min_count, self.max_count)
|
18dbba155bba07951da5424ebe81cc1b94eea170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/18dbba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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
327,
1186,
4256,
4065,
12,
2890,
18,
26054,
16,
365,
18,
6185,
16,
365,
18,
291,
67,
10086,
16,
365,
18,
291,
67,
409,
16,
365,
18,
1154,
67,
1883,
16,
365,
18,
1896,
67,
1883,
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
] |
time.sleep(2)
|
time.sleep(1)
|
def main(): # Initialize the update url to just be the ip address of this machine. ip = getmyip() updateurl = 'http://' + ip + ':12345/' if len(sys.argv) == 1: sys.argv.append(updateurl) else: sys.argv[1] = updateurl # Create a temp directory to serve the updates from that we can # automatically clean up when we are done. tmpserver = tempfile.mkdtemp() try: test_updater.create_folders(tmpserver) ############################ # Run the rsync only tests # ############################ # Run the noup test (Nothing should fail, nothing should be updated) runRsyncTest('-x', tmpserver + '/noup/') # Run the wronghash test(There should be an RsyncError, and no updates) runRsyncTest('-e', tmpserver + '/wronghash/') # Run the badkeysig test (There should be no updates) runRsyncTest('-x', tmpserver + '/badkeysig/') # Run the corruptmeta test (there should be an RsyncError, and no updates) runRsyncTest('-e', tmpserver + '/corruptmeta/') # Run the updatenmmain test (only nmmain should get updated) runRsyncTest('-u', tmpserver + '/updatenmmain/', ['nmmain.py', 'metainfo']) # Run an update that should get us into a state where the softwareupdater has # a different key than what the metainfo is signed with. The next test will # ensure that our method of dealing with this situation works. runRsyncTest('-u', tmpserver + '/updater/', ['softwareupdater.py', 'metainfo']) # Run an update that should successfully update from the strange state from # the previous test. runRsyncTest('-u', tmpserver + '/updater_new/', ['nmmain.py', 'metainfo']) ##################################### # Finished running rsync only tests # ##################################### # Copy back everything from noup so the restart tests start with a # clean slate. for originalfile in glob.glob(tmpserver + '/noup/*'): shutil.copy(originalfile, os.path.basename(originalfile)) ################################## # Software updater restart tests # ################################## # Start the web server for the first update webserver = run_webserver(tmpserver + '/updater/') # Keep track of whether ps is there (it isn't on Windows) no_ps = False if nonportable.ostype == 'Windows': # If we are running on windows, disable the ps calls. no_ps = True # We use bsd syntax for the ps command because it works on bsd, darwin, and linux. # (bsd syntax means basically no dash before the options and maybe some different # letters used for the options.) # The 'ww' is to make sure that bsd doesn't limit the column length of output. # The 'ax' shows all processes. # The 'u' shows the username rather than user id running the process. pscommand = 'ps auxww' updateprocess = subprocess.Popen(['python', 'softwareupdater.py']) if not no_ps: # Only do the ps check if ps is available ps = subprocess.Popen(pscommand + ' | grep "softwareupdater.py" | grep -v grep', shell=True, stdout=subprocess.PIPE) psout = ps.communicate()[0] print 'Initial ps out:' print psout if psout == '': print 'Failure to start initially' # Wait for 2 minutes for the update to happen and the # process to die. for junk in range(60): if updateprocess.poll() != None: break time.sleep(2) ret = updateprocess.returncode if ret != 10: if ret == None: raise Exception("First software updater never died.") elif ret == 55: raise Exception("Software updater failed to get the process lock.") elif ret == 1: raise Exception("Softwareupdater failed with an uncaught exception. \n\ See end of softwareupdater.old in v2 for details.") else: raise Exception("Unknown return code from the software updater (" + str(ret) + ")") else: print "Old softwareupdater returned correctly" if not no_ps: # Only do the ps check if ps is available ps = subprocess.Popen(pscommand + ' | grep "softwareupdater.py" | grep -v grep', shell=True, stdout=subprocess.PIPE) psout = ps.communicate()[0] print 'After ps out:' print psout if psout == '': print 'New updater failed to start!' else: print 'softwareupdater restart success!' # We need to kill the webserver serving from /updater, and start one serving # from updater_new kill_webserver(webserver.pid, updateurl) webserver = run_webserver(tmpserver + '/updater_new/') print "Waiting 2 minutes for the second update to happen" # Wait 2 minutes for the second update to happen. # Is there a way to get a handle for the new softwareupdater? time.sleep(120) # If nmmain's version has been updated, the second update was a success! nmmainfile = file('nmmain.py', 'r') nmmaindata = nmmainfile.read() nmmainfile.close() if 'version = "1234"' in nmmaindata: print 'Second update a success!' else: print 'Second update failed to happen within 2 minutes' # Kill the webserver again now that we are all done with it. kill_webserver(webserver.pid, updateurl) ###################################### # End Software updater restart tests # ###################################### except: traceback.print_exc() finally: # Clean up the temporary server directory. # This throws an exception on Windows if a file is still in use (for example, # if the webserver started in a test couldn't be shut down). shutil.rmtree(tmpserver)
|
4da49d78e02e40c3c977e4c7f053a7fc551aa8b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/4da49d78e02e40c3c977e4c7f053a7fc551aa8b9/test_updater_local.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
9190,
326,
1089,
880,
358,
2537,
506,
326,
2359,
1758,
434,
333,
5228,
18,
2359,
273,
336,
4811,
625,
1435,
1089,
718,
273,
296,
2505,
8931,
397,
2359,
397,
4290,
2138,
25574,
2473,
225,
309,
562,
12,
9499,
18,
19485,
13,
422,
404,
30,
2589,
18,
19485,
18,
6923,
12,
2725,
718,
13,
469,
30,
2589,
18,
19485,
63,
21,
65,
273,
1089,
718,
225,
468,
1788,
279,
1906,
1867,
358,
12175,
326,
4533,
628,
716,
732,
848,
468,
6635,
2721,
731,
1347,
732,
854,
2731,
18,
1853,
3567,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
1842,
67,
25575,
18,
2640,
67,
16064,
12,
5645,
3567,
13,
225,
29570,
3228,
13151,
468,
1939,
326,
3597,
1209,
1338,
7434,
468,
29570,
3228,
13151,
225,
468,
1939,
326,
1158,
416,
1842,
261,
23814,
1410,
2321,
16,
5083,
1410,
506,
3526,
13,
1086,
54,
8389,
4709,
2668,
17,
92,
2187,
1853,
3567,
397,
1173,
2135,
416,
2473,
13,
225,
468,
1939,
326,
7194,
2816,
1842,
12,
9828,
1410,
506,
392,
534,
8389,
668,
16,
471,
1158,
4533,
13,
1086,
54,
8389,
4709,
2668,
17,
73,
2187,
1853,
3567,
397,
1173,
21530,
2816,
2473,
13,
225,
468,
1939,
326,
5570,
2452,
360,
1842,
261,
9828,
1410,
506,
1158,
4533,
13,
1086,
54,
8389,
4709,
2668,
17,
92,
2187,
1853,
3567,
397,
1173,
8759,
2452,
360,
2473,
13,
225,
468,
1939,
326,
16899,
3901,
1842,
261,
18664,
1410,
506,
392,
534,
8389,
668,
16,
471,
1158,
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,
13332,
468,
9190,
326,
1089,
880,
358,
2537,
506,
326,
2359,
1758,
434,
333,
5228,
18,
2359,
273,
336,
4811,
625,
1435,
1089,
718,
273,
296,
2505,
8931,
397,
2359,
397,
4290,
2138,
25574,
2473,
225,
309,
562,
12,
9499,
18,
19485,
13,
422,
404,
30,
2589,
18,
19485,
18,
6923,
12,
2725,
718,
13,
469,
30,
2589,
18,
19485,
63,
21,
65,
273,
1089,
718,
225,
468,
1788,
279,
1906,
1867,
358,
12175,
326,
4533,
628,
716,
732,
848,
468,
6635,
2721,
731,
1347,
732,
854,
2731,
18,
1853,
3567,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
1842,
67,
25575,
18,
2640,
67,
16064,
12,
5645,
3567,
13,
225,
29570,
3228,
13151,
468,
1939,
2
] |
(r"(L|@)?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char),
|
(r"(L|@)?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char),
|
def get_tokens_unprocessed(self, text): scanner = Scanner(text, re.DOTALL | re.MULTILINE | re.IGNORECASE) stack = ['initial'] in_function_block = False in_property_block = False was_dot = False next_token_is_function = False next_token_is_property = False collect_labels = False block_labels = set() brace_balance = [0, 0]
|
1bb15c4cd4c1025badabe70816f63319ba700847 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/1bb15c4cd4c1025badabe70816f63319ba700847/compiled.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
7683,
273,
19074,
12,
955,
16,
283,
18,
17591,
4685,
571,
283,
18,
12845,
30690,
571,
283,
18,
20118,
13415,
13,
2110,
273,
10228,
6769,
3546,
316,
67,
915,
67,
2629,
273,
1083,
316,
67,
4468,
67,
2629,
273,
1083,
1703,
67,
9811,
273,
1083,
1024,
67,
2316,
67,
291,
67,
915,
273,
1083,
1024,
67,
2316,
67,
291,
67,
4468,
273,
1083,
3274,
67,
5336,
273,
1083,
1203,
67,
5336,
273,
444,
1435,
22500,
67,
12296,
273,
306,
20,
16,
374,
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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977,
4672,
7683,
273,
19074,
12,
955,
16,
283,
18,
17591,
4685,
571,
283,
18,
12845,
30690,
571,
283,
18,
20118,
13415,
13,
2110,
273,
10228,
6769,
3546,
316,
67,
915,
67,
2629,
273,
1083,
316,
67,
4468,
67,
2629,
273,
1083,
1703,
67,
9811,
273,
1083,
1024,
67,
2316,
67,
291,
67,
915,
273,
1083,
1024,
67,
2316,
67,
291,
67,
4468,
273,
1083,
3274,
67,
5336,
273,
1083,
1203,
67,
5336,
273,
444,
1435,
22500,
67,
12296,
273,
306,
20,
16,
374,
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
] |
'final':lambda: self._parent.parent().getFinalDefault()}
|
'final':lambda self: self._parent().getFinalDefault()}
|
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
|
7e1f86e3e32f88ea95d3dcaa301a21593e338485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/7e1f86e3e32f88ea95d3dcaa301a21593e338485/XMLSchema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
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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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,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
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,
-100,
-100,
-100,
-100,
-100
] |
cases = ("*sort", "\\sort", "/sort", "~sort", "-sort", "!sort") fmt = ("%2s %6s" + " %6s"*len(cases))
|
cases = ("*sort", "\\sort", "/sort", "~sort", "=sort", "!sort") fmt = ("%2s %7s" + " %6s"*len(cases))
|
def tabulate(r): """Tabulate sort speed for lists of various sizes. The sizes are 2**i for i in r (the argument, a list). The output displays i, 2**i, and the time to sort arrays of 2**i floating point numbers with the following properties: *sort: random data \sort: descending data /sort: ascending data ~sort: many duplicates -sort: all equal !sort: worst case scenario """ cases = ("*sort", "\\sort", "/sort", "~sort", "-sort", "!sort") fmt = ("%2s %6s" + " %6s"*len(cases)) print fmt % (("i", "2**i") + cases) for i in r: n = 1<<i L = randrange(n) ##assert len(L) == n print "%2d %6d" % (i, n), fl() doit(L) # *sort L.reverse() doit(L) # \sort doit(L) # /sort if n > 4: del L[4:] L = L*(n/4) L = map(lambda x: --x, L) doit(L) # ~sort del L L = map(abs, [-0.5]*n) doit(L) # -sort L = range(n/2-1, -1, -1) L[len(L):] = range(n/2) doit(L) # !sort print
|
c74091f4ea1e34382dd3b425d37f010ab91c9d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c74091f4ea1e34382dd3b425d37f010ab91c9d7b/sortperf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
225,
1021,
876,
22461,
277,
16,
576,
636,
77,
16,
471,
326,
813,
358,
1524,
5352,
434,
576,
636,
77,
13861,
1634,
5600,
598,
326,
3751,
1790,
30,
225,
380,
3804,
30,
2744,
501,
521,
3804,
30,
17044,
501,
342,
3804,
30,
13976,
501,
4871,
3804,
30,
4906,
11211,
300,
3804,
30,
777,
3959,
401,
3804,
30,
22952,
648,
10766,
225,
3536,
6088,
273,
7566,
14,
3804,
3113,
8422,
3804,
3113,
2206,
3804,
3113,
19910,
3804,
3113,
29199,
3804,
3113,
17528,
3804,
7923,
1325,
273,
7566,
9,
22,
87,
738,
27,
87,
6,
397,
315,
738,
26,
87,
6,
14,
1897,
12,
22186,
3719,
1172,
1325,
738,
261,
2932,
77,
3113,
315,
22,
636,
77,
7923,
397,
6088,
13,
364,
277,
316,
436,
30,
290,
273,
404,
17685,
77,
511,
273,
5605,
3676,
12,
82,
13,
7541,
11231,
562,
12,
48,
13,
422,
290,
1172,
2213,
22,
72,
738,
26,
72,
6,
738,
261,
77,
16,
290,
3631,
1183,
1435,
741,
305,
12,
48,
13,
468,
380,
3804,
511,
18,
9845,
1435,
741,
305,
12,
48,
13,
468,
521,
3804,
741,
305,
12,
48,
13,
468,
342,
3804,
309,
290,
405,
1059,
30,
1464,
511,
63,
24,
26894,
511,
273,
511,
21556,
82,
19,
24,
13,
511,
273,
852,
12,
14661,
619,
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,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
225,
1021,
876,
22461,
277,
16,
576,
636,
77,
16,
471,
326,
813,
358,
1524,
5352,
434,
576,
636,
77,
13861,
1634,
5600,
598,
326,
3751,
1790,
30,
225,
380,
3804,
30,
2744,
501,
521,
3804,
30,
17044,
501,
342,
3804,
30,
13976,
501,
4871,
3804,
30,
4906,
11211,
300,
3804,
30,
777,
3959,
401,
3804,
30,
22952,
648,
10766,
225,
3536,
6088,
273,
7566,
14,
3804,
3113,
8422,
3804,
3113,
2206,
3804,
3113,
19910,
3804,
3113,
29199,
3804,
3113,
17528,
3804,
7923,
1325,
2
] |
zinfo.flag_bits = 0x08
|
zinfo.flag_bits = 0x00
|
def write(self, filename, arcname=None, compress_type=None): """Put the bytes from filename into the archive under the name arcname.""" st = os.stat(filename) mtime = time.localtime(st[8]) date_time = mtime[0:6] # Create ZipInfo instance to store file information if arcname is None: zinfo = ZipInfo(filename, date_time) else: zinfo = ZipInfo(arcname, date_time) zinfo.external_attr = st[0] << 16 # Unix attributes if compress_type is None: zinfo.compress_type = self.compression else: zinfo.compress_type = compress_type self._writecheck(zinfo) fp = open(filename, "rb") zinfo.flag_bits = 0x08 zinfo.header_offset = self.fp.tell() # Start of header bytes self.fp.write(zinfo.FileHeader()) zinfo.file_offset = self.fp.tell() # Start of file bytes CRC = 0 compress_size = 0 file_size = 0 if zinfo.compress_type == ZIP_DEFLATED: cmpr = zlib.compressobj(zlib.Z_DEFAULT_COMPRESSION, zlib.DEFLATED, -15) else: cmpr = None while 1: buf = fp.read(1024 * 8) if not buf: break file_size = file_size + len(buf) CRC = binascii.crc32(buf, CRC) if cmpr: buf = cmpr.compress(buf) compress_size = compress_size + len(buf) self.fp.write(buf) fp.close() if cmpr: buf = cmpr.flush() compress_size = compress_size + len(buf) self.fp.write(buf) zinfo.compress_size = compress_size else: zinfo.compress_size = file_size zinfo.CRC = CRC zinfo.file_size = file_size # Write CRC and file sizes after the file data self.fp.write(struct.pack("<lll", zinfo.CRC, zinfo.compress_size, zinfo.file_size)) self.filelist.append(zinfo) self.NameToInfo[zinfo.filename] = zinfo
|
e74bef3dea4e4f414731e66172d3f9679104bbc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e74bef3dea4e4f414731e66172d3f9679104bbc3/zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
16,
8028,
529,
33,
7036,
16,
8099,
67,
723,
33,
7036,
4672,
3536,
6426,
326,
1731,
628,
1544,
1368,
326,
5052,
3613,
326,
508,
8028,
529,
12123,
384,
273,
1140,
18,
5642,
12,
3459,
13,
13158,
273,
813,
18,
3729,
957,
12,
334,
63,
28,
5717,
1509,
67,
957,
273,
13158,
63,
20,
30,
26,
65,
468,
1788,
8603,
966,
791,
358,
1707,
585,
1779,
309,
8028,
529,
353,
599,
30,
998,
1376,
273,
8603,
966,
12,
3459,
16,
1509,
67,
957,
13,
469,
30,
998,
1376,
273,
8603,
966,
12,
11828,
529,
16,
1509,
67,
957,
13,
998,
1376,
18,
9375,
67,
1747,
273,
384,
63,
20,
65,
2296,
2872,
4202,
468,
9480,
1677,
309,
8099,
67,
723,
353,
599,
30,
998,
1376,
18,
14706,
67,
723,
273,
365,
18,
23766,
469,
30,
998,
1376,
18,
14706,
67,
723,
273,
8099,
67,
723,
365,
6315,
2626,
1893,
12,
94,
1376,
13,
4253,
273,
1696,
12,
3459,
16,
315,
6731,
7923,
998,
1376,
18,
6420,
67,
6789,
273,
374,
92,
713,
998,
1376,
18,
3374,
67,
3348,
273,
365,
18,
7944,
18,
88,
1165,
1435,
565,
468,
3603,
434,
1446,
1731,
365,
18,
7944,
18,
2626,
12,
94,
1376,
18,
812,
1864,
10756,
998,
1376,
18,
768,
67,
3348,
273,
365,
18,
7944,
18,
88,
1165,
1435,
1377,
468,
3603,
434,
585,
1731,
21773,
273,
374,
8099,
67,
1467,
273,
374,
585,
67,
1467,
273,
374,
309,
998,
1376,
18,
14706,
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,
1045,
12,
2890,
16,
1544,
16,
8028,
529,
33,
7036,
16,
8099,
67,
723,
33,
7036,
4672,
3536,
6426,
326,
1731,
628,
1544,
1368,
326,
5052,
3613,
326,
508,
8028,
529,
12123,
384,
273,
1140,
18,
5642,
12,
3459,
13,
13158,
273,
813,
18,
3729,
957,
12,
334,
63,
28,
5717,
1509,
67,
957,
273,
13158,
63,
20,
30,
26,
65,
468,
1788,
8603,
966,
791,
358,
1707,
585,
1779,
309,
8028,
529,
353,
599,
30,
998,
1376,
273,
8603,
966,
12,
3459,
16,
1509,
67,
957,
13,
469,
30,
998,
1376,
273,
8603,
966,
12,
11828,
529,
16,
1509,
67,
957,
13,
998,
1376,
18,
9375,
67,
1747,
273,
384,
63,
20,
65,
2296,
2872,
4202,
468,
2
] |
self.termination_improvement = termination_relative_improvement
|
self.termination_relative_improvement = termination_relative_improvement
|
def __init__(self, initial_stepsize = 1.0, delta = 1.0e-6, stepsize_shrink = 0.5, termination_stepsize = 1.0e-30, termination_objective = None, termination_iteration = None, termination_numEvaluations = None, termination_improvement = None, termination_relative_improvement = None, stepsize_max = 1.0e30, rng = None, transformer = None, randomInitRange = None, verbose = 0) : """
|
4ee76ca21732825495f5906ed69157dcec83e84b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1770/4ee76ca21732825495f5906ed69157dcec83e84b/optim.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2172,
67,
4119,
1467,
273,
404,
18,
20,
16,
3622,
273,
404,
18,
20,
73,
17,
26,
16,
2235,
1467,
67,
674,
12334,
273,
374,
18,
25,
16,
19650,
67,
4119,
1467,
273,
404,
18,
20,
73,
17,
5082,
16,
19650,
67,
20174,
273,
599,
16,
19650,
67,
16108,
273,
599,
16,
19650,
67,
2107,
6644,
1012,
273,
599,
16,
19650,
67,
381,
685,
22627,
273,
599,
16,
19650,
67,
11626,
67,
381,
685,
22627,
273,
599,
16,
2235,
1467,
67,
1896,
273,
404,
18,
20,
73,
5082,
16,
11418,
273,
599,
16,
8360,
273,
599,
16,
2744,
2570,
2655,
273,
599,
16,
3988,
273,
374,
13,
294,
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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404,
18,
20,
16,
3622,
273,
404,
18,
20,
73,
17,
26,
16,
2235,
1467,
67,
674,
12334,
273,
374,
18,
25,
16,
19650,
67,
4119,
1467,
273,
404,
18,
20,
73,
17,
5082,
16,
19650,
67,
20174,
273,
599,
16,
19650,
67,
16108,
273,
599,
16,
19650,
67,
2107,
6644,
1012,
273,
599,
16,
19650,
67,
381,
685,
22627,
273,
599,
16,
19650,
67,
11626,
67,
381,
685,
22627,
273,
599,
16,
2235,
1467,
67,
1896,
273,
404,
18,
20,
73,
5082,
16,
11418,
273,
599,
16,
8360,
273,
599,
16,
2744,
2570,
2655,
273,
599,
16,
3988,
273,
374,
13,
294,
3536,
2,
-100,
-100,
-100
] |
def __init__(self, command=None, stdout="", stderr="",
|
def __init__(self, command="", stdout="", stderr="",
|
def __init__(self, command=None, stdout="", stderr="", exit_status=None, duration=0): self.command = command self.exit_status = exit_status self.stdout = stdout self.stderr = stderr self.duration = duration
|
6c8d7f088d7001b692314886b880ee05223f89c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6c8d7f088d7001b692314886b880ee05223f89c1/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1296,
1546,
3113,
3909,
1546,
3113,
4514,
1546,
3113,
2427,
67,
2327,
33,
7036,
16,
3734,
33,
20,
4672,
365,
18,
3076,
273,
1296,
365,
18,
8593,
67,
2327,
273,
2427,
67,
2327,
365,
18,
10283,
273,
3909,
365,
18,
11241,
273,
4514,
365,
18,
8760,
273,
3734,
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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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,
1001,
2738,
972,
12,
2890,
16,
1296,
1546,
3113,
3909,
1546,
3113,
4514,
1546,
3113,
2427,
67,
2327,
33,
7036,
16,
3734,
33,
20,
4672,
365,
18,
3076,
273,
1296,
365,
18,
8593,
67,
2327,
273,
2427,
67,
2327,
365,
18,
10283,
273,
3909,
365,
18,
11241,
273,
4514,
365,
18,
8760,
273,
3734,
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
] |
class TestCaseTests(TestCase):
|
class TestCaseTests(unittest.TestCase):
|
def test_get_json_attr_types(self): self.assertRaises(NotImplementedError, SoftwarePackage.get_json_attr_types)
|
33350b1918e806e4c10a301b469914de84b03dfb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/33350b1918e806e4c10a301b469914de84b03dfb/test_dashboard_bundle_format_1_0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
1977,
67,
1747,
67,
2352,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
1248,
8644,
668,
16,
24199,
2261,
18,
588,
67,
1977,
67,
1747,
67,
2352,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
1977,
67,
1747,
67,
2352,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
1248,
8644,
668,
16,
24199,
2261,
18,
588,
67,
1977,
67,
1747,
67,
2352,
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
] |
if nickname and 'USE_NICKNAME_DQ2OUTPUTDATASET' in config and config['USE_NICKNAME_DQ2OUTPUTDATASET']:
|
if nickname and 'USE_NICKNAME_DQ2OUTPUTDATASET' in configDQ2 and configDQ2['USE_NICKNAME_DQ2OUTPUTDATASET']:
|
def __init__(self): super( AthenaMCInputDatasets, self ).__init__() # Extract username from certificate proxy = GridProxy() username = proxy.identity() if 'ALLOW_MISSING_NICKNAME_DQ2OUTPUTDATASET' in config and config['ALLOW_MISSING_NICKNAME_DQ2OUTPUTDATASET']: nickname = getNickname(allowMissingNickname=True) else: nickname = getNickname(allowMissingNickname=False) if nickname and 'USE_NICKNAME_DQ2OUTPUTDATASET' in config and config['USE_NICKNAME_DQ2OUTPUTDATASET']: username = nickname #self.initDQ2hashes() #logger.debug(self.baseURLDQ2)
|
259bfdd41e7394bacf424bab8d0333e78dc46ffa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/259bfdd41e7394bacf424bab8d0333e78dc46ffa/AthenaMCDatasets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
432,
15991,
69,
20022,
1210,
14305,
2413,
16,
365,
262,
16186,
2738,
972,
1435,
468,
8152,
2718,
628,
4944,
2889,
273,
7145,
3886,
1435,
2718,
273,
2889,
18,
10781,
1435,
309,
296,
13511,
67,
19466,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
11,
316,
642,
471,
642,
3292,
13511,
67,
19466,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
3546,
30,
19570,
273,
11069,
1200,
529,
12,
5965,
4841,
29756,
529,
33,
5510,
13,
469,
30,
19570,
273,
11069,
1200,
529,
12,
5965,
4841,
29756,
529,
33,
8381,
13,
225,
309,
19570,
471,
296,
8001,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
11,
316,
642,
40,
53,
22,
471,
642,
40,
53,
22,
3292,
8001,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
3546,
30,
2718,
273,
19570,
468,
2890,
18,
2738,
40,
53,
22,
17612,
1435,
468,
4901,
18,
4148,
12,
2890,
18,
1969,
1785,
40,
53,
22,
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,
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273,
7145,
3886,
1435,
2718,
273,
2889,
18,
10781,
1435,
309,
296,
13511,
67,
19466,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
11,
316,
642,
471,
642,
3292,
13511,
67,
19466,
67,
50,
16656,
1985,
67,
40,
53,
22,
15527,
4883,
4043,
3546,
30,
19570,
273,
11069,
1200,
529,
12,
5965,
4841,
29756,
529,
33,
5510,
13,
469,
30,
19570,
273,
11069,
1200,
529,
12,
5965,
4841,
29756,
529,
33,
8381,
13,
225,
309,
19570,
471,
296,
8001,
67,
50,
16656,
1985,
67,
40,
53,
22,
2
] |
imagedata = paginetta.getFileVersionHistory() if imagedata == list(): wikipedia.output(u"Seems that %s hasn't the image at all, but there is something in the description..." % self.image) repme = "\n*[[:Image:%s]] seems to have problems ('''no data found in the image''')" self.report_image(self.image, self.rep_page, self.com, repme) return False
|
params = { 'action' :'query', 'prop' :'imageinfo', 'titles' :self.image_namespace + self.image, } data = query.GetData(params, useAPI = True, encodeTitle = False)
|
def tag_image(self, put = True): """ Function to add the template in the image and to find out who's the user that has uploaded the image. """ # Defing the image's Page Object p = wikipedia.ImagePage(self.site, 'Image:%s' % self.image) # Get the image's description try: testoa = p.get() except wikipedia.NoPage: wikipedia.output(u'%s has been deleted...' % p.title()) # We have a problem! Report and exit! return False # You can use this function also to find only the user that # has upload the image (FixME: Rewrite a bit this part) if put: p.put(testoa + self.newtext, comment = self.commImage, minorEdit = True) # paginetta it's the image page object. paginetta = wikipedia.ImagePage(self.site, self.image_namespace + self.image) # I take the data of the latest uploader and I take only the name imagedata = paginetta.getFileVersionHistory() #print imagedata # Let it so for de-buggin porpuse (wikipedia.output gives error) # When an Image is deleted from Commons and someone has add something in the wikipedia page # The bot doesn't catch the data properly :-) if imagedata == list(): wikipedia.output(u"Seems that %s hasn't the image at all, but there is something in the description..." % self.image) repme = "\n*[[:Image:%s]] seems to have problems ('''no data found in the image''')" self.report_image(self.image, self.rep_page, self.com, repme) # We have a problem! Report and exit! return False try: nick = paginetta.getFileVersionHistory()[0][1] # Get the latest uploader except IndexError: wikipedia.output(u"Seems that %s hasn't the image at all, but there is something in the description..." % self.image) repme = "\n*[[:Image:%s]] seems to have problems ('''no data found in the image''')" # We have a problem! Report and exit! self.report_image(self.image, self.rep_page, self.com, repme) return False luser = wikipedia.url2link(nick, self.site, self.site) pagina_discussione = "%s:%s" % (self.site.namespace(3), luser) # Defing the talk page (pagina_discussione = talk_page ^__^ ) talk_page = wikipedia.Page(self.site, pagina_discussione) self.talk_page = talk_page self.luser = luser return True
|
c32a9657c984361a1f0ef309792e0888c4e841f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/c32a9657c984361a1f0ef309792e0888c4e841f9/checkimages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
2730,
12,
2890,
16,
1378,
273,
1053,
4672,
3536,
4284,
358,
527,
326,
1542,
316,
326,
1316,
471,
358,
1104,
596,
10354,
1807,
326,
729,
716,
711,
9140,
326,
1316,
18,
3536,
468,
10922,
310,
326,
1316,
1807,
3460,
1033,
293,
273,
21137,
18,
2040,
1964,
12,
2890,
18,
4256,
16,
296,
2040,
5319,
87,
11,
738,
365,
18,
2730,
13,
468,
968,
326,
1316,
1807,
2477,
775,
30,
1842,
11867,
273,
293,
18,
588,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
9,
87,
711,
2118,
4282,
7821,
738,
293,
18,
2649,
10756,
468,
1660,
1240,
279,
6199,
5,
8706,
471,
2427,
5,
327,
1083,
468,
4554,
848,
999,
333,
445,
2546,
358,
1104,
1338,
326,
729,
716,
468,
711,
3617,
326,
1316,
261,
8585,
958,
30,
17851,
279,
2831,
333,
1087,
13,
309,
1378,
30,
293,
18,
458,
12,
3813,
11867,
397,
365,
18,
2704,
955,
16,
2879,
273,
365,
18,
5702,
2040,
16,
8439,
4666,
273,
1053,
13,
468,
4262,
23864,
2351,
518,
1807,
326,
1316,
1363,
733,
18,
4262,
23864,
2351,
273,
21137,
18,
2040,
1964,
12,
2890,
18,
4256,
16,
365,
18,
2730,
67,
4937,
397,
365,
18,
2730,
13,
468,
467,
4862,
326,
501,
434,
326,
4891,
25062,
471,
467,
4862,
1338,
326,
508,
8902,
329,
396,
273,
4262,
23864,
2351,
18,
29925,
1444,
5623,
1435,
468,
1188,
8902,
329,
396,
468,
10559,
518,
1427,
364,
443,
17,
925,
1912,
22471,
84,
1202,
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,
1047,
67,
2730,
12,
2890,
16,
1378,
273,
1053,
4672,
3536,
4284,
358,
527,
326,
1542,
316,
326,
1316,
471,
358,
1104,
596,
10354,
1807,
326,
729,
716,
711,
9140,
326,
1316,
18,
3536,
468,
10922,
310,
326,
1316,
1807,
3460,
1033,
293,
273,
21137,
18,
2040,
1964,
12,
2890,
18,
4256,
16,
296,
2040,
5319,
87,
11,
738,
365,
18,
2730,
13,
468,
968,
326,
1316,
1807,
2477,
775,
30,
1842,
11867,
273,
293,
18,
588,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
9,
87,
711,
2118,
4282,
7821,
738,
293,
18,
2649,
10756,
468,
1660,
1240,
279,
6199,
5,
8706,
471,
2427,
5,
327,
1083,
468,
4554,
848,
999,
333,
2
] |
'ar': u"بوت صيانة تحويل التصنيف",
|
'ar': u"بوت صيانة تحويل التصنيف", 'ja': u"移行中のカテゴリのメンテナンス・ボット",
|
def __init__(self, often): self.cooldown = 6 # days self.often = often # Localization:
|
98423dd4caad401cb3e6d4efce1e43edb80f8b10 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/98423dd4caad401cb3e6d4efce1e43edb80f8b10/category_redirect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16337,
4672,
365,
18,
71,
1371,
2378,
273,
1666,
468,
4681,
365,
18,
792,
2253,
273,
16337,
225,
468,
3566,
1588,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16337,
4672,
365,
18,
71,
1371,
2378,
273,
1666,
468,
4681,
365,
18,
792,
2253,
273,
16337,
225,
468,
3566,
1588,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sql = "UPDATE %s SET %s WHERE id=%s" % (obj_schema.table_name, ', '.join(setters), obj.id) self._execute(sql, values)
|
if values: sql = "UPDATE %s SET %s WHERE id=%s" % (obj_schema.table_name, ', '.join(setters), obj.id) self._execute(sql, values)
|
def update_obj(self, obj): """Update a DDBObject on disk."""
|
aa6e634acc5f7e7e5f9b990a3ddf83aca46bdfcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/aa6e634acc5f7e7e5f9b990a3ddf83aca46bdfcb/storedatabase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2603,
12,
2890,
16,
1081,
4672,
3536,
1891,
279,
463,
2290,
921,
603,
4234,
12123,
2,
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,
0,
0,
0,
0,
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,
1089,
67,
2603,
12,
2890,
16,
1081,
4672,
3536,
1891,
279,
463,
2290,
921,
603,
4234,
12123,
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
] |
vList.append(Violation(self, line.number))
|
vList.append(Violation(self, line))
|
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if ( re.search("inline", line.stripped) ): definitionLength = getDefinitionLength(lines, line.number) isTooLong = (definitionLength > 1)
|
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
225,
309,
261,
283,
18,
3072,
2932,
10047,
3113,
980,
18,
6406,
1845,
13,
262,
30,
2379,
1782,
273,
12762,
1782,
12,
3548,
16,
980,
18,
2696,
13,
353,
10703,
3708,
273,
261,
6907,
1782,
405,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
225,
309,
261,
283,
18,
3072,
2932,
10047,
3113,
980,
18,
6406,
1845,
13,
262,
30,
2379,
1782,
273,
12762,
1782,
12,
3548,
16,
980,
18,
2696,
13,
353,
10703,
3708,
273,
261,
6907,
1782,
405,
404,
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
] |
result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr)
|
result = hlr_utils.copy_som_attr(result, res_descr, obj, o_descr)
|
def sum_all_spectra(obj,**kwargs): """ This function takes all the SOs in a SOM and sums them together using the summing by weights concept. All of the SOs are assumed to have the same axis scale. Parameters: ---------- -> obj is a SOM in which all of the SOs are to be summed together Returns: ------- <- A SOM containing a single spectrum Exceptions: ---------- <- TypeError is raised if anything other than a SOM is given """ # import the helper functions import hlr_utils o_descr=hlr_utils.get_descr(obj) if o_descr != "SOM": raise TypeError, "Function argument must be a SOM" # Have a SOM, go on else: pass (result,res_descr)=hlr_utils.empty_result(obj) result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr) # iterate through the values import common_lib so_id_list = [] val1 = hlr_utils.get_value(obj,0,o_descr,"all") val2 = hlr_utils.get_value(obj,1,o_descr,"all") value = common_lib.add_ncerr(val1, val2) so_id_list.append(val1.id) so_id_list.append(val2.id) for i in range(2,hlr_utils.get_length(obj)): val = hlr_utils.get_value(obj,i,o_descr,"all") value = common_lib.add_ncerr(val, value) so_id_list.append(val.id) hlr_utils.result_insert(result,res_descr,value,None,"all") result.attr_list["Summed IDs"] = so_id_list result[0].id = 0 return result
|
8179af3e8a7df82b7cb8133f15d0deb02bebabd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8179af3e8a7df82b7cb8133f15d0deb02bebabd4/hlr_sum_all_spectra.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2142,
67,
454,
67,
13234,
354,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
777,
326,
7460,
87,
316,
279,
348,
1872,
471,
26608,
2182,
9475,
1450,
326,
2142,
11987,
635,
5376,
12402,
18,
4826,
434,
326,
7460,
87,
854,
12034,
358,
1240,
326,
1967,
2654,
3159,
18,
225,
7012,
30,
12181,
317,
1081,
353,
279,
348,
1872,
316,
1492,
777,
434,
326,
7460,
87,
854,
358,
506,
2142,
2937,
9475,
225,
2860,
30,
18365,
3290,
432,
348,
1872,
4191,
279,
2202,
17970,
225,
12781,
30,
12181,
3290,
3580,
353,
11531,
309,
6967,
1308,
2353,
279,
348,
1872,
353,
864,
3536,
225,
468,
1930,
326,
4222,
4186,
1930,
366,
10826,
67,
5471,
225,
320,
67,
28313,
33,
76,
10826,
67,
5471,
18,
588,
67,
28313,
12,
2603,
13,
225,
309,
320,
67,
28313,
480,
315,
55,
1872,
6877,
1002,
3580,
16,
315,
2083,
1237,
1297,
506,
279,
348,
1872,
6,
468,
21940,
279,
348,
1872,
16,
1960,
603,
469,
30,
1342,
225,
261,
2088,
16,
455,
67,
28313,
13,
33,
76,
10826,
67,
5471,
18,
5531,
67,
2088,
12,
2603,
13,
225,
563,
273,
366,
10826,
67,
5471,
18,
3530,
67,
87,
362,
67,
1747,
12,
2088,
16,
400,
67,
28313,
16,
1081,
16,
320,
67,
28313,
13,
225,
468,
7401,
3059,
326,
924,
1930,
2975,
67,
2941,
225,
1427,
67,
350,
67,
1098,
273,
5378,
225,
1244,
21,
273,
366,
10826,
67,
5471,
18,
588,
67,
1132,
12,
2603,
16,
20,
16,
83,
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,
2142,
67,
454,
67,
13234,
354,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
777,
326,
7460,
87,
316,
279,
348,
1872,
471,
26608,
2182,
9475,
1450,
326,
2142,
11987,
635,
5376,
12402,
18,
4826,
434,
326,
7460,
87,
854,
12034,
358,
1240,
326,
1967,
2654,
3159,
18,
225,
7012,
30,
12181,
317,
1081,
353,
279,
348,
1872,
316,
1492,
777,
434,
326,
7460,
87,
854,
358,
506,
2142,
2937,
9475,
225,
2860,
30,
18365,
3290,
432,
348,
1872,
4191,
279,
2202,
17970,
225,
12781,
30,
12181,
3290,
3580,
353,
11531,
309,
6967,
1308,
2353,
279,
348,
1872,
353,
864,
3536,
225,
468,
1930,
326,
4222,
4186,
1930,
366,
10826,
67,
5471,
225,
320,
67,
28313,
2
] |
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString,x,y) else: self.drawline(aFullPNString,lastx,lasty,x,y)
|
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString,x,y) else: self.drawline(aFullPNString,lastx,lasty,x,y)
|
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint, calculate change to the last lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString,x,y) else: self.drawline(aFullPNString,lastx,lasty,x,y) #if change is 1 pixel in x or y direction drawpoint #else drawline #setlast self.lastx[aFullPNString]=x self.lasty[aFullPNString]=y
|
fc7926ed12faa61a63508521517fced9fa88942b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fc7926ed12faa61a63508521517fced9fa88942b/Plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1153,
12,
2890,
16,
279,
5080,
15124,
780,
16,
25252,
4672,
468,
588,
25252,
619,
677,
924,
468,
6283,
358,
3207,
5513,
309,
25252,
63,
20,
65,
32,
2890,
18,
92,
3789,
63,
21,
65,
471,
25252,
63,
20,
65,
34,
2890,
18,
92,
3789,
63,
20,
65,
471,
64,
25252,
63,
21,
65,
32,
2890,
18,
93,
3789,
63,
21,
65,
471,
25252,
63,
21,
65,
34,
2890,
18,
93,
3789,
63,
20,
14542,
619,
33,
2890,
18,
591,
502,
978,
67,
869,
67,
4032,
12,
892,
1153,
63,
20,
5717,
677,
33,
2890,
18,
6283,
93,
67,
869,
67,
4032,
12,
892,
1153,
63,
21,
5717,
468,
588,
2722,
1153,
16,
4604,
2549,
358,
326,
1142,
1142,
92,
33,
2890,
18,
2722,
92,
63,
69,
5080,
15124,
780,
65,
1142,
93,
33,
2890,
18,
2722,
93,
63,
69,
5080,
15124,
780,
65,
309,
1142,
92,
5,
33,
7036,
30,
6633,
33,
5113,
12,
2722,
92,
17,
92,
13,
7732,
33,
5113,
12,
2722,
93,
17,
93,
13,
469,
30,
6633,
33,
20,
7732,
33,
20,
309,
6633,
32,
22,
471,
7732,
32,
22,
30,
365,
18,
9446,
1153,
67,
265,
67,
4032,
12,
69,
5080,
15124,
780,
16,
92,
16,
93,
13,
469,
30,
365,
18,
9446,
1369,
12,
69,
5080,
15124,
780,
16,
2722,
92,
16,
2722,
93,
16,
92,
16,
93,
13,
225,
468,
430,
2549,
353,
404,
4957,
316,
619,
578,
677,
4068,
3724,
1153,
468,
12107,
3724,
1369,
468,
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,
3724,
1153,
12,
2890,
16,
279,
5080,
15124,
780,
16,
25252,
4672,
468,
588,
25252,
619,
677,
924,
468,
6283,
358,
3207,
5513,
309,
25252,
63,
20,
65,
32,
2890,
18,
92,
3789,
63,
21,
65,
471,
25252,
63,
20,
65,
34,
2890,
18,
92,
3789,
63,
20,
65,
471,
64,
25252,
63,
21,
65,
32,
2890,
18,
93,
3789,
63,
21,
65,
471,
25252,
63,
21,
65,
34,
2890,
18,
93,
3789,
63,
20,
14542,
619,
33,
2890,
18,
591,
502,
978,
67,
869,
67,
4032,
12,
892,
1153,
63,
20,
5717,
677,
33,
2890,
18,
6283,
93,
67,
869,
67,
4032,
12,
892,
1153,
63,
21,
5717,
468,
588,
2722,
1153,
16,
4604,
2549,
358,
326,
2
] |
return sorted(individuals, key=lambda ind : ind.mFitness)[:n]
|
return sorted(individuals, key=attrgetter("fitness"))[:n]
|
def selWorst(individuals, n): """Select the *n* worst individuals among the input *individuals*. The list returned contains shallow copies of the input *individuals*. """ return sorted(individuals, key=lambda ind : ind.mFitness)[:n]
|
6ae146eb7a67965cd060324f44081ab5e647e3e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7315/6ae146eb7a67965cd060324f44081ab5e647e3e0/toolbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
357,
59,
280,
334,
12,
22032,
30910,
16,
290,
4672,
3536,
3391,
326,
380,
82,
14,
22952,
24479,
17200,
326,
810,
380,
22032,
30910,
11146,
1021,
666,
2106,
1914,
18501,
13200,
434,
326,
810,
380,
22032,
30910,
11146,
3536,
327,
3115,
12,
22032,
30910,
16,
498,
33,
1747,
11990,
2932,
7216,
4496,
6,
3719,
10531,
82,
65,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
357,
59,
280,
334,
12,
22032,
30910,
16,
290,
4672,
3536,
3391,
326,
380,
82,
14,
22952,
24479,
17200,
326,
810,
380,
22032,
30910,
11146,
1021,
666,
2106,
1914,
18501,
13200,
434,
326,
810,
380,
22032,
30910,
11146,
3536,
327,
3115,
12,
22032,
30910,
16,
498,
33,
1747,
11990,
2932,
7216,
4496,
6,
3719,
10531,
82,
65,
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
] |
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
|
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
|
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
|
52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
33,
3672,
4672,
309,
365,
18,
12204,
30,
327,
599,
1681,
33,
81,
22,
18,
21010,
67,
14665,
12,
2890,
18,
21010,
16,
963,
13,
309,
1681,
353,
599,
30,
327,
875,
327,
1681,
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,
12023,
12,
2890,
16,
963,
33,
3672,
4672,
309,
365,
18,
12204,
30,
327,
599,
1681,
33,
81,
22,
18,
21010,
67,
14665,
12,
2890,
18,
21010,
16,
963,
13,
309,
1681,
353,
599,
30,
327,
875,
327,
1681,
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
] |
def handle_expt (self): self.log_info ('unhandled exception', 'warning') def handle_read (self): self.log_info ('unhandled read event', 'warning') def handle_write (self): self.log_info ('unhandled write event', 'warning') def handle_connect (self): self.log_info ('unhandled connect event', 'warning') def handle_accept (self): self.log_info ('unhandled accept event', 'warning') def handle_close (self): self.log_info ('unhandled close event', 'warning')
|
def handle_expt(self): self.log_info('unhandled exception', 'warning') def handle_read(self): self.log_info('unhandled read event', 'warning') def handle_write(self): self.log_info('unhandled write event', 'warning') def handle_connect(self): self.log_info('unhandled connect event', 'warning') def handle_accept(self): self.log_info('unhandled accept event', 'warning') def handle_close(self): self.log_info('unhandled close event', 'warning')
|
def handle_expt (self): self.log_info ('unhandled exception', 'warning')
|
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
338,
337,
261,
2890,
4672,
365,
18,
1330,
67,
1376,
7707,
318,
14387,
1520,
2187,
296,
8551,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1640,
67,
338,
337,
261,
2890,
4672,
365,
18,
1330,
67,
1376,
7707,
318,
14387,
1520,
2187,
296,
8551,
6134,
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
] |
T_mat = block_diag(identity(k),T_mat) R_mat = np.zeros((p+k,1)) R_mat[k] = 1
|
R_mat = np.zeros((p,1)) R_mat[0] = 1
|
def predict(self, n=0): """ If n == 0, returns fitted values.
|
1152f9644ad3a0236670a8ae49236377dd1b6355 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/1152f9644ad3a0236670a8ae49236377dd1b6355/var.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7810,
12,
2890,
16,
290,
33,
20,
4672,
3536,
971,
290,
422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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7810,
12,
2890,
16,
290,
33,
20,
4672,
3536,
971,
290,
422,
374,
16,
1135,
31379,
924,
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,
-100,
-100,
-100,
-100,
-100
] |
return Graph(parent, conj, selected)
|
elif inside: yield Graph(parent, conj, selected) inside = False parent = {} conj = {} selected = set()
|
def _load_graph(gr_file, vocab): parent = {} conj = {} selected = set() for line in open(gr_file): if not (line.startswith('(') and line.endswith(')\n')): raise ValueError(line) label, v_from, v_to = _parse_edge(line[1:-2]) if v_to.rsplit('_')[0] in vocab: selected.add(v_to) if label.startswith('conj'): assert v_to not in conj conj[v_to] = Edge(label, v_from) else: assert v_to not in parent parent[v_to] = Edge(label, v_from) return Graph(parent, conj, selected)
|
27909ed190534c68f3d1d7fe0ee5cc52be9b90c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6480/27909ed190534c68f3d1d7fe0ee5cc52be9b90c8/shortest_path.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
4660,
12,
3197,
67,
768,
16,
9623,
4672,
982,
273,
2618,
10550,
273,
2618,
3170,
273,
444,
1435,
364,
980,
316,
1696,
12,
3197,
67,
768,
4672,
309,
486,
261,
1369,
18,
17514,
1918,
2668,
2668,
13,
471,
980,
18,
5839,
1918,
2668,
5153,
82,
26112,
30,
1002,
2068,
12,
1369,
13,
1433,
16,
331,
67,
2080,
16,
331,
67,
869,
273,
389,
2670,
67,
7126,
12,
1369,
63,
21,
30,
17,
22,
5717,
225,
309,
331,
67,
869,
18,
86,
4939,
2668,
4623,
25146,
20,
65,
316,
9623,
30,
3170,
18,
1289,
12,
90,
67,
869,
13,
225,
309,
1433,
18,
17514,
1918,
2668,
591,
78,
11,
4672,
1815,
331,
67,
869,
486,
316,
10550,
10550,
63,
90,
67,
869,
65,
273,
11342,
12,
1925,
16,
331,
67,
2080,
13,
469,
30,
1815,
331,
67,
869,
486,
316,
982,
982,
63,
90,
67,
869,
65,
273,
11342,
12,
1925,
16,
331,
67,
2080,
13,
225,
1327,
4832,
30,
2824,
5601,
12,
2938,
16,
10550,
16,
3170,
13,
4832,
273,
1083,
982,
273,
2618,
10550,
273,
2618,
3170,
273,
444,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
768,
4672,
309,
486,
261,
1369,
18,
17514,
1918,
2668,
2668,
13,
471,
980,
18,
5839,
1918,
2668,
5153,
82,
26112,
30,
1002,
2068,
12,
1369,
13,
1433,
16,
331,
67,
2080,
16,
331,
67,
869,
273,
389,
2670,
67,
7126,
12,
1369,
63,
21,
30,
17,
22,
5717,
225,
309,
331,
67,
869,
18,
86,
4939,
2668,
4623,
25146,
20,
65,
316,
9623,
30,
3170,
18,
1289,
12,
90,
67,
869,
13,
225,
309,
1433,
18,
17514,
1918,
2668,
591,
78,
11,
4672,
1815,
331,
67,
869,
486,
316,
2
] |
notebook.append_page(vbox, nblabel1)
|
self.infowindow_notebook.append_page(vbox, nblabel1)
|
def on_infowindow_show(self, action=None): if self.infowindow_visible: self.infowindow.present() return self.infowindow = gtk.Window(gtk.WINDOW_TOPLEVEL) self.infowindow.set_title(_('Song Info')) self.infowindow.set_size_request(380, -1) self.infowindow.set_default_size(self.infowindow_w, self.infowindow_h) self.infowindow.move(self.infowindow_x, self.infowindow_y) icon = self.infowindow.render_icon('sonata', gtk.ICON_SIZE_DIALOG) self.infowindow.set_icon(icon) notebook = gtk.Notebook() notebook.set_tab_pos(gtk.POS_TOP) notebook.set_size_request(350, 350) titlehbox = gtk.HBox() titlelabel = gtk.Label() titlelabel.set_markup("<b> " + _("Title") + ":</b>") self.infowindow_titlelabel = gtk.Label("") titlehbox.pack_start(titlelabel, False, False, 2) titlehbox.pack_start(self.infowindow_titlelabel, False, False, 2) artisthbox = gtk.HBox() artistlabel = gtk.Label() artistlabel.set_markup("<b> " + _("Artist") + ":</b>") self.infowindow_artistlabel = gtk.Label("") artisthbox.pack_start(artistlabel, False, False, 2) artisthbox.pack_start(self.infowindow_artistlabel, False, False, 2) albumhbox = gtk.HBox() albumlabel = gtk.Label() albumlabel.set_markup("<b> " + _("Album") + ":</b>") self.infowindow_albumlabel = gtk.Label("") albumhbox.pack_start(albumlabel, False, False, 2) albumhbox.pack_start(self.infowindow_albumlabel, False, False, 2) datehbox = gtk.HBox() datelabel = gtk.Label() datelabel.set_markup("<b> " + _("Date") + ":</b>") self.infowindow_datelabel = gtk.Label("") datehbox.pack_start(datelabel, False, False, 2) datehbox.pack_start(self.infowindow_datelabel, False, False, 2) trackhbox = gtk.HBox() tracklabel = gtk.Label() tracklabel.set_markup("<b> " + _("Track") + ":</b>") self.infowindow_tracklabel = gtk.Label("") trackhbox.pack_start(tracklabel, False, False, 2) trackhbox.pack_start(self.infowindow_tracklabel, False, False, 2) genrehbox = gtk.HBox() genrelabel = gtk.Label() genrelabel.set_markup("<b> " + _("Genre") + ":</b>") self.infowindow_genrelabel = gtk.Label("") genrehbox.pack_start(genrelabel, False, False, 2) genrehbox.pack_start(self.infowindow_genrelabel, False, False, 2) pathhbox = gtk.HBox() pathlabel = gtk.Label() pathlabel.set_markup("<b> " + _("Path") + ":</b>") self.infowindow_pathlabel = gtk.Label("") pathhbox.pack_start(pathlabel, False, False, 2) pathhbox.pack_start(self.infowindow_pathlabel, False, False, 2) filehbox = gtk.HBox() filelabel = gtk.Label() filelabel.set_markup("<b> " + _("File") + ":</b>") self.infowindow_filelabel = gtk.Label("") filehbox.pack_start(filelabel, False, False, 2) filehbox.pack_start(self.infowindow_filelabel, False, False, 2) timehbox = gtk.HBox() timelabel = gtk.Label() timelabel.set_markup("<b> " + _("Time") + ":</b>") self.infowindow_timelabel = gtk.Label("") timehbox.pack_start(timelabel, False, False, 2) timehbox.pack_start(self.infowindow_timelabel, False, False, 2) bitratehbox = gtk.HBox() bitratelabel = gtk.Label() bitratelabel.set_markup("<b> " + _("Bitrate") + ":</b>") self.infowindow_bitratelabel = gtk.Label("") bitratehbox.pack_start(bitratelabel, False, False, 2) bitratehbox.pack_start(self.infowindow_bitratelabel, False, False, 2) labels_left = [titlelabel, artistlabel, albumlabel, datelabel, tracklabel, genrelabel, pathlabel, filelabel, timelabel, bitratelabel] self.set_label_widths_equal(labels_left) for label in labels_left: label.set_alignment(1, 0) labels_right = [self.infowindow_titlelabel, self.infowindow_artistlabel, self.infowindow_albumlabel, self.infowindow_datelabel, self.infowindow_tracklabel, self.infowindow_genrelabel, self.infowindow_pathlabel, self.infowindow_filelabel, self.infowindow_timelabel, self.infowindow_bitratelabel] labelwidth = self.infowindow.get_size_request()[0] - titlelabel.get_size_request()[0] - 80 for label in labels_right: label.set_alignment(0, 0) label.set_line_wrap(True) label.set_selectable(True) hboxes = [titlehbox, artisthbox, albumhbox, datehbox, trackhbox, genrehbox, pathhbox, filehbox, timehbox, bitratehbox] vbox = gtk.VBox() vbox.pack_start(gtk.Label(), False, False, 0) nblabel1 = gtk.Label() nblabel1.set_text_with_mnemonic(_("_Song Info")) for hbox in hboxes: vbox.pack_start(hbox, False, False, 3) if HAVE_TAGPY: # Add Edit button: self.edittag_button = gtk.Button(' ' + _("_Edit...")) self.edittag_button.set_image(gtk.image_new_from_stock(gtk.STOCK_EDIT, gtk.ICON_SIZE_MENU)) self.edittag_button.connect('clicked', self.on_edittag_click) hbox_edittag = gtk.HBox() hbox_edittag.pack_start(self.edittag_button, False, False, 10) hbox_edittag.pack_start(gtk.Label(), True, True, 0) vbox.pack_start(gtk.Label(), True, True, 0) vbox.pack_start(hbox_edittag, False, False, 6) notebook.append_page(vbox, nblabel1) # Add cover art: nblabel2 = gtk.Label() nblabel2.set_text_with_mnemonic(_("_Cover Art")) eventbox = gtk.EventBox() eventbox.drag_dest_set(gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP, [("text/uri-list", 0, 80)], gtk.gdk.ACTION_DEFAULT) self.infowindow_image = gtk.Image() self.infowindow_image.set_alignment(0.5, 0.5) eventbox.connect('button_press_event', self.on_image_activate) eventbox.connect('drag_motion', self.on_image_motion_cb) eventbox.connect('drag_data_received', self.on_image_drop_cb) eventbox.add(self.infowindow_image) notebook.append_page(eventbox, nblabel2) gobject.idle_add(self.infowindow_image.set_from_file, self.sonatacd_large) # Add album info: nblabel3 = gtk.Label() nblabel3.set_text_with_mnemonic(_("_Album Info")) albumScrollWindow = gtk.ScrolledWindow() albumScrollWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.albuminfoBuffer = gtk.TextBuffer() albuminfoView = gtk.TextView(self.albuminfoBuffer) albuminfoView.set_editable(False) albumScrollWindow.add_with_viewport(albuminfoView) notebook.append_page(albumScrollWindow, nblabel3) # Add lyrics: if HAVE_WSDL: nblabel4 = gtk.Label() nblabel4.set_text_with_mnemonic(_("_Lyrics")) scrollWindow = gtk.ScrolledWindow() scrollWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.lyricsBuffer = gtk.TextBuffer() lyricsView = gtk.TextView(self.lyricsBuffer) lyricsView.set_editable(False) lyricsView.set_wrap_mode(gtk.WRAP_WORD) scrollWindow.add_with_viewport(lyricsView) notebook.append_page(scrollWindow, nblabel4) hbox_main = gtk.HBox() hbox_main.pack_start(notebook, True, True, 15) vbox_inner = gtk.VBox() vbox_inner.pack_start(hbox_main, True, True, 10) hbox_close = gtk.HBox() hbox_close.pack_start(gtk.Label(), True, True, 0) closebutton = gtk.Button(gtk.STOCK_CLOSE, gtk.STOCK_CLOSE) closebutton.connect('clicked', self.on_infowindow_hide) hbox_close.pack_start(closebutton, False, False, 15) vbox_inner.pack_start(hbox_close, False, False, 0) vbox_main = gtk.VBox() vbox_main.pack_start(vbox_inner, True, True, 5) self.infowindow.add(vbox_main) self.lastalbumart = "" self.update_album_art() self.infowindow.show_all() self.infowindow_visible = True self.infowindow.connect('delete_event', self.on_infowindow_hide) self.infowindow.connect('key_press_event', self.on_infowindow_keypress) self.infowindow.connect('configure_event', self.on_infowindow_configure, titlelabel, labels_right) if self.infowindow_visible: self.infowindow_update(True, update_all=True)
|
4de42023b08e6b74e9b9cca5478190e10a1c305c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/4de42023b08e6b74e9b9cca5478190e10a1c305c/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
10625,
543,
1700,
67,
4500,
12,
2890,
16,
1301,
33,
7036,
4672,
309,
365,
18,
10625,
543,
1700,
67,
8613,
30,
365,
18,
10625,
543,
1700,
18,
6706,
1435,
327,
365,
18,
10625,
543,
1700,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
10398,
13,
365,
18,
10625,
543,
1700,
18,
542,
67,
2649,
24899,
2668,
55,
932,
3807,
26112,
365,
18,
10625,
543,
1700,
18,
542,
67,
1467,
67,
2293,
12,
23,
3672,
16,
300,
21,
13,
365,
18,
10625,
543,
1700,
18,
542,
67,
1886,
67,
1467,
12,
2890,
18,
10625,
543,
1700,
67,
91,
16,
365,
18,
10625,
543,
1700,
67,
76,
13,
365,
18,
10625,
543,
1700,
18,
8501,
12,
2890,
18,
10625,
543,
1700,
67,
92,
16,
365,
18,
10625,
543,
1700,
67,
93,
13,
4126,
273,
365,
18,
10625,
543,
1700,
18,
5902,
67,
3950,
2668,
18682,
2187,
22718,
18,
21745,
67,
4574,
67,
2565,
18683,
13,
365,
18,
10625,
543,
1700,
18,
542,
67,
3950,
12,
3950,
13,
14718,
273,
22718,
18,
19751,
1435,
14718,
18,
542,
67,
7032,
67,
917,
12,
4521,
79,
18,
7057,
67,
10462,
13,
14718,
18,
542,
67,
1467,
67,
2293,
12,
23,
3361,
16,
890,
3361,
13,
2077,
76,
2147,
273,
22718,
18,
44,
3514,
1435,
268,
305,
80,
292,
873,
273,
22718,
18,
2224,
1435,
268,
305,
80,
292,
873,
18,
542,
67,
15056,
2932,
32,
70,
34,
225,
315,
397,
389,
2932,
4247,
7923,
397,
6398,
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,
603,
67,
10625,
543,
1700,
67,
4500,
12,
2890,
16,
1301,
33,
7036,
4672,
309,
365,
18,
10625,
543,
1700,
67,
8613,
30,
365,
18,
10625,
543,
1700,
18,
6706,
1435,
327,
365,
18,
10625,
543,
1700,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
10398,
13,
365,
18,
10625,
543,
1700,
18,
542,
67,
2649,
24899,
2668,
55,
932,
3807,
26112,
365,
18,
10625,
543,
1700,
18,
542,
67,
1467,
67,
2293,
12,
23,
3672,
16,
300,
21,
13,
365,
18,
10625,
543,
1700,
18,
542,
67,
1886,
67,
1467,
12,
2890,
18,
10625,
543,
1700,
67,
91,
16,
365,
18,
10625,
543,
1700,
67,
76,
13,
365,
18,
10625,
543,
1700,
18,
8501,
2
] |
ctx.set_ciphers("^$:,;?*'dorothyx")
|
ctx.set_ciphers("xyzzy")
|
def test_ciphers(self): ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) ctx.set_ciphers("ALL") ctx.set_ciphers("DEFAULT") with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"): ctx.set_ciphers("^$:,;?*'dorothyx")
|
61981bdbc7b3ec1df357facc1805f3f1be4f863b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/61981bdbc7b3ec1df357facc1805f3f1be4f863b/test_ssl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3449,
76,
414,
12,
2890,
4672,
1103,
273,
5832,
18,
6745,
1042,
12,
8157,
18,
16850,
67,
9905,
90,
21,
13,
1103,
18,
542,
67,
3449,
76,
414,
2932,
4685,
7923,
1103,
18,
542,
67,
3449,
76,
414,
2932,
5280,
7923,
598,
365,
18,
11231,
12649,
6141,
14621,
12,
8157,
18,
6745,
668,
16,
315,
2279,
5867,
848,
506,
3170,
6,
4672,
1103,
18,
542,
67,
3449,
76,
414,
2932,
66,
8,
30,
16,
31,
35,
4035,
72,
280,
10370,
93,
92,
7923,
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,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,
598,
365,
18,
11231,
12649,
6141,
14621,
12,
8157,
18,
6745,
668,
16,
315,
2279,
5867,
848,
506,
3170,
6,
4672,
1103,
18,
542,
67,
3449,
76,
414,
2932,
66,
8,
30,
16,
31,
35,
4035,
72,
280,
10370,
93,
92,
7923,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.