rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
continue
def __addImplicitDependenciesWindows(self): """ Walks through the list of files, looking for dll's and exe's that might include implicit dependencies on other dll's and assembly manifests. Tries to determine those dependencies, and adds them back into the filelist. """
a5303df87a036f0b20960f8124db8cc7983ff683 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/a5303df87a036f0b20960f8124db8cc7983ff683/Packager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 15787, 8053, 10399, 12, 2890, 4672, 3536, 7564, 87, 3059, 326, 666, 434, 1390, 16, 7849, 364, 302, 2906, 1807, 471, 15073, 1807, 716, 4825, 2341, 10592, 5030, 603, 1308, 302, 2906, 1807, 471, 19931, 29700, 18, 225, 10000, 281, 358, 4199, 5348, 5030, 16, 471, 4831, 2182, 1473, 1368, 326, 26204, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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281, 358, 4199, 5348, 5030, 16, 471, 4831, 2182, 1473, 1368, 326, 26204, 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 ]
results[jobID] = result['OK']['Value']
results[jobID] = result['Value']
def export_getJobsFilesStatus(self,jobIDs): """Allows to retrieve the job file status. """ try: results = {} for jobID in jobIDs: result = stagerDB.getJobFilesStatus(jobID) if result['OK']: results[jobID] = result['OK']['Value'] return S_OK(results) except Exception,x: errorStr = "StagerDBHandler.getJobFilesStatus failed"+str(x) print errorStr return S_ERROR(errorStr)
78a4d52b041e101da1c751972f5926f2ce9ca800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/78a4d52b041e101da1c751972f5926f2ce9ca800/StagerHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 7276, 2697, 1482, 12, 2890, 16, 4688, 5103, 4672, 3536, 19132, 358, 4614, 326, 1719, 585, 1267, 18, 3536, 775, 30, 1686, 273, 2618, 364, 28913, 316, 1719, 5103, 30, 563, 273, 384, 6817, 2290, 18, 588, 2278, 2697, 1482, 12, 4688, 734, 13, 309, 563, 3292, 3141, 3546, 30, 1686, 63, 4688, 734, 65, 273, 563, 3292, 620, 3546, 327, 348, 67, 3141, 12, 4717, 13, 1335, 1185, 16, 92, 30, 555, 1585, 273, 315, 510, 6817, 2290, 1503, 18, 588, 2278, 2697, 1482, 2535, 6, 15, 701, 12, 92, 13, 1172, 555, 1585, 327, 348, 67, 3589, 12, 1636, 1585, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 7276, 2697, 1482, 12, 2890, 16, 4688, 5103, 4672, 3536, 19132, 358, 4614, 326, 1719, 585, 1267, 18, 3536, 775, 30, 1686, 273, 2618, 364, 28913, 316, 1719, 5103, 30, 563, 273, 384, 6817, 2290, 18, 588, 2278, 2697, 1482, 12, 4688, 734, 13, 309, 563, 3292, 3141, 3546, 30, 1686, 63, 4688, 734, 65, 273, 563, 3292, 620, 3546, 327, 348, 67, 3141, 12, 4717, 13, 1335, 1185, 16, 92, 30, 555, 1585, 273, 315, 510, 6817, 2290, 1503, 18, 588, 2278, 2697, 1482, 2535, 6, 15, 701, 12, 92, 13, 1172, 555, 1585, 327, 348, 67, 3589, 12, 1636, 1585, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
text = ( "Working Hard...", "Hardly Working..." ,
text = ( "Working Hard...", "Hardly Working..." ,
def test(): import time, sys Message("Testing EasyDialogs.") optionlist = (('v', 'Verbose'), ('verbose', 'Verbose as long option'), ('flags=', 'Valued option'), ('f:', 'Short valued option')) commandlist = (('start', 'Start something'), ('stop', 'Stop something')) argv = GetArgv(optionlist=optionlist, commandlist=commandlist, addoldfile=0) for i in range(len(argv)): print 'arg[%d] = %s'%(i, `argv[i]`) print 'Type return to continue - ', sys.stdin.readline() ok = AskYesNoCancel("Do you want to proceed?") ok = AskYesNoCancel("Do you want to identify?", yes="Identify", no="No") if ok > 0: s = AskString("Enter your first name", "Joe") s2 = AskPassword("Okay %s, tell us your nickname"%s, s, cancel="None") if not s2: Message("%s has no secret nickname"%s) else: Message("Hello everybody!!\nThe secret nickname of %s is %s!!!"%(s, s2)) text = ( "Working Hard...", "Hardly Working..." , "So far, so good!", "Keep on truckin'" ) bar = ProgressBar("Progress, progress...", 100) try: appsw = MacOS.SchedParams(1, 0) for i in range(100): bar.set(i) time.sleep(0.1) if i % 10 == 0: bar.label(text[(i/10) % 4]) bar.label("Done.") time.sleep(0.3) # give'em a chance to see the done. finally: del bar apply(MacOS.SchedParams, appsw)
b48dea14d8bf7cc4ae844d70574494af7a698ddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b48dea14d8bf7cc4ae844d70574494af7a698ddb/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 813, 16, 2589, 225, 2350, 2932, 22218, 29442, 11885, 14072, 1199, 13, 1456, 1098, 273, 261, 2668, 90, 2187, 296, 14489, 19899, 7707, 11369, 2187, 296, 14489, 487, 1525, 1456, 19899, 7707, 7133, 33, 2187, 296, 27558, 1456, 19899, 7707, 74, 30, 2187, 296, 4897, 31037, 1456, 26112, 1296, 1098, 273, 261, 2668, 1937, 2187, 296, 1685, 5943, 19899, 7707, 5681, 2187, 296, 4947, 5943, 26112, 5261, 273, 968, 4117, 90, 12, 3482, 1098, 33, 3482, 1098, 16, 1296, 1098, 33, 3076, 1098, 16, 527, 1673, 768, 33, 20, 13, 364, 277, 316, 1048, 12, 1897, 12, 19485, 3719, 30, 1172, 296, 3175, 14451, 72, 65, 273, 738, 87, 11, 17105, 77, 16, 1375, 19485, 63, 77, 65, 24065, 1172, 296, 559, 327, 358, 1324, 300, 2265, 2589, 18, 21772, 18, 896, 1369, 1435, 1529, 273, 25747, 22352, 2279, 6691, 2932, 3244, 1846, 2545, 358, 11247, 7225, 13, 1529, 273, 25747, 22352, 2279, 6691, 2932, 3244, 1846, 2545, 358, 9786, 35, 3113, 12465, 1546, 25787, 3113, 1158, 1546, 2279, 7923, 309, 1529, 405, 374, 30, 272, 273, 25747, 780, 2932, 10237, 3433, 1122, 508, 3113, 315, 46, 15548, 7923, 272, 22, 273, 25747, 3913, 2932, 8809, 528, 738, 87, 16, 9276, 584, 3433, 19570, 28385, 87, 16, 272, 16, 3755, 1546, 7036, 7923, 309, 486, 272, 22, 30, 2350, 27188, 87, 711, 1158, 4001, 19570, 28385, 87, 13, 469, 30, 2350, 2932, 18601, 3614, 3432, 8548, 64, 82, 1986, 4001, 19570, 434, 738, 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, 13332, 1930, 813, 16, 2589, 225, 2350, 2932, 22218, 29442, 11885, 14072, 1199, 13, 1456, 1098, 273, 261, 2668, 90, 2187, 296, 14489, 19899, 7707, 11369, 2187, 296, 14489, 487, 1525, 1456, 19899, 7707, 7133, 33, 2187, 296, 27558, 1456, 19899, 7707, 74, 30, 2187, 296, 4897, 31037, 1456, 26112, 1296, 1098, 273, 261, 2668, 1937, 2187, 296, 1685, 5943, 19899, 7707, 5681, 2187, 296, 4947, 5943, 26112, 5261, 273, 968, 4117, 90, 12, 3482, 1098, 33, 3482, 1098, 16, 1296, 1098, 33, 3076, 1098, 16, 527, 1673, 768, 33, 20, 13, 364, 277, 316, 1048, 12, 1897, 12, 19485, 3719, 30, 1172, 296, 3175, 14451, 72, 65, 273, 738, 87, 11, 17105, 77, 16, 1375, 19485, 2 ]
if 0: return copy.deepcopy(self) clone = self.__class__() clone.length = self.length clone.count = [] + self.count[:] clone.input = "" + self.input clone.S = self.S return clone
import copy return copy.deepcopy(self)
def copy(self): """Return a clone object.
16a238fb526e3ab0e06c5a5e47f4465c6bb0d058 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/16a238fb526e3ab0e06c5a5e47f4465c6bb0d058/pyradiogatun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 990, 279, 3236, 733, 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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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, 3536, 990, 279, 3236, 733, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
rational number times the square root of a rational number (if prec=None), or real number if a precision is given
Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given.
def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES: A couple of examples and test cases, note that for speed reasons a precision is given:: sage: wigner_9j(1,1,1, 1,1,1, 1,1,0 ,prec=64) # ==1/18 0.0555555555555555555 sage: wigner_9j(1,1,1, 1,1,1, 1,1,1) 0 sage: wigner_9j(1,1,1, 1,1,1, 1,1,2 ,prec=64) # ==1/18 0.0555555555555555556 sage: wigner_9j(1,2,1, 2,2,2, 1,2,1 ,prec=64) # ==-1/150 -0.00666666666666666667 sage: wigner_9j(3,3,2, 2,2,2, 3,3,2 ,prec=64) # ==157/14700 0.0106802721088435374 sage: wigner_9j(3,3,2, 3,3,2, 3,3,2 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.00944247746651111739 sage: wigner_9j(3,3,1, 3.5,3.5,2, 3.5,3.5,1 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.0110216678544351364 sage: wigner_9j(100,80,50, 50,100,70, 60,50,100 ,prec=1000)*1.0 1.05597798065761e-7 sage: wigner_9j(30,30,10, 30.5,30.5,20, 30.5,30.5,10 ,prec=1000)*1.0 # ==(80944680186359968990/95103769817469)*sqrt(1/682288158959699477295) 0.0000325841699408828 sage: wigner_9j(64,62.5,114.5, 61.5,61,112.5, 113.5,110.5,60, prec=1000)*1.0 -3.41407910055520e-39 sage: wigner_9j(15,15,15, 15,3,15, 15,18,10, prec=1000)*1.0 -0.0000778324615309539 sage: wigner_9j(1.5,1,1.5, 1,1,1, 1.5,1,1.5) 0 It is an error to have arguments that are not integer or half integer values or do not fulfil the triangle relation:: sage: wigner_9j(0.5,0.5,0.5, 0.5,0.5,0.5, 0.5,0.5,0.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation sage: wigner_9j(1,1,1, 0.5,1,1.5, 0.5,1,2.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) """ imin = 0 imax = min(j_1 + j_9, j_2 + j_6, j_4 + j_8) sumres = 0 for kk in range(imin, imax + 1): sumres = sumres + (2 * kk + 1) * \ racah(j_1, j_2, j_9, j_6, j_3, kk, prec) * \ racah(j_4, j_6, j_8, j_2, j_5, kk, prec) * \ racah(j_1, j_4, j_9, j_8, j_7, kk, prec) return sumres
2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 29, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 525, 67, 27, 16, 525, 67, 28, 16, 525, 67, 29, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 678, 724, 264, 2468, 78, 3273, 1375, 59, 724, 264, 29, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 78, 67, 24, 16, 78, 67, 25, 16, 78, 67, 26, 16, 78, 67, 27, 16, 78, 67, 28, 16, 78, 67, 29, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 1372, 16, 12176, 78, 67, 29, 10335, 300, 3571, 578, 8816, 3571, 225, 300, 225, 12176, 4036, 10335, 300, 6039, 16, 805, 30, 599, 18, 1186, 1246, 310, 279, 6039, 848, 302, 354, 334, 6478, 8632, 731, 326, 11096, 18, 225, 11550, 30, 225, 534, 8371, 1300, 4124, 326, 8576, 1365, 434, 279, 436, 8371, 1300, 261, 430, 12176, 4036, 33, 7036, 10335, 3631, 578, 2863, 1300, 309, 279, 6039, 353, 864, 18, 225, 5675, 8900, 11386, 30, 225, 432, 1825, 2268, 434, 10991, 471, 1842, 6088, 16, 4721, 716, 364, 8632, 14000, 279, 6039, 353, 864, 2866, 225, 272, 410, 30, 341, 724, 264, 67, 29, 78, 12, 21, 16, 21, 16, 21, 16, 404, 16, 21, 16, 21, 16, 404, 16, 21, 16, 20, 269, 4036, 33, 1105, 13, 468, 422, 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, 341, 724, 264, 67, 29, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 525, 67, 27, 16, 525, 67, 28, 16, 525, 67, 29, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 678, 724, 264, 2468, 78, 3273, 1375, 59, 724, 264, 29, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 78, 67, 24, 16, 78, 67, 25, 16, 78, 67, 26, 16, 78, 67, 27, 16, 78, 67, 28, 16, 78, 67, 29, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 1372, 16, 12176, 78, 67, 2 ]
cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd))
cr.execute('select count(1) from res_users where id=%s and password=%s and active=%s', (int(uid), passwd, True))
def check(db, uid, passwd): if _uid_cache.get(db, {}).get(uid) == passwd: return True cr = pooler.get_db(db).cursor() if passwd: cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) else: cr.execute('select count(*) from res_users where id=%s and password is null', (int(uid),)) res = cr.fetchone()[0] cr.close() if not bool(res): raise Exception('AccessDenied') if res: if _uid_cache.has_key(db): ulist = _uid_cache[db] ulist[uid] = passwd else: _uid_cache[db] = {uid:passwd} return bool(res)
5fb0001f2968663d3b4c29842c285c3ba8164ca5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5fb0001f2968663d3b4c29842c285c3ba8164ca5/security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 1966, 16, 4555, 16, 19093, 4672, 309, 389, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, 13, 422, 19093, 30, 327, 1053, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 309, 19093, 30, 4422, 18, 8837, 2668, 4025, 1056, 12, 21, 13, 628, 400, 67, 5577, 1625, 612, 5095, 87, 471, 2201, 5095, 87, 471, 2695, 5095, 87, 2187, 261, 474, 12, 1911, 3631, 19093, 16, 1053, 3719, 469, 30, 4422, 18, 8837, 2668, 4025, 1056, 24099, 628, 400, 67, 5577, 1625, 612, 5095, 87, 471, 2201, 353, 446, 2187, 261, 474, 12, 1911, 3631, 3719, 400, 273, 4422, 18, 5754, 476, 1435, 63, 20, 65, 4422, 18, 4412, 1435, 309, 486, 1426, 12, 455, 4672, 1002, 1185, 2668, 1862, 10410, 6134, 309, 400, 30, 309, 389, 1911, 67, 2493, 18, 5332, 67, 856, 12, 1966, 4672, 7493, 376, 273, 389, 1911, 67, 2493, 63, 1966, 65, 7493, 376, 63, 1911, 65, 273, 19093, 469, 30, 389, 1911, 67, 2493, 63, 1966, 65, 273, 288, 1911, 30, 24002, 97, 327, 1426, 12, 455, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 1966, 16, 4555, 16, 19093, 4672, 309, 389, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, 13, 422, 19093, 30, 327, 1053, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 309, 19093, 30, 4422, 18, 8837, 2668, 4025, 1056, 12, 21, 13, 628, 400, 67, 5577, 1625, 612, 5095, 87, 471, 2201, 5095, 87, 471, 2695, 5095, 87, 2187, 261, 474, 12, 1911, 3631, 19093, 16, 1053, 3719, 469, 30, 4422, 18, 8837, 2668, 4025, 1056, 24099, 628, 400, 67, 5577, 1625, 612, 5095, 87, 471, 2201, 353, 446, 2187, 261, 474, 12, 1911, 3631, 3719, 400, 273, 4422, 18, 5754, 476, 1435, 63, 20, 65, 2 ]
self.send_error(501, "Unsupported method (%s)" % `command`)
self.send_error(501, "Unsupported method (%s)" % `self.command`)
def handle(self): """Handle a single HTTP request.
36007764b971a8256164992682c76a0728c992ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/36007764b971a8256164992682c76a0728c992ec/BaseHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 3259, 279, 2202, 2239, 590, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 3259, 279, 2202, 2239, 590, 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, -100, -100, -100, -100, -100, -100, -100 ]
if existingNotesData == None: existingNotesData = "" formatData = "" else: formatData = "\r\n" if newNotesData != 'None': newData = "%s %s [%s] %s" % (existingNotesData, formatData, formatName, newNotesData) else: newData = existingNotesData return newData
if existingNotesData == None: existingNotesData = "" formatData = "" else: formatData = "\r\n" if newNotesData != 'None': newData = "%s %s [%s] %s" % (existingNotesData, formatData, formatName, newNotesData) else: newData = existingNotesData return newData
def formatNotesField(self, existingNotesData, formatName, newNotesData):
47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 18063, 974, 12, 2890, 16, 2062, 18063, 751, 16, 740, 461, 16, 394, 18063, 751, 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 ]
del self.dirty_objs[obj]
self.dirty_objs.remove(obj)
def _release_lock(self, obj): """Release the lock on a given object. Raise RepositoryError Raise RegistryAccessError Raise ObjectNotInRegistryError""" if not self._started: raise RegistryAccessError("Cannot manipulate locks of a disconnected repository!") logger.debug("_release_lock(%s)" % obj) self._lock.acquire() try: if obj._registry_locked: id = self.find(obj) if obj in self.dirty_objs: self.repository.flush([id]) del self.dirty_objs[obj] obj._registry_locked = False self.repository.unlock([id]) finally: self._lock.release()
f16329d1313b97938adc63a1f7bdac4df20ba0d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/f16329d1313b97938adc63a1f7bdac4df20ba0d2/Registry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9340, 67, 739, 12, 2890, 16, 1081, 4672, 3536, 7391, 326, 2176, 603, 279, 864, 733, 18, 20539, 6281, 668, 20539, 5438, 1862, 668, 20539, 1033, 21855, 4243, 668, 8395, 309, 486, 365, 6315, 14561, 30, 1002, 5438, 1862, 668, 2932, 4515, 28286, 13046, 434, 279, 17853, 3352, 4442, 13, 1194, 18, 4148, 2932, 67, 9340, 67, 739, 9275, 87, 2225, 738, 1081, 13, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 1081, 6315, 9893, 67, 15091, 30, 612, 273, 365, 18, 4720, 12, 2603, 13, 309, 1081, 316, 365, 18, 18013, 67, 18093, 30, 365, 18, 9071, 18, 11330, 3816, 350, 5717, 365, 18, 18013, 67, 18093, 18, 4479, 12, 2603, 13, 1081, 6315, 9893, 67, 15091, 273, 1083, 365, 18, 9071, 18, 26226, 3816, 350, 5717, 3095, 30, 365, 6315, 739, 18, 9340, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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561, 30, 1002, 5438, 1862, 668, 2932, 4515, 28286, 13046, 434, 279, 17853, 3352, 4442, 13, 1194, 18, 4148, 2932, 67, 9340, 67, 739, 9275, 87, 2225, 738, 1081, 13, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 1081, 6315, 9893, 67, 15091, 30, 612, 273, 365, 18, 4720, 12, 2603, 13, 309, 1081, 316, 365, 18, 18013, 67, 18093, 30, 365, 18, 9071, 18, 11330, 3816, 350, 5717, 365, 18, 18013, 67, 18093, 18, 4479, 12, 2603, 13, 1081, 6315, 2 ]
self.commandprefix = options.get('commandprefix', 'C')
self.commandprefix = options.get('commandprefix', 'PY')
def __init__(self, **options): Formatter.__init__(self, **options) self.docclass = options.get('docclass', 'article') self.preamble = options.get('preamble', '') self.linenos = get_bool_opt(options, 'linenos', False) self.linenostart = abs(get_int_opt(options, 'linenostart', 1)) self.linenostep = abs(get_int_opt(options, 'linenostep', 1)) self.verboptions = options.get('verboptions', '') self.nobackground = get_bool_opt(options, 'nobackground', False) self.commandprefix = options.get('commandprefix', 'C')
c1ff3dec7399c0b88356f268039128c6a6e8dc7a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/c1ff3dec7399c0b88356f268039128c6a6e8dc7a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 2116, 4672, 14924, 16186, 2738, 972, 12, 2890, 16, 2826, 2116, 13, 365, 18, 2434, 1106, 273, 702, 18, 588, 2668, 2434, 1106, 2187, 296, 11480, 6134, 365, 18, 84, 793, 7119, 273, 702, 18, 588, 2668, 84, 793, 7119, 2187, 28707, 365, 18, 7511, 275, 538, 273, 336, 67, 6430, 67, 3838, 12, 2116, 16, 296, 7511, 275, 538, 2187, 1083, 13, 365, 18, 7511, 275, 669, 485, 273, 2417, 12, 588, 67, 474, 67, 3838, 12, 2116, 16, 296, 7511, 275, 669, 485, 2187, 404, 3719, 365, 18, 7511, 275, 669, 881, 273, 2417, 12, 588, 67, 474, 67, 3838, 12, 2116, 16, 296, 7511, 275, 669, 881, 2187, 404, 3719, 365, 18, 502, 1075, 573, 273, 702, 18, 588, 2668, 502, 1075, 573, 2187, 28707, 365, 18, 2135, 9342, 273, 336, 67, 6430, 67, 3838, 12, 2116, 16, 296, 2135, 9342, 2187, 1083, 13, 365, 18, 3076, 3239, 273, 702, 18, 588, 2668, 3076, 3239, 2187, 296, 39, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2826, 2116, 4672, 14924, 16186, 2738, 972, 12, 2890, 16, 2826, 2116, 13, 365, 18, 2434, 1106, 273, 702, 18, 588, 2668, 2434, 1106, 2187, 296, 11480, 6134, 365, 18, 84, 793, 7119, 273, 702, 18, 588, 2668, 84, 793, 7119, 2187, 28707, 365, 18, 7511, 275, 538, 273, 336, 67, 6430, 67, 3838, 12, 2116, 16, 296, 7511, 275, 538, 2187, 1083, 13, 365, 18, 7511, 275, 669, 485, 273, 2417, 12, 588, 67, 474, 67, 3838, 12, 2116, 16, 296, 7511, 275, 669, 485, 2187, 404, 3719, 365, 18, 7511, 275, 669, 881, 273, 2417, 12, 588, 67, 474, 67, 3838, 12, 2116, 16, 296, 7511, 275, 669, 881, 2187, 2 ]
s.bind(hostname, PORT)
s.bind((hostname, PORT))
def missing_ok(str): try: getattr(socket, str) except AttributeError: pass
13a283be5c58ba951f45eb5962000d76c265598f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/13a283be5c58ba951f45eb5962000d76c265598f/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 601, 12, 701, 4672, 775, 30, 3869, 12, 7814, 16, 609, 13, 1335, 6394, 30, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 601, 12, 701, 4672, 775, 30, 3869, 12, 7814, 16, 609, 13, 1335, 6394, 30, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
left = '...' + self.token.contents[self.charnum-RANGE:self.charnum]
left = '...'+self.token.contents[self.charnum-RANGE:self.charnum]
def _repr(self, typ): RANGE = 20 if self.charnum <= RANGE: left = self.token.contents[0:self.charnum] else: left = '...' + self.token.contents[self.charnum-RANGE:self.charnum] if (len(self.token.contents)-self.charnum) <= RANGE: right = self.token.contents[self.charnum:] else: right = (self.token.contents[self.charnum:self.charnum+RANGE] + '...') str = '%5s: %s: ' % ('L'+`self.linenum`, typ) str += wordwrap(self.descr, 7, startindex=len(str)) return (str + '\n %s%s\n %s^' % (left, right, ' '*len(left)))
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 12, 2890, 16, 3815, 4672, 534, 8357, 273, 4200, 309, 365, 18, 343, 1303, 379, 1648, 534, 8357, 30, 2002, 273, 365, 18, 2316, 18, 3980, 63, 20, 30, 2890, 18, 343, 1303, 379, 65, 469, 30, 2002, 273, 20243, 15, 2890, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 17, 15928, 30, 2890, 18, 343, 1303, 379, 65, 309, 261, 1897, 12, 2890, 18, 2316, 18, 3980, 24950, 2890, 18, 343, 1303, 379, 13, 1648, 534, 8357, 30, 2145, 273, 365, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 26894, 469, 30, 2145, 273, 261, 2890, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 30, 2890, 18, 343, 1303, 379, 15, 15928, 65, 397, 20243, 13, 225, 609, 273, 1995, 25, 87, 30, 738, 87, 30, 296, 738, 7707, 48, 11, 15, 68, 2890, 18, 7511, 7924, 9191, 3815, 13, 609, 1011, 2076, 4113, 12, 2890, 18, 28313, 16, 2371, 16, 787, 1615, 33, 1897, 12, 701, 3719, 327, 261, 701, 397, 2337, 82, 4202, 738, 87, 9, 87, 64, 82, 4202, 738, 87, 66, 11, 738, 261, 4482, 16, 2145, 16, 296, 14609, 1897, 12, 4482, 20349, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 12, 2890, 16, 3815, 4672, 534, 8357, 273, 4200, 309, 365, 18, 343, 1303, 379, 1648, 534, 8357, 30, 2002, 273, 365, 18, 2316, 18, 3980, 63, 20, 30, 2890, 18, 343, 1303, 379, 65, 469, 30, 2002, 273, 20243, 15, 2890, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 17, 15928, 30, 2890, 18, 343, 1303, 379, 65, 309, 261, 1897, 12, 2890, 18, 2316, 18, 3980, 24950, 2890, 18, 343, 1303, 379, 13, 1648, 534, 8357, 30, 2145, 273, 365, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 26894, 469, 30, 2145, 273, 261, 2890, 18, 2316, 18, 3980, 63, 2890, 18, 343, 1303, 379, 30, 2890, 18, 343, 1303, 2 ]
prob = course.distance*(6.0-game.warpfac)**2/66.666666666
prob = wcourse.distance*(6.0-game.warpfac)**2/66.666666666
def warp(course, involuntary): "ove under warp drive." blooey = False; twarp = False if not involuntary: # Not WARPX entry game.ididit = False if game.damage[DWARPEN] > 10.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"The warp engines are damaged, Sir.\"")) return if damaged(DWARPEN) and game.warpfac > 4.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"Sorry, Captain. Until this damage")) prout(_(" is repaired, I can only give you warp 4.\"")) return # Read in course and distance if course==None: try: course = getcourse(isprobe=False) except TrekError: return # Make sure starship has enough energy for the trip # Note: this formula is slightly different from the C version, # and lets you skate a bit closer to the edge. if course.power(game.warpfac) >= game.energy: # Insufficient power for trip game.ididit = False skip(1) prout(_("Engineering to bridge--")) if not game.shldup or 0.5*course.power(game.warpfac) > game.energy: iwarp = (game.energy/(course.dist+0.05)) ** 0.333333333 if iwarp <= 0: prout(_("We can't do it, Captain. We don't have enough energy.")) else: proutn(_("We don't have enough energy, but we could do it at warp %d") % iwarp) if game.shldup: prout(",") prout(_("if you'll lower the shields.")) else: prout(".") else: prout(_("We haven't the energy to go that far with the shields up.")) return # Make sure enough time is left for the trip game.optime = course.time(game.warpfac) if game.optime >= 0.8*game.state.remtime: skip(1) prout(_("First Officer Spock- \"Captain, I compute that such")) proutn(_(" a trip would require approximately %2.0f") % (100.0*game.optime/game.state.remtime)) prout(_(" percent of our")) proutn(_(" remaining time. Are you sure this is wise?\" ")) if not ja(): game.ididit = False game.optime=0 return # Entry WARPX if game.warpfac > 6.0: # Decide if engine damage will occur # ESR: Seems wrong. Probability of damage goes *down* with distance? prob = course.distance*(6.0-game.warpfac)**2/66.666666666 if prob > randreal(): blooey = True course.distance = randreal(course.distance) # Decide if time warp will occur if 0.5*course.distance*math.pow(7.0,game.warpfac-10.0) > randreal(): twarp = True if game.idebug and game.warpfac==10 and not twarp: blooey = False proutn("=== Force time warp? ") if ja(): twarp = True if blooey or twarp: # If time warp or engine damage, check path # If it is obstructed, don't do warp or damage for m_unused in range(course.moves): course.next() w = course.sector() if not w.valid_sector(): break if game.quad[w.i][w.j] != '.': blooey = False twarp = False course.reset() # Activate Warp Engines and pay the cost imove(course, noattack=False) if game.alldone: return game.energy -= course.power(game.warpfac) if game.energy <= 0: finish(FNRG) game.optime = course.time(game.warpfac) if twarp: timwrp() if blooey: game.damage[DWARPEN] = game.damfac * randreal(1.0, 4.0) skip(1) prout(_("Engineering to bridge--")) prout(_(" Scott here. The warp engines are damaged.")) prout(_(" We'll have to reduce speed to warp 4.")) game.ididit = True return
b8ffe91a83c83c29cc1a574e3fc2d857d582df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b8ffe91a83c83c29cc1a574e3fc2d857d582df33/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 11441, 12, 5566, 16, 29876, 10032, 814, 4672, 315, 841, 3613, 341, 11441, 14316, 1199, 324, 383, 83, 402, 273, 1083, 31, 268, 905, 84, 273, 1083, 309, 486, 29876, 10032, 814, 30, 468, 2288, 678, 985, 52, 60, 1241, 7920, 18, 350, 350, 305, 273, 1083, 309, 7920, 18, 72, 301, 410, 63, 40, 16777, 52, 1157, 65, 405, 1728, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 1986, 341, 11441, 20504, 854, 302, 301, 11349, 16, 348, 481, 18, 8530, 3719, 327, 309, 302, 301, 11349, 12, 40, 16777, 52, 1157, 13, 471, 7920, 18, 905, 84, 11639, 405, 1059, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 28898, 16, 385, 1657, 530, 18, 30608, 333, 302, 301, 410, 6, 3719, 450, 322, 24899, 2932, 225, 353, 2071, 69, 2921, 16, 467, 848, 1338, 8492, 1846, 341, 11441, 1059, 18, 8530, 3719, 327, 468, 2720, 316, 4362, 471, 3888, 309, 4362, 631, 7036, 30, 775, 30, 4362, 273, 336, 5566, 12, 291, 27230, 33, 8381, 13, 1335, 399, 266, 79, 668, 30, 327, 468, 4344, 3071, 384, 976, 625, 711, 7304, 12929, 364, 326, 20654, 468, 3609, 30, 333, 8013, 353, 21980, 3775, 628, 326, 385, 1177, 16, 468, 471, 14557, 1846, 4343, 340, 279, 2831, 13306, 358, 326, 3591, 18, 309, 4362, 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, 341, 11441, 12, 5566, 16, 29876, 10032, 814, 4672, 315, 841, 3613, 341, 11441, 14316, 1199, 324, 383, 83, 402, 273, 1083, 31, 268, 905, 84, 273, 1083, 309, 486, 29876, 10032, 814, 30, 468, 2288, 678, 985, 52, 60, 1241, 7920, 18, 350, 350, 305, 273, 1083, 309, 7920, 18, 72, 301, 410, 63, 40, 16777, 52, 1157, 65, 405, 1728, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 1986, 341, 11441, 20504, 854, 302, 301, 11349, 16, 348, 481, 18, 8530, 3719, 327, 309, 302, 301, 11349, 12, 40, 16777, 52, 1157, 13, 471, 7920, 18, 905, 84, 11639, 405, 1059, 2 ]
context.transform(invmatrix)
context.transform(invmatrix)
def drawPieces(self, context, r): pieces = self.model.getBoardAtPly(self.shown) xc, yc, square, s = self.square CORD_PADDING = 1.5 parseC = lambda c: (c.red/65535., c.green/65535., c.blue/65535.) fgN = parseC(self.get_style().fg[gtk.STATE_NORMAL]) fgS = fgN fgA = parseC(self.get_style().fg[gtk.STATE_ACTIVE]) fgP = parseC(self.get_style().fg[gtk.STATE_PRELIGHT]) # As default we use normal foreground for selected cords, as it looks # less confusing. However for some themes, the normal foreground is so # similar to the selected background, that we have to use the selected # foreground. bgSl = parseC(self.get_style().bg[gtk.STATE_SELECTED]) bgSd = parseC(self.get_style().dark[gtk.STATE_SELECTED]) if min((fgN[0]-bgSl[0])**2+(fgN[1]-bgSl[1])**2+(fgN[2]-bgSl[2])**2, (fgN[0]-bgSd[0])**2+(fgN[1]-bgSd[1])**2+(fgN[2]-bgSd[2])**2) < 0.2: fgS = parseC(self.get_style().fg[gtk.STATE_SELECTED]) # Draw dying pieces (Found in self.deadlist) for piece, x, y in self.deadlist: matrix, invmatrix, cx, cy = self.getCordMatrices(x, y) context.transform(invmatrix) context.set_source_rgba(fgN[0],fgN[1],fgN[2],piece.opacity) drawPiece( piece, context, cx+CORD_PADDING, cy+CORD_PADDING, s-CORD_PADDING*2) context.transform(matrix) # Draw pieces reincarnating (With opacity < 1) for y, row in enumerate(pieces.data): for x, piece in enumerate(row): if not piece or piece.opacity == 1: continue if piece.x: cx, cy = self.cord2Point(piece.x, piece.y) matrix, invmatrix = matrixAround(self.matrix, cx+s/2., cy+s/2.) else: matrix, invmatrix, cx, cy = self.getCordMatrices(x, y) context.transform(invmatrix) context.set_source_rgba(fgN[0],fgN[1],fgN[2],piece.opacity) drawPiece( piece, context, cx+CORD_PADDING, cy+CORD_PADDING, s-CORD_PADDING*2) context.transform(matrix) # Draw standing pieces (Only those who intersect drawn area) for y, row in enumerate(pieces.data): for x, piece in enumerate(row): if not piece or piece.x != None or piece.opacity < 1: continue if not intersects(rect(self.cord2RectRelative(x,y)), r): continue matrix, invmatrix, cx, cy = self.getCordMatrices(x, y) context.transform(invmatrix) if Cord(x,y) == self.selected: context.set_source_rgb(*fgS) elif Cord(x,y) == self.active: context.set_source_rgb(*fgA) elif Cord(x,y) == self.hover: context.set_source_rgb(*fgP) else: context.set_source_rgb(*fgN) drawPiece( piece, context, cx+CORD_PADDING, cy+CORD_PADDING, s-CORD_PADDING*2) context.transform(matrix) context.set_source_rgb(*fgP) # Draw moving or dragged pieces (Those with piece.x and piece.y != None) for y, row in enumerate(pieces.data): for x, piece in enumerate(row): if not piece or piece.x == None or piece.opacity < 1: continue cx, cy = self.cord2Point(piece.x, piece.y) matrix, invmatrix = matrixAround(self.matrix, cx+s/2., cy+s/2.) context.transform(invmatrix) drawPiece( piece, context, cx+CORD_PADDING, cy+CORD_PADDING, s-CORD_PADDING*2) context.transform(matrix)
4670a3389179adf0cc6e6cf1b20040725c8eecf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/4670a3389179adf0cc6e6cf1b20040725c8eecf9/BoardView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 16539, 8610, 12, 2890, 16, 819, 16, 436, 4672, 10167, 273, 365, 18, 2284, 18, 588, 22233, 861, 52, 715, 12, 2890, 18, 674, 995, 13, 15192, 16, 27495, 16, 8576, 16, 272, 273, 365, 18, 19719, 28359, 40, 67, 52, 26710, 273, 404, 18, 25, 225, 1109, 39, 273, 3195, 276, 30, 261, 71, 18, 1118, 19, 26, 2539, 4763, 12990, 276, 18, 11571, 19, 26, 2539, 4763, 12990, 276, 18, 14081, 19, 26, 2539, 4763, 12998, 10186, 50, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 2137, 63, 4521, 79, 18, 7998, 67, 15480, 5717, 10186, 55, 273, 10186, 50, 10186, 37, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 2137, 63, 4521, 79, 18, 7998, 67, 13301, 5717, 10186, 52, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 2137, 63, 4521, 79, 18, 7998, 67, 3670, 23516, 5717, 225, 468, 2970, 805, 732, 999, 2212, 16231, 364, 3170, 276, 517, 87, 16, 487, 518, 10192, 468, 5242, 2195, 9940, 18, 10724, 364, 2690, 15455, 16, 326, 2212, 16231, 353, 1427, 468, 7281, 358, 326, 3170, 5412, 16, 716, 732, 1240, 358, 999, 326, 3170, 468, 16231, 18, 7611, 3738, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 12370, 63, 4521, 79, 18, 7998, 67, 4803, 2056, 5717, 7611, 55, 72, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 25045, 63, 4521, 79, 18, 7998, 67, 4803, 2056, 5717, 309, 1131, 12443, 2137, 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, 16539, 8610, 12, 2890, 16, 819, 16, 436, 4672, 10167, 273, 365, 18, 2284, 18, 588, 22233, 861, 52, 715, 12, 2890, 18, 674, 995, 13, 15192, 16, 27495, 16, 8576, 16, 272, 273, 365, 18, 19719, 28359, 40, 67, 52, 26710, 273, 404, 18, 25, 225, 1109, 39, 273, 3195, 276, 30, 261, 71, 18, 1118, 19, 26, 2539, 4763, 12990, 276, 18, 11571, 19, 26, 2539, 4763, 12990, 276, 18, 14081, 19, 26, 2539, 4763, 12998, 10186, 50, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 2137, 63, 4521, 79, 18, 7998, 67, 15480, 5717, 10186, 55, 273, 10186, 50, 10186, 37, 273, 1109, 39, 12, 2890, 18, 588, 67, 4060, 7675, 2137, 2 ]
args[x] = argv.value
args[x] = argv.value.replace('\r','')
def real_main(): import sync import Href import perm import auth from util import redirect path_info = os.getenv('PATH_INFO') remote_addr = os.getenv('REMOTE_ADDR') remote_user = os.getenv('REMOTE_USER') http_cookie = os.getenv('HTTP_COOKIE') http_referer = os.getenv('HTTP_REFERER') cgi_location = os.getenv('SCRIPT_NAME') database = open_database() config = database.load_config() Href.initialize(cgi_location) # Authenticate the user cookie = Cookie.SimpleCookie(http_cookie) if cookie.has_key('trac_auth'): auth_cookie = cookie['trac_auth'].value else: auth_cookie = None authenticator = auth.Authenticator(database, auth_cookie, remote_addr) if path_info == '/logout': authenticator.logout() redirect (http_referer or Href.href.wiki()) elif remote_user and authenticator.authname == 'anonymous': auth_cookie = authenticator.login(remote_user, remote_addr) # send the cookie to the browser as a http header cookie = Cookie.SimpleCookie() cookie['trac_auth'] = auth_cookie cookie['trac_auth']['path'] = cgi_location print cookie.output() if path_info == '/login': redirect (http_referer or Href.href.wiki()) # Parse arguments args = parse_args(path_info) _args = cgi.FieldStorage() for x in _args.keys(): argv = _args[x] if type(argv) == list: argv = argv[0] args[x] = argv.value # Load the selected module mode = args.get('mode', 'wiki') module_name, constructor_name, need_svn = modules[mode] module = __import__(module_name, globals(), locals(), []) constructor = getattr(module, constructor_name) module = constructor(config, args) module._name = mode module.db = database module.authname = authenticator.authname module.remote_addr = remote_addr module.cgi_location = cgi_location module.perm = perm.PermissionCache(database, authenticator.authname) module.perm.add_to_hdf(module.cgi.hdf) # Only open the subversion repository for the modules that really # need it. This saves us some precious time. if need_svn: from svn import util, repos, core core.apr_initialize() pool = core.svn_pool_create(None) repos_dir = config['general']['repository_dir'] # Remove any trailing slash or else subversion might abort if not os.path.split(repos_dir)[1]: repos_dir = os.path.split(repos_dir)[0] rep = repos.svn_repos_open(repos_dir, pool) fs_ptr = repos.svn_repos_fs(rep) module.repos = rep module.fs_ptr = fs_ptr sync.sync(database, rep, fs_ptr, pool) else: pool = None # Let the wiki module build a dictionary of all page names import Wiki Wiki.populate_page_dict(database) module.pool = pool module.run() if pool: core.svn_pool_destroy(pool) core.apr_terminate()
3674c6fe0864f042053131baedff259e022ceb14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3674c6fe0864f042053131baedff259e022ceb14/trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2863, 67, 5254, 13332, 1930, 3792, 1930, 670, 1734, 1930, 4641, 1930, 1357, 628, 1709, 1930, 3136, 225, 589, 67, 1376, 273, 1140, 18, 588, 3074, 2668, 4211, 67, 5923, 6134, 2632, 67, 4793, 273, 1140, 18, 588, 3074, 2668, 15790, 67, 14142, 6134, 2632, 67, 1355, 273, 1140, 18, 588, 3074, 2668, 15790, 67, 4714, 6134, 1062, 67, 8417, 273, 1140, 18, 588, 3074, 2668, 3693, 67, 13584, 6134, 1062, 67, 28596, 273, 1140, 18, 588, 3074, 2668, 3693, 67, 30269, 654, 6134, 276, 10052, 67, 3562, 273, 1140, 18, 588, 3074, 2668, 10885, 67, 1985, 6134, 225, 2063, 273, 1696, 67, 6231, 1435, 642, 273, 2063, 18, 945, 67, 1425, 1435, 225, 670, 1734, 18, 11160, 12, 19062, 67, 3562, 13, 225, 468, 26644, 326, 729, 3878, 273, 10201, 18, 5784, 6151, 12, 2505, 67, 8417, 13, 225, 309, 3878, 18, 5332, 67, 856, 2668, 313, 1077, 67, 1944, 11, 4672, 1357, 67, 8417, 273, 3878, 3292, 313, 1077, 67, 1944, 29489, 1132, 469, 30, 1357, 67, 8417, 273, 599, 225, 17595, 273, 1357, 18, 18977, 12, 6231, 16, 1357, 67, 8417, 16, 2632, 67, 4793, 13, 309, 589, 67, 1376, 422, 1173, 21229, 4278, 17595, 18, 21229, 1435, 3136, 261, 2505, 67, 28596, 578, 670, 1734, 18, 7547, 18, 13044, 10756, 1327, 2632, 67, 1355, 471, 17595, 18, 1944, 529, 422, 296, 19070, 4278, 1357, 67, 8417, 273, 17595, 18, 5819, 12, 7222, 67, 1355, 16, 2632, 67, 4793, 13, 468, 1366, 326, 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, 2863, 67, 5254, 13332, 1930, 3792, 1930, 670, 1734, 1930, 4641, 1930, 1357, 628, 1709, 1930, 3136, 225, 589, 67, 1376, 273, 1140, 18, 588, 3074, 2668, 4211, 67, 5923, 6134, 2632, 67, 4793, 273, 1140, 18, 588, 3074, 2668, 15790, 67, 14142, 6134, 2632, 67, 1355, 273, 1140, 18, 588, 3074, 2668, 15790, 67, 4714, 6134, 1062, 67, 8417, 273, 1140, 18, 588, 3074, 2668, 3693, 67, 13584, 6134, 1062, 67, 28596, 273, 1140, 18, 588, 3074, 2668, 3693, 67, 30269, 654, 6134, 276, 10052, 67, 3562, 273, 1140, 18, 588, 3074, 2668, 10885, 67, 1985, 6134, 225, 2063, 273, 1696, 67, 6231, 1435, 642, 273, 2063, 18, 945, 67, 1425, 1435, 225, 670, 1734, 18, 11160, 2 ]
def remove_redundant_vertices(self):
def remove_redundant_vertices(self, cdd_type = 'rational'):
def remove_redundant_vertices(self): """ Removes vertices from the description of the polyhedron which do not affect the convex hull. Now done automatically when a polyhedron is defined by vertices.
ff2469d377f6b8dbf0bce8ee43e9ce75aea16b54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ff2469d377f6b8dbf0bce8ee43e9ce75aea16b54/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1118, 15362, 67, 17476, 12, 2890, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 11, 4672, 3536, 20284, 6928, 628, 326, 2477, 434, 326, 7573, 18550, 1949, 1492, 741, 486, 13418, 326, 26213, 22474, 18, 225, 4494, 2731, 6635, 1347, 279, 7573, 18550, 1949, 353, 2553, 635, 6928, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1118, 15362, 67, 17476, 12, 2890, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 11, 4672, 3536, 20284, 6928, 628, 326, 2477, 434, 326, 7573, 18550, 1949, 1492, 741, 486, 13418, 326, 26213, 22474, 18, 225, 4494, 2731, 6635, 1347, 279, 7573, 18550, 1949, 353, 2553, 635, 6928, 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 ]
self.title = seginfotab[MATROSKA_TITLE_ID].get_data()
self.title = seginfotab[MATROSKA_TITLE_ID].get_utf8()
def __init__(self, file): mediainfo.AVInfo.__init__(self) self.samplerate = 1 self.media = 'audio'
30f42dd5e0f2e75840c3aa36aee9975a49c29adf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/30f42dd5e0f2e75840c3aa36aee9975a49c29adf/mkvinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 4672, 20623, 28935, 18, 5856, 966, 16186, 2738, 972, 12, 2890, 13, 365, 18, 87, 10463, 340, 273, 404, 365, 18, 5829, 273, 296, 11509, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 4672, 20623, 28935, 18, 5856, 966, 16186, 2738, 972, 12, 2890, 13, 365, 18, 87, 10463, 340, 273, 404, 365, 18, 5829, 273, 296, 11509, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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._docmap.has_key(c.target().module())]
if is_documented(c.target().module())]
def _write_project_toc(self, public, private): """ @return: An HTML page containing the table of contents page for the whole project. This page lists the classes, exceptions, functions, and variables defined by any module or package in the project. @rtype: C{string} """ # Header and name. str = self._header('Everything') str += ('<center><font size="+1"><b>Everything</b>' + '</font></center>\n<hr>\n') public.write(str); private.write(str)
dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 4406, 67, 1391, 12, 2890, 16, 1071, 16, 3238, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 4191, 326, 1014, 434, 2939, 1363, 364, 326, 7339, 1984, 18, 225, 1220, 1363, 6035, 326, 3318, 16, 4798, 16, 4186, 16, 471, 3152, 2553, 635, 1281, 1605, 578, 2181, 316, 326, 1984, 18, 632, 86, 723, 30, 385, 95, 1080, 97, 3536, 468, 4304, 471, 508, 18, 609, 273, 365, 6315, 3374, 2668, 21465, 4274, 6134, 609, 1011, 7707, 32, 5693, 4438, 5776, 963, 1546, 15, 21, 14050, 70, 34, 21465, 4274, 1757, 70, 1870, 397, 4357, 5776, 4695, 5693, 5333, 82, 32, 7256, 5333, 82, 6134, 1071, 18, 2626, 12, 701, 1769, 3238, 18, 2626, 12, 701, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 4406, 67, 1391, 12, 2890, 16, 1071, 16, 3238, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 4191, 326, 1014, 434, 2939, 1363, 364, 326, 7339, 1984, 18, 225, 1220, 1363, 6035, 326, 3318, 16, 4798, 16, 4186, 16, 471, 3152, 2553, 635, 1281, 1605, 578, 2181, 316, 326, 1984, 18, 632, 86, 723, 30, 385, 95, 1080, 97, 3536, 468, 4304, 471, 508, 18, 609, 273, 365, 6315, 3374, 2668, 21465, 4274, 6134, 609, 1011, 7707, 32, 5693, 4438, 5776, 963, 1546, 15, 21, 14050, 70, 34, 21465, 4274, 1757, 70, 1870, 397, 4357, 5776, 4695, 5693, 5333, 82, 32, 7256, 5333, 82, 6134, 1071, 18, 2626, 12, 701, 1769, 3238, 18, 2626, 12, 2 ]
return redirect(target)
return _redirect(target)
def redirect_back(*args, **kwargs): """Redirect back to the page we are comming from or the URL rule given. """ target = get_redirect_target() if target is None: target = url_for(*args, **kwargs) return redirect(target)
eb9f18f195707f3ac48c88ba701af499771557f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/eb9f18f195707f3ac48c88ba701af499771557f0/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 823, 30857, 1968, 16, 2826, 4333, 4672, 3536, 5961, 1473, 358, 326, 1363, 732, 854, 1543, 310, 628, 578, 326, 1976, 1720, 864, 18, 3536, 1018, 273, 336, 67, 7590, 67, 3299, 1435, 309, 1018, 353, 599, 30, 1018, 273, 880, 67, 1884, 30857, 1968, 16, 2826, 4333, 13, 565, 327, 389, 7590, 12, 3299, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3136, 67, 823, 30857, 1968, 16, 2826, 4333, 4672, 3536, 5961, 1473, 358, 326, 1363, 732, 854, 1543, 310, 628, 578, 326, 1976, 1720, 864, 18, 3536, 1018, 273, 336, 67, 7590, 67, 3299, 1435, 309, 1018, 353, 599, 30, 1018, 273, 880, 67, 1884, 30857, 1968, 16, 2826, 4333, 13, 565, 327, 389, 7590, 12, 3299, 13, 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 ]
logger.notifyChannel("init", netsvc.LOG_ERROR,"SSL Server error in request from %s: %s" %
logger.notifyChannel("init", netsvc.LOG_ERROR,"SSL Server error in request from %s:\n%s" %
def handle_error(self, request, client_address): """ Override the error handler """ import traceback
b1b23473908f460d8f8c5eb0723232ca502a9876 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1b23473908f460d8f8c5eb0723232ca502a9876/SecureXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 3536, 1439, 326, 555, 1838, 3536, 1930, 10820, 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 ]
[ 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 3536, 1439, 326, 555, 1838, 3536, 1930, 10820, 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 ]
"kombu
"kombu",
def run(self, *args, **kwargs): Upgrade().run() install.run(self, *args, **kwargs)
54e755d0fe9c0c06cfd5e18b52d73145268a272f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/54e755d0fe9c0c06cfd5e18b52d73145268a272f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 17699, 7675, 2681, 1435, 3799, 18, 2681, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 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,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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 ]
self('send %s %s -o tmpdarcs '%(options, url))
self('send %s -o tmpdarcs %s'%(options, url))
def send(self, filename, options='', url=None): """ Create a darcs patch bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository).
c447721ed1618578f6e22772803093a9df96d669 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/c447721ed1618578f6e22772803093a9df96d669/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 4672, 3536, 1788, 279, 302, 297, 2143, 4729, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 2934, 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,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16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 4672, 3536, 1788, 279, 302, 297, 2143, 4729, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 2934, 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 ]
TrackPopupMenu(menu, win32con.TPM_LEFTALIGN, pos[0], pos[1], 0, self.hwnd, None)
TrackPopupMenu(self.hmenu, win32con.TPM_LEFTALIGN, pos[0], pos[1], 0, self.hwnd, None)
def OnTaskbarNotify(self, hwnd, msg, wparam, lparam): if lparam==win32con.WM_RBUTTONUP: print "You right clicked me." menu = CreatePopupMenu() # Create our 'Exit' item with the standard, ugly 'close' icon. item, extras = PackMENUITEMINFO(text = "Exit", hbmpItem=win32con.HBMMENU_MBAR_CLOSE, wID=1000) InsertMenuItem(menu, 0, 1, item) # Create a 'text only' menu via InsertMenuItem rather then # AppendMenu, just to prove we can! item, extras = PackMENUITEMINFO(text = "Text only item", wID=1001) InsertMenuItem(menu, 0, 1, item)
380c2dcca98047a125747a9fa5630a1ccb183e9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/380c2dcca98047a125747a9fa5630a1ccb183e9c/win32gui_menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2174, 3215, 9168, 12, 2890, 16, 16139, 4880, 16, 1234, 16, 341, 891, 16, 328, 891, 4672, 309, 328, 891, 631, 8082, 1578, 591, 18, 25173, 67, 54, 20068, 3079, 30, 1172, 315, 6225, 2145, 17688, 1791, 1199, 3824, 273, 1788, 13770, 4599, 1435, 468, 1788, 3134, 296, 6767, 11, 761, 598, 326, 4529, 16, 26920, 296, 4412, 11, 4126, 18, 761, 16, 11875, 273, 7930, 29227, 12674, 5923, 12, 955, 273, 315, 6767, 3113, 21749, 1291, 1180, 33, 8082, 1578, 591, 18, 44, 38, 49, 29227, 67, 7969, 985, 67, 13384, 16, 341, 734, 33, 18088, 13, 8040, 12958, 12, 5414, 16, 374, 16, 404, 16, 761, 13, 468, 1788, 279, 296, 955, 1338, 11, 3824, 3970, 8040, 12958, 9178, 1508, 468, 6181, 4599, 16, 2537, 358, 450, 537, 732, 848, 5, 761, 16, 11875, 273, 7930, 29227, 12674, 5923, 12, 955, 273, 315, 1528, 1338, 761, 3113, 341, 734, 33, 6625, 21, 13, 8040, 12958, 12, 5414, 16, 374, 16, 404, 16, 761, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 2174, 3215, 9168, 12, 2890, 16, 16139, 4880, 16, 1234, 16, 341, 891, 16, 328, 891, 4672, 309, 328, 891, 631, 8082, 1578, 591, 18, 25173, 67, 54, 20068, 3079, 30, 1172, 315, 6225, 2145, 17688, 1791, 1199, 3824, 273, 1788, 13770, 4599, 1435, 468, 1788, 3134, 296, 6767, 11, 761, 598, 326, 4529, 16, 26920, 296, 4412, 11, 4126, 18, 761, 16, 11875, 273, 7930, 29227, 12674, 5923, 12, 955, 273, 315, 6767, 3113, 21749, 1291, 1180, 33, 8082, 1578, 591, 18, 44, 38, 49, 29227, 67, 7969, 985, 67, 13384, 16, 341, 734, 33, 18088, 13, 8040, 12958, 12, 5414, 16, 374, 16, 404, 16, 761, 13, 468, 1788, 279, 296, 955, 1338, 11, 3824, 2 ]
filepath = os.path.join(env.ARCHIVE_OUTPUT_DIR, "eagle3d_"+version_to_filename(version)+".zip")
filepath = os.path.join(env.ARCHIVE_OUTPUT_DIR, "eagle3d_"+release_safename+".zip")
def release(self): quiet = config._get('quiet') version = config._get('version')
0caba114cd86255dcf1be4e04b0b7cd10933fdd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2758/0caba114cd86255dcf1be4e04b0b7cd10933fdd0/eagle3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 12, 2890, 4672, 10902, 273, 642, 6315, 588, 2668, 20380, 6134, 1177, 273, 642, 6315, 588, 2668, 1589, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3992, 12, 2890, 4672, 10902, 273, 642, 6315, 588, 2668, 20380, 6134, 1177, 273, 642, 6315, 588, 2668, 1589, 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 ]
def __getitem__(self, key): return self.data[string.upper(key)] else: class _Environ(UserDict.UserDict): def __init__(self, environ): UserDict.UserDict.__init__(self) self.data = environ def __getinitargs__(self): import copy return (copy.copy(self.data),) def __setitem__(self, key, item): putenv(key, item) self.data[key] = item def __copy__(self): return _Environ(self.data.copy())
def __getitem__(self, key): return self.data[string.upper(key)]
f4e72db40428bd47f54ddfb3fd610276a11c72f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f4e72db40428bd47f54ddfb3fd610276a11c72f5/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 365, 18, 892, 63, 1080, 18, 5797, 12, 856, 25887, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 365, 18, 892, 63, 1080, 18, 5797, 12, 856, 25887, 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 ]
uname = config.get('uname', '') (typ, subtyp, params, file) = string.split(uname, ':', 3)
uname = config.get('uname', '') try: (typ, subtyp, params, file) = string.split(uname, ':', 3) except: (typ, params, file) = string.split(uname, ':', 2) subtyp = 'tapdisk'
def createDevice(self, config):
d4db93b7974872818bef8ebd6346fe11f73e48d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/d4db93b7974872818bef8ebd6346fe11f73e48d1/BlktapController.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3654, 12, 2890, 16, 642, 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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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, -100, -100, -100, -100, -100, -100, -100 ]
print self.found, self.mod, self.complete, model.get_value(it, column), key, self.text
def search_func(self, model, column, key, it): if self.mod: cp_text = key else: cp_text = self.text + key self.complete = cp_text if model.get_path(model.get_iter_first()) == model.get_path(it): self.found = False if model.get_value(it, column).startswith(cp_text): self.found = True print self.found, self.mod, self.complete, model.get_value(it, column), key, self.text if model.iter_next(it) is None and not self.found: if self.text != "" and model.get_value(it, column).startswith(self.complete): self.complete = model.get_value(it, 1) elif not model.get_value(it, column).startswith(self.complete): pass else: self.complete = key self.insert_complete() self.hide() return not model.get_value(it, column).startswith(cp_text)
a718cf2af7a92f5271f218a3cfa71b84805d0ace /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/a718cf2af7a92f5271f218a3cfa71b84805d0ace/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 644, 12, 2890, 16, 938, 16, 1057, 16, 498, 16, 518, 4672, 225, 309, 365, 18, 1711, 30, 3283, 67, 955, 273, 498, 469, 30, 3283, 67, 955, 273, 365, 18, 955, 397, 498, 365, 18, 6226, 273, 3283, 67, 955, 225, 309, 938, 18, 588, 67, 803, 12, 2284, 18, 588, 67, 2165, 67, 3645, 10756, 422, 938, 18, 588, 67, 803, 12, 305, 4672, 365, 18, 7015, 273, 1083, 309, 938, 18, 588, 67, 1132, 12, 305, 16, 1057, 2934, 17514, 1918, 12, 4057, 67, 955, 4672, 365, 18, 7015, 273, 1053, 309, 938, 18, 2165, 67, 4285, 12, 305, 13, 353, 599, 471, 486, 365, 18, 7015, 30, 309, 365, 18, 955, 480, 1408, 471, 938, 18, 588, 67, 1132, 12, 305, 16, 1057, 2934, 17514, 1918, 12, 2890, 18, 6226, 4672, 365, 18, 6226, 273, 938, 18, 588, 67, 1132, 12, 305, 16, 404, 13, 1327, 486, 938, 18, 588, 67, 1132, 12, 305, 16, 1057, 2934, 17514, 1918, 12, 2890, 18, 6226, 4672, 1342, 469, 30, 365, 18, 6226, 273, 498, 365, 18, 6387, 67, 6226, 1435, 365, 18, 11248, 1435, 327, 486, 938, 18, 588, 67, 1132, 12, 305, 16, 1057, 2934, 17514, 1918, 12, 4057, 67, 955, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 644, 12, 2890, 16, 938, 16, 1057, 16, 498, 16, 518, 4672, 225, 309, 365, 18, 1711, 30, 3283, 67, 955, 273, 498, 469, 30, 3283, 67, 955, 273, 365, 18, 955, 397, 498, 365, 18, 6226, 273, 3283, 67, 955, 225, 309, 938, 18, 588, 67, 803, 12, 2284, 18, 588, 67, 2165, 67, 3645, 10756, 422, 938, 18, 588, 67, 803, 12, 305, 4672, 365, 18, 7015, 273, 1083, 309, 938, 18, 588, 67, 1132, 12, 305, 16, 1057, 2934, 17514, 1918, 12, 4057, 67, 955, 4672, 365, 18, 7015, 273, 1053, 309, 938, 18, 2165, 67, 4285, 12, 305, 13, 353, 599, 471, 486, 365, 18, 7015, 30, 309, 365, 18, 955, 480, 2 ]
arg.decode()
return arg.decode()
def _encodeArg(self, arg, msgForError): """Encode an ascii string/Unicode string to the site's encoding""" try: if isinstance(arg, str): arg.decode() # fails with UnicodeDecodeError if non-ascii except UnicodeDecodeError: raise PageNotSaved("An ascii string or unicode %s is expected" % msgForError) try: return arg.encode(self.site().encoding()) except UnicodeDecodeError: raise PageNotSaved("The %s could not be converted to the site's encoding (%s)" % (msgForError, self.site().encoding()))
294b53de4dadc57dd0d3a4e1911d9ceb192a57db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/294b53de4dadc57dd0d3a4e1911d9ceb192a57db/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3015, 4117, 12, 2890, 16, 1501, 16, 1234, 1290, 668, 4672, 3536, 5509, 392, 11384, 533, 19, 16532, 533, 358, 326, 2834, 1807, 2688, 8395, 775, 30, 309, 1549, 12, 3175, 16, 609, 4672, 327, 1501, 18, 3922, 1435, 468, 6684, 598, 26311, 309, 1661, 17, 9184, 1335, 26311, 30, 1002, 3460, 1248, 16776, 2932, 979, 11384, 533, 578, 5252, 738, 87, 353, 2665, 6, 738, 1234, 1290, 668, 13, 775, 30, 327, 1501, 18, 3015, 12, 2890, 18, 4256, 7675, 5999, 10756, 1335, 26311, 30, 1002, 3460, 1248, 16776, 2932, 1986, 738, 87, 3377, 486, 506, 5970, 358, 326, 2834, 1807, 2688, 6142, 87, 2225, 738, 261, 3576, 1290, 668, 16, 365, 18, 4256, 7675, 5999, 1435, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3015, 4117, 12, 2890, 16, 1501, 16, 1234, 1290, 668, 4672, 3536, 5509, 392, 11384, 533, 19, 16532, 533, 358, 326, 2834, 1807, 2688, 8395, 775, 30, 309, 1549, 12, 3175, 16, 609, 4672, 327, 1501, 18, 3922, 1435, 468, 6684, 598, 26311, 309, 1661, 17, 9184, 1335, 26311, 30, 1002, 3460, 1248, 16776, 2932, 979, 11384, 533, 578, 5252, 738, 87, 353, 2665, 6, 738, 1234, 1290, 668, 13, 775, 30, 327, 1501, 18, 3015, 12, 2890, 18, 4256, 7675, 5999, 10756, 1335, 26311, 30, 1002, 3460, 1248, 16776, 2932, 1986, 738, 87, 3377, 486, 506, 5970, 358, 326, 2834, 1807, 2688, 6142, 87, 2225, 738, 261, 3576, 1290, 668, 16, 365, 18, 4256, 7675, 5999, 2 ]
print 'WTD', wtd, 'GOT', len(rv)
def read(self, wtd):
a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 341, 4465, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 341, 4465, 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 ]
elif mydo=="unmerge": return unmerge(settings["CATEGORY"],settings["PF"]) elif mydo=="rpm": return spawn("/usr/sbin/ebuild.sh fetch unpack compile install rpm")
elif mydo=="unmerge": return unmerge(settings["CATEGORY"],settings["PF"]) elif mydo=="rpm": return spawn("/usr/sbin/ebuild.sh fetch unpack compile install rpm")
def doebuild(myebuild,mydo,checkdeps=1): global settings if not os.path.exists(myebuild): print "!!!",myebuild,"not found." return 1 if myebuild[-7:]!=".ebuild": print "!!!",myebuild,"does not appear to be an ebuild file." return 1 settings.reset() settings["ROOT"]=root settings["STARTDIR"]=os.getcwd() settings["EBUILD"]=os.path.abspath(myebuild) settings["O"]=os.path.dirname(settings["EBUILD"]) settings["CATEGORY"]=os.path.basename(os.path.normpath(settings["O"]+"/..")) #PEBUILD settings["FILESDIR"]=settings["O"]+"/files" settings["PF"]=os.path.basename(settings["EBUILD"])[:-7] mysplit=pkgsplit(settings["PF"],0) if mysplit==None: return 1 settings["P"]=mysplit[0]+"-"+mysplit[1] settings["PN"]=mysplit[0] settings["PV"]=mysplit[1] settings["PR"]=mysplit[2] if mysplit[2]=="r0": settings["PVR"]=mysplit[1] else: settings["PVR"]=mysplit[1]+"-"+mysplit[2] if settings.has_key("PATH"): mysplit=string.split(settings["PATH"],":") else: mysplit=[] if not "/usr/lib/portage/bin" in mysplit: settings["PATH"]="/usr/lib/portage/bin:"+settings["PATH"] if not settings.has_key("BUILD_PREFIX"): print "!!! Error: BUILD_PREFIX not defined." return 1 settings["BUILDDIR"]=settings["BUILD_PREFIX"]+"/"+settings["PF"] if not os.path.exists(settings["BUILDDIR"]): os.makedirs(settings["BUILDDIR"]) settings["T"]=settings["BUILDDIR"]+"/temp" if not os.path.exists(settings["T"]): os.makedirs(settings["T"]) settings["WORKDIR"]=settings["BUILDDIR"]+"/work" settings["D"]=settings["BUILDDIR"]+"/image/" #initial ebuild.sh bash environment configured if mydo in ["prerm","postrm","preinst","postinst","config","touch","clean","digest","unmerge"]: #no dep check needed pass elif mydo=="depend": return string.split(getoutput("/usr/sbin/ebuild.sh depend"),"\n") elif checkdeps: #optional dependency check -- if emerge is calling us, it will be skipped mydeps=string.split(getoutput("/usr/sbin/ebuild.sh depend"),"\n") retval=dep_frontend("build",mydeps[0]) if (retval): return retval if mydo not in ["package","rpm"]: retval=dep_frontend("runtime",mydeps[1]) if retval: return retval #initial dep checks complete; time to process main commands if mydo=="unpack": return spawn("/usr/sbin/ebuild.sh fetch unpack") elif mydo=="compile": #do build deps return spawn("/usr/sbin/ebuild.sh fetch unpack compile") elif mydo in ["prerm","postrm","preinst","postinst","config","touch","clean","fetch","digest","unmerge","install"]: return spawn("/usr/sbin/ebuild.sh "+mydo) elif mydo=="qmerge": return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info") elif mydo=="merge": retval=spawn("/usr/sbin/ebuild.sh fetch unpack compile install") if retval: return retval return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info") elif mydo=="unmerge": return unmerge(settings["CATEGORY"],settings["PF"]) elif mydo=="rpm": return spawn("/usr/sbin/ebuild.sh fetch unpack compile install rpm") elif mydo=="package": retval=spawn("/usr/sbin/ebuild.sh fetch") if retval: return retval for x in ["","/"+settings["CATEGORY"]]: if not os.path.exists(settings["PKGDIR"]+x): os.makedirs(settings["PKGDIR"]+x) pkgloc=settings["PKGDIR"]+"/All/"+settings["PF"]+".tbz2" rebuild=0 if os.path.exists(pkgloc): for x in [settings["A"],settings["EBUILD"]]: if not os.path.exists(x): continue if os.path.getmtime(x)>os.path.getmtime(pkgloc): rebuild=1 break else: rebuild=1 if not rebuild: print print ">>> Package",settings["PF"]+".tbz2 appears to be up-to-date." print ">>> To force rebuild, touch",os.path.basename(settings["EBUILD"]) print return 0 else: return spawn("/usr/sbin/ebuild.sh unpack compile install package") else: print "!!! Please specify a valid command." return 1
ad12b209068fc579f0d299d84052c4e8e9969d6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/ad12b209068fc579f0d299d84052c4e8e9969d6d/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 73, 3510, 12, 4811, 73, 3510, 16, 4811, 2896, 16, 1893, 14877, 33, 21, 4672, 2552, 1947, 309, 486, 1140, 18, 803, 18, 1808, 12, 4811, 73, 3510, 4672, 1172, 315, 25885, 3113, 4811, 73, 3510, 10837, 902, 1392, 1199, 327, 404, 309, 3399, 73, 3510, 18919, 27, 26894, 5, 1546, 18, 73, 3510, 6877, 1172, 315, 25885, 3113, 4811, 73, 3510, 10837, 20657, 486, 9788, 358, 506, 392, 425, 3510, 585, 1199, 327, 404, 1947, 18, 6208, 1435, 1947, 9614, 9185, 11929, 33, 3085, 1947, 9614, 7570, 4537, 11929, 33, 538, 18, 588, 11089, 1435, 1947, 9614, 41, 20215, 11929, 33, 538, 18, 803, 18, 5113, 803, 12, 4811, 73, 3510, 13, 1947, 9614, 51, 11929, 33, 538, 18, 803, 18, 12287, 12, 4272, 9614, 41, 20215, 6, 5717, 1947, 9614, 24847, 11929, 33, 538, 18, 803, 18, 13909, 12, 538, 18, 803, 18, 7959, 803, 12, 4272, 9614, 51, 6, 3737, 6, 19, 18460, 3719, 468, 1423, 20215, 1947, 9614, 12669, 4537, 11929, 33, 4272, 9614, 51, 6, 3737, 6, 19, 2354, 6, 1947, 9614, 22026, 11929, 33, 538, 18, 803, 18, 13909, 12, 4272, 9614, 41, 20215, 6, 5717, 10531, 17, 27, 65, 312, 1900, 1127, 33, 25376, 1127, 12, 4272, 9614, 22026, 6, 6487, 20, 13, 309, 312, 1900, 1127, 631, 7036, 30, 327, 404, 1947, 9614, 52, 11929, 33, 81, 1900, 1127, 63, 20, 3737, 6, 10951, 15, 81, 1900, 1127, 63, 21, 65, 1947, 9614, 15124, 11929, 33, 81, 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, 741, 73, 3510, 12, 4811, 73, 3510, 16, 4811, 2896, 16, 1893, 14877, 33, 21, 4672, 2552, 1947, 309, 486, 1140, 18, 803, 18, 1808, 12, 4811, 73, 3510, 4672, 1172, 315, 25885, 3113, 4811, 73, 3510, 10837, 902, 1392, 1199, 327, 404, 309, 3399, 73, 3510, 18919, 27, 26894, 5, 1546, 18, 73, 3510, 6877, 1172, 315, 25885, 3113, 4811, 73, 3510, 10837, 20657, 486, 9788, 358, 506, 392, 425, 3510, 585, 1199, 327, 404, 1947, 18, 6208, 1435, 1947, 9614, 9185, 11929, 33, 3085, 1947, 9614, 7570, 4537, 11929, 33, 538, 18, 588, 11089, 1435, 1947, 9614, 41, 20215, 11929, 33, 538, 18, 803, 18, 5113, 803, 12, 4811, 73, 3510, 13, 1947, 9614, 51, 11929, 2 ]
slice1 = [slice(None)]*nd slice2 = [slice(None)]*nd slice1[axis] = slice(1,None) slice2[axis] = slice(None,-1)
slice1 = tupleset((slice(None),)*nd, axis, slice(1, None)) slice2 = tupleset((slice(None),)*nd, axis, slice(None, -1))
def cumtrapz(y, x=None, dx=1.0, axis=-1): """Cumulatively integrate y(x) using samples along the given axis and the composite trapezoidal rule. If x is None, spacing given by dx is assumed. """ y = asarray(y) if x is None: d = dx else: d = diff(x,axis=axis) nd = len(y.shape) slice1 = [slice(None)]*nd slice2 = [slice(None)]*nd slice1[axis] = slice(1,None) slice2[axis] = slice(None,-1) return add.accumulate(d * (y[slice1]+y[slice2])/2.0,axis)
704696cd1cef533b4e608563919a4d4ce035a41b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/704696cd1cef533b4e608563919a4d4ce035a41b/quadrature.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14471, 27170, 94, 12, 93, 16, 619, 33, 7036, 16, 6633, 33, 21, 18, 20, 16, 2654, 29711, 21, 4672, 3536, 39, 5283, 17526, 23367, 677, 12, 92, 13, 1450, 5216, 7563, 326, 864, 2654, 471, 326, 9635, 1284, 347, 94, 839, 287, 1720, 18, 225, 971, 619, 353, 599, 16, 13259, 864, 635, 6633, 353, 12034, 18, 3536, 677, 273, 10455, 12, 93, 13, 309, 619, 353, 599, 30, 302, 273, 6633, 469, 30, 302, 273, 3122, 12, 92, 16, 4890, 33, 4890, 13, 5346, 273, 562, 12, 93, 18, 4867, 13, 2788, 21, 273, 10384, 278, 12443, 6665, 12, 7036, 3631, 17653, 4880, 16, 2654, 16, 2788, 12, 21, 16, 599, 3719, 2788, 22, 273, 10384, 278, 12443, 6665, 12, 7036, 3631, 17653, 4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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14471, 27170, 94, 12, 93, 16, 619, 33, 7036, 16, 6633, 33, 21, 18, 20, 16, 2654, 29711, 21, 4672, 3536, 39, 5283, 17526, 23367, 677, 12, 92, 13, 1450, 5216, 7563, 326, 864, 2654, 471, 326, 9635, 1284, 347, 94, 839, 287, 1720, 18, 225, 971, 619, 353, 599, 16, 13259, 864, 635, 6633, 353, 12034, 18, 3536, 677, 273, 10455, 12, 93, 13, 309, 619, 353, 599, 30, 302, 273, 6633, 469, 30, 302, 273, 3122, 12, 92, 16, 4890, 33, 4890, 13, 5346, 273, 562, 12, 93, 18, 4867, 13, 2788, 21, 273, 10384, 278, 12443, 6665, 12, 7036, 3631, 17653, 4880, 16, 2654, 16, 2788, 12, 21, 16, 599, 3719, 2788, 22, 273, 10384, 2 ]
self.win.msgbarLabel.setText("Minimization Failed!")
if not s: s = "exit code %r" % r self.win.msgbarLabel.setText("Minimization Failed!")
def minimize(self): from debug import print_compact_traceback self.win.msgbarLabel.setText( "Minimizing...") # Initial message [mark 040924 via bruce] QApplication.setOverrideCursor( QCursor(Qt.WaitCursor) ) # Put up the hourglass cursor. [mark 040924 via bruce] try: self.win.msgbarLabel.setText("Calculating...") writemmp(self.assy, "minimize.mmp") pipe = os.popen("simulator -m minimize.mmp") s = pipe.read() r = pipe.close() except: print_compact_traceback("exception in minimize; continuing: ") # bruce 040924 s = "internal error (traceback printed elsewhere)" assert not s.startswith("Minimize") QApplication.restoreOverrideCursor() # Restore the cursor [mark 040924 via bruce] if not r: self.win.msgbarLabel.setText("Minimizing...") self.startmovie("minimize.dpb") else: self.win.msgbarLabel.setText("Minimization Failed!") QMessageBox.warning(self, "Minimization Failed:", s) return
66dcad5c44132dea96b1093f217e5bc2349955d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/66dcad5c44132dea96b1093f217e5bc2349955d1/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18935, 12, 2890, 4672, 628, 1198, 1930, 1172, 67, 21038, 67, 21696, 365, 18, 8082, 18, 3576, 3215, 2224, 18, 542, 1528, 12, 315, 2930, 381, 6894, 7070, 13, 468, 10188, 883, 306, 3355, 16486, 5908, 3247, 3970, 5186, 3965, 65, 2238, 3208, 18, 542, 6618, 6688, 12, 2238, 6688, 12, 23310, 18, 5480, 6688, 13, 262, 468, 4399, 731, 326, 6126, 75, 459, 3347, 18, 306, 3355, 16486, 5908, 3247, 3970, 5186, 3965, 65, 775, 30, 365, 18, 8082, 18, 3576, 3215, 2224, 18, 542, 1528, 2932, 30238, 7070, 13, 2518, 351, 1291, 12, 2890, 18, 428, 93, 16, 315, 1154, 10153, 18, 81, 1291, 7923, 6010, 273, 1140, 18, 84, 3190, 2932, 9812, 11775, 300, 81, 18935, 18, 81, 1291, 7923, 272, 273, 6010, 18, 896, 1435, 436, 273, 6010, 18, 4412, 1435, 1335, 30, 1172, 67, 21038, 67, 21696, 2932, 4064, 316, 18935, 31, 29702, 30, 9369, 468, 5186, 3965, 16486, 5908, 3247, 272, 273, 315, 7236, 555, 261, 21696, 14099, 25795, 2225, 1815, 486, 272, 18, 17514, 1918, 2932, 2930, 10153, 7923, 2238, 3208, 18, 13991, 6618, 6688, 1435, 468, 11197, 326, 3347, 306, 3355, 16486, 5908, 3247, 3970, 5186, 3965, 65, 309, 486, 436, 30, 365, 18, 8082, 18, 3576, 3215, 2224, 18, 542, 1528, 2932, 2930, 381, 6894, 7070, 13, 365, 18, 1937, 8683, 13120, 2932, 1154, 10153, 18, 72, 5733, 7923, 469, 30, 309, 486, 272, 30, 272, 273, 315, 8593, 981, 738, 86, 6, 738, 436, 365, 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, 18935, 12, 2890, 4672, 628, 1198, 1930, 1172, 67, 21038, 67, 21696, 365, 18, 8082, 18, 3576, 3215, 2224, 18, 542, 1528, 12, 315, 2930, 381, 6894, 7070, 13, 468, 10188, 883, 306, 3355, 16486, 5908, 3247, 3970, 5186, 3965, 65, 2238, 3208, 18, 542, 6618, 6688, 12, 2238, 6688, 12, 23310, 18, 5480, 6688, 13, 262, 468, 4399, 731, 326, 6126, 75, 459, 3347, 18, 306, 3355, 16486, 5908, 3247, 3970, 5186, 3965, 65, 775, 30, 365, 18, 8082, 18, 3576, 3215, 2224, 18, 542, 1528, 2932, 30238, 7070, 13, 2518, 351, 1291, 12, 2890, 18, 428, 93, 16, 315, 1154, 10153, 18, 81, 1291, 7923, 6010, 273, 1140, 18, 84, 3190, 2932, 9812, 11775, 300, 81, 2 ]
return u"%s (%s sur %s)" %(self.instance_name, self.instance_oracle, self.instance_oracle.base_server)
return u"%s (%s)" %(self.instance_name, self.instance_oracle)
def __unicode__(self): return u"%s (%s sur %s)" %(self.instance_name, self.instance_oracle, self.instance_oracle.base_server)
7b8a456f560f52ca0ce265991e808f90a446b1e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11230/7b8a456f560f52ca0ce265991e808f90a446b1e0/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 582, 28385, 87, 6142, 87, 2225, 8975, 2890, 18, 1336, 67, 529, 16, 365, 18, 1336, 67, 280, 16066, 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, 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18, 1336, 67, 529, 16, 365, 18, 1336, 67, 280, 16066, 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, -100, -100, -100, -100, -100, -100 ]
cmdrc, output = self.cmd.run("rpm --import %s" % key_arg) if cmdrc != 0: self.logger.debug("Unable to install %s-%s" % \ (self.instance_status[inst].get('pkg').get('name'), \ self.str_evra(inst))) else: self.logger.debug("Installed %s-%s-%s" % \ (self.instance_status[inst].get('pkg').get('name'), \ inst.get('version'), inst.get('release')))
self._installGPGKey(inst, key_file)
def Install(self, packages, states): """ Try and fix everything that RPMng.VerifyPackages() found wrong for each Package Entry. This can result in individual RPMs being installed (for the first time), deleted, downgraded or upgraded.
806c613f255b54d2c580b303361a7934d0324f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/806c613f255b54d2c580b303361a7934d0324f08/YUMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 12, 2890, 16, 5907, 16, 5493, 4672, 3536, 6161, 471, 2917, 7756, 716, 534, 12728, 3368, 18, 8097, 11425, 1435, 1392, 7194, 364, 1517, 7508, 3841, 18, 225, 1220, 848, 563, 316, 7327, 534, 52, 6947, 3832, 5876, 261, 1884, 326, 1122, 813, 3631, 4282, 16, 2588, 19305, 578, 31049, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 12, 2890, 16, 5907, 16, 5493, 4672, 3536, 6161, 471, 2917, 7756, 716, 534, 12728, 3368, 18, 8097, 11425, 1435, 1392, 7194, 364, 1517, 7508, 3841, 18, 225, 1220, 848, 563, 316, 7327, 534, 52, 6947, 3832, 5876, 261, 1884, 326, 1122, 813, 3631, 4282, 16, 2588, 19305, 578, 31049, 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 ]
trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mark[1].flavor())
if newVersion: trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mark[1].flavor())
def _updateVersion(trv, mark, newVersion): kind = mark[0] if kind == V_LOADED: trv.troveInfo.loadedTroves.remove(mark[1]) trv.troveInfo.loadedTroves.add(mark[1].name(), newVersion, mark[1].flavor()) elif kind == V_BREQ: trv.troveInfo.buildReqs.remove(mark[1]) trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mark[1].flavor()) elif kind == V_REFTRV: (name, oldVersion, flavor) = mark[1] byDefault = trv.includeTroveByDefault(name, oldVersion, flavor) isStrong = trv.isStrongReference(name, oldVersion, flavor) trv.delTrove(name, oldVersion, flavor, False, weakRef = not isStrong) trv.addTrove(name, newVersion, flavor, byDefault = byDefault, weakRef = not isStrong) else: assert(0)
48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e/clone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 1444, 12, 313, 90, 16, 2267, 16, 28906, 4672, 3846, 273, 2267, 63, 20, 65, 225, 309, 3846, 422, 776, 67, 31408, 30, 433, 90, 18, 88, 303, 537, 966, 18, 4230, 56, 303, 3324, 18, 4479, 12, 3355, 63, 21, 5717, 433, 90, 18, 88, 303, 537, 966, 18, 4230, 56, 303, 3324, 18, 1289, 12, 3355, 63, 21, 8009, 529, 9334, 28906, 16, 2267, 63, 21, 8009, 2242, 9444, 10756, 1327, 3846, 422, 776, 67, 38, 20373, 30, 433, 90, 18, 88, 303, 537, 966, 18, 3510, 6113, 87, 18, 4479, 12, 3355, 63, 21, 5717, 309, 28906, 30, 433, 90, 18, 88, 303, 537, 966, 18, 3510, 6113, 87, 18, 1289, 12, 3355, 63, 21, 8009, 529, 9334, 28906, 16, 2267, 63, 21, 8009, 2242, 9444, 10756, 1327, 3846, 422, 776, 67, 10771, 4349, 58, 30, 261, 529, 16, 1592, 1444, 16, 19496, 13, 273, 2267, 63, 21, 65, 635, 1868, 273, 433, 90, 18, 6702, 56, 303, 537, 858, 1868, 12, 529, 16, 1592, 1444, 16, 19496, 13, 353, 1585, 932, 273, 433, 90, 18, 291, 1585, 932, 2404, 12, 529, 16, 1592, 1444, 16, 19496, 13, 433, 90, 18, 3771, 56, 303, 537, 12, 529, 16, 1592, 1444, 16, 19496, 16, 1083, 16, 16046, 1957, 273, 486, 353, 1585, 932, 13, 433, 90, 18, 1289, 56, 303, 537, 12, 529, 16, 28906, 16, 19496, 16, 635, 1868, 273, 635, 1868, 16, 16046, 1957, 273, 486, 353, 1585, 932, 13, 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, 2725, 1444, 12, 313, 90, 16, 2267, 16, 28906, 4672, 3846, 273, 2267, 63, 20, 65, 225, 309, 3846, 422, 776, 67, 31408, 30, 433, 90, 18, 88, 303, 537, 966, 18, 4230, 56, 303, 3324, 18, 4479, 12, 3355, 63, 21, 5717, 433, 90, 18, 88, 303, 537, 966, 18, 4230, 56, 303, 3324, 18, 1289, 12, 3355, 63, 21, 8009, 529, 9334, 28906, 16, 2267, 63, 21, 8009, 2242, 9444, 10756, 1327, 3846, 422, 776, 67, 38, 20373, 30, 433, 90, 18, 88, 303, 537, 966, 18, 3510, 6113, 87, 18, 4479, 12, 3355, 63, 21, 5717, 309, 28906, 30, 433, 90, 18, 88, 303, 537, 966, 18, 3510, 6113, 87, 18, 1289, 12, 3355, 2 ]
if not callback: callback = print_line
if not callable(callback): callback = print_line
def retrlines(self, cmd, callback = None): '''Retrieve data in line mode. The argument is a RETR or LIST command. The callback function (2nd argument) is called for each line, with trailing CRLF stripped. This creates a new port for you. print_line() is the default callback.''' if not callback: callback = print_line resp = self.sendcmd('TYPE A') conn = self.transfercmd(cmd) fp = conn.makefile('rb') while 1: line = fp.readline() if self.debugging > 2: print '*retr*', `line` if not line: break if line[-2:] == CRLF: line = line[:-2] elif line[-1:] == '\n': line = line[:-1] callback(line) fp.close() conn.close() return self.voidresp()
a8dd0941b8becfb48788b333ba2329953a5d90d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a8dd0941b8becfb48788b333ba2329953a5d90d7/ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17343, 3548, 12, 2890, 16, 1797, 16, 1348, 273, 599, 4672, 9163, 5767, 501, 316, 980, 1965, 18, 1021, 1237, 353, 279, 10366, 54, 578, 15130, 1296, 18, 1021, 1348, 445, 261, 22, 4880, 1237, 13, 353, 2566, 364, 1517, 980, 16, 598, 7341, 21791, 13300, 18, 225, 1220, 3414, 279, 394, 1756, 364, 1846, 18, 1172, 67, 1369, 1435, 353, 326, 805, 1348, 1093, 6309, 309, 486, 4140, 12, 3394, 4672, 1348, 273, 1172, 67, 1369, 1718, 273, 365, 18, 4661, 4172, 2668, 2399, 432, 6134, 1487, 273, 365, 18, 13866, 4172, 12, 4172, 13, 4253, 273, 1487, 18, 6540, 768, 2668, 6731, 6134, 1323, 404, 30, 980, 273, 4253, 18, 896, 1369, 1435, 309, 365, 18, 4148, 1998, 405, 576, 30, 1172, 14609, 266, 313, 14, 2187, 1375, 1369, 68, 309,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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, 17343, 3548, 12, 2890, 16, 1797, 16, 1348, 273, 599, 4672, 9163, 5767, 501, 316, 980, 1965, 18, 1021, 1237, 353, 279, 10366, 54, 578, 15130, 1296, 18, 1021, 1348, 445, 261, 22, 4880, 1237, 13, 353, 2566, 364, 1517, 980, 16, 598, 7341, 21791, 13300, 18, 225, 1220, 3414, 279, 394, 1756, 364, 1846, 18, 1172, 67, 1369, 1435, 353, 326, 805, 1348, 1093, 6309, 309, 486, 4140, 12, 3394, 4672, 1348, 273, 1172, 67, 1369, 1718, 273, 365, 18, 4661, 4172, 2668, 2399, 432, 6134, 1487, 273, 365, 18, 13866, 4172, 12, 4172, 13, 4253, 273, 1487, 18, 6540, 768, 2668, 6731, 6134, 1323, 404, 30, 980, 273, 4253, 18, 896, 1369, 1435, 309, 365, 18, 2 ]
w = weakref.ref( o )
w = weakref.ref( o, callback )
def callback( self, w ) : self.callbackCalled = True
13a2172c20a9c9a42a7124a40eb62bc76b732653 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/13a2172c20a9c9a42a7124a40eb62bc76b732653/WrapperGarbageCollection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1348, 12, 365, 16, 341, 262, 294, 225, 365, 18, 3394, 8185, 273, 1053, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1348, 12, 365, 16, 341, 262, 294, 225, 365, 18, 3394, 8185, 273, 1053, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.log.message('Screenshot number %d served to %s' % (self.counter, self.ip), ['pixbuf', gtk.gdk.pixbuf_new_from_file(os.path.join(self.itakaglobals.image_dir, "itaka16x16-take.png"))])
self.log.message('Screenshot served to %s' % (self.ip), ['pixbuf', gtk.gdk.pixbuf_new_from_file(os.path.join(self.itakaglobals.image_dir, "itaka16x16-take.png"))])
def update_gui(self, counter=False, ip=False, time=False): """ Updates the GUI on request from the server. @type counter: int @param counter: Total number of server hits.
a3e8a8419a40b9aee1dfd5fc5cdc0cbf1daa0fbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/943/a3e8a8419a40b9aee1dfd5fc5cdc0cbf1daa0fbd/uigtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 20292, 12, 2890, 16, 3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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 20292, 12, 2890, 16, 3895, 33, 8381, 16, 2359, 33, 8381, 16, 813, 33, 8381, 4672, 3536, 15419, 326, 10978, 603, 590, 628, 326, 1438, 18, 225, 632, 723, 3895, 30, 509, 632, 891, 3895, 30, 10710, 1300, 434, 1438, 11076, 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 ]
return None, '3 invalid statement length %d' % sp_len
return model, '3 invalid statement length %d' % sp_len
def pns_triple (model, PNS_LENGTH=1024): "validate the length of a triple as fitting a PNS/UDP datagram" assert model[0] sp_len = len (model[0]) + len (model[1]) + len ( '%d%d' % (len (model[0]), len (model[1])) ) if sp_len > PNS_LENGTH/2: return None, '3 invalid statement length %d' % sp_len if model[2]: model = (model[0], model[1], model[2][:( PNS_LENGTH - sp_len - len ( '%d' % (PNS_LENGTH - sp_len) ) )], model[3]) return model, ''
9f06c33dfc5c6de1106dfed0022b98475093fa03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/9f06c33dfc5c6de1106dfed0022b98475093fa03/pns_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 313, 2444, 261, 2284, 16, 453, 3156, 67, 7096, 33, 2163, 3247, 4672, 315, 5662, 326, 769, 434, 279, 14543, 487, 23591, 279, 453, 3156, 19, 20352, 1150, 17049, 6, 1815, 938, 63, 20, 65, 1694, 67, 1897, 273, 562, 261, 2284, 63, 20, 5717, 397, 562, 261, 2284, 63, 21, 5717, 397, 562, 261, 1995, 72, 9, 72, 11, 738, 261, 1897, 261, 2284, 63, 20, 65, 3631, 562, 261, 2284, 63, 21, 22643, 262, 309, 1694, 67, 1897, 405, 453, 3156, 67, 7096, 19, 22, 30, 327, 938, 16, 296, 23, 2057, 3021, 769, 738, 72, 11, 738, 1694, 67, 1897, 225, 309, 938, 63, 22, 14542, 938, 273, 261, 2284, 63, 20, 6487, 938, 63, 21, 6487, 938, 63, 22, 6362, 30, 12, 453, 3156, 67, 7096, 300, 1694, 67, 1897, 300, 562, 261, 1995, 72, 11, 738, 261, 52, 3156, 67, 7096, 300, 1694, 67, 1897, 13, 262, 262, 6487, 938, 63, 23, 5717, 327, 938, 16, 875, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 313, 2444, 261, 2284, 16, 453, 3156, 67, 7096, 33, 2163, 3247, 4672, 315, 5662, 326, 769, 434, 279, 14543, 487, 23591, 279, 453, 3156, 19, 20352, 1150, 17049, 6, 1815, 938, 63, 20, 65, 1694, 67, 1897, 273, 562, 261, 2284, 63, 20, 5717, 397, 562, 261, 2284, 63, 21, 5717, 397, 562, 261, 1995, 72, 9, 72, 11, 738, 261, 1897, 261, 2284, 63, 20, 65, 3631, 562, 261, 2284, 63, 21, 22643, 262, 309, 1694, 67, 1897, 405, 453, 3156, 67, 7096, 19, 22, 30, 327, 938, 16, 296, 23, 2057, 3021, 769, 738, 72, 11, 738, 1694, 67, 1897, 225, 309, 938, 63, 22, 14542, 938, 273, 261, 2284, 63, 20, 2 ]
if SAGE_INCOMING_SERVER == None:
if SAGE_INCOMING_SERVER is None:
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' Sage repository, unless push_url() is changed in a setup file). If you have internet access, it's best to just do ``hg_sage.bundle(filename)``. If you don't find a revision r that you and the person unbundling both have (by looking at ``hg_sage.log()``), then do ``hg_sage.bundle(filename, base=r)``. Use self.inspect('file.bundle') to inspect the resulting bundle. This is a file that you should probably send to William Stein ([email protected]), post to a web page, or send to sage-devel. It will be written to the current directory. INPUT: - ``filename`` - output file in which to put bundle - ``options`` - pass to hg - ``url`` - url to bundle against (default: SAGE_SERVER, or push_url()) - ``base`` - a base changeset revision number to bundle against (doesn't require internet access) """ if not base is None: url = '' options = '--base=%s %s'%(int(base), options) if url is None: url = self.__push_url
b6cedfc3ec097dfea0a4c9b4ec56a612b77a1fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b6cedfc3ec097dfea0a4c9b4ec56a612b77a1fd2/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 410, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 225, 971, 1846, 1240, 24264, 2006, 16, 518, 1807, 3796, 358, 2537, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 22025, 8338, 971, 1846, 2727, 1404, 1104, 279, 6350, 436, 716, 1846, 471, 326, 6175, 640, 70, 1074, 2456, 3937, 1240, 261, 1637, 7849, 622, 12176, 26981, 67, 87, 410, 18, 1330, 1435, 10335, 3631, 1508, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 16, 1026, 33, 86, 22025, 8338, 225, 2672, 365, 18, 12009, 2668, 768, 18, 9991, 6134, 358, 5334, 326, 8156, 3440, 18, 225, 1220, 353, 279, 585, 716, 1846, 1410, 8656, 1366, 358, 678, 16607, 301, 7780, 267, 261, 91, 334, 13685, 36, 75, 4408, 18, 832, 3631, 1603, 358, 279, 3311, 1363, 16, 578, 1366, 358, 272, 410, 17, 323, 941, 18, 2597, 903, 506, 5941, 358, 326, 783, 1867, 18, 225, 12943, 30, 282, 300, 225, 12176, 3459, 10335, 300, 876, 585, 316, 1492, 358, 1378, 3440, 225, 300, 225, 12176, 2116, 10335, 300, 1342, 358, 22576, 225, 300, 225, 12176, 718, 10335, 300, 880, 358, 3440, 5314, 261, 1886, 30, 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, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 410, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 225, 971, 1846, 1240, 24264, 2006, 16, 518, 1807, 3796, 358, 2537, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 22025, 8338, 971, 1846, 2727, 1404, 1104, 279, 6350, 436, 716, 1846, 471, 326, 6175, 640, 70, 1074, 2456, 3937, 1240, 261, 1637, 7849, 622, 12176, 26981, 67, 87, 410, 18, 2 ]
"""[<cheapest|quickest] flight from <departure> to <destination> from <depart_date> [anytime|morning|afternoon|evening|<time>] to <return_date> [anytime|morning|afternoon|evening|<time>]"""
"""[<cheapest|quickest]> flight from <departure> to <destination> from <depart_date> [anytime|morning|afternoon|evening|<time>] to <return_date> [anytime|morning|afternoon|evening|<time>]"""
def int_duration(self): hours, minutes = 0, 0 match = re.search(r'(\d+)hr', self.duration) if match: hours = int(match.group(1)) match = re.search(r'(\d+)min', self.duration) if match: minutes = int(match.group(1)) return int(hours)*60 + int(minutes)
e7d1e7dcde93d4333203b67b982caade39874ba6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/e7d1e7dcde93d4333203b67b982caade39874ba6/flight.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 8760, 12, 2890, 4672, 7507, 16, 6824, 273, 374, 16, 374, 845, 273, 283, 18, 3072, 12, 86, 11, 4713, 72, 6975, 7256, 2187, 365, 18, 8760, 13, 309, 845, 30, 7507, 273, 509, 12, 1916, 18, 1655, 12, 21, 3719, 845, 273, 283, 18, 3072, 12, 86, 11, 4713, 72, 6975, 1154, 2187, 365, 18, 8760, 13, 309, 845, 30, 6824, 273, 509, 12, 1916, 18, 1655, 12, 21, 3719, 327, 509, 12, 16814, 17653, 4848, 397, 509, 12, 17916, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 8760, 12, 2890, 4672, 7507, 16, 6824, 273, 374, 16, 374, 845, 273, 283, 18, 3072, 12, 86, 11, 4713, 72, 6975, 7256, 2187, 365, 18, 8760, 13, 309, 845, 30, 7507, 273, 509, 12, 1916, 18, 1655, 12, 21, 3719, 845, 273, 283, 18, 3072, 12, 86, 11, 4713, 72, 6975, 1154, 2187, 365, 18, 8760, 13, 309, 845, 30, 6824, 273, 509, 12, 1916, 18, 1655, 12, 21, 3719, 327, 509, 12, 16814, 17653, 4848, 397, 509, 12, 17916, 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 ]
elif force_type:
elif self.force_type:
def __init__(self, *args, **kwargs): self.__data = {} if 'force_type' in kwargs: self.force_type = kwargs['force_type'] else: self.force_type = convert_lossless if isinstance(args[0], (list, tuple)): if isinstance(args[0][0], (list, tuple)): # interpret nested list as matrix A = args[0] self.__rows = len(A) self.__cols = len(A[0]) for i, row in enumerate(A): for j, a in enumerate(row): self[i, j] = a else: # interpret list as row vector v = args[0] self.__rows = len(v) self.__cols = 1 for i, e in enumerate(v): self[i, 0] = e elif isinstance(args[0], int): # create empty matrix of given dimensions if len(args) == 1: self.__rows = self.__cols = args[0] else: assert isinstance(args[1], int), 'expected int' self.__rows = args[0] self.__cols = args[1] elif isinstance(args[0], matrix): # TODO: copy or not? A = args[0] self.__data = A._matrix__data self.__rows = A._matrix__rows self.__cols = A._matrix__cols # only copy force_type when not specified if not 'force_type' in kwargs: self.force_type = A.force_type elif force_type: # apply specified force_type for i in xrange(A.__cols): for j in xrange(A.__rows): A[i,j] = self.force_type(A[i,j]) elif hasattr(args[0], 'tolist'): A = matrix(args[0].tolist()) self.__data = A._matrix__data self.__rows = A._matrix__rows self.__cols = A._matrix__cols else: raise TypeError('could not interpret given arguments')
df78f23cacb813e430f5e7dd74ac55dcf1e998c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/df78f23cacb813e430f5e7dd74ac55dcf1e998c9/matrices.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 365, 16186, 892, 273, 2618, 309, 296, 5734, 67, 723, 11, 316, 1205, 30, 365, 18, 5734, 67, 723, 273, 1205, 3292, 5734, 67, 723, 3546, 469, 30, 365, 18, 5734, 67, 723, 273, 1765, 67, 7873, 2656, 309, 1549, 12, 1968, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 309, 1549, 12, 1968, 63, 20, 6362, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 468, 10634, 4764, 666, 487, 3148, 432, 273, 833, 63, 20, 65, 365, 16186, 3870, 273, 562, 12, 37, 13, 365, 16186, 6842, 273, 562, 12, 37, 63, 20, 5717, 364, 277, 16, 1027, 316, 4241, 12, 37, 4672, 364, 525, 16, 279, 316, 4241, 12, 492, 4672, 365, 63, 77, 16, 525, 65, 273, 279, 469, 30, 468, 10634, 666, 487, 1027, 3806, 331, 273, 833, 63, 20, 65, 365, 16186, 3870, 273, 562, 12, 90, 13, 365, 16186, 6842, 273, 404, 364, 277, 16, 425, 316, 4241, 12, 90, 4672, 365, 63, 77, 16, 374, 65, 273, 425, 1327, 1549, 12, 1968, 63, 20, 6487, 509, 4672, 468, 752, 1008, 3148, 434, 864, 5769, 309, 562, 12, 1968, 13, 422, 404, 30, 365, 16186, 3870, 273, 365, 16186, 6842, 273, 833, 63, 20, 65, 469, 30, 1815, 1549, 12, 1968, 63, 21, 6487, 509, 3631, 296, 3825, 509, 11, 365, 16186, 3870, 273, 833, 63, 20, 65, 365, 16186, 6842, 273, 833, 63, 21, 65, 1327, 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, 380, 1968, 16, 2826, 4333, 4672, 365, 16186, 892, 273, 2618, 309, 296, 5734, 67, 723, 11, 316, 1205, 30, 365, 18, 5734, 67, 723, 273, 1205, 3292, 5734, 67, 723, 3546, 469, 30, 365, 18, 5734, 67, 723, 273, 1765, 67, 7873, 2656, 309, 1549, 12, 1968, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 309, 1549, 12, 1968, 63, 20, 6362, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 468, 10634, 4764, 666, 487, 3148, 432, 273, 833, 63, 20, 65, 365, 16186, 3870, 273, 562, 12, 37, 13, 365, 16186, 6842, 273, 562, 12, 37, 63, 20, 5717, 364, 277, 16, 1027, 316, 4241, 12, 37, 4672, 364, 2 ]
urls = ('http://dl.sourceforge.net/sourceforge/mysql-python/' 'MySQL-python-%s.tar.gz' % (version,),)
urls = ('http://downloads.sourceforge.net/project/mysql-python/' 'mysql-python/%(version)s/MySQL-python-%(version)s.tar.gz' % dict(version=version),)
def _build_and_install_current_dir(self, install_dir): egg_path = self._build_egg_using_setup_py() if not egg_path: return False
64d73a537cdcde0f2ce3e20787099cae55a42495 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/64d73a537cdcde0f2ce3e20787099cae55a42495/build_externals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 464, 67, 5425, 67, 2972, 67, 1214, 12, 2890, 16, 3799, 67, 1214, 4672, 25144, 67, 803, 273, 365, 6315, 3510, 67, 23171, 67, 9940, 67, 8401, 67, 2074, 1435, 309, 486, 25144, 67, 803, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3510, 67, 464, 67, 5425, 67, 2972, 67, 1214, 12, 2890, 16, 3799, 67, 1214, 4672, 25144, 67, 803, 273, 365, 6315, 3510, 67, 23171, 67, 9940, 67, 8401, 67, 2074, 1435, 309, 486, 25144, 67, 803, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 (vessel, ignored_return_value) in parallel_results["returned"]:
for (ignored_argument_vessel, returned_vessel) in parallel_results["returned"]:
def _acquire_vessels_from_list(lockserver_handle, geniuser, vesselcount, vessel_list): """ This function will try to acquire vesselcount vessels from vessel_list. If less than vesselcount can be acquired, then the partial set of vessels that were acquired will be released by this function before it returns. Returns the list of acquired vessels if successful. """ # Make sure there are sufficient vessels to even try to fulfill the request. if len(vessel_list) < vesselcount: raise UnableToAcquireResourcesError("There are not enough available vessels to fulfill the request.") acquired_vessels = [] remaining_vessel_list = vessel_list[:] # Keep trying to acquire vessels until there are no more left to acquire. # There's a "return" statement in the loop that will get out of the loop # once we've obtained all of the vessels we wanted, so here we are only # concerned with there being any vessels left to try. while len(remaining_vessel_list) > 0: # Each time through the loop we'll try to acquire the number of vessels # remaining that are needed to fulfill the user's request. remaining_needed_vesselcount = vesselcount - len(acquired_vessels) next_vessels_to_acquire = remaining_vessel_list[:remaining_needed_vesselcount] remaining_vessel_list = remaining_vessel_list[remaining_needed_vesselcount:] # Note that we haven't worried about checking if the number of remaining # vessels could still fulfill the user's request. In the name of # correctness over efficiency, we'll let this case that should be rare # (at least until the vesselcount's users are request get to be huge) # sort itself out with a few unnecessary vessel acquisition before they # ultimately get released after this loop. parallel_results = _parallel_acquire_vessels_from_list(lockserver_handle, geniuser, next_vessels_to_acquire) # The "exception" key contains a list of tuples where the first item of # the tuple is the vessel object and the second item is the str(e) of # the exception. Because the repy parellelization module that is used # underneath only passes up the exception string, we have made # _do_acquire_vessel() include the string "UnableToAcquireResourcesError" # in the exception message so we can tell these apart from more # serious failures (e.g the backed is down). for (vessel, exception_message) in parallel_results["exception"]: if "UnableToAcquireResourcesError" in exception_message: # This is ok, maybe the node is offline. log.info("Failed to acquire vessel: " + str(vessel)) elif "UnableToAcquireResourcesError" not in exception_message: # Something serious happened, maybe the backend is down. raise InternalError("Unexpected exception occurred during parallelized " + "acquisition of vessels: " + exception_message) # The "returned" key contains a list of tuples where the first item of # the tuple is the vessel object and the second is the return value # (which is None). for (vessel, ignored_return_value) in parallel_results["returned"]: # We successfully acquired this vessel. acquired_vessels.append(vessel) # If we've acquired all of the vessels the user wanted, we're done. if len(acquired_vessels) == vesselcount: log.info("Successfully acquired vessel: " + str(vessel)) return acquired_vessels # If we got here, then we didn't acquire the vessels the user wanted. We # release these vessels rather than leave the user with a partial set of # what they requested. release_vessels(lockserver_handle, acquired_vessels) raise UnableToAcquireResourcesError("Failed to acquire enough vessels to fulfill the request")
07deab39f1405c606bdaa14788874baaa838481f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/07deab39f1405c606bdaa14788874baaa838481f/vessels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1077, 1039, 67, 90, 403, 10558, 67, 2080, 67, 1098, 12, 739, 3567, 67, 4110, 16, 3157, 77, 1355, 16, 331, 403, 292, 1883, 16, 331, 403, 292, 67, 1098, 4672, 3536, 1220, 445, 903, 775, 358, 10533, 331, 403, 292, 1883, 331, 403, 10558, 628, 331, 403, 292, 67, 1098, 18, 971, 5242, 2353, 331, 403, 292, 1883, 848, 506, 20598, 16, 1508, 326, 4702, 444, 434, 331, 403, 10558, 716, 4591, 20598, 903, 506, 15976, 635, 333, 445, 1865, 518, 1135, 18, 225, 2860, 326, 666, 434, 20598, 331, 403, 10558, 309, 6873, 18, 3536, 225, 468, 4344, 3071, 1915, 854, 18662, 331, 403, 10558, 358, 5456, 775, 358, 22290, 326, 590, 18, 309, 562, 12, 90, 403, 292, 67, 1098, 13, 411, 331, 403, 292, 1883, 30, 1002, 18640, 774, 27761, 3805, 668, 2932, 9828, 854, 486, 7304, 2319, 331, 403, 10558, 358, 22290, 326, 590, 1199, 13, 225, 20598, 67, 90, 403, 10558, 273, 5378, 225, 4463, 67, 90, 403, 292, 67, 1098, 273, 331, 403, 292, 67, 1098, 10531, 65, 225, 468, 10498, 8374, 358, 10533, 331, 403, 10558, 3180, 1915, 854, 1158, 1898, 2002, 358, 10533, 18, 468, 6149, 1807, 279, 315, 2463, 6, 3021, 316, 326, 2798, 716, 903, 336, 596, 434, 326, 2798, 468, 3647, 732, 8081, 12700, 777, 434, 326, 331, 403, 10558, 732, 15504, 16, 1427, 2674, 732, 854, 1338, 468, 356, 2750, 11748, 598, 1915, 3832, 1281, 331, 403, 10558, 2002, 358, 775, 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, 389, 1077, 1039, 67, 90, 403, 10558, 67, 2080, 67, 1098, 12, 739, 3567, 67, 4110, 16, 3157, 77, 1355, 16, 331, 403, 292, 1883, 16, 331, 403, 292, 67, 1098, 4672, 3536, 1220, 445, 903, 775, 358, 10533, 331, 403, 292, 1883, 331, 403, 10558, 628, 331, 403, 292, 67, 1098, 18, 971, 5242, 2353, 331, 403, 292, 1883, 848, 506, 20598, 16, 1508, 326, 4702, 444, 434, 331, 403, 10558, 716, 4591, 20598, 903, 506, 15976, 635, 333, 445, 1865, 518, 1135, 18, 225, 2860, 326, 666, 434, 20598, 331, 403, 10558, 309, 6873, 18, 3536, 225, 468, 4344, 3071, 1915, 854, 18662, 331, 403, 10558, 358, 5456, 775, 358, 22290, 326, 590, 18, 309, 562, 2 ]
'description':hist.content
'description':key['content']
def _store_bug_history(self, cr, uid,bug_id,bug,context={}): obj = self.pool.get('crm.case.history') for hist in bug.bug.messages.entries: data = { 'name': bug.status, 'user_id': uid, 'case_id': bug_id, 'description':hist.content } obj.create(cr, uid, data, context) return True
631913389455b184f7350f25af5a005642a35eee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/631913389455b184f7350f25af5a005642a35eee/crm_lp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2233, 67, 925, 67, 8189, 12, 2890, 16, 4422, 16, 4555, 16, 925, 67, 350, 16, 925, 16, 2472, 12938, 4672, 1081, 273, 365, 18, 6011, 18, 588, 2668, 3353, 81, 18, 3593, 18, 8189, 6134, 364, 5356, 316, 7934, 18, 925, 18, 6833, 18, 8219, 30, 501, 273, 288, 296, 529, 4278, 7934, 18, 2327, 16, 296, 1355, 67, 350, 4278, 4555, 16, 296, 3593, 67, 350, 4278, 7934, 67, 350, 16, 296, 3384, 4278, 856, 3292, 1745, 3546, 289, 1081, 18, 2640, 12, 3353, 16, 4555, 16, 501, 16, 819, 13, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 389, 2233, 67, 925, 67, 8189, 12, 2890, 16, 4422, 16, 4555, 16, 925, 67, 350, 16, 925, 16, 2472, 12938, 4672, 1081, 273, 365, 18, 6011, 18, 588, 2668, 3353, 81, 18, 3593, 18, 8189, 6134, 364, 5356, 316, 7934, 18, 925, 18, 6833, 18, 8219, 30, 501, 273, 288, 296, 529, 4278, 7934, 18, 2327, 16, 296, 1355, 67, 350, 4278, 4555, 16, 296, 3593, 67, 350, 4278, 7934, 67, 350, 16, 296, 3384, 4278, 856, 3292, 1745, 3546, 289, 1081, 18, 2640, 12, 3353, 16, 4555, 16, 501, 16, 819, 13, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
The entropy dual function equals the negative log likelihood.
The entropy dual function is proportional to the negative log likelihood.
def dual(self, params=None, ignorepenalty=False): """The entropy dual function is defined for conditional models as L(theta) = sum_w q(w) log Z(w; theta) - sum_{w,x} q(w,x) [theta . f(w,x)]
2b410e32da15949ab05dc2ca96d760da0485cce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2b410e32da15949ab05dc2ca96d760da0485cce5/maxentropy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24557, 12, 2890, 16, 859, 33, 7036, 16, 2305, 1907, 15006, 33, 8381, 4672, 3536, 1986, 15943, 24557, 445, 353, 2553, 364, 11139, 3679, 487, 225, 511, 12, 14482, 13, 273, 2142, 67, 91, 1043, 12, 91, 13, 613, 2285, 12, 91, 31, 7338, 13, 300, 2142, 14147, 91, 16, 92, 97, 1043, 12, 91, 16, 92, 13, 306, 14482, 263, 284, 12, 91, 16, 92, 25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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24557, 12, 2890, 16, 859, 33, 7036, 16, 2305, 1907, 15006, 33, 8381, 4672, 3536, 1986, 15943, 24557, 445, 353, 2553, 364, 11139, 3679, 487, 225, 511, 12, 14482, 13, 273, 2142, 67, 91, 1043, 12, 91, 13, 613, 2285, 12, 91, 31, 7338, 13, 300, 2142, 14147, 91, 16, 92, 97, 1043, 12, 91, 16, 92, 13, 306, 14482, 263, 284, 12, 91, 16, 92, 25887, 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 ]
self.assertEqual(str(cmdline), prank_exe + " -d=Fasta/f002 -noxml" + \
self.assertEqual(str(cmdline), prank_exe + " -d=Fasta/fa01 -noxml" + \
def test_Prank_complex_command_line(self): """Round-trip with complex command line.""" cmdline = PrankCommandline(prank_exe) cmdline.set_parameter("d", self.infile1) cmdline.set_parameter("-noxml") cmdline.set_parameter("notree") cmdline.set_parameter("-gaprate", 0.321) cmdline.set_parameter("gapext", 0.6) cmdline.set_parameter("-dots") cmdline.set_parameter("-kappa", 3) cmdline.set_parameter("-skipins") cmdline.set_parameter("-once") cmdline.set_parameter("realbranches") self.assertEqual(str(cmdline), prank_exe + " -d=Fasta/f002 -noxml" + \ " -notree -dots -gaprate=0.321 -gapext=0.6 -kappa=3" + \ " -once -skipins -realbranches ") stdin, stdout, stderr = Application.generic_run(cmdline) self.assertEqual(stdin.return_code, 0) self.assert_("Total time" in stdout.read()) self.assertEqual(stderr.read(), "") self.assertEqual(str(stdin._cl), str(cmdline))
a806cfeb9ff5e9ef2e53bda2d6cbf112c26a249f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/a806cfeb9ff5e9ef2e53bda2d6cbf112c26a249f/test_Prank_tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2050, 2304, 67, 14259, 67, 3076, 67, 1369, 12, 2890, 4672, 3536, 11066, 17, 25125, 598, 7233, 1296, 980, 12123, 22877, 273, 2301, 2304, 2189, 1369, 12, 683, 2304, 67, 14880, 13, 22877, 18, 542, 67, 6775, 2932, 72, 3113, 365, 18, 267, 768, 21, 13, 22877, 18, 542, 67, 6775, 2932, 17, 2135, 2902, 7923, 22877, 18, 542, 67, 6775, 2932, 902, 992, 7923, 22877, 18, 542, 67, 6775, 2932, 17, 14048, 5141, 3113, 374, 18, 1578, 21, 13, 22877, 18, 542, 67, 6775, 2932, 14048, 408, 3113, 374, 18, 26, 13, 22877, 18, 542, 67, 6775, 2932, 17, 72, 6968, 7923, 22877, 18, 542, 67, 6775, 2932, 17, 79, 16569, 3113, 890, 13, 22877, 18, 542, 67, 6775, 2932, 17, 7457, 2679, 7923, 22877, 18, 542, 67, 6775, 2932, 17, 8243, 7923, 22877, 18, 542, 67, 6775, 2932, 7688, 18078, 7923, 365, 18, 11231, 5812, 12, 701, 12, 4172, 1369, 3631, 846, 2304, 67, 14880, 397, 315, 300, 72, 33, 12305, 69, 19, 507, 1611, 300, 2135, 2902, 6, 397, 521, 315, 300, 902, 992, 300, 72, 6968, 300, 14048, 5141, 33, 20, 18, 1578, 21, 300, 14048, 408, 33, 20, 18, 26, 300, 79, 16569, 33, 23, 6, 397, 521, 315, 300, 8243, 300, 7457, 2679, 300, 7688, 18078, 9369, 8801, 16, 3909, 16, 4514, 273, 4257, 18, 13540, 67, 2681, 12, 4172, 1369, 13, 365, 18, 11231, 5812, 12, 21772, 18, 2463, 67, 710, 16, 374, 13, 365, 18, 11231, 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, 67, 2050, 2304, 67, 14259, 67, 3076, 67, 1369, 12, 2890, 4672, 3536, 11066, 17, 25125, 598, 7233, 1296, 980, 12123, 22877, 273, 2301, 2304, 2189, 1369, 12, 683, 2304, 67, 14880, 13, 22877, 18, 542, 67, 6775, 2932, 72, 3113, 365, 18, 267, 768, 21, 13, 22877, 18, 542, 67, 6775, 2932, 17, 2135, 2902, 7923, 22877, 18, 542, 67, 6775, 2932, 902, 992, 7923, 22877, 18, 542, 67, 6775, 2932, 17, 14048, 5141, 3113, 374, 18, 1578, 21, 13, 22877, 18, 542, 67, 6775, 2932, 14048, 408, 3113, 374, 18, 26, 13, 22877, 18, 542, 67, 6775, 2932, 17, 72, 6968, 7923, 22877, 18, 542, 67, 6775, 2932, 17, 79, 16569, 3113, 890, 13, 22877, 2 ]
if gv_y.fits_in_immediate():
if gv_y.fits_in_simm():
def op_int_lshift(self, gv_x, gv_y): if gv_y.fits_in_immediate(): if abs(gv_y.value) >= 32: return self.rgenop.genconst(0) else: return self._arg_imm_op(gv_x, gv_y, _PPC.slwi) # computing x << y when you don't know y is <=32 # (we can assume y >= 0 though) # here's the plan: # # z = nltu(y, 32) (as per cwg) # w = x << y # r = w&z gv_a = self._arg_imm_op(gv_y, self.rgenop.genconst(32), _PPC.subfic) gv_b = self._arg_op(gv_y, _PPC.addze) gv_z = self._arg_arg_op(gv_b, gv_y, _PPC.subf) gv_w = self._arg_arg_op(gv_x, gv_y, _PPC.slw) return self._arg_arg_op(gv_z, gv_w, _PPC.and_)
1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1061, 67, 474, 67, 80, 4012, 12, 2890, 16, 11404, 67, 92, 16, 11404, 67, 93, 4672, 309, 11404, 67, 93, 18, 18352, 67, 267, 67, 9812, 81, 13332, 309, 2417, 12, 75, 90, 67, 93, 18, 1132, 13, 1545, 3847, 30, 327, 365, 18, 86, 4507, 556, 18, 4507, 10248, 12, 20, 13, 469, 30, 327, 365, 6315, 3175, 67, 381, 81, 67, 556, 12, 75, 90, 67, 92, 16, 11404, 67, 93, 16, 389, 52, 3513, 18, 2069, 91, 77, 13, 468, 20303, 619, 2296, 677, 1347, 1846, 2727, 1404, 5055, 677, 353, 1648, 1578, 468, 261, 1814, 848, 6750, 677, 1545, 374, 11376, 13, 468, 2674, 1807, 326, 4995, 30, 468, 468, 998, 273, 290, 5618, 89, 12, 93, 16, 3847, 13, 261, 345, 1534, 14098, 75, 13, 468, 341, 273, 619, 2296, 677, 468, 436, 273, 341, 10, 94, 11404, 67, 69, 273, 365, 6315, 3175, 67, 381, 81, 67, 556, 12, 75, 90, 67, 93, 16, 365, 18, 86, 4507, 556, 18, 4507, 10248, 12, 1578, 3631, 389, 52, 3513, 18, 1717, 74, 335, 13, 11404, 67, 70, 273, 365, 6315, 3175, 67, 556, 12, 75, 90, 67, 93, 16, 389, 52, 3513, 18, 1289, 8489, 13, 11404, 67, 94, 273, 365, 6315, 3175, 67, 3175, 67, 556, 12, 75, 90, 67, 70, 16, 11404, 67, 93, 16, 389, 52, 3513, 18, 1717, 74, 13, 11404, 67, 91, 273, 365, 6315, 3175, 67, 3175, 67, 556, 12, 75, 90, 67, 92, 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, 1061, 67, 474, 67, 80, 4012, 12, 2890, 16, 11404, 67, 92, 16, 11404, 67, 93, 4672, 309, 11404, 67, 93, 18, 18352, 67, 267, 67, 9812, 81, 13332, 309, 2417, 12, 75, 90, 67, 93, 18, 1132, 13, 1545, 3847, 30, 327, 365, 18, 86, 4507, 556, 18, 4507, 10248, 12, 20, 13, 469, 30, 327, 365, 6315, 3175, 67, 381, 81, 67, 556, 12, 75, 90, 67, 92, 16, 11404, 67, 93, 16, 389, 52, 3513, 18, 2069, 91, 77, 13, 468, 20303, 619, 2296, 677, 1347, 1846, 2727, 1404, 5055, 677, 353, 1648, 1578, 468, 261, 1814, 848, 6750, 677, 1545, 374, 11376, 13, 468, 2674, 1807, 326, 4995, 30, 468, 468, 998, 273, 290, 2 ]
chapter = model.get_value(iter, self.VCD_CLMN_CHTR) chapter.props.mp3_name = self.file_chooser_dialog.get_filename() self.ent_music.set_text(chapter.props.mp3_name)
if model.iter_depth(iter) == 1: iter = model.iter_parent(iter) pass name = model.get_value(iter, self.VCD_CLMN_NAME) chapter = self.__find_chapter(name) chapter.mp3_name = self.file_chooser_dialog.get_filename() self.ent_music.set_text(chapter.mp3_name)
def on_btn_choose_music_clicked(self, widget): self.file_chooser_dialog.set_action(gtk.FILE_CHOOSER_ACTION_OPEN) self.file_chooser_dialog.set_title("Choose background music") response = self.file_chooser_dialog.run() self.file_chooser_dialog.hide() if response == gtk.RESPONSE_OK: model, iter = self.tv_vcd_chapters.get_selection().get_selected() if iter == None: return chapter = model.get_value(iter, self.VCD_CLMN_CHTR) chapter.props.mp3_name = self.file_chooser_dialog.get_filename() self.ent_music.set_text(chapter.props.mp3_name) pass pass
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 11898, 67, 25777, 67, 81, 14894, 67, 7475, 329, 12, 2890, 16, 3604, 4672, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 542, 67, 1128, 12, 4521, 79, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 11437, 13, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 542, 67, 2649, 2932, 24529, 5412, 26225, 7923, 766, 273, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 2681, 1435, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 11248, 1435, 309, 766, 422, 22718, 18, 14508, 67, 3141, 30, 938, 16, 1400, 273, 365, 18, 24161, 67, 4227, 72, 67, 343, 1657, 414, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435, 309, 1400, 422, 599, 30, 327, 309, 938, 18, 2165, 67, 5979, 12, 2165, 13, 422, 404, 30, 1400, 273, 938, 18, 2165, 67, 2938, 12, 2165, 13, 1342, 508, 273, 938, 18, 588, 67, 1132, 12, 2165, 16, 365, 18, 58, 10160, 67, 5017, 49, 50, 67, 1985, 13, 23580, 273, 365, 16186, 4720, 67, 31254, 12, 529, 13, 23580, 18, 1291, 23, 67, 529, 273, 365, 18, 768, 67, 2599, 13164,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7475, 329, 12, 2890, 16, 3604, 4672, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 542, 67, 1128, 12, 4521, 79, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 11437, 13, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 542, 67, 2649, 2932, 24529, 5412, 26225, 7923, 766, 273, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 2681, 1435, 365, 18, 768, 67, 2599, 13164, 67, 12730, 18, 11248, 1435, 309, 766, 422, 22718, 18, 14508, 67, 3141, 30, 938, 16, 1400, 273, 365, 18, 24161, 67, 4227, 72, 67, 343, 1657, 414, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435, 309, 1400, 422, 2 ]
self.assertRaises(ValueError, method)
with test_support._check_py3k_warnings(quiet=True): self.assertRaises(ValueError, method)
def testMethods(self): methods = ['fileno', 'flush', 'isatty', 'next', 'read', 'readinto', 'readline', 'readlines', 'seek', 'tell', 'truncate', 'write', 'xreadlines', '__iter__'] if sys.platform.startswith('atheos'): methods.remove('truncate')
f47048e1a5d2cdae907bce267116ba28af8df34b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/f47048e1a5d2cdae907bce267116ba28af8df34b/test_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4712, 12, 2890, 4672, 2590, 273, 10228, 7540, 5764, 2187, 296, 11330, 2187, 296, 291, 270, 4098, 2187, 296, 4285, 2187, 296, 896, 2187, 296, 896, 18591, 2187, 296, 896, 1369, 2187, 296, 896, 3548, 2187, 296, 16508, 2187, 296, 88, 1165, 2187, 296, 27201, 2187, 296, 2626, 2187, 296, 92, 896, 3548, 2187, 4940, 2165, 972, 3546, 309, 2589, 18, 9898, 18, 17514, 1918, 2668, 421, 73, 538, 11, 4672, 2590, 18, 4479, 2668, 27201, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4712, 12, 2890, 4672, 2590, 273, 10228, 7540, 5764, 2187, 296, 11330, 2187, 296, 291, 270, 4098, 2187, 296, 4285, 2187, 296, 896, 2187, 296, 896, 18591, 2187, 296, 896, 1369, 2187, 296, 896, 3548, 2187, 296, 16508, 2187, 296, 88, 1165, 2187, 296, 27201, 2187, 296, 2626, 2187, 296, 92, 896, 3548, 2187, 4940, 2165, 972, 3546, 309, 2589, 18, 9898, 18, 17514, 1918, 2668, 421, 73, 538, 11, 4672, 2590, 18, 4479, 2668, 27201, 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 ]
preOps = [
postOps = [
def randomMove(values): '''Pass parental information fields to offspring''' x1, y1, x2, y2 = values # shift right with high concentration of alleles... x = random.normalvariate((x1+x2)/2., 0.1) y = random.normalvariate((y1+y2)/2., 0.1) return (x, y)
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 7607, 12, 2372, 4672, 9163, 6433, 982, 287, 1779, 1466, 358, 21174, 11638, 26418, 619, 21, 16, 677, 21, 16, 619, 22, 16, 677, 22, 273, 924, 468, 4654, 2145, 598, 3551, 20570, 8230, 367, 434, 24634, 2777, 619, 273, 2744, 18, 6130, 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, 0, 0, 0, 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, 2744, 7607, 12, 2372, 4672, 9163, 6433, 982, 287, 1779, 1466, 358, 21174, 11638, 26418, 619, 21, 16, 677, 21, 16, 619, 22, 16, 677, 22, 273, 924, 468, 4654, 2145, 598, 3551, 20570, 8230, 367, 434, 24634, 2777, 619, 273, 2744, 18, 6130, 1401, 3840, 12443, 92, 21, 15, 92, 22, 13176, 22, 12990, 374, 18, 21, 13, 677, 273, 2744, 18, 6130, 1401, 3840, 12443, 93, 21, 15, 93, 22, 13176, 22, 12990, 374, 18, 21, 13, 327, 261, 92, 16, 677, 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 ]
p -- a prime (default: 0); just the p-new subspace if given
p -- a prime (default: 0); just the $p$-new subspace if given
def dimension_new_cusp_forms_eps(eps, k=2, p=0): """ Dimension of the new subspace (or p-new subspace) of cusp forms of weight k and character eps. INPUT: eps -- a Dirichlet character k -- an integer (ddefault: 2) p -- a prime (default: 0); just the p-new subspace if given OUTPUT: Integer EXAMPLES: sage: G = DirichletGroup(9) sage: eps = G.0^3 sage: eps.conductor() 3 sage: [sage.modular.dims.dimension_new_cusp_forms_eps(eps, k) for k in [2..10]] [0, 0, 0, 2, 0, 2, 0, 2, 0] sage: [sage.modular.dims.dimension_cusp_forms_eps(eps, k) for k in [2..10]] [0, 0, 0, 2, 0, 4, 0, 6, 0] sage: [sage.modular.dims.dimension_new_cusp_forms_eps(eps, k, 3) for k in [2..10]] [0, 0, 0, 2, 0, 2, 0, 2, 0] Double check using modular symbols (independent calculation): sage: [ModularSymbols(eps,k,sign=1).cuspidal_subspace().new_subspace().dimension() for k in [2..10]] [0, 0, 0, 2, 0, 2, 0, 2, 0] sage: [ModularSymbols(eps,k,sign=1).cuspidal_subspace().new_subspace(3).dimension() for k in [2..10]] [0, 0, 0, 2, 0, 2, 0, 2, 0] Another example at level 33: sage: G = DirichletGroup(33) sage: eps = G.1 sage: eps.conductor() 11 sage: [sage.modular.dims.dimension_new_cusp_forms_eps(G.1, k) for k in [2..4]] [0, 4, 0] sage: [sage.modular.dims.dimension_new_cusp_forms_eps(G.1^2, k) for k in [2..4]] [2, 0, 6] sage: [sage.modular.dims.dimension_new_cusp_forms_eps(G.1^2, k, 3) for k in [2..4]] [2, 0, 6] """ if not isinstance(eps, dirichlet.DirichletCharacter): raise TypeError, "eps = (%s) must be a DirichletCharacter"%eps if k < 0: return Z(0) if eps.is_even(): if k % 2 == 1: return Z(0) else: # odd if k % 2 == 0: return Z(0) if k == 0: return Z(0) elif k == 1: raise NotImplementedError, "Computation of dimensions of spaces of weight 1 modular forms not implemented." N = eps.modulus() if p == 0 or N%p != 0 or valuation(eps.conductor(),p) == valuation(N,p): D = [eps.conductor()*d for d in divisors(N//eps.conductor())] return sum([dimension_cusp_forms_eps(eps.restrict(M), k)*mumu(N//M) for M in D]) eps_p = eps.restrict(N//p) old = dimension_cusp_forms(eps_p, k) return dimension_cusp_forms(eps, k) - 2*old
248019f740827c6c514f1cd94eb6bd825f071218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/248019f740827c6c514f1cd94eb6bd825f071218/dims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 67, 13058, 12, 13058, 16, 417, 33, 22, 16, 293, 33, 20, 4672, 3536, 13037, 434, 326, 394, 720, 2981, 261, 280, 293, 17, 2704, 720, 2981, 13, 434, 27964, 84, 10138, 434, 3119, 417, 471, 3351, 7785, 18, 225, 12943, 30, 7785, 1493, 279, 8446, 1354, 1810, 3351, 417, 1493, 392, 3571, 261, 72, 1886, 30, 576, 13, 293, 1493, 279, 17014, 261, 1886, 30, 374, 1769, 2537, 326, 271, 84, 8, 17, 2704, 720, 2981, 309, 864, 225, 11550, 30, 2144, 225, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 8446, 1354, 1810, 1114, 12, 29, 13, 272, 410, 30, 7785, 273, 611, 18, 20, 66, 23, 272, 410, 30, 7785, 18, 591, 1828, 280, 1435, 890, 272, 410, 30, 306, 87, 410, 18, 1711, 2490, 18, 8550, 18, 11808, 67, 2704, 67, 71, 407, 84, 67, 9741, 67, 13058, 12, 13058, 16, 417, 13, 364, 417, 316, 306, 22, 838, 2163, 13563, 306, 20, 16, 374, 16, 374, 16, 576, 16, 374, 16, 576, 16, 374, 16, 576, 16, 374, 65, 272, 410, 30, 306, 87, 410, 18, 1711, 2490, 18, 8550, 18, 11808, 67, 71, 407, 84, 67, 9741, 67, 13058, 12, 13058, 16, 417, 13, 364, 417, 316, 306, 22, 838, 2163, 13563, 306, 20, 16, 374, 16, 374, 16, 576, 16, 374, 16, 1059, 16, 374, 16, 1666, 16, 374, 65, 272, 410, 30, 306, 87, 410, 18, 1711, 2490, 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, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 67, 13058, 12, 13058, 16, 417, 33, 22, 16, 293, 33, 20, 4672, 3536, 13037, 434, 326, 394, 720, 2981, 261, 280, 293, 17, 2704, 720, 2981, 13, 434, 27964, 84, 10138, 434, 3119, 417, 471, 3351, 7785, 18, 225, 12943, 30, 7785, 1493, 279, 8446, 1354, 1810, 3351, 417, 1493, 392, 3571, 261, 72, 1886, 30, 576, 13, 293, 1493, 279, 17014, 261, 1886, 30, 374, 1769, 2537, 326, 271, 84, 8, 17, 2704, 720, 2981, 309, 864, 225, 11550, 30, 2144, 225, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 8446, 1354, 1810, 1114, 12, 29, 13, 272, 410, 30, 7785, 273, 611, 18, 20, 66, 2 ]
self.editLabelMapsFrame.collapsed = not mergeVolume
if not self.embedded: self.editLabelMapsFrame.collapsed = not mergeVolume
def updateLabelFrame(self, mergeVolume): self.editLabelMapsFrame.collapsed = not mergeVolume
887a26a7cfbe7ff2a2100ff443c17af4e6dcf734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/887a26a7cfbe7ff2a2100ff443c17af4e6dcf734/Editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2224, 3219, 12, 2890, 16, 2691, 4545, 4672, 365, 18, 4619, 2224, 8903, 3219, 18, 1293, 13886, 273, 486, 2691, 4545, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2224, 3219, 12, 2890, 16, 2691, 4545, 4672, 365, 18, 4619, 2224, 8903, 3219, 18, 1293, 13886, 273, 486, 2691, 4545, 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 ]
G = gap(Gmat)
def wtdist(Gmat, F): r""" INPUT: Gmat -- a string representing a GAP generator matrix G of a linear code. F -- a (SAGE) finite field - the base field of the code. OUTPUT: Returns the spectrum of the associated code. EXAMPLES: sage: Gstr = 'Z(2)*[[1,1,1,0,0,0,0], [1,0,0,1,1,0,0], [0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]' sage: F = GF(2) sage: sage.coding.linear_code.wtdist(Gstr, F) [1, 0, 0, 7, 7, 0, 0, 1] Here Gstr is a generator matrix of the Hamming [7,4,3] binary code. ALGORITHM: Uses C programs written by Steve Linton in the kernel of GAP, so is fairly fast. AUTHOR: David Joyner (2005-11) """ q = F.order() G = gap(Gmat) k = gap(F) C = G.GeneratorMatCode(k) n = int(C.WordLength()) z = 'Z(%s)*%s'%(q, [0]*n) # GAP zero vector as a string dist = gap.eval("w:=DistancesDistributionMatFFEVecFFE("+Gmat+", GF("+str(q)+"),"+z+")") # for some reason, this commented code doesn't work: #dist0 = gap("DistancesDistributionMatFFEVecFFE("+Gmat+", GF("+str(q)+"),"+z+")") #v0 = dist0._matrix_(F) #print dist0,v0 #d = G.DistancesDistributionMatFFEVecFFE(k, z) v = [eval(gap.eval("w["+str(i)+"]")) for i in range(1,n+2)] # because GAP returns vectors in compressed form return v
90ff33abb51043d1baa7fdf15f610546756cd0b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/90ff33abb51043d1baa7fdf15f610546756cd0b7/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18201, 4413, 12, 43, 7373, 16, 478, 4672, 436, 8395, 12943, 30, 611, 7373, 1493, 279, 533, 5123, 279, 611, 2203, 4456, 3148, 611, 434, 279, 9103, 981, 18, 478, 1493, 279, 261, 55, 2833, 13, 25922, 652, 300, 326, 1026, 652, 434, 326, 981, 18, 225, 11550, 30, 2860, 326, 17970, 434, 326, 3627, 981, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 611, 701, 273, 296, 62, 12, 22, 17653, 31128, 21, 16, 21, 16, 21, 16, 20, 16, 20, 16, 20, 16, 20, 6487, 306, 21, 16, 20, 16, 20, 16, 21, 16, 21, 16, 20, 16, 20, 6487, 306, 20, 16, 21, 16, 20, 16, 21, 16, 20, 16, 21, 16, 20, 6487, 306, 21, 16, 21, 16, 20, 16, 21, 16, 20, 16, 20, 16, 21, 65, 3864, 272, 410, 30, 478, 273, 611, 42, 12, 22, 13, 272, 410, 30, 272, 410, 18, 2014, 18, 12379, 67, 710, 18, 6046, 4413, 12, 43, 701, 16, 478, 13, 306, 21, 16, 374, 16, 374, 16, 2371, 16, 2371, 16, 374, 16, 374, 16, 404, 65, 225, 13743, 611, 701, 353, 279, 4456, 3148, 434, 326, 670, 301, 11987, 306, 27, 16, 24, 16, 23, 65, 3112, 981, 18, 225, 7981, 22548, 30, 14854, 385, 25038, 5941, 635, 7780, 537, 511, 474, 265, 316, 326, 5536, 434, 611, 2203, 16, 1427, 353, 284, 1826, 715, 4797, 18, 225, 12790, 916, 30, 463, 842, 350, 804, 83, 878, 264, 261, 6976, 25, 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, 18201, 4413, 12, 43, 7373, 16, 478, 4672, 436, 8395, 12943, 30, 611, 7373, 1493, 279, 533, 5123, 279, 611, 2203, 4456, 3148, 611, 434, 279, 9103, 981, 18, 478, 1493, 279, 261, 55, 2833, 13, 25922, 652, 300, 326, 1026, 652, 434, 326, 981, 18, 225, 11550, 30, 2860, 326, 17970, 434, 326, 3627, 981, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 611, 701, 273, 296, 62, 12, 22, 17653, 31128, 21, 16, 21, 16, 21, 16, 20, 16, 20, 16, 20, 16, 20, 6487, 306, 21, 16, 20, 16, 20, 16, 21, 16, 21, 16, 20, 16, 20, 6487, 306, 20, 16, 21, 16, 20, 16, 21, 16, 20, 16, 21, 16, 20, 6487, 2 ]
(dir, pattern) = map (native_path, words[1:3])
dir = native_path(words[1]) pattern_list = map (native_path, words[2:])
def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'."""
21e295b8fbea21a3383b789b0f44d59a3c2c9d90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/21e295b8fbea21a3383b789b0f44d59a3c2c9d90/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, 21950, 261, 6702, 471, 4433, 13, 316, 326, 5643, 1542, 471, 527, 326, 8156, 9066, 358, 296, 2890, 18, 2354, 11, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, 21950, 261, 6702, 471, 4433, 13, 316, 326, 5643, 1542, 471, 527, 326, 8156, 9066, 358, 296, 2890, 18, 2354, 11, 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 ]
preOps = [
postOps = [
def fitness(gen, sp): 'Constant positive selection pressure.' return [1, 1.01, 1.02]
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20351, 12, 4507, 16, 1694, 4672, 296, 6902, 6895, 4421, 17590, 1093, 327, 306, 21, 16, 404, 18, 1611, 16, 404, 18, 3103, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20351, 12, 4507, 16, 1694, 4672, 296, 6902, 6895, 4421, 17590, 1093, 327, 306, 21, 16, 404, 18, 1611, 16, 404, 18, 3103, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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
29346d9c058e140d544d54d82567913a1f5ad3fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/29346d9c058e140d544d54d82567913a1f5ad3fd/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 ]
perms = stat(entry.attrib['name'])[ST_MODE] if entry.attrib.get('encoding', 'ascii') == 'base64':
perms = stat(entry.get('name'))[ST_MODE] if entry.get('encoding', 'ascii') == 'base64':
def VerifyConfigFile(self, entry): try: ondisk = stat(entry.attrib['name']) except OSError: return False try: data = open(entry.attrib['name']).read() except IOError: return False try: owner = getpwuid(ondisk[ST_UID])[0] group = getgrgid(ondisk[ST_GID])[0] except KeyError: return False perms = stat(entry.attrib['name'])[ST_MODE] if entry.attrib.get('encoding', 'ascii') == 'base64': tempdata = a2b_base64(entry.text) else: tempdata = entry.text if ((data == tempdata) and (owner == entry.attrib['owner']) and (group == entry.attrib['group']) and (perms == CalcPerms(S_IFREG, entry.attrib['perms']))): return True return False
7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e/Toolset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 13705, 12, 2890, 16, 1241, 4672, 775, 30, 603, 10863, 273, 610, 12, 4099, 18, 14588, 3292, 529, 19486, 1335, 10002, 30, 327, 1083, 775, 30, 501, 273, 1696, 12, 4099, 18, 14588, 3292, 529, 3546, 2934, 896, 1435, 1335, 8340, 30, 327, 1083, 775, 30, 3410, 273, 336, 14921, 1911, 12, 1434, 10175, 63, 882, 67, 3060, 5717, 63, 20, 65, 1041, 273, 336, 3197, 15780, 12, 1434, 10175, 63, 882, 67, 28258, 5717, 63, 20, 65, 1335, 4999, 30, 327, 1083, 13793, 273, 610, 12, 4099, 18, 588, 2668, 529, 26112, 63, 882, 67, 7038, 65, 309, 1241, 18, 588, 2668, 5999, 2187, 296, 9184, 6134, 422, 296, 1969, 1105, 4278, 1906, 892, 273, 279, 22, 70, 67, 1969, 1105, 12, 4099, 18, 955, 13, 469, 30, 1906, 892, 273, 1241, 18, 955, 309, 14015, 892, 422, 1906, 892, 13, 471, 261, 8443, 422, 1241, 18, 14588, 3292, 8443, 19486, 471, 261, 1655, 422, 1241, 18, 14588, 3292, 1655, 19486, 471, 261, 15969, 422, 29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]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 13705, 12, 2890, 16, 1241, 4672, 775, 30, 603, 10863, 273, 610, 12, 4099, 18, 14588, 3292, 529, 19486, 1335, 10002, 30, 327, 1083, 775, 30, 501, 273, 1696, 12, 4099, 18, 14588, 3292, 529, 3546, 2934, 896, 1435, 1335, 8340, 30, 327, 1083, 775, 30, 3410, 273, 336, 14921, 1911, 12, 1434, 10175, 63, 882, 67, 3060, 5717, 63, 20, 65, 1041, 273, 336, 3197, 15780, 12, 1434, 10175, 63, 882, 67, 28258, 5717, 63, 20, 65, 1335, 4999, 30, 327, 1083, 13793, 273, 610, 12, 4099, 18, 588, 2668, 529, 26112, 63, 882, 67, 7038, 65, 309, 1241, 18, 588, 2668, 5999, 2187, 296, 9184, 6134, 422, 296, 1969, 1105, 4278, 1906, 892, 273, 279, 2 ]
def ReadTestData(self, root_key):
def ReadTestData(self, root_key, subkeystr="sub_key"):
def ReadTestData(self, root_key): # Check we can get default value for this key. val = QueryValue(root_key, test_key_name) self.assertEquals(val, "Default value", "Registry didn't give back the correct value")
f82d9b52fae475a132a21d1b7174730f17b735de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f82d9b52fae475a132a21d1b7174730f17b735de/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 16, 21949, 701, 1546, 1717, 67, 856, 6, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, 365, 18, 11231, 8867, 12, 1125, 16, 315, 1868, 460, 3113, 315, 4243, 10242, 1404, 8492, 1473, 326, 3434, 460, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 16, 21949, 701, 1546, 1717, 67, 856, 6, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, 365, 18, 11231, 8867, 12, 1125, 16, 315, 1868, 460, 3113, 315, 4243, 10242, 1404, 8492, 1473, 326, 3434, 460, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
entriesbyname.setdefault(e.gr_name, []).append(e) entriesbygid.setdefault(e.gr_gid, []).append(e)
def test_values(self): entries = grp.getgrall() entriesbyname = {} entriesbygid = {}
06d931f1984c46efd666d05ec8e64fecf08973b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/06d931f1984c46efd666d05ec8e64fecf08973b9/test_grp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 3222, 273, 14295, 18, 588, 3197, 454, 1435, 3222, 1637, 529, 273, 2618, 3222, 1637, 15780, 273, 2618, 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, 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, 2372, 12, 2890, 4672, 3222, 273, 14295, 18, 588, 3197, 454, 1435, 3222, 1637, 529, 273, 2618, 3222, 1637, 15780, 273, 2618, 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 ]
def replace_indices(self, old_indices, new_indices):
def apply_tensor(self, indices): if not self.index_slots is None: raise MonomialException, "Expecting scalar-valued expression." self.index_slots = indices def apply_indices(self, indices): print "Applying indices:", self.index_slots, "-->", indices
def replace_indices(self, old_indices, new_indices): for v in self.basis_functions: v.replace_indices(old_indices, new_indices) for f in self.functions: f.replace_indices(old_indices, new_indices)
77f5b57aca0f4f80bf6d0d5a9436b738045bd57c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/77f5b57aca0f4f80bf6d0d5a9436b738045bd57c/monomials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 13720, 12, 2890, 16, 4295, 4672, 309, 486, 365, 18, 1615, 67, 18875, 353, 599, 30, 1002, 490, 4708, 649, 503, 16, 315, 24439, 4981, 17, 4531, 329, 2652, 1199, 365, 18, 1615, 67, 18875, 273, 4295, 225, 1652, 2230, 67, 6836, 12, 2890, 16, 4295, 4672, 1172, 315, 7001, 310, 4295, 2773, 16, 365, 18, 1615, 67, 18875, 16, 5238, 2984, 16, 4295, 364, 331, 316, 365, 18, 23774, 67, 10722, 30, 331, 18, 2079, 67, 6836, 12, 1673, 67, 6836, 16, 394, 67, 6836, 13, 364, 284, 316, 365, 18, 10722, 30, 284, 18, 2079, 67, 6836, 12, 1673, 67, 6836, 16, 394, 67, 6836, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 13720, 12, 2890, 16, 4295, 4672, 309, 486, 365, 18, 1615, 67, 18875, 353, 599, 30, 1002, 490, 4708, 649, 503, 16, 315, 24439, 4981, 17, 4531, 329, 2652, 1199, 365, 18, 1615, 67, 18875, 273, 4295, 225, 1652, 2230, 67, 6836, 12, 2890, 16, 4295, 4672, 1172, 315, 7001, 310, 4295, 2773, 16, 365, 18, 1615, 67, 18875, 16, 5238, 2984, 16, 4295, 364, 331, 316, 365, 18, 23774, 67, 10722, 30, 331, 18, 2079, 67, 6836, 12, 1673, 67, 6836, 16, 394, 67, 6836, 13, 364, 284, 316, 365, 18, 10722, 30, 284, 18, 2079, 67, 6836, 12, 1673, 67, 6836, 16, 394, 67, 6836, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Process arguments and decide which source files to compile. Merges _fix_compile_args() and _prep_compile(). """
"""Process arguments and decide which source files to compile."""
def _setup_compile(self, outdir, macros, incdirs, sources, depends, extra): """Process arguments and decide which source files to compile.
b293024314eb7b21eec80dd2cebe28a87661b28b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b293024314eb7b21eec80dd2cebe28a87661b28b/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 11100, 12, 2890, 16, 15398, 16, 24302, 16, 7290, 8291, 16, 5550, 16, 10935, 16, 2870, 4672, 3536, 2227, 1775, 471, 16288, 1492, 1084, 1390, 358, 4074, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 11100, 12, 2890, 16, 15398, 16, 24302, 16, 7290, 8291, 16, 5550, 16, 10935, 16, 2870, 4672, 3536, 2227, 1775, 471, 16288, 1492, 1084, 1390, 358, 4074, 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 ]
date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time
date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6]
def printdir(self): """Print a table of contents for the zip file.""" print "%-46s %19s %12s" % ("File Name", "Modified ", "Size") for zinfo in self.filelist: date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time print "%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size)
c7dbb2122f7c36d242bacf78dddbe183797244be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/c7dbb2122f7c36d242bacf78dddbe183797244be/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1214, 12, 2890, 4672, 3536, 5108, 279, 1014, 434, 2939, 364, 326, 3144, 585, 12123, 1172, 2213, 17, 8749, 87, 738, 3657, 87, 738, 2138, 87, 6, 738, 7566, 812, 1770, 3113, 315, 4575, 565, 3104, 315, 1225, 7923, 364, 998, 1376, 316, 365, 18, 7540, 5449, 30, 1509, 273, 2213, 72, 6456, 3103, 72, 6456, 3103, 72, 738, 3103, 72, 5319, 3103, 72, 5319, 3103, 72, 6, 738, 998, 1376, 18, 712, 67, 957, 10531, 26, 65, 1172, 2213, 17, 8749, 87, 738, 87, 738, 2138, 72, 6, 738, 261, 94, 1376, 18, 3459, 16, 1509, 16, 998, 1376, 18, 768, 67, 1467, 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,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, 434, 2939, 364, 326, 3144, 585, 12123, 1172, 2213, 17, 8749, 87, 738, 3657, 87, 738, 2138, 87, 6, 738, 7566, 812, 1770, 3113, 315, 4575, 565, 3104, 315, 1225, 7923, 364, 998, 1376, 316, 365, 18, 7540, 5449, 30, 1509, 273, 2213, 72, 6456, 3103, 72, 6456, 3103, 72, 738, 3103, 72, 5319, 3103, 72, 5319, 3103, 72, 6, 738, 998, 1376, 18, 712, 67, 957, 10531, 26, 65, 1172, 2213, 17, 8749, 87, 738, 87, 738, 2138, 72, 6, 738, 261, 94, 1376, 18, 3459, 16, 1509, 16, 998, 1376, 18, 768, 67, 1467, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.printVerbose("ProcessSignals: calling %s with %s" % (handler, value))
self.printEvent("ProcessSignals: Calling %s with %s" % (handler, value), eventVerbosity = 2)
def processSignals(self): if self.processingHandler: self.processingHandler(self, 1) # focus on active widget # we define only a way to handle signals that have defined a handler function for key in self.linksIn.keys(): for i in range(len(self.linksIn[key])): (dirty, widgetFrom, handler, signalData) = self.linksIn[key][i] if not (handler and dirty): continue qApp.setOverrideCursor(QWidget.waitCursor) try: for (value, id, nameFrom) in signalData: if self.signalIsOnlySingleConnection(key): self.printVerbose("ProcessSignals: calling %s with %s" % (handler, value)) handler(value) else: self.printVerbose("ProcessSignals: calling %s with %s (%s, %s)" % (handler, value, nameFrom, id)) handler(value, (widgetFrom, nameFrom, id)) except: type, val, traceback = sys.exc_info() sys.excepthook(type, val, traceback) # we pretend that we handled the exception, so that we don't crash other widgets
0e491378e71212a6a34471826031736d4a3a8cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e491378e71212a6a34471826031736d4a3a8cd6/OWBaseWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 23346, 12, 2890, 4672, 309, 365, 18, 10632, 1503, 30, 365, 18, 10632, 1503, 12, 2890, 16, 404, 13, 565, 468, 7155, 603, 2695, 3604, 225, 468, 732, 4426, 1338, 279, 4031, 358, 1640, 11505, 716, 1240, 2553, 279, 1838, 445, 364, 498, 316, 365, 18, 7135, 382, 18, 2452, 13332, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 7135, 382, 63, 856, 22643, 30, 261, 18013, 16, 3604, 1265, 16, 1838, 16, 4277, 751, 13, 273, 365, 18, 7135, 382, 63, 856, 6362, 77, 65, 309, 486, 261, 4176, 471, 9603, 4672, 1324, 225, 1043, 3371, 18, 542, 6618, 6688, 12, 53, 4609, 18, 7048, 6688, 13, 775, 30, 364, 261, 1132, 16, 612, 16, 508, 1265, 13, 316, 4277, 751, 30, 309, 365, 18, 10420, 2520, 3386, 5281, 1952, 12, 856, 4672, 365, 18, 1188, 1133, 2932, 2227, 23346, 30, 21020, 738, 87, 598, 738, 87, 6, 738, 261, 4176, 16, 460, 3631, 871, 30594, 273, 576, 13, 1838, 12, 1132, 13, 469, 30, 365, 18, 1188, 14489, 2932, 2227, 23346, 30, 4440, 738, 87, 598, 738, 87, 6142, 87, 16, 738, 87, 2225, 738, 261, 4176, 16, 460, 16, 508, 1265, 16, 612, 3719, 1838, 12, 1132, 16, 261, 6587, 1265, 16, 508, 1265, 16, 612, 3719, 1335, 30, 618, 16, 1244, 16, 10820, 273, 2589, 18, 10075, 67, 1376, 1435, 2589, 18, 14137, 4476, 12, 723, 16, 1244, 16, 10820, 13, 225, 468, 732, 675, 17445, 716, 732, 7681, 326, 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, 1207, 23346, 12, 2890, 4672, 309, 365, 18, 10632, 1503, 30, 365, 18, 10632, 1503, 12, 2890, 16, 404, 13, 565, 468, 7155, 603, 2695, 3604, 225, 468, 732, 4426, 1338, 279, 4031, 358, 1640, 11505, 716, 1240, 2553, 279, 1838, 445, 364, 498, 316, 365, 18, 7135, 382, 18, 2452, 13332, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 7135, 382, 63, 856, 22643, 30, 261, 18013, 16, 3604, 1265, 16, 1838, 16, 4277, 751, 13, 273, 365, 18, 7135, 382, 63, 856, 6362, 77, 65, 309, 486, 261, 4176, 471, 9603, 4672, 1324, 225, 1043, 3371, 18, 542, 6618, 6688, 12, 53, 4609, 18, 7048, 6688, 13, 775, 30, 364, 261, 1132, 16, 612, 16, 2 ]
del pool del self.pools[pool]
def __checkPlatforms(self): # this method is called at initalization and at the begining of each execution # in this way running parameters can be dynamically changed via the remote # configuration.
2c8b030e3e540a9a0664ef5f79e465bec0c638a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2c8b030e3e540a9a0664ef5f79e465bec0c638a8/Director.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 8201, 87, 12, 2890, 4672, 468, 333, 707, 353, 2566, 622, 1208, 287, 1588, 471, 622, 326, 2376, 310, 434, 1517, 4588, 468, 316, 333, 4031, 3549, 1472, 848, 506, 18373, 3550, 3970, 326, 2632, 468, 1664, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 8201, 87, 12, 2890, 4672, 468, 333, 707, 353, 2566, 622, 1208, 287, 1588, 471, 622, 326, 2376, 310, 434, 1517, 4588, 468, 316, 333, 4031, 3549, 1472, 848, 506, 18373, 3550, 3970, 326, 2632, 468, 1664, 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 ]
def send(mfrom, mto, subject, body, composer=NonMultipartComposer(),
def send(mfrom, mto, subject, body, composer=Composer(),
def send(mfrom, mto, subject, body, composer=NonMultipartComposer(), sender=SendmailSender()): message = composer.compose(body, From=mfrom, To=mto, Subject=subject) return sender.send(message)
b1c9b7f37338915f1e0b475520c1f108e559d644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/b1c9b7f37338915f1e0b475520c1f108e559d644/qMail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 81, 2080, 16, 312, 869, 16, 3221, 16, 1417, 16, 8561, 33, 14404, 9334, 5793, 33, 3826, 4408, 12021, 1435, 4672, 883, 273, 8561, 18, 23658, 12, 3432, 16, 6338, 33, 81, 2080, 16, 2974, 33, 81, 869, 16, 9912, 33, 7857, 13, 327, 5793, 18, 4661, 12, 2150, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 12, 81, 2080, 16, 312, 869, 16, 3221, 16, 1417, 16, 8561, 33, 14404, 9334, 5793, 33, 3826, 4408, 12021, 1435, 4672, 883, 273, 8561, 18, 23658, 12, 3432, 16, 6338, 33, 81, 2080, 16, 2974, 33, 81, 869, 16, 9912, 33, 7857, 13, 327, 5793, 18, 4661, 12, 2150, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
height += 12
sbar = 12 height += sbar else: sbar = 0
def get_window_size(self): if self.get("[Screen]", "bFullScreen"): print "WARNING: don't start Hatari UI with fullscreened Hatari!"
69cc5c050c0485cf2169524f40bad5e09d270bcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8501/69cc5c050c0485cf2169524f40bad5e09d270bcd/hatari.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5668, 67, 1467, 12, 2890, 4672, 309, 365, 18, 588, 2932, 63, 7956, 65, 3113, 315, 70, 5080, 7956, 6, 4672, 1172, 315, 9511, 30, 2727, 1404, 787, 670, 8761, 77, 6484, 598, 1983, 9252, 329, 670, 8761, 77, 4442, 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,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172, 315, 9511, 30, 2727, 1404, 787, 670, 8761, 77, 6484, 598, 1983, 9252, 329, 670, 8761, 77, 4442, 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 ]
p.lineto(dx, points[i])
path.lineto(dx, points[i])
def parse_path(e): p = BezierPath() d = get_attribute(e, "d", default="") # Divide the path data string into segments. # Each segment starts with a path command, # usually followed by coordinates. segments = [] i = 0 for j in range(len(d)): commands = ["M", "m", "Z", "z", "L", "l", "H", "h", "V", "v", "C","c", "S", "s", "A"] if d[j] in commands: segments.append(d[i:j].strip()) i = j segments.append(d[i:].strip()) segments.remove("") previous_command = "" # Path origin (moved by MOVETO). x0 = 0 y0 = 0 # The current point in the path. dx = 0 dy = 0 # The previous second control handle. dhx = 0 dhy = 0 p.moveto(0,0) for segment in segments: command = segment[0] if command in ["Z", "z"]: p.close() else: # The command is a pen move, line or curve. # Get the coordinates. points = segment[1:].strip() points = points.replace("-", ",-") points = points.replace(" ", ",") points = re.sub(",+", ",", points) points = points.strip(",") points = [float(i) for i in points.split(",")] # Absolute MOVETO. # Move the current point to the new coordinates. if command == "M": for i in range(len(points)/2): p.moveto(points[i*2], points[i*2+1]) dx = points[i*2] dy = points[i*2+1] x0 = dx y0 = dy # Relative MOVETO. # Offset from the current point. elif command == "m": for i in range(len(points)/2): p.moveto(dx+points[i*2], dy+points[i*2+1]) dx += points[i*2] dy += points[i*2+1] x0 = dx y0 = dy # Absolute LINETO. # Draw a line from the current point to the new coordinate. elif command == "L": for i in range(len(points)/2): p.lineto(points[i*2], points[i*2+1]) dx = points[i*2] dy = points[i*2+1] # Relative LINETO. # Offset from the current point. elif command == "l": for i in range(len(points)/2): p.lineto(dx+points[i*2], dy+points[i*2+1]) dx += points[i*2] dy += points[i*2+1] # Absolute horizontal LINETO. # Only the vertical coordinate is supplied. elif command == "H": for i in range(len(points)): p.lineto(points[i], dy) dx = points[i] # Relative horizontal LINETO. # Offset from the current point. elif command == "h": for i in range(len(points)): p.lineto(dx+points[i], dy) dx += points[i] # Absolute vertical LINETO. # Only the horizontal coordinate is supplied. if command == "V": for i in range(len(points)): p.lineto(dx, points[i]) dy = points[i] # Relative vertical LINETO. # Offset from the current point. elif command == "v": for i in range(len(points)): p.lineto(dx, dy+points[i]) dy += points[i] # Absolute CURVETO. # Draw a bezier with given control handles and destination. elif command == "C": for i in range(len(points)/6): p.curveto(points[i*6], points[i*6+1], points[i*6+2], points[i*6+3], points[i*6+4], points[i*6+5]) dhx = points[i*6+2] dhy = points[i*6+3] dx = points[i*6+4] dy = points[i*6+5] # Relative CURVETO. # Offset from the current point. elif command == "c": for i in range(len(points)/6): p.curveto(dx+points[i*6], dy+points[i*6+1], dx+points[i*6+2], dy+points[i*6+3], dx+points[i*6+4], dy+points[i*6+5]) dhx = dx+points[i*6+2] dhy = dy+points[i*6+3] dx += points[i*6+4] dy += points[i*6+5] # Absolute reflexive CURVETO. # Only the second control handle is given, # the first is the reflexion of the previous handle. elif command == "S": for i in range(len(points)/4): if previous_command not in ["C", "c", "S", "s"]: dhx = dx dhy = dy else: dhx = dx-dhx dhy = dy-dhy p.curveto(dx+dhx, dy+dhy, points[i*4], points[i*4+1], points[i*4+2], points[i*4+3]) dhx = points[i*4] dhy = points[i*4+1] dx = points[i*4+2] dy = points[i*4+3] # Relative reflexive CURVETO. # Offset from the current point. elif command == "s": for i in range(len(points)/4): if previous_command not in ["C", "c", "S", "s"]: dhx = dx dhy = dy else: dhx = dx-dhx dhy = dy-dhy p.curveto(dx+dhx, dy+dhy, dx+points[i*4], dy+points[i*4+1], dx+points[i*4+2], dy+points[i*4+3]) dhx = dx+points[i*4] dhy = dy+points[i*4+1] dx += points[i*4+2] dy += points[i*4+3] # Absolute elliptical arc. elif command == "A": rx, ry, phi, large_arc_flag, sweep_flag, x2, y2 = points for po in arc.elliptical_arc_to(dx, dy, rx, ry, phi, large_arc_flag, sweep_flag, x2, y2): if len(po) == 2: p.lineto(*po) elif len(po) == 6: p.curveto(*po) dx = po[-2] dy = po[-1] previous_command = command return p
4284758b928e6ce257c68e38e49e8e35b9986569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/612/4284758b928e6ce257c68e38e49e8e35b9986569/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 803, 12, 73, 4672, 225, 293, 273, 4823, 18377, 743, 1435, 302, 273, 336, 67, 4589, 12, 73, 16, 315, 72, 3113, 805, 1546, 7923, 225, 468, 21411, 831, 326, 589, 501, 533, 1368, 5155, 18, 468, 8315, 3267, 2542, 598, 279, 589, 1296, 16, 468, 11234, 10860, 635, 5513, 18, 5155, 273, 5378, 277, 273, 374, 364, 525, 316, 1048, 12, 1897, 12, 72, 3719, 30, 4364, 273, 8247, 49, 3113, 315, 81, 3113, 315, 62, 3113, 315, 94, 3113, 315, 48, 3113, 315, 80, 3113, 315, 44, 3113, 315, 76, 3113, 315, 58, 3113, 315, 90, 3113, 315, 39, 15937, 71, 3113, 315, 55, 3113, 315, 87, 3113, 315, 37, 11929, 309, 302, 63, 78, 65, 316, 4364, 30, 5155, 18, 6923, 12, 72, 63, 77, 30, 78, 8009, 6406, 10756, 277, 273, 525, 5155, 18, 6923, 12, 72, 63, 77, 30, 8009, 6406, 10756, 5155, 18, 4479, 2932, 7923, 225, 2416, 67, 3076, 273, 1408, 225, 468, 2666, 4026, 261, 81, 9952, 635, 16070, 58, 1584, 51, 2934, 619, 20, 273, 374, 677, 20, 273, 374, 225, 468, 1021, 783, 1634, 316, 326, 589, 18, 6633, 273, 374, 7732, 273, 374, 225, 468, 1021, 2416, 2205, 3325, 1640, 18, 11007, 92, 273, 374, 11007, 93, 273, 374, 225, 293, 18, 81, 1527, 11453, 12, 20, 16, 20, 13, 364, 3267, 316, 5155, 30, 225, 1296, 273, 3267, 63, 20, 65, 225, 309, 1296, 316, 8247, 62, 3113, 315, 94, 11929, 30, 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, 1109, 67, 803, 12, 73, 4672, 225, 293, 273, 4823, 18377, 743, 1435, 302, 273, 336, 67, 4589, 12, 73, 16, 315, 72, 3113, 805, 1546, 7923, 225, 468, 21411, 831, 326, 589, 501, 533, 1368, 5155, 18, 468, 8315, 3267, 2542, 598, 279, 589, 1296, 16, 468, 11234, 10860, 635, 5513, 18, 5155, 273, 5378, 277, 273, 374, 364, 525, 316, 1048, 12, 1897, 12, 72, 3719, 30, 4364, 273, 8247, 49, 3113, 315, 81, 3113, 315, 62, 3113, 315, 94, 3113, 315, 48, 3113, 315, 80, 3113, 315, 44, 3113, 315, 76, 3113, 315, 58, 3113, 315, 90, 3113, 315, 39, 15937, 71, 3113, 315, 55, 3113, 315, 87, 3113, 315, 37, 11929, 309, 302, 63, 2 ]
obj = DBHandler.create(self, params, user)
obj = DBHandler.create(self, params, user, request)
def create(self, params, user, request): """Admin only function""" if not user or not user.has_auth_group("admin"): raise Unauthorized() obj = DBHandler.create(self, params, user) if obj.password == "": # Send them a password obj.send_password(request.real_host_url) return obj
dd984d4bd76aa4609405d4e294b05d6c457636b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/dd984d4bd76aa4609405d4e294b05d6c457636b0/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 859, 16, 729, 16, 590, 4672, 3536, 4446, 1338, 445, 8395, 309, 486, 729, 578, 486, 729, 18, 5332, 67, 1944, 67, 1655, 2932, 3666, 6, 4672, 1002, 15799, 1435, 1081, 273, 2383, 1503, 18, 2640, 12, 2890, 16, 859, 16, 729, 16, 590, 13, 309, 1081, 18, 3664, 422, 1408, 30, 468, 2479, 2182, 279, 2201, 1081, 18, 4661, 67, 3664, 12, 2293, 18, 7688, 67, 2564, 67, 718, 13, 327, 1081, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 859, 16, 729, 16, 590, 4672, 3536, 4446, 1338, 445, 8395, 309, 486, 729, 578, 486, 729, 18, 5332, 67, 1944, 67, 1655, 2932, 3666, 6, 4672, 1002, 15799, 1435, 1081, 273, 2383, 1503, 18, 2640, 12, 2890, 16, 859, 16, 729, 16, 590, 13, 309, 1081, 18, 3664, 422, 1408, 30, 468, 2479, 2182, 279, 2201, 1081, 18, 4661, 67, 3664, 12, 2293, 18, 7688, 67, 2564, 67, 718, 13, 327, 1081, 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 ]
def vector2point(x): r = oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)]) return r
vector2point = lambda x: oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)])
def vector2point(x): r = oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)]) return r
cfebbf2eea1adaec78560ab1e49906616af99fc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/cfebbf2eea1adaec78560ab1e49906616af99fc0/FDmisc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 22, 1153, 12, 92, 4672, 436, 273, 320, 556, 763, 12, 1937, 5014, 751, 397, 306, 12, 83, 1527, 16, 619, 63, 5161, 1401, 67, 11265, 63, 77, 14542, 5161, 1401, 67, 11265, 63, 77, 15, 21, 65, 5717, 364, 277, 16, 320, 1527, 316, 4241, 12, 3838, 5555, 13, 5717, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 22, 1153, 12, 92, 4672, 436, 273, 320, 556, 763, 12, 1937, 5014, 751, 397, 306, 12, 83, 1527, 16, 619, 63, 5161, 1401, 67, 11265, 63, 77, 14542, 5161, 1401, 67, 11265, 63, 77, 15, 21, 65, 5717, 364, 277, 16, 320, 1527, 316, 4241, 12, 3838, 5555, 13, 5717, 327, 436, 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 ]
self.assertEqual( r.getAttribute( "gl:textPrimitive:type" ), StringData( "mesh" ) )
if withFreeType() : self.assertEqual( r.getAttribute( "gl:textPrimitive:type" ), StringData( "mesh" ) )
def testAttributes( self ) :
5269537634ed49911911dd1849c9c2143eb63137 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/5269537634ed49911911dd1849c9c2143eb63137/Renderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 365, 262, 294, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2498, 12, 365, 262, 294, 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 ]
def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False):
def is_circular_planar(self, ordered=True, on_embedding=None, kuratowski=False, set_embedding=False, set_pos=False):
def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): """ A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary vertices can be drawn in order on a disc boundary, with all the interior vertices drawn inside the disc. Returns True if the graph is circular planar, and False if it is not. If kuratowski is set to True, then this function will return a tuple, with boolean first entry and second entry the Kuratowski subgraph or minor isolated by the Boyer-Myrvold algorithm. Note that this graph might contain a vertex or edges that were not in the initial graph. These would be elements referred to below as parts of the wheel and the star, which were added to the graph to require that the boundary can be drawn on the boundary of a disc, with all other vertices drawn inside (and no edge crossings). For more information, refer to reference [2]. This is a linear time algorithm to test for circular planarity. It relies on the edge-addition planarity algorithm due to Boyer-Myrvold. We accomplish linear time for circular planarity by modifying the graph before running the general planarity algorithm. REFERENCE:
836868c2d31c96e5f08cdfab71945dd066a12d47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/836868c2d31c96e5f08cdfab71945dd066a12d47/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 11614, 9559, 67, 7088, 297, 12, 2890, 16, 5901, 33, 5510, 16, 603, 67, 23744, 33, 7036, 16, 417, 295, 270, 543, 7771, 77, 33, 8381, 16, 444, 67, 23744, 33, 8381, 16, 444, 67, 917, 33, 8381, 4672, 3536, 432, 2667, 261, 1918, 1661, 5531, 7679, 13, 353, 15302, 4995, 297, 309, 518, 711, 279, 4995, 297, 15853, 316, 1492, 777, 7679, 6928, 848, 506, 19377, 316, 1353, 603, 279, 19169, 7679, 16, 598, 777, 326, 26230, 6928, 19377, 4832, 326, 19169, 18, 225, 2860, 1053, 309, 326, 2667, 353, 15302, 4995, 297, 16, 471, 1083, 309, 518, 353, 486, 18, 971, 417, 295, 270, 543, 7771, 77, 353, 444, 358, 1053, 16, 1508, 333, 445, 903, 327, 279, 3193, 16, 598, 1250, 1122, 1241, 471, 2205, 1241, 326, 1475, 295, 270, 543, 7771, 77, 21469, 578, 8439, 25790, 635, 326, 605, 13372, 264, 17, 12062, 4962, 1673, 4886, 18, 3609, 716, 333, 2667, 4825, 912, 279, 5253, 578, 5231, 716, 4591, 486, 316, 326, 2172, 2667, 18, 8646, 4102, 506, 2186, 29230, 358, 5712, 487, 2140, 434, 326, 19100, 471, 326, 10443, 16, 1492, 4591, 3096, 358, 326, 2667, 358, 2583, 716, 326, 7679, 848, 506, 19377, 603, 326, 7679, 434, 279, 19169, 16, 598, 777, 1308, 6928, 19377, 4832, 261, 464, 1158, 3591, 6828, 899, 2934, 2457, 1898, 1779, 16, 8884, 358, 2114, 306, 22, 8009, 225, 1220, 353, 279, 9103, 813, 4886, 358, 1842, 364, 15302, 4995, 20498, 18, 2597, 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, 353, 67, 11614, 9559, 67, 7088, 297, 12, 2890, 16, 5901, 33, 5510, 16, 603, 67, 23744, 33, 7036, 16, 417, 295, 270, 543, 7771, 77, 33, 8381, 16, 444, 67, 23744, 33, 8381, 16, 444, 67, 917, 33, 8381, 4672, 3536, 432, 2667, 261, 1918, 1661, 5531, 7679, 13, 353, 15302, 4995, 297, 309, 518, 711, 279, 4995, 297, 15853, 316, 1492, 777, 7679, 6928, 848, 506, 19377, 316, 1353, 603, 279, 19169, 7679, 16, 598, 777, 326, 26230, 6928, 19377, 4832, 326, 19169, 18, 225, 2860, 1053, 309, 326, 2667, 353, 15302, 4995, 297, 16, 471, 1083, 309, 518, 353, 486, 18, 971, 417, 295, 270, 543, 7771, 77, 353, 444, 358, 1053, 16, 1508, 333, 2 ]
successful[path] = res['Message']
successful[path] = res['Value']
def getPathPermissions(self,path): """ Determine the VOMs based ACL information for a supplied path """ res = self.__checkArgumentFormat(path) if not res['OK']: return res lfns = res['Value'] created = self.__openSession() failed = {} successful = {} for path in lfns.keys(): res = self.__getBasePath(path) if not res['OK']: failed[path] = res['Message'] else: basePath = res['Value'] res = self.__getACLInformation(basePath) if not res['OK']: failed[path] = res['Message'] else: successful[path] = res['Message'] if created: self.__closeSession() resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict)
d5a520113cf8a47dec2f5fc794d5af90f0245a93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/d5a520113cf8a47dec2f5fc794d5af90f0245a93/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4339, 6521, 12, 2890, 16, 803, 4672, 3536, 10229, 326, 776, 1872, 87, 2511, 10098, 1779, 364, 279, 4580, 589, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 18594, 2387, 273, 400, 3292, 620, 3546, 2522, 273, 365, 16186, 3190, 2157, 1435, 2535, 273, 2618, 6873, 273, 2618, 364, 589, 316, 18594, 2387, 18, 2452, 13332, 400, 273, 365, 16186, 588, 15912, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 803, 65, 273, 400, 3292, 1079, 3546, 469, 30, 9104, 273, 400, 3292, 620, 3546, 400, 273, 365, 16186, 588, 9486, 5369, 12, 27605, 13, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 803, 65, 273, 400, 3292, 1079, 3546, 469, 30, 6873, 63, 803, 65, 273, 400, 3292, 620, 3546, 309, 2522, 30, 365, 16186, 4412, 2157, 1435, 400, 5014, 273, 13666, 2925, 4278, 7307, 11189, 14277, 4278, 18418, 97, 327, 348, 67, 3141, 12, 455, 5014, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4339, 6521, 12, 2890, 16, 803, 4672, 3536, 10229, 326, 776, 1872, 87, 2511, 10098, 1779, 364, 279, 4580, 589, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 18594, 2387, 273, 400, 3292, 620, 3546, 2522, 273, 365, 16186, 3190, 2157, 1435, 2535, 273, 2618, 6873, 273, 2618, 364, 589, 316, 18594, 2387, 18, 2452, 13332, 400, 273, 365, 16186, 588, 15912, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 803, 65, 273, 400, 3292, 1079, 3546, 469, 30, 9104, 273, 400, 3292, 620, 3546, 400, 273, 365, 16186, 588, 9486, 5369, 12, 27605, 13, 309, 486, 400, 3292, 3141, 3546, 30, 2 ]
for indirection in self._indirections:
indirections = self._indirections for indirection in indirections:
def getContainer(self): # try to get a handle on the container by eval'ing and looking things # up in dictionaries, depending on the type of each indirection #import pdb;pdb.set_trace() evalStr = '' curObj = None # make sure the indirections don't go away on us for indirection in self._indirections: indirection.acquire() for indirection in self._indirections: yield None if not indirection.isDictKey(): # build up a string to be eval'd evalStr += indirection.getString() else: curObj = self._evalWithObj(evalStr, curObj) if curObj is None: raise FailedEval(evalStr) # try to look up this key in the curObj dictionary curObj = indirection.dereferenceDictKey(curObj) evalStr = '' for indirection in self._indirections: yield None indirection.release()
69e4f8ce89f4ff77b26910a79c23f429f0003e58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/69e4f8ce89f4ff77b26910a79c23f429f0003e58/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9272, 12, 2890, 4672, 468, 775, 358, 336, 279, 1640, 603, 326, 1478, 635, 5302, 11, 310, 471, 7849, 9198, 468, 731, 316, 16176, 16, 8353, 603, 326, 618, 434, 1517, 1547, 2769, 468, 5666, 10892, 31, 17414, 18, 542, 67, 5129, 1435, 5302, 1585, 273, 875, 662, 2675, 273, 599, 468, 1221, 3071, 326, 1547, 2769, 87, 2727, 1404, 1960, 10804, 603, 584, 1547, 2769, 87, 273, 365, 6315, 728, 2769, 87, 364, 1547, 2769, 316, 1547, 2769, 87, 30, 1547, 2769, 18, 1077, 1039, 1435, 1547, 2769, 87, 273, 365, 6315, 728, 2769, 87, 364, 1547, 2769, 316, 1547, 2769, 87, 30, 2824, 599, 309, 486, 1547, 2769, 18, 291, 5014, 653, 13332, 468, 1361, 731, 279, 533, 358, 506, 5302, 14271, 5302, 1585, 1011, 1547, 2769, 18, 588, 780, 1435, 469, 30, 662, 2675, 273, 365, 6315, 8622, 1190, 2675, 12, 8622, 1585, 16, 662, 2675, 13, 309, 662, 2675, 353, 599, 30, 1002, 11175, 13904, 12, 8622, 1585, 13, 468, 775, 358, 2324, 731, 333, 498, 316, 326, 662, 2675, 3880, 662, 2675, 273, 1547, 2769, 18, 765, 73, 1134, 5014, 653, 12, 1397, 2675, 13, 5302, 1585, 273, 875, 1547, 2769, 87, 273, 365, 6315, 728, 2769, 87, 364, 1547, 2769, 316, 1547, 2769, 87, 30, 2824, 599, 1547, 2769, 18, 9340, 1435, 2, 0, 0, 0, 0, 0, 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5302, 1585, 273, 875, 662, 2675, 273, 599, 468, 1221, 3071, 326, 1547, 2769, 87, 2727, 1404, 1960, 10804, 603, 584, 1547, 2769, 87, 273, 365, 6315, 728, 2769, 87, 364, 1547, 2769, 316, 1547, 2769, 87, 30, 1547, 2769, 18, 1077, 1039, 1435, 1547, 2769, 87, 273, 365, 6315, 728, 2769, 87, 364, 1547, 2769, 316, 1547, 2769, 87, 30, 2824, 599, 309, 486, 1547, 2769, 18, 291, 5014, 653, 13332, 468, 1361, 731, 2 ]
self._collapseParts(partPackages, packageClasses, collapseParts)
def getPackages(self, partIncludes, smartExclude, classList, collapseParts, variants, jobContext): # Get config settings jobConfig = jobContext["jobconf"] minPackageSize = jobConfig.get("packages/sizes/min-package", 0) minPackageSizeForUnshared = jobConfig.get("packages/sizes/min-package-unshared", None)
e13fa46bae9b46a89002191681f67bac823b3c1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/e13fa46bae9b46a89002191681f67bac823b3c1a/PartBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30401, 1023, 12, 2890, 16, 1087, 16815, 16, 13706, 12689, 16, 16035, 16, 13627, 4305, 16, 12935, 16, 1719, 1042, 4672, 468, 968, 642, 1947, 1719, 809, 273, 1719, 1042, 9614, 4688, 3923, 11929, 1131, 2261, 1225, 273, 1719, 809, 18, 588, 2932, 10308, 19, 11914, 19, 1154, 17, 5610, 3113, 374, 13, 1131, 2261, 1225, 1290, 984, 11574, 273, 1719, 809, 18, 588, 2932, 10308, 19, 11914, 19, 1154, 17, 5610, 17, 318, 11574, 3113, 599, 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,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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, 30401, 1023, 12, 2890, 16, 1087, 16815, 16, 13706, 12689, 16, 16035, 16, 13627, 4305, 16, 12935, 16, 1719, 1042, 4672, 468, 968, 642, 1947, 1719, 809, 273, 1719, 1042, 9614, 4688, 3923, 11929, 1131, 2261, 1225, 273, 1719, 809, 18, 588, 2932, 10308, 19, 11914, 19, 1154, 17, 5610, 3113, 374, 13, 1131, 2261, 1225, 1290, 984, 11574, 273, 1719, 809, 18, 588, 2932, 10308, 19, 11914, 19, 1154, 17, 5610, 17, 318, 11574, 3113, 599, 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 ]
self.move(src,dst)
if self.isfile(src): self.move(src,dst) else: self.movedir(src,dst)
def rename(self,src,dst): """Rename the file at 'src' to 'dst'.""" # Actually, in S3 'rename' is exactly the same as 'move' self.move(src,dst)
bd920d62379684e707fa3fd2963bb6123de89e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/bd920d62379684e707fa3fd2963bb6123de89e32/s3fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2890, 16, 4816, 16, 11057, 4672, 3536, 16019, 326, 585, 622, 296, 4816, 11, 358, 296, 11057, 11, 12123, 468, 4603, 3452, 16, 316, 348, 23, 296, 18539, 11, 353, 8950, 326, 1967, 487, 296, 8501, 11, 365, 18, 8501, 12, 4816, 16, 11057, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2890, 16, 4816, 16, 11057, 4672, 3536, 16019, 326, 585, 622, 296, 4816, 11, 358, 296, 11057, 11, 12123, 468, 4603, 3452, 16, 316, 348, 23, 296, 18539, 11, 353, 8950, 326, 1967, 487, 296, 8501, 11, 365, 18, 8501, 12, 4816, 16, 11057, 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 ]
fil = path + '/' + archivo parser.feed(open(fil).read())
f = open(path + '/' + contentpage) parser.feed(f.read())
def content(path, archivo, output): f = formatter.AbstractFormatter(AlmostNullWriter()) parser = TocHlpHtmlParser(f) parser.path = path parser.ft = output fil = path + '/' + archivo parser.feed(open(fil).read()) parser.close()
29c9f8334992377a2a6594733078b21037410fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/29c9f8334992377a2a6594733078b21037410fb7/prechm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 913, 12, 803, 16, 6637, 20593, 16, 876, 4672, 284, 273, 4453, 18, 7469, 5074, 12, 1067, 10329, 2041, 2289, 10756, 2082, 273, 399, 504, 44, 9953, 4353, 2678, 12, 74, 13, 2082, 18, 803,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 913, 12, 803, 16, 6637, 20593, 16, 876, 4672, 284, 273, 4453, 18, 7469, 5074, 12, 1067, 10329, 2041, 2289, 10756, 2082, 273, 399, 504, 44, 9953, 4353, 2678, 12, 74, 13, 2082, 18, 803, 273, 589, 2082, 18, 1222, 273, 876, 284, 273, 1696, 12, 803, 397, 2023, 397, 913, 2433, 13, 2082, 18, 7848, 12, 74, 18, 896, 10756, 2082, 18, 4412, 1435, 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 ]
print "[AutoBackup] result", retval
def doneConfiguring(session, retval): "user has closed configuration, check new values...." print "[AutoBackup] result", retval global autoStartTimer if autoStartTimer is not None: autoStartTimer.update()
a3d8f2c4f33c23ce60252053d181d4d05f4273b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12173/a3d8f2c4f33c23ce60252053d181d4d05f4273b0/plugin.py
[ 1, 8585, 326, 22398, 316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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2731, 809, 4017, 12, 3184, 16, 5221, 4672, 315, 1355, 711, 4375, 1664, 16, 866, 394, 924, 6265, 6, 2552, 3656, 1685, 6777, 309, 3656, 1685, 6777, 353, 486, 599, 30, 3656, 1685, 6777, 18, 2725, 1435, 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 ]
s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, self.pbx)
s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, context)
def createAsteriskConfig(self): s = AstConf("extensions.conf") s.setSection(self.name) if self.pbx: pbx = self.pbx else: pbx = "phones" s.append("include=%s" % pbx) s.appendExten("s","Set(TIMEOUT(digit)=%d)" % self.digittimeout, self.pbx) if self.moh: s.appendExten("s","Setmusiconhold(%s)" % self.moh, self.pbx) s.appendExten("s","Set(DIAL_OPTIONS=m)", self.pbx) else: s.appendExten("s","Set(DIAL_OPTIONS=r)", self.pbx) if self.ivrtime: if self.times: times=self.times.split(',') for t in times: s.appendExten("s","GotoIfTime(%s?%s,s,1)" % (t,self.ivrtime), self.pbx) if self.timeout: s.appendExten("s","Set(TIMEOUT(absolute)=%s)" % self.timeout, self.pbx) for i in range(self.repeat): s.appendExten("s","Background(%s)" % self.backgroundfile, self.pbx) if self.pause: s.appendExten("s","WaitExten(%s)" % self.pause, self.pbx) s.appendExten("s","WaitExten(%d)" % self.waittime, self.pbx) s.appendExten("s","Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) if self.ivr_1: s.appendExten("1","Goto(%s,s,1)" % self.ivr_1, self.pbx) if self.ivr_2: s.appendExten("2","Goto(%s,s,1)" % self.ivr_2, self.pbx) if self.ivr_3: s.appendExten("3","Goto(%s,s,1)" % self.ivr_3, self.pbx) if self.ivr_4: s.appendExten("4","Goto(%s,s,1)" % self.ivr_4, self.pbx) if self.ivr_5: s.appendExten("5","Goto(%s,s,1)" % self.ivr_5, self.pbx) if self.ivr_6: s.appendExten("6","Goto(%s,s,1)" % self.ivr_6, self.pbx) if self.ivr_7: s.appendExten("7","Goto(%s,s,1)" % self.ivr_7, self.pbx) if self.ivr_8: s.appendExten("8","Goto(%s,s,1)" % self.ivr_8, self.pbx) if self.ivr_9: s.appendExten("9","Goto(%s,s,1)" % self.ivr_9, self.pbx) if self.ivr_ast: s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, self.pbx) if self.phone_1: s.appendExten("1","Goto(%s,%s,1)" % (pbx,self.phone_1), self.pbx) if self.phone_2: s.appendExten("2","Goto(%s,%s,1)" % (pbx,self.phone_2), self.pbx) if self.phone_3: s.appendExten("3","Goto(%s,%s,1)" % (pbx,self.phone_3), self.pbx) if self.phone_4: s.appendExten("4","Goto(%s,%s,1)" % (pbx,self.phone_4), self.pbx) if self.phone_5: s.appendExten("5","Goto(%s,%s,1)" % (pbx,self.phone_5), self.pbx) if self.phone_6: s.appendExten("6","Goto(%s,%s,1)" % (pbx,self.phone_6), self.pbx) if self.phone_7: s.appendExten("7","Goto(%s,%s,1)" % (pbx,self.phone_7), self.pbx) if self.phone_8: s.appendExten("8","Goto(%s,%s,1)" % (pbx,self.phone_8), self.pbx) if self.phone_9: s.appendExten("9","Goto(%s,%s,1)" % (pbx,self.phone_9), self.pbx) if self.phone_ast: s.appendExten("*","Goto(%s,%s,1)" % (pbx,self.phone_ast), self.pbx) s.appendExten("0", "Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) s.appendExten("i","Playback(invalid)", self.pbx) s.appendExten("i","Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) s.appendExten("t","ResetCDR(w)", self.pbx) s.appendExten("t","NoCDR", self.pbx) s.appendExten("t","Hangup", self.pbx) s.appendExten("T","ResetCDR(w)", self.pbx) s.appendExten("T","NoCDR", self.pbx) s.appendExten("T","Hangup", self.pbx) s.appendExten("#","ResetCDR(w)", self.pbx) s.appendExten("#","NoCDR", self.pbx) s.appendExten("#","Hangup", self.pbx)
e581660927aebaacc03692e1a06a4d11542ff6a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e581660927aebaacc03692e1a06a4d11542ff6a3/cfg_ivr_treenode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 365, 18, 5733, 92, 469, 30, 6386, 92, 273, 315, 844, 5322, 6, 272, 18, 6923, 2932, 6702, 5095, 87, 6, 738, 6386, 92, 13, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 12, 9503, 12, 11052, 13, 5095, 72, 2225, 738, 365, 18, 11052, 4538, 16, 365, 18, 5733, 92, 13, 309, 365, 18, 8683, 76, 30, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 81, 407, 3950, 21056, 9275, 87, 2225, 738, 365, 18, 8683, 76, 16, 365, 18, 5733, 92, 13, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 12, 2565, 1013, 67, 12422, 33, 81, 2225, 16, 365, 18, 5733, 92, 13, 469, 30, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 12, 2565, 1013, 67, 12422, 33, 86, 2225, 16, 365, 18, 5733, 92, 13, 309, 365, 18, 427, 86, 957, 30, 309, 365, 18, 8293, 30, 4124, 33, 2890, 18, 8293, 18, 4939, 12, 2187, 6134, 364, 268, 316, 4124, 30, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 43, 6302, 2047, 950, 9275, 87, 35, 9, 87, 16, 87, 16, 21, 2225, 738, 261, 88, 16, 2890, 18, 427, 86, 957, 3631, 365, 18, 5733, 92, 13, 309, 365, 18, 4538, 30, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 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, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 365, 18, 5733, 92, 469, 30, 6386, 92, 273, 315, 844, 5322, 6, 272, 18, 6923, 2932, 6702, 5095, 87, 6, 738, 6386, 92, 13, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 12, 9503, 12, 11052, 13, 5095, 72, 2225, 738, 365, 18, 11052, 4538, 16, 365, 18, 5733, 92, 13, 309, 365, 18, 8683, 76, 30, 272, 18, 6923, 424, 2253, 2932, 87, 15937, 694, 81, 407, 3950, 21056, 9275, 87, 2225, 738, 365, 18, 8683, 76, 16, 365, 18, 2 ]
return ''.join(out)
return ''.join(out).decode('utf-8')
def generate_filter_docs(): from pygments.filters import FILTERS out = [] for name, cls in FILTERS.iteritems(): out.append('''
a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83/generate.py
[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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2188, 67, 8532, 13332, 628, 2395, 75, 1346, 18, 6348, 1930, 8919, 55, 225, 596, 273, 5378, 364, 508, 16, 2028, 316, 8919, 55, 18, 2165, 3319, 13332, 596, 18, 6923, 2668, 6309, 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 ]
product = Infsign[self._sign ^ other._sign]
product = _Infsign[self._sign ^ other._sign]
def fma(self, other, third, context=None): """Fused multiply-add.
335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 2540, 12, 2890, 16, 1308, 16, 12126, 16, 819, 33, 7036, 4672, 3536, 42, 3668, 10194, 17, 1289, 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, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 284, 2540, 12, 2890, 16, 1308, 16, 12126, 16, 819, 33, 7036, 4672, 3536, 42, 3668, 10194, 17, 1289, 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 ]
if opts.new_watch_copy:
if opts.new_watch_copy:
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, statistics, requirements_are_met global graphic_suffix, graphic_path_suffix, graphic_name_suffix global mythcommflag_recordings, mythcommflag_videos parser = OptionParser(usage=u"%prog usage: mirobridge -huevstdociVHSCWM [parameters]\n") parser.add_option( "-e", "--examples", action="store_true", default=False, dest="examples", help=u"Display examples for executing the jamu script") parser.add_option( "-v", "--version", action="store_true", default=False, dest="version", help=u"Display version and author information") parser.add_option( "-s", "--simulation", action="store_true", default=False, dest="simulation", help=u"Simulation (dry run), no files are copied, symlinks created or MythTV data bases altered. If option (-n) is NOT specified Miro auto downloads WILL take place. See option (-n) help for details.") parser.add_option( "-t", "--testenv", action="store_true", default=False, dest="testenv", help=u"Test that the local environment can run all mirobridge functionality") parser.add_option( "-n", "--no_autodownload", action="store_true", default=False, dest="no_autodownload", help=u"Do not perform Miro Channel updates, video expiry and auto-downloadings. Default is to perform all perform all Channel maintenance features.") parser.add_option( "-o", "--nosubdirs", action="store_true", default=False, dest="nosubdirs", help=u"Organise MythVideo's Miro directory WITHOUT Miro channel subdirectories. The default is to have Channel subdirectories.") parser.add_option( "-c", "--channel", metavar="CHANNEL_ID:CHANNEL_NUM", default="", dest="channel", help=u'Specifies the channel id that is used for Miros unplayed recordings. Enter as "xxxx:yyy". Default is 9999:999. Be warned that once you change the default channel_id "9999" you must always use this option!') #parser.add_option( "-i", "--import", metavar="CONFIGFILE", default="", dest="import", # help=u'Import Miro exported configuration file and or channel changes.') parser.add_option( "-V", "--verbose", action="store_true", default=False, dest="verbose", help=u"Display verbose messages when processing") parser.add_option( "-H", "--hostname", metavar="HOSTNAME", default="", dest="hostname", help=u"MythTV Backend hostname mirobridge is to up date") parser.add_option( "-S", "--sleeptime", metavar="SLEEP_DELAY_SECONDS", default="", dest="sleeptime", help=u"The amount of seconds to wait for an auto download to start.\nThe default is 60 seconds, but this may need to be adjusted for slower Internet connections.") parser.add_option( "-C", "--addchannel", metavar="ICONFILE_PATH", default="OFF", dest="addchannel", help=u'Add a Miro Channel record to MythTV. This gets rid of the "#9999 #9999" on the Watch Recordings screen and replaces it with the usual\nthe channel number and channel name.\nThe default if not overridden by the (-c) option is channel number 999.\nIf a filename and path is supplied it will be set as the channels icon. Make sure your override channel number is NOT one of your current MythTV channel numbers.\nThis option is typically only used once as there can only be one Miro channel record at a time.') parser.add_option( "-N", "--new_watch_copy", action="store_true", default=False, dest="new_watch_copy", help=u'For ALL Miro Channels: Use the "Watch Recording" screen to watch new Miro downloads then once watched copy the videos, icons, screen shot and metadata to MythVideo. Once coping is complete delete the video from Miro.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-W", "--watch_only", action="store_true", default=False, dest="watch_only", help=u'For ALL Miro Channels: Only use "Watch Recording" never move any Miro videos to MythVideo.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-M", "--mythvideo_only", action="store_true", default=False, dest="mythvideo_only", help=u'For ALL Miro Channel videos: Copy newly downloaded Miro videos to MythVideo and removed from Miro. These Miro videos never appear in the MythTV "Watch Recording" screen.\nThis option overrides any "mirobridge.conf" settings.') opts, args = parser.parse_args() if opts.examples: # Display example information sys.stdout.write(examples_txt+'\n') sys.exit(True) if opts.version: # Display program information sys.stdout.write(u"\nTitle: (%s); Version: description(%s); Author: (%s)\n%s\n" % ( __title__, __version__, __author__, __purpose__ )) sys.exit(True) if opts.testenv: test_environment = True else: test_environment = False # Verify that Miro is not currently running if isMiroRunning(): sys.exit(False) # Verify that only None or one of the mutually exclusive (-W), (-M) and (-N) options is being used x = 0 if opts.new_watch_copy: x+=1 if opts.watch_only: x+=1 if opts.mythvideo_only: x+=1 if x > 1: logger.critical(u"The (-W), (-M) and (-N) options are mutually exclusive, so only one can be specified at a time.") sys.exit(False) # Set option related global variables simulation = opts.simulation verbose = opts.verbose if opts.hostname: # Override localhostname if the user specified an hostname localhostname = opts.hostname # Validate settings # Make sure mirobridge is to update a real MythTV backend if not mythdb.getSetting(u'BackendServerIP', hostname = localhostname): logger.critical(u"The MythTV backend (%s) is not a MythTV backend." % localhostname) if test_environment: requirements_are_met = False else: sys.exit(False) ## Video base directory and current version and revision numbers base_video_dir = config.get(prefs.MOVIES_DIRECTORY) miro_version_rev = u"%s r%s" % (config.get(prefs.APP_VERSION), config.get(prefs.APP_REVISION_NUM)) displayMessage(u"Miro Version (%s)" % (miro_version_rev)) displayMessage(u"Base Miro Video Directory (%s)" % (base_video_dir,)) logger.info(u'') # Verify Miro version sufficent and Video file configuration correct. if not os.path.isdir(base_video_dir): logger.critical(u"The Miro Videos directory (%s) does not exist." % str(base_video_dir)) if test_environment: requirements_are_met = False else: sys.exit(False) if config.get(prefs.APP_VERSION) < u"2.0.3": logger.critical(u"The installed version of Miro (%s) is too old. It must be at least v2.0.3 or higher." % config.get(prefs.APP_VERSION)) if test_environment: requirements_are_met = False else: sys.exit(False) # Get storage groups if getStorageGroups() == False: logger.critical(u"Retrieving storage groups from the MythTV data base failed") if test_environment: requirements_are_met = False else: sys.exit(False) elif not u'default' in storagegroups.keys(): logger.critical(u"There must be a 'Default' storage group") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.channel: channel = opts.channel.split(u':') if len(channel) != 2: logger.critical(u"The Channel (%s) must be in the format xxx:yyy with x an y all numeric." % str(opts.channel)) if test_environment: requirements_are_met = False else: sys.exit(False) elif not _can_int(channel[0]) or not _can_int(channel[1]): logger.critical(u"The Channel_id (%s) and Channel_num (%s) must be numeric." % (channel[0], channel[1])) if test_environment: requirements_are_met = False else: sys.exit(False) else: channel_id = int(channel[0]) channel_num = int(channel[1]) if opts.sleeptime: if not _can_int(opts.sleeptime): logger.critical(u"Auto-dewnload sleep time (%s) must be numeric." % str(opts.sleeptime)) if test_environment: requirements_are_met = False else: sys.exit(False) else: download_sleeptime = float(opts.sleeptime) getMythtvDirectories() # Initialize all the Video and graphics directory dictionary if opts.nosubdirs: # Did the user want a flat MythVideo "Miro" directory structure? flat = True # Get the values in the mirobridge.conf configuration file setUseroptions() if opts.watch_only: # ALL Miro videos will only be viewed in the MythTV "Watch Recordings" screen channel_watch_only = [u'all'] if opts.mythvideo_only: # ALL Miro videos will be copied to MythVideo and removed from Miro channel_mythvideo_only = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Once watched ALL Miro videos will be copied to MythVideo and removed from Miro if opts.new_watch_copy: channel_new_watch_copy = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Verify that "Mythvideo Only" and "New-Watch-Copy" channels do not clash if len(channel_mythvideo_only) and len(channel_new_watch_copy): for key in channel_mythvideo_only.keys(): if key in channel_new_watch_copy.keys(): logger.critical(u'The Miro Channel (%s) cannot be used as both a "Mythvideo Only" and "New-Watch-Copy" channel.' % key) if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that ImageMagick is installed ret = useImageMagick(u"convert -version") if ret < 0 or ret > 1: logger.critical(u"ImageMagick must be installed, graphics cannot be resized or converted to the required graphics format (e.g. jpg and or png)") if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that mythcommflag is installed mythcommflagpath = getlocationMythcommflag() if mythcommflagpath: mythcommflag_recordings = mythcommflag_recordings % mythcommflagpath mythcommflag_videos = mythcommflag_videos % mythcommflagpath else: logger.critical(u"mythcommflag must be installed so that Miro video seek tables can be built.") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.testenv: # All tests passed getVideoDetails(u"") # Test that ffmpeg is available if ffmpeg and requirements_are_met: logger.info(u"The environment test passed !\n\n") sys.exit(True) else: logger.critical(u"The environment test FAILED. See previously displayed error messages!") sys.exit(False) if opts.addchannel != u'OFF': # Add a Miro Channel record - Should only be done once createChannelRecord(opts.addchannel, channel_id, channel_num) logger.info(u"The Miro Channel record has been successfully created !\n\n") sys.exit(True) ########################################### # Mainlogic for all Miro and MythTV bridge ########################################### # # Start the Miro Front and Backend - This allows mirobridge to execute actions on the Miro backend # displayMessage(u"Starting Miro Frontend and Backend") startup.initialize(config.get(prefs.THEME_NAME)) app.cli_events = EventHandler() app.cli_events.connect_to_signals() startup.startup() app.cli_events.startup_event.wait() if app.cli_events.startup_failure: logger.critical(u"Starting Miro Frontend and Backend failed: (%s)" % app.cli_events.startup_failure[0]) print_text(app.cli_events.startup_failure[1]) app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) app.cli_interpreter = MiroInterpreter() if opts.verbose: app.cli_interpreter.verbose = True else: app.cli_interpreter.verbose = False app.cli_interpreter.simulation = opts.simulation app.cli_interpreter.videofiles = [] app.cli_interpreter.downloading = False app.cli_interpreter.icon_cache_dir = config.get(prefs.ICON_CACHE_DIRECTORY) app.cli_interpreter.imagemagick = imagemagick app.cli_interpreter.statistics = statistics if config.get(prefs.APP_VERSION) < u"2.5.0": app.renderer = app.cli_interpreter else: app.movie_data_program_info = app.cli_interpreter.movie_data_program_info # # Optionally Update Miro feeds and # download any "autodownloadable" videos which are pending # if not opts.no_autodownload: if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') before_download = len(app.cli_interpreter.videofiles) if opts.verbose: app.cli_interpreter.verbose = True app.cli_interpreter.do_mythtv_update_autodownload(u'') time.sleep(download_sleeptime) firsttime = True while True: app.cli_interpreter.do_mythtv_check_downloading(u'') if app.cli_interpreter.downloading: time.sleep(30) firsttime = False continue elif firsttime: time.sleep(download_sleeptime) firsttime = False continue else: break if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') after_download = len(app.cli_interpreter.videofiles) statistics[u'Miros_videos_downloaded'] = after_download - before_download if opts.verbose: app.cli_interpreter.verbose = True # Deal with orphaned oldrecorded records. # These records indicate that the MythTV user deleted the video from the Watched Recordings screen # or from MythVideo # These video items must also be deleted from Miro videostodelete = getOldrecordedOrphans() if len(videostodelete): displayMessage(u"Starting Miro delete of videos deleted in the MythTV Watched Recordings screen.") for video in videostodelete: # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove([video[u'title'], video[u'subtitle']]) # # Collect the set of played Miro video files # app.cli_interpreter.videofiles = getPlayedMiroVideos() # # Updated the played status of items # if app.cli_interpreter.videofiles: displayMessage(u"Starting Miro update of watched MythTV videos") app.cli_interpreter.do_mythtv_updatewatched(u'') # # Get the unwatched videos details from Miro # app.cli_interpreter.do_mythtv_getunwatched(u'') unwatched = app.cli_interpreter.videofiles # # Get the watched videos details from Miro # app.cli_interpreter.do_mythtv_getwatched(u'') watched = app.cli_interpreter.videofiles # # Remove any duplicate Miro videoes from the unwatched or watched list of Miro videos # This means that Miro has duplicates due to a Miro/Channel website issue # These videos should not be added to the MythTV Watch Recordings screen # unwatched_copy = [] for item in unwatched: unwatched_copy.append(item) for item in unwatched_copy: # Check for a duplicate against already watched Miro videos for x in watched: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: try: unwatched.remove(item) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename']) displayMessage(u"Skipped adding a duplicate Miro video to the MythTV Watch Recordings screen (%s - %s) which is already in MythVideo.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (item[u'channelTitle'], item[u'title'])) except ValueError: pass duplicates = [] for item in unwatched_copy: dup_flag = 0 for x in unwatched: # Check for a duplicate against un-watched Miro videos if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: dup_flag+=1 if dup_flag > 1: for x in duplicates: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: break else: duplicates.append(item) for duplicate in duplicates: try: unwatched.remove(duplicate) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(duplicate[u'videoFilename']) displayMessage(u"Skipped adding a Miro video to the MythTV Watch Recordings screen (%s - %s) as there are duplicate 'new' video items.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (duplicate[u'channelTitle'], duplicate[u'title'])) except ValueError: pass # # Deal with any Channel videos that are to be copied and removed from Miro # copy_items = [] # Copy unwatched and watched Miro videos (all or only selected Channels) if u'all' in channel_mythvideo_only: for array in [watched, unwatched]: for item in array: copy_items.append(item) elif len(channel_mythvideo_only): for array in [watched, unwatched]: for video in array: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): copy_items.append(video) # Copy ONLY watched Miro videos (all or only selected Channels) if u'all' in channel_new_watch_copy: for video in watched: copy_items.append(video) elif len(channel_new_watch_copy): for video in watched: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_new_watch_copy.keys(): copy_items.append(video) channels_to_copy = {} for key in channel_mythvideo_only.keys(): channels_to_copy[key] = channel_mythvideo_only[key] for key in channel_new_watch_copy.keys(): channels_to_copy[key] = channel_new_watch_copy[key] for video in copy_items: dir_key = filter(is_not_punct_char, video[u'channelTitle'].lower()) # Create the subdirectories to copy the video into directory_coverart = False if not os.path.isdir(channels_to_copy[dir_key]): if simulation: logger.info(u"Simulation: Creating the MythVideo directory (%s)." % (channels_to_copy[dir_key])) else: os.makedirs(channels_to_copy[dir_key]) directory_coverart = True # If the directory was just created it needs coverart else: if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if not os.path.isfile(u"%s%s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart elif video[u'item_icon']: ext = getExtention(video[u'item_icon']) if not os.path.isfile(u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), video[u'title'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart # Copy the Channel icon located in the posters/coverart directory if directory_coverart and video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) tmp_path = channels_to_copy[dir_key][:-1] foldername = tmp_path[tmp_path.rindex(u'/')+1:] dirpath = u"%s%s" % (channels_to_copy[dir_key], u'folder.jpg') dirpath2 = u"%s%s" % (channels_to_copy[dir_key], u'folder.png') if os.path.isfile(dirpath) or os.path.isfile(dirpath2): # See if a folder cover already exists pass else: if simulation: logger.info(u"Simulation: Copy a Channel Icon (%s) for directory (%s)." % (filepath, dirpath)) else: try: # Miro Channel icon copy for the new subdirectory useImageMagick(u'convert "%s" "%s"' % (video[u'channel_icon'], dirpath)) except: logger.critical(u"Copy a Channel Icon (%s) for directory (%s) failed." % (video[u'channel_icon'], dirpath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Miro video file save_video_filename = video[u'videoFilename'] # This filename is needed later for deleting in Miro ext = getExtention(video[u'videoFilename']) if ext.lower() == u'm4v': ext = u'mpg' filepath = u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'], video[u'title'], ext) if simulation: logger.info(u"Simulation: Copying the Miro video (%s) to the MythVideo directory (%s)." % (video[u'videoFilename'], filepath)) else: try: # Miro video copied into a MythVideo directory shutil.copy2(video[u'videoFilename'], filepath) statistics[u'Miros_MythVideos_copied']+=1 if u'mythvideo' in storagegroups.keys(): video[u'videoFilename'] = filepath.replace(storagegroups[u'mythvideo'], u'') else: video[u'videoFilename'] = filepath except: logger.critical(u"Copying the Miro video (%s) to the MythVideo directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'videoFilename'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Channel or item's icon if video[u'channel_icon'] and not video[u'channelTitle'].lower() in channel_icon_override: pass else: if video[u'item_icon']: video[u'channel_icon'] = video[u'item_icon'] if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if video[u'channelTitle'].lower() in channel_icon_override: filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'posterdir'], ext) else: filepath = u"%s%s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], graphic_suffix[u'posterdir'], ext) # There may already be a Channel icon available or it is a symlink which needs to be replaced if not os.path.isfile(filepath) or os.path.islink(filepath): if simulation: logger.info(u"Simulation: Copying the Channel Icon (%s) to the poster directory (%s)." % (video[u'channel_icon'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'channel_icon'], filepath) if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath except: logger.critical(u"Copying the Channel Icon (%s) to the poster directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'channel_icon'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) else: if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath # There may already be a Screenshot available or it is a symlink which needs to be replaced if video[u'screenshot']: ext = getExtention(video[u'screenshot']) filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'episodeimagedir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'episodeimagedir'], ext) else: filepath = u'' if not os.path.isfile(filepath) or os.path.islink(filepath): if video[u'screenshot']: if simulation: logger.info(u"Simulation: Copying the Screenshot (%s) to the Screenshot directory (%s)." % (video[u'screenshot'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'screenshot'], filepath) displayMessage(u"Copied Miro screenshot file (%s) to MythVideo (%s)" % (video[u'screenshot'], filepath)) if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath except: logger.critical(u"Copying the Screenshot (%s) to the Screenshot directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'screenshot'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) elif video[u'screenshot']: if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath video[u'copied'] = True # Mark this video item as being copied # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(save_video_filename) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete # # Add and delete MythTV (Watch Recordings) Miro recorded records # Add and remove symlinks for Miro video files # # Check if the user does not want any channels Added to the "Watch Recordings" screen if channel_mythvideo_only.has_key(u'all'): for video in unwatched: watched.append(video) unwatched = [] else: if len(channel_mythvideo_only): unwatched_copy = [] for video in unwatched: if not filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): unwatched_copy.append(video) else: watched.append(video) unwatched = unwatched_copy statistics[u'Total_unwatched'] = len(unwatched) if not len(unwatched): displayMessage(u"There are no Miro unwatched video items to add as MythTV Recorded videos.") if not updateMythRecorded(unwatched): logger.critical(u"Updating MythTV Recording with Miro video files failed." % str(base_video_dir)) sys.exit(False) # # Add and delete MythVideo records for played Miro Videos # Add and delete symbolic links to Miro Videos and subdirectories # Add and delete symbolic links to coverart/Miro icons and Miro screenshots/fanart # if len(channel_watch_only): # If the user does not want any channels moved to MythVideo exit if channel_watch_only[0].lower() == u'all': printStatistics() return True if not len(watched): displayMessage(u"There are no Miro watched items to add to MythVideo") if not updateMythVideo(watched): logger.critical(u"Updating MythVideo with Miro video files failed.") sys.exit(False) printStatistics() return True
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 538, 225, 2082, 273, 18862, 12, 9167, 33, 89, 28385, 14654, 4084, 30, 312, 11373, 18337, 300, 76, 344, 90, 5084, 1882, 58, 44, 2312, 25173, 306, 3977, 13944, 82, 7923, 225, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 73, 3113, 5238, 16858, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 16858, 3113, 2809, 33, 89, 6, 4236, 10991, 364, 11274, 326, 525, 301, 89, 2728, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 90, 3113, 5238, 1589, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 1589, 3113, 2809, 33, 89, 6, 4236, 1177, 471, 2869, 1779, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 87, 3113, 5238, 9812, 6234, 3113, 1301, 1546, 2233, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 2 ]
Either integers `n,d` such that `d>0`, `gcd(n,d)=1`, `n/d=u (mod m)`, and `T*d*|n|< m`, or ``None``.
Either integers `n,d` such that `d>0`, `\mathop{\mathrm{gcd}}(n,d)=1`, `n/d=u \bmod m`, and `T \* d \* |n| < m`, or ``None``.
def mqrr_rational_reconstruction(u, m, T): r""" Maximal Quotient Rational Reconstruction. FOR research purposes only - this is pure Python, so slow. INPUT: - ``u, m, T`` - integers such that `m > u \ge 0,` `T > 0`. OUTPUT: Either integers `n,d` such that `d>0`, `gcd(n,d)=1`, `n/d=u (mod m)`, and `T*d*|n|< m`, or ``None``. Reference: Monagan, Maximal Quotient Rational Reconstruction: An Almost Optimal Algorithm for Rational Reconstruction (page 11) This algorithm is probabilistic. EXAMPLES:: sage: mqrr_rational_reconstruction(21,3100,13) (21, 1) """ if u == 0: if m > T: return (0,1) else: return None n, d = 0, 0 t0, r0 = 0, m t1, r1 = 1, u while r1 != 0 and r0 > T: q = r0/r1 # C division implicit floor if q > T: n, d, T = r1, t1, q r0, r1 = r1, r0 - q*r1 t0, t1 = t1, t0 - q*t1 if d != 0 and GCD(n,d) == 1: return (n,d) return None
f2370aee3f6f590b914899ff20666b42b979fc93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f2370aee3f6f590b914899ff20666b42b979fc93/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18327, 523, 67, 7034, 287, 67, 266, 591, 4549, 12, 89, 16, 312, 16, 399, 4672, 436, 8395, 4238, 2840, 4783, 352, 1979, 534, 8371, 868, 591, 4549, 18, 225, 12108, 283, 3072, 13694, 1338, 300, 333, 353, 16618, 6600, 16, 1427, 11816, 18, 225, 12943, 30, 225, 300, 12176, 89, 16, 312, 16, 399, 10335, 300, 225, 12321, 4123, 716, 1375, 81, 405, 582, 521, 908, 374, 16, 68, 1375, 56, 405, 374, 8338, 225, 11550, 30, 225, 14635, 12321, 1375, 82, 16, 72, 68, 4123, 716, 1375, 72, 34, 20, 9191, 1375, 64, 15949, 556, 23241, 15949, 8864, 95, 75, 4315, 9090, 12, 82, 16, 72, 13, 33, 21, 9191, 1375, 82, 19, 72, 33, 89, 521, 70, 1711, 312, 9191, 471, 1375, 56, 521, 14, 302, 521, 14, 571, 82, 96, 411, 312, 9191, 578, 12176, 7036, 68, 8338, 225, 6268, 30, 9041, 346, 304, 16, 4238, 2840, 4783, 352, 1979, 534, 8371, 868, 591, 4549, 30, 1922, 2262, 10329, 12056, 2840, 15067, 364, 534, 8371, 868, 591, 4549, 261, 2433, 4648, 13, 225, 1220, 4886, 353, 3137, 22681, 5846, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 18327, 523, 67, 7034, 287, 67, 266, 591, 4549, 12, 5340, 16, 23, 6625, 16, 3437, 13, 261, 5340, 16, 404, 13, 3536, 309, 582, 422, 374, 30, 309, 312, 405, 399, 30, 327, 261, 20, 16, 21, 13, 469, 30, 327, 599, 290, 16, 302, 273, 374, 16, 374, 268, 20, 16, 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, 18327, 523, 67, 7034, 287, 67, 266, 591, 4549, 12, 89, 16, 312, 16, 399, 4672, 436, 8395, 4238, 2840, 4783, 352, 1979, 534, 8371, 868, 591, 4549, 18, 225, 12108, 283, 3072, 13694, 1338, 300, 333, 353, 16618, 6600, 16, 1427, 11816, 18, 225, 12943, 30, 225, 300, 12176, 89, 16, 312, 16, 399, 10335, 300, 225, 12321, 4123, 716, 1375, 81, 405, 582, 521, 908, 374, 16, 68, 1375, 56, 405, 374, 8338, 225, 11550, 30, 225, 14635, 12321, 1375, 82, 16, 72, 68, 4123, 716, 1375, 72, 34, 20, 9191, 1375, 64, 15949, 556, 23241, 15949, 8864, 95, 75, 4315, 9090, 12, 82, 16, 72, 13, 33, 21, 9191, 1375, 82, 19, 72, 33, 89, 2 ]
if self.already_submitted == False: self.prepare()
if self.already_submitted == False and self.timeout_id == -1: self.prepare()
def plugin_on_unpaused(self): if self.already_submitted == False: self.prepare()
6d27e2d9a5ca9423483c68af4424c3c0cde65cb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6d27e2d9a5ca9423483c68af4424c3c0cde65cb6/qlscrobbler.py
[ 1, 8585, 326, 22398, 316, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1909, 67, 265, 67, 318, 8774, 3668, 12, 2890, 4672, 309, 365, 18, 17583, 67, 31575, 422, 1083, 471, 365, 18, 4538, 67, 350, 422, 300, 21, 30, 365, 18, 9366, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return multiprocessing.cpu_count()
ans = -1 try: ans = multiprocessing.cpu_count() except: from PyQt4.Qt import QThread ans = QThread.idealThreadCount() if ans < 1: ans = 1 return ans
def detect_ncpus(): """Detects the number of effective CPUs in the system""" return multiprocessing.cpu_count()
b89e0ce508a9aa104e1a33e127c63ffe738d8229 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/b89e0ce508a9aa104e1a33e127c63ffe738d8229/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 82, 20696, 13332, 3536, 12081, 87, 326, 1300, 434, 11448, 5181, 3477, 316, 326, 2619, 8395, 4152, 273, 300, 21, 775, 30, 4152, 273, 21828, 18, 11447, 67, 1883, 1435, 1335, 30, 628, 4707, 23310, 24, 18, 23310, 1930, 2238, 3830, 4152, 273, 2238, 3830, 18, 831, 287, 3830, 1380, 1435, 309, 4152, 411, 404, 30, 4152, 273, 404, 327, 4152, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 82, 20696, 13332, 3536, 12081, 87, 326, 1300, 434, 11448, 5181, 3477, 316, 326, 2619, 8395, 4152, 273, 300, 21, 775, 30, 4152, 273, 21828, 18, 11447, 67, 1883, 1435, 1335, 30, 628, 4707, 23310, 24, 18, 23310, 1930, 2238, 3830, 4152, 273, 2238, 3830, 18, 831, 287, 3830, 1380, 1435, 309, 4152, 411, 404, 30, 4152, 273, 404, 327, 4152, 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 ]
return self._outs[key].toString()
output = self._outs[key] output.flush() return output.toString('UTF-8')
def _get_msg(self, key): return self._outs[key].toString()
0ba2eb9a90aee40554a11f04ca1ccd5ae4543e76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/0ba2eb9a90aee40554a11f04ca1ccd5ae4543e76/outputcapture.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3576, 12, 2890, 16, 498, 4672, 327, 365, 6315, 20125, 63, 856, 8009, 10492, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3576, 12, 2890, 16, 498, 4672, 327, 365, 6315, 20125, 63, 856, 8009, 10492, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.lock.release()
def tagHandlerOutput(self, tag, msg, stderr = False): self.lock.acquire() self._message('') self.out.write('[%s] %s\n' % (tag, msg)) self.lock.release()
96cb9597972f2239714af0c054dbabf0c65c5eab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/96cb9597972f2239714af0c054dbabf0c65c5eab/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 1503, 1447, 12, 2890, 16, 1047, 16, 1234, 16, 4514, 273, 1083, 4672, 365, 18, 739, 18, 1077, 1039, 1435, 365, 6315, 2150, 2668, 6134, 365, 18, 659, 18, 2626, 2668, 14451, 87, 65, 738, 87, 64, 82, 11, 738, 261, 2692, 16, 1234, 3719, 365, 18, 739, 18, 9340, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 2668, 14451, 87, 65, 738, 87, 64, 82, 11, 738, 261, 2692, 16, 1234, 3719, 365, 18, 739, 18, 9340, 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 ]
'developer' : ["Developers' distribution", "If you're a developer and want to run Chandler in debugging mode, this distribution contains debug versions of the binaries. Assertions are active, the __debug__ global is set to True, and memory leaks are listed upon exit. You can also use this distribution to develop your own parcels (See <a href='http://wiki.osafoundation.org/bin/view/Chandler/ParcelLoading'>Parcel Loading</a> for details on loading your own parcels)."],
'developer' : ["Debug distribution", "If you're a developer and want to run Chandler in debugging mode, this distribution contains debug versions of the binaries. It runs a lot slower than the end-users release. Assertions are active, the __debug__ global is set to True, and memory leaks are listed upon exit. You may also want to use this distribution to develop and test your own parcels (See <a href='http://wiki.osafoundation.org/bin/view/Chandler/ParcelLoading'>Parcel Loading</a> for details on loading your own parcels)."],
def main(): parser = OptionParser(usage="%prog [options] type release-num target-dir", version="%prog 2.0") (options, args) = parser.parse_args() if len(args) != 3: parser.print_help() parser.error("You must provide [M | R | C], relase number and a directory name: M 0.5.03 0_5_03") rType = args[0] release = args[1] targetDir = args[2] if rType == "R": rFormat = "Release" elif rType == "M": rFormat = "Milestone" elif rType == "C": rFormat = "Checkpoint" else: parser.print_help() parser.error("You must provide [M | R | C], relase number and a directory name: M 0.5.03 0_5_03") print "Making index pages for", rFormat, release CreateIndex(release, targetDir) MakeMaster(release, rFormat, rType, targetDir) MakeJS(release, rFormat, targetDir) print "Complete"
6955a3a0fbbfe807b092e54ba3a7f4c5df5cbfb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6955a3a0fbbfe807b092e54ba3a7f4c5df5cbfb8/distIndex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 618, 3992, 17, 2107, 1018, 17, 1214, 3113, 1177, 11613, 14654, 576, 18, 20, 7923, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 309, 562, 12, 1968, 13, 480, 890, 30, 2082, 18, 1188, 67, 5201, 1435, 2082, 18, 1636, 2932, 6225, 1297, 5615, 306, 49, 571, 534, 571, 385, 6487, 1279, 448, 1300, 471, 279, 1867, 508, 30, 490, 374, 18, 25, 18, 4630, 374, 67, 25, 67, 4630, 7923, 225, 436, 559, 273, 833, 63, 20, 65, 3992, 273, 833, 63, 21, 65, 19410, 273, 833, 63, 22, 65, 225, 309, 436, 559, 422, 315, 54, 6877, 436, 1630, 273, 315, 7391, 6, 1327, 436, 559, 422, 315, 49, 6877, 436, 1630, 273, 315, 49, 18270, 6, 1327, 436, 559, 422, 315, 39, 6877, 436, 1630, 273, 315, 14431, 6, 469, 30, 2082, 18, 1188, 67, 5201, 1435, 2082, 18, 1636, 2932, 6225, 1297, 5615, 306, 49, 571, 534, 571, 385, 6487, 1279, 448, 1300, 471, 279, 1867, 508, 30, 490, 374, 18, 25, 18, 4630, 374, 67, 25, 67, 4630, 7923, 225, 1172, 315, 49, 6159, 770, 4689, 364, 3113, 436, 1630, 16, 3992, 1788, 1016, 12, 9340, 16, 19410, 13, 4344, 7786, 12, 9340, 16, 436, 1630, 16, 436, 559, 16, 19410, 13, 4344, 6479, 12, 9340, 16, 436, 1630, 16, 19410, 13, 225, 1172, 315, 6322, 6, 225, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 618, 3992, 17, 2107, 1018, 17, 1214, 3113, 1177, 11613, 14654, 576, 18, 20, 7923, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 309, 562, 12, 1968, 13, 480, 890, 30, 2082, 18, 1188, 67, 5201, 1435, 2082, 18, 1636, 2932, 6225, 1297, 5615, 306, 49, 571, 534, 571, 385, 6487, 1279, 448, 1300, 471, 279, 1867, 508, 30, 490, 374, 18, 25, 18, 4630, 374, 67, 25, 67, 4630, 7923, 225, 436, 559, 273, 833, 63, 20, 65, 3992, 273, 833, 63, 21, 65, 19410, 273, 833, 63, 22, 65, 225, 309, 436, 559, 422, 315, 54, 6877, 436, 1630, 2 ]
self.prev_song = CommonBean()
self.prev_title = ""
def __init__(self): BaseController.__init__(self) self.player = self.playerLocal() self.songs = [] self.cIndex = 0 self.time_format = gst.Format(gst.FORMAT_TIME) self.volume = 0 self.mode = self.MODE_PLAY_LIST # TODO: rename playState() to play() and remove this hack self.play = self.playState self.pause = self.pauseState self.erros = 0 self.prev_song = CommonBean()
c84bbe586844c72d5c6dc85f7ab487a91305d7ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/c84bbe586844c72d5c6dc85f7ab487a91305d7ed/player_controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3360, 2933, 16186, 2738, 972, 12, 2890, 13, 365, 18, 14872, 273, 365, 18, 14872, 2042, 1435, 225, 365, 18, 816, 564, 273, 5378, 365, 18, 71, 1016, 273, 374, 225, 365, 18, 957, 67, 2139, 273, 314, 334, 18, 1630, 12, 75, 334, 18, 7254, 67, 4684, 13, 365, 18, 9491, 273, 374, 365, 18, 3188, 273, 365, 18, 7038, 67, 52, 7868, 67, 7085, 225, 468, 2660, 30, 6472, 6599, 1119, 1435, 358, 6599, 1435, 471, 1206, 333, 11769, 365, 18, 1601, 273, 365, 18, 1601, 1119, 365, 18, 19476, 273, 365, 18, 19476, 1119, 365, 18, 264, 6973, 273, 374, 365, 18, 10001, 67, 2649, 273, 1408, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 564, 273, 5378, 365, 18, 71, 1016, 273, 374, 225, 365, 18, 957, 67, 2139, 273, 314, 334, 18, 1630, 12, 75, 334, 18, 7254, 67, 4684, 13, 365, 18, 9491, 273, 374, 365, 18, 3188, 273, 365, 18, 7038, 67, 52, 7868, 67, 7085, 225, 468, 2660, 30, 6472, 6599, 1119, 1435, 358, 6599, 1435, 471, 1206, 333, 11769, 365, 18, 1601, 273, 365, 18, 1601, 1119, 365, 18, 19476, 273, 365, 18, 19476, 1119, 365, 18, 264, 6973, 273, 374, 365, 18, 10001, 67, 2649, 273, 1408, 225, 2, -100 ]
"Anchors are drawn as a black wireframe box around each selected atom.</p>"
"Anchors are drawn as a black wireframe box around each selected atom."\ "</p>"
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command to the active part. "\ "<b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) #### Redo #### editRedoText = "<u><b>Redo</b></u> (Ctrl + Y)</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Re-applies the actions or commands on which you have used "\ "the Undo command. <b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "When selecting this feature, you are placed in "\ "<b>Build Atom</b> mode where you may paste copies "\ "of clipboard objects into the model where ever you click."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects are permanantly lost.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p><img source=\"setViewOrtho\"><br> "\ "Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p><img source=\"setViewPerspec\"><br> "\ "Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Opposite View #### setViewOppositeActionText = "<u><b>Opposite View</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate +90 #### setViewPlus90ActionText = "<u><b>Rotate +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate -90 #### setViewMinus90ActionText = "<u><b>Rotate -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display CPK #### dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode, also known as <b>\"Ball and Sticks\"</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display VdW #### dispVdWActionText = "<u><b>Display VdW</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Van der Waals</b> mode. Atoms are rendered as spheres with "\ "a size equal to the VdW radius. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>VdW</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Unselects any atom that has an open bond."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the open bonds in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Tool</b> allows you to deposit individual atoms or add/move/delete "\ "atoms from an existing chunk. Build Tool can also be used to paste "\ "copies of chunks from the clipboard into the part.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click</b> - adds an atom or pastes a chunk from the clipboard. "\ "New atoms can be connected to an existing chunk if an open bond is highlighted "\ "during a left click.</p>"\ "<p><b>Ctrl+Left Click</b> - deletes a highlighted atom or bond.</p>"\ "<p><b>Shift+Left Drag</b> - moves an atom or open bond. An open bond will be "\ "connected to another open bond if the mouse button is released over a different "\ "open bond."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing open bonds) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation.</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor.</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor.</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin).</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run.</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run.</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential.</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later.</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection.</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance</b> jig functions as a dimension to display the "\ "distance between two atoms.</p>"\ "<p>To create the Measure Distance jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei.</p>"\ "<p>The Measure Distance jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle</b> jig functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms.</p>"\ "<p>The Measure Angle jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral</b> jig functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value.</p>"\ "<p>The Measure Dihedral jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText ) #### Display Open Bonds #### dispOpenBondsText = "<u><b>Display Singlets</b></u><br>"\ "<p><img source=\"dispOpenBonds\"><br> "\ "Toggles Singlets on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispOpenBonds", self.dispOpenBondsAction.iconSet().pixmap() ) self.dispOpenBondsAction.setWhatsThis(dispOpenBondsText )
c9a25d437341caa5f0c88a4ab02c54ebb7627482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c9a25d437341caa5f0c88a4ab02c54ebb7627482/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 11849, 7, 7074, 1387, 11849, 7, 225, 585, 4755, 1528, 273, 3532, 89, 4438, 70, 34, 4755, 1387, 1757, 70, 4695, 89, 34, 377, 261, 12418, 397, 348, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 2354, 836, 2412, 4438, 2848, 34, 1548, 315, 13370, 326, 783, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 2354, 836, 3113, 365, 18, 768, 4755, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 4755, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 4755, 1528, 262, 225, 19709, 26487, 7, 468, 15328, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 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, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2 ]
for reference in gl_object.references[::-1]: if not reference.check_target(target_object): return
for reference in gl_object.references[::-1]: if not reference.check_target(target_object): return
def replace(self, gl_object): if not gl_object.get_fixed(): state = gl_object.__getstate__() state.pop("name", None) state.pop("transformation", None) new = self.get_new(gl_object.transformation.t)
c08ac42281627da7fb656492be7e10282e1f957b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11052/c08ac42281627da7fb656492be7e10282e1f957b/sketch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 5118, 67, 1612, 4672, 309, 486, 5118, 67, 1612, 18, 588, 67, 12429, 13332, 919, 273, 5118, 67, 1612, 16186, 588, 2019, 972, 1435, 919, 18, 5120, 2932, 529, 3113, 599, 13, 919, 18, 5120, 2932, 2338, 1471, 3113, 599, 13, 394, 273, 365, 18, 588, 67, 2704, 12, 7043, 67, 1612, 18, 2338, 1471, 18, 88, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 5118, 67, 1612, 4672, 309, 486, 5118, 67, 1612, 18, 588, 67, 12429, 13332, 919, 273, 5118, 67, 1612, 16186, 588, 2019, 972, 1435, 919, 18, 5120, 2932, 529, 3113, 599, 13, 919, 18, 5120, 2932, 2338, 1471, 3113, 599, 13, 394, 273, 365, 18, 588, 67, 2704, 12, 7043, 67, 1612, 18, 2338, 1471, 18, 88, 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 ]
ifp = open(ifp)
ifp = open(ifp)
def __init__(self, ifp):
a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 309, 84, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 309, 84, 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 ]
if __name__ == '__main__': main()
def main(): ConsoleIFace().start()
b5689c1a03356eeb35beeb678f9649fa8fd57715 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/b5689c1a03356eeb35beeb678f9649fa8fd57715/tel_console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 9657, 5501, 623, 7675, 1937, 1435, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 9657, 5501, 623, 7675, 1937, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for ev in instr.events: size = ev.start + max(ev.duration, ev.loadingLength)
for event in instr.events: size = event.start + max(event.duration, event.loadingLength)
def GetProjectLength(self): """ Returns the length of the project in seconds. """ length = 0 for instr in self.instruments: for ev in instr.events: size = ev.start + max(ev.duration, ev.loadingLength) length = max(length, size) return length
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4109, 1782, 12, 2890, 4672, 3536, 2860, 326, 769, 434, 326, 1984, 316, 3974, 18, 3536, 769, 273, 374, 364, 16170, 316, 365, 18, 22818, 87, 30, 364, 871, 316, 16170, 18, 5989, 30, 963, 273, 871, 18, 1937, 397, 943, 12, 2575, 18, 8760, 16, 871, 18, 15174, 1782, 13, 769, 273, 943, 12, 2469, 16, 963, 13, 327, 769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4109, 1782, 12, 2890, 4672, 3536, 2860, 326, 769, 434, 326, 1984, 316, 3974, 18, 3536, 769, 273, 374, 364, 16170, 316, 365, 18, 22818, 87, 30, 364, 871, 316, 16170, 18, 5989, 30, 963, 273, 871, 18, 1937, 397, 943, 12, 2575, 18, 8760, 16, 871, 18, 15174, 1782, 13, 769, 273, 943, 12, 2469, 16, 963, 13, 327, 769, 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 ]
monthType = monthWidth.attrib["type"]
def extractMonth(calendarElement): data = {} for monthContext in calendarElement.findall(".//monthContext"): for monthWidth in monthContext.findall("monthWidth"): monthType = monthWidth.attrib["type"] for month in monthWidth.findall("month"): if month.attrib.has_key("alt"): continue data["cldr_month_%s_%s" % (monthType, month.attrib["type"])] = month.text #cldr_key = "cldr_month_%s_%s_%s" % (monthContext.attrib["type"], monthWidth.attrib["type"], month.attrib["type"]) #data[cldr_key] = month.text return data
073041ba3cae560b40bee3339d671b63e55792f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/073041ba3cae560b40bee3339d671b63e55792f4/cldr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 5445, 12, 11650, 1046, 4672, 501, 273, 2618, 364, 3138, 1042, 316, 5686, 1046, 18, 4720, 454, 2932, 18, 759, 7496, 1042, 6, 4672, 364, 3138, 2384, 316, 3138, 1042, 18, 4720, 454, 2932, 7496, 2384, 6, 4672, 364, 3138, 316, 3138, 2384, 18, 4720, 454, 2932, 7496, 6, 4672, 309, 3138, 18, 14588, 18, 5332, 67, 856, 2932, 2390, 6, 4672, 1324, 501, 9614, 830, 3069, 67, 7496, 10185, 87, 10185, 87, 6, 738, 261, 7496, 559, 16, 3138, 18, 14588, 9614, 723, 6, 5717, 65, 273, 3138, 18, 955, 468, 830, 3069, 67, 856, 273, 315, 830, 3069, 67, 7496, 10185, 87, 10185, 87, 10185, 87, 6, 738, 261, 7496, 1042, 18, 14588, 9614, 723, 6, 6487, 3138, 2384, 18, 14588, 9614, 723, 6, 6487, 3138, 18, 14588, 9614, 723, 6, 5717, 468, 892, 63, 830, 3069, 67, 856, 65, 273, 3138, 18, 955, 327, 501, 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, 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384, 18, 4720, 454, 2932, 7496, 6, 4672, 309, 3138, 18, 14588, 18, 5332, 67, 856, 2932, 2390, 6, 4672, 1324, 501, 9614, 830, 3069, 67, 7496, 10185, 87, 10185, 87, 6, 738, 261, 7496, 559, 16, 3138, 18, 14588, 9614, 723, 6, 5717, 65, 273, 3138, 18, 955, 468, 830, 3069, 67, 856, 273, 315, 830, 3069, 67, 7496, 10185, 87, 10185, 87, 10185, 87, 6, 738, 261, 7496, 1042, 18, 14588, 9614, 723, 2 ]
session.save_or_update(pheno_entry) pheno_entry = None pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id)
pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id) else: pheno_entry = PassingData()
def savePlots(self, session, input_dir, call_method_id): """ 2009-2-17 """ files = os.listdir(input_dir) sys.stderr.write("Saving plots: %d files to be processed ...\n"%len(files)) files.sort() #in phenotype_method_id order as phenotype_method_id is the first character of each file. pheno_entry = None call_phen_entry = None prev_phenotype_method_id = None for i in range(len(files)): fname = files[i] sys.stderr.write("%d/%d:\t%s\n"%(i+1,len(files),fname)) re_search_result = self.re_plotfname.search(fname) pheno_hist_in_db = 0 call_phen_in_db = 0 if re_search_result: phenotype_method_id, plot_type = re_search_result.groups() phenotype_method_id = int(phenotype_method_id) #check if it's in db or not pheno_query = Stock_250kDB.PhenotypeHistPlots.query.filter_by(phenotype_method_id=phenotype_method_id).all() call_phen_query = Stock_250kDB.CallPhenotypeQQPlots.query.filter_by(phenotype_method_id=phenotype_method_id).filter_by(call_method_id=call_method_id).all() if pheno_query and call_phen_query: continue elif pheno_query: pheno_hist_in_db = 1 elif call_phen_query: call_phen_in_db = 1 if prev_phenotype_method_id==None: pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id) call_phen_entry = Stock_250kDB.CallPhenotypeQQPlots(phenotype_method_id=phenotype_method_id, call_method_id=call_method_id) prev_phenotype_method_id = phenotype_method_id elif prev_phenotype_method_id!=phenotype_method_id: #different phenotype here if pheno_entry: if not pheno_hist_in_db: session.save_or_update(pheno_entry) pheno_entry = None pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id) if call_phen_entry: if not call_phen_in_db: session.save_or_update(call_phen_entry) call_phen_entry = None call_phen_entry = Stock_250kDB.CallPhenotypeQQPlots(phenotype_method_id=phenotype_method_id, call_method_id=call_method_id) prev_phenotype_method_id = phenotype_method_id img = self.getImageFromFile(input_dir, fname) if plot_type=='qqplot': call_phen_entry.qq_thumb = img.thumb_data call_phen_entry.qq_plot = img.data call_phen_entry.qq_plot_fname = img.filename elif plot_type=='qqplot_log': call_phen_entry.qq_log_thumb = img.thumb_data call_phen_entry.qq_log_plot = img.data elif plot_type=='hist_logTransformed': pheno_entry.hist_thumb = img.thumb_data pheno_entry.hist_plot = img.data pheno_entry.hist_plot_fname = img.filename elif plot_type=='hist': pheno_entry.hist_log_thumb = img.thumb_data pheno_entry.hist_log_plot = img.data #don't forget the last file if it contains plot we want if pheno_entry: session.save_or_update(pheno_entry) if call_phen_entry: session.save_or_update(call_phen_entry) sys.stderr.write("Done.\n")
253069bd1465558b0452098a93e49c7f321a4769 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/253069bd1465558b0452098a93e49c7f321a4769/PutPhenotypeHistAndQQPlotsIntoDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 29311, 12, 2890, 16, 1339, 16, 810, 67, 1214, 16, 745, 67, 2039, 67, 350, 4672, 3536, 4044, 29, 17, 22, 17, 4033, 3536, 1390, 273, 1140, 18, 1098, 1214, 12, 2630, 67, 1214, 13, 2589, 18, 11241, 18, 2626, 2932, 24660, 17931, 30, 738, 72, 1390, 358, 506, 5204, 1372, 64, 82, 28385, 1897, 12, 2354, 3719, 1390, 18, 3804, 1435, 202, 7, 267, 28825, 67, 2039, 67, 350, 1353, 487, 28825, 67, 2039, 67, 350, 353, 326, 1122, 3351, 434, 1517, 585, 18, 1844, 5764, 67, 4099, 273, 599, 745, 67, 13819, 67, 4099, 273, 599, 2807, 67, 13819, 10570, 67, 2039, 67, 350, 273, 599, 225, 364, 277, 316, 1048, 12, 1897, 12, 2354, 3719, 30, 5299, 273, 1390, 63, 77, 65, 2589, 18, 11241, 18, 2626, 27188, 72, 5258, 72, 5581, 88, 9, 87, 64, 82, 6, 17105, 77, 15, 21, 16, 1897, 12, 2354, 3631, 12749, 3719, 283, 67, 3072, 67, 2088, 273, 365, 18, 266, 67, 4032, 12749, 18, 3072, 12, 12749, 13, 1844, 5764, 67, 11488, 67, 267, 67, 1966, 273, 374, 745, 67, 13819, 67, 267, 67, 1966, 273, 374, 309, 283, 67, 3072, 67, 2088, 30, 28825, 67, 2039, 67, 350, 16, 3207, 67, 723, 273, 283, 67, 3072, 67, 2088, 18, 4650, 1435, 28825, 67, 2039, 67, 350, 273, 509, 12, 13819, 10570, 67, 2039, 67, 350, 13, 225, 468, 1893, 309, 518, 1807, 316, 1319, 578, 486, 1844, 5764, 67, 2271, 273, 20296, 363, 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, 29311, 12, 2890, 16, 1339, 16, 810, 67, 1214, 16, 745, 67, 2039, 67, 350, 4672, 3536, 4044, 29, 17, 22, 17, 4033, 3536, 1390, 273, 1140, 18, 1098, 1214, 12, 2630, 67, 1214, 13, 2589, 18, 11241, 18, 2626, 2932, 24660, 17931, 30, 738, 72, 1390, 358, 506, 5204, 1372, 64, 82, 28385, 1897, 12, 2354, 3719, 1390, 18, 3804, 1435, 202, 7, 267, 28825, 67, 2039, 67, 350, 1353, 487, 28825, 67, 2039, 67, 350, 353, 326, 1122, 3351, 434, 1517, 585, 18, 1844, 5764, 67, 4099, 273, 599, 745, 67, 13819, 67, 4099, 273, 599, 2807, 67, 13819, 10570, 67, 2039, 67, 350, 273, 599, 225, 364, 277, 316, 1048, 12, 1897, 12, 2354, 2 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 620) else quickfix.StringField.__init__(self, 620, 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, 780, 974, 16186,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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 ]
[ 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 3462, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 3462, 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 ]
def testNull(self): o = returnNull() self.assert_(o == None)
def testReturnNull(self): '''Function returns a NULL pointer to a primitive type.''' o = returnNullPrimitivePointer() self.assertEqual(o, None)
def testNull(self): o = returnNull() self.assert_(o == None)
da6117eb38e4e9a505a2b5c445551bf7ea4b89e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2041, 12, 2890, 4672, 320, 273, 327, 2041, 1435, 365, 18, 11231, 67, 12, 83, 422, 599, 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, -100, -100, -100, -100 ]
testRunner = xmlrunner.XMLTestRunner(output='test-results')
testrunner = xmlrunner.XMLTestRunner(output='test-results')
def suite(): suite = unittest.TestSuite() suite.addTest(PidmanRestClientTest("test_search_pids")) suite.addTest(PidmanRestClientTest("test_constructor")) suite.addTest(PidmanRestClientTest("test_list_domains")) suite.addTest(PidmanRestClientTest("test_create_domain")) suite.addTest(PidmanRestClientTest("test_request_domain")) suite.addTest(PidmanRestClientTest("test_update_domain")) suite.addTest(PidmanRestClientTest("test_create_pid")) suite.addTest(PidmanRestClientTest("test_get_pid")) suite.addTest(PidmanRestClientTest("test_get_target")) suite.addTest(PidmanRestClientTest("test_update_pid")) suite.addTest(PidmanRestClientTest("test_update_target")) suite.addTest(PidmanRestClientTest("test_delete_target")) suite.addTest(DjangoPidmanRestClientTest("test_constructor")) suite.addTest(DjangoPidmanRestClientTest("test_runtime_error")) return suite
ab0c186ec549dbc7ce07d7561b38d7edb571a0f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/817/ab0c186ec549dbc7ce07d7561b38d7edb571a0f9/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 3072, 67, 84, 2232, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 12316, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 1098, 67, 14180, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2640, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2293, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2725, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2640, 67, 6610, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 588, 67, 6610, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 588, 67, 3299, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2725, 67, 6610, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2725, 67, 3299, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 3733, 67, 3299, 6, 3719, 11371, 18, 1289, 4709, 12, 40, 9142, 12478, 4728, 31870, 4709, 2932, 3813, 67, 12316, 6, 3719, 11371, 18, 1289, 4709, 12, 40, 9142, 12478, 4728, 31870, 4709, 2932, 3813, 67, 9448, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 3072, 67, 84, 2232, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 12316, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 1098, 67, 14180, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2640, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2293, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 31870, 4709, 2932, 3813, 67, 2725, 67, 4308, 6, 3719, 11371, 18, 1289, 4709, 12, 12478, 4728, 2 ]
error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()); return False;
error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()) return False
def test_04 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find proper connection result, but found error. Error code was: " + str(conn.status) + ", message: " + conn.error_msg); return False; # now create a channel channel = conn.open_channel (0, REGRESSION_URI); if not channel: error ("Expected to find proper channel creation, but error found:"); # get first message error = conn.pop_channel_error (); while error: error ("Found error message: " + str (error.code) + ": " + error.msg); # next message error = conn.pop_channel_error (); return False; # check channel installed if conn.num_channels != 2: error ("Expected to find only two channels installed (administrative BEEP channel 0 and test channel) but found: " + conn.num_channels ()); return False; # now close the channel if not channel.close (): error ("Expected to find proper channel close operation, but error found: "); # get first message error = conn.pop_channel_error (); while error: error ("Found error message: " + str (error.code) + ": " + error.msg); # next message error = conn.pop_channel_error (); return False; # check channel installed if conn.num_channels != 1: error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()); return False; # now close the connection (already shutted down) conn.close (); ctx.exit () # finish ctx del ctx return True;
44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925, 358, 1208, 776, 20873, 819, 8863, 327, 1083, 31, 225, 468, 745, 358, 752, 279, 1459, 1487, 273, 331, 20873, 18, 1952, 261, 5900, 16, 1479, 16, 1756, 1769, 225, 468, 866, 1459, 1267, 1839, 309, 309, 486, 1487, 18, 291, 67, 601, 1832, 30, 555, 7566, 6861, 358, 1104, 5338, 1459, 563, 16, 1496, 1392, 555, 18, 1068, 981, 1703, 30, 315, 397, 609, 12, 4646, 18, 2327, 13, 397, 3104, 883, 30, 315, 397, 1487, 18, 1636, 67, 3576, 1769, 327, 1083, 31, 225, 468, 2037, 752, 279, 1904, 1904, 377, 273, 1487, 18, 3190, 67, 4327, 261, 20, 16, 11980, 862, 4475, 67, 3098, 1769, 225, 309, 486, 1904, 30, 555, 7566, 6861, 358, 1104, 5338, 1904, 6710, 16, 1496, 555, 1392, 2773, 1769, 468, 336, 1122, 883, 555, 273, 1487, 18, 5120, 67, 4327, 67, 1636, 261, 1769, 1323, 555, 30, 555, 7566, 2043, 555, 883, 30, 315, 397, 609, 261, 1636, 18, 710, 13, 397, 6398, 315, 397, 555, 18, 3576, 1769, 225, 468, 1024, 883, 555, 273, 1487, 18, 5120, 67, 4327, 67, 1636, 261, 1769, 327, 1083, 31, 225, 468, 866, 1904, 5876, 309, 1487, 18, 2107, 67, 9114, 480, 576, 30, 555, 7566, 6861, 358, 1104, 1338, 2795, 5750, 5876, 261, 3666, 3337, 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, 67, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925, 358, 1208, 776, 20873, 819, 8863, 327, 1083, 31, 225, 468, 745, 358, 752, 279, 1459, 1487, 273, 331, 20873, 18, 1952, 261, 5900, 16, 1479, 16, 1756, 1769, 225, 468, 866, 1459, 1267, 1839, 309, 309, 486, 1487, 18, 291, 67, 601, 1832, 30, 555, 7566, 6861, 358, 1104, 5338, 1459, 563, 16, 1496, 1392, 555, 18, 1068, 981, 1703, 30, 315, 397, 609, 12, 4646, 18, 2327, 13, 397, 3104, 883, 30, 315, 397, 1487, 18, 1636, 67, 3576, 1769, 327, 2 ]