rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.haltButton.setEnabled(False) self.startButton.setEnabled(True) self.isRunning = False | self.handleHalting() | def whenStopButtonClicked(self, event): self.msgText("Slow loco to stop\n") # add text self.doStop() self.msgText("*** Run stopped ***\n") self.stopButton.setEnabled(False) self.haltButton.setEnabled(False) self.startButton.setEnabled(True) self.isRunning = False self.whenLocoChanged(event) return | 219951f746f72f6210b1a985c486a3c0fe38a240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/219951f746f72f6210b1a985c486a3c0fe38a240/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1347,
4947,
3616,
27633,
12,
2890,
16,
871,
4672,
365,
18,
3576,
1528,
2932,
28733,
1515,
83,
358,
2132,
64,
82,
7923,
377,
468,
527,
977,
365,
18,
2896,
4947,
1435,
365,
18,
3576,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1347,
4947,
3616,
27633,
12,
2890,
16,
871,
4672,
365,
18,
3576,
1528,
2932,
28733,
1515,
83,
358,
2132,
64,
82,
7923,
377,
468,
527,
977,
365,
18,
2896,
4947,
1435,
365,
18,
3576,
152... |
- gens -- a list of elements of this quaternion order - check -- bool (default: True); if False, then gens must 4-tuple that forms a Hermite basis for an ideal | - ``gens`` -- a list of elements of this quaternion order - ``check`` -- bool (default: ``True``); if ``False``, then ``gens`` must 4-tuple that forms a Hermite basis for an ideal | def left_ideal(self, gens, check=True): r""" Return the ideal with given gens over `\mathbf{Z}`. | 1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
67,
831,
287,
12,
2890,
16,
314,
773,
16,
866,
33,
5510,
4672,
436,
8395,
2000,
326,
23349,
598,
864,
314,
773,
1879,
1375,
64,
15949,
17156,
95,
62,
97,
8338,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
67,
831,
287,
12,
2890,
16,
314,
773,
16,
866,
33,
5510,
4672,
436,
8395,
2000,
326,
23349,
598,
864,
314,
773,
1879,
1375,
64,
15949,
17156,
95,
62,
97,
8338,
2,
-100,
-100,
-... |
reactor.callLater(10, self.timeOut) | self.id = reactor.callLater(10, self.timeOut) | def runClient(self): pb.connect("localhost", PORTNO, "guest", "guest", "pbfailure", "guest", 30).addCallbacks(self.connected, self.notConnected) reactor.callLater(10, self.timeOut) | 6bf614cc1ef2d83348b3bf81228663011ecb85d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/6bf614cc1ef2d83348b3bf81228663011ecb85d8/test_pbfailure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1227,
12,
2890,
4672,
6386,
18,
3612,
2932,
13014,
3113,
20987,
3417,
16,
315,
18908,
3113,
315,
18908,
3113,
315,
5733,
12251,
3113,
315,
18908,
3113,
5196,
2934,
1289,
10617,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1227,
12,
2890,
4672,
6386,
18,
3612,
2932,
13014,
3113,
20987,
3417,
16,
315,
18908,
3113,
315,
18908,
3113,
315,
5733,
12251,
3113,
315,
18908,
3113,
5196,
2934,
1289,
10617,
12,
2... |
Note that you have explicitly define variables and pass | However, preparsing can be turned off. sage: sage_eval('2^3', preparse=False) 1 Note that you can explicitly define variables and pass | def sage_eval(source, locals={}): r""" Obtain a \SAGE object from the input string by evaluate it using SAGE. This means calling eval after preparsing and with globals equal to everything included in the scope of \code{from sage.all import *}.). If the object has an _sage_ method it is called and the value is returned. Otherwise str is called on the object, and all preparsing is applied and the resulting expression is evaluated in the context of \code{from sage.all import *}. To evaluate the expression with certain variables set, use the locals argument, which should be a dictionary. EXAMPLES: This example illustrates that preparsing is applied. sage: eval('2^3') 1 sage: sage_eval('2^3') 8 Note that you have explicitly define variables and pass them as the second option: sage: x = PolynomialRing(RationalField(),"x").gen() sage: sage_eval('x^2+1', locals={'x':x}) x^2 + 1 This illustrates interfaces: sage: f = gp('2/3') sage: type(f) <class 'sage.interfaces.gp.GpElement'> sage: f._sage_() 2/3 sage: type(f._sage_()) <type 'sage.rings.rational.Rational'> sage: a = gap(939393/2433) sage: a._sage_() 313131/811 sage: type(a._sage_()) <type 'sage.rings.rational.Rational'> This example illustrates that evaluation occurs in the context of \code{from sage.all import *}. Even though bernoulli has been redefined in the local scope, when calling \code{sage_eval} the default value meaning of bernoulli is used. Likewise for QQ below. sage: bernoulli = lambda x : x^2 sage: bernoulli(6) 36 sage: eval('bernoulli(6)') 36 sage: sage_eval('bernoulli(6)') 1/42 sage: QQ = lambda x : x^2 sage: QQ(2) 4 sage: sage_eval('QQ(2)') 2 sage: parent(sage_eval('QQ(2)')) Rational Field This example illustrates setting a variable for use in evaluation. sage: x = 5 sage: eval('4/3 + x', {'x':25}) 26 sage: sage_eval('4/3 + x', locals={'x':25}) 79/3 This example illustrates how \code{sage_eval} can be useful when evaluating the output of other computer algebra systems. sage: R.<x> = PolynomialRing(RationalField()) sage: gap.eval('R:=PolynomialRing(Rationals,["x"]);') 'PolynomialRing(..., [ x ])' sage: ff = gap.eval('x:=IndeterminatesOfPolynomialRing(R);; f:=x^2+1;'); ff 'x^2+1' sage: sage_eval(ff, locals={'x':x}) x^2 + 1 sage: eval(ff) Traceback (most recent call last): ... RuntimeError: Use ** for exponentiation, not '^', which means xor in Python, and has the wrong precedence. Here you can see eval simply will not work but \code{sage_eval} will. """ if not isinstance(source, basestring): raise TypeError, "source must be a string." import sage.all p = preparse(source) try: return eval(p, sage.all.__dict__, locals) except SyntaxError, msg: raise SyntaxError, "%s\nError using SAGE to evaluate '%s'"%(msg, p) | ed8606501475114ac6a3106e3f3022c0879a34e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ed8606501475114ac6a3106e3f3022c0879a34e9/sage_eval.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
18... |
manifest = open (self.manifest, "w") for fn in self.files: manifest.write (fn + '\n') manifest.close () | self.execute(write_file, (self.manifest, self.files), "writing manifest file") | def write_manifest (self): """Write the file list in 'self.files' (presumably as filled in by 'find_defaults()' and 'read_template()') to the manifest file named by 'self.manifest'.""" | 0a589965ebd56b680a316a6da3c5aa20174b1e6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0a589965ebd56b680a316a6da3c5aa20174b1e6c/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
14357,
261,
2890,
4672,
3536,
3067,
326,
585,
666,
316,
296,
2890,
18,
2354,
11,
261,
12202,
379,
6906,
487,
6300,
316,
635,
296,
4720,
67,
7606,
11866,
471,
296,
896,
67,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
14357,
261,
2890,
4672,
3536,
3067,
326,
585,
666,
316,
296,
2890,
18,
2354,
11,
261,
12202,
379,
6906,
487,
6300,
316,
635,
296,
4720,
67,
7606,
11866,
471,
296,
896,
67,
32... |
state_action = state_data['runs'][0] | def test_restore_main_run(self): state_data = \ {'end_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 234159), 'run_num': 5, 'run_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 125149), 'runs': [{'command': 'free', 'end_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 232693), 'id': 'job.5.free_memory', 'run_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 125149), 'start_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 128291), 'state': 11}, {'command': 'who', 'end_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 234116), 'id': 'job.5.logged_in', 'run_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 125149), 'start_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 133002), 'state': 11}], 'start_time': datetime.datetime(2010, 12, 13, 15, 32, 3, 128152)} | d7938c2aa752f8db92e833e2e239348ca3065992 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/d7938c2aa752f8db92e833e2e239348ca3065992/job_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13991,
67,
5254,
67,
2681,
12,
2890,
4672,
919,
67,
892,
273,
521,
13666,
409,
67,
957,
4278,
3314,
18,
6585,
12,
6734,
20,
16,
2593,
16,
5958,
16,
4711,
16,
3847,
16,
890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13991,
67,
5254,
67,
2681,
12,
2890,
4672,
919,
67,
892,
273,
521,
13666,
409,
67,
957,
4278,
3314,
18,
6585,
12,
6734,
20,
16,
2593,
16,
5958,
16,
4711,
16,
3847,
16,
890,... | |
calling call_cls | calling classcall | ... def __init__(self): | 38f1953eb1bc8beb3d6794700189392834dc7526 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/38f1953eb1bc8beb3d6794700189392834dc7526/classcall_metaclass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
4202,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
4202,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for child in edges[vocab][term]: | for (edgeType, child) in edges[vocab][term]: | def maxDepth (term, vocab, edges): global depthCache # if we've already found and cached this, just return it if depthCache.has_key(term): return depthCache[term] # if this term has no children, its depth is simply 1 if not edges[vocab].has_key(term): depthCache[term] = 1 return 1 # recursively iterate through this term's children to find the # maximum depth deepest = 0 for child in edges[vocab][term]: childDepth = maxDepth(child, vocab, edges) deepest = max(deepest, childDepth) depthCache[term] = deepest + 1 return deepest + 1 | 4a7303d9450b9421704bf8f984bb762c92631b18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/536/4a7303d9450b9421704bf8f984bb762c92631b18/vocabulary_gatherer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22074,
261,
6408,
16,
9623,
16,
5231,
4672,
2552,
3598,
1649,
225,
468,
309,
732,
8081,
1818,
1392,
471,
3472,
333,
16,
2537,
327,
518,
225,
309,
3598,
1649,
18,
5332,
67,
856,
12,
640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22074,
261,
6408,
16,
9623,
16,
5231,
4672,
2552,
3598,
1649,
225,
468,
309,
732,
8081,
1818,
1392,
471,
3472,
333,
16,
2537,
327,
518,
225,
309,
3598,
1649,
18,
5332,
67,
856,
12,
640... |
print "Image length in Y direction:", ylength print "Filter window size:", W, "x", W | print "Image length in Y direction:", ylength print "Filter window size:", W, "x", W | def process(image, size, window, threshold, spam): ## set filter window and image dimensions W = 2*window + 1 xlength, ylength = size vlength = W*W if spam: print "Image length in X direction:", xlength print "Image length in Y direction:", ylength print "Filter window size:", W, "x", W ## create 2-D image array and initialize window image_array = reshape(array(image, type=UInt8), (ylength,xlength)) filter_window = zeros((W,W)) pixel_count = 0 try: ## loop over image with specified window W for y in range(window, ylength-(window+1)): for x in range(window, xlength-(window+1)): ## populate window, sort, find median filter_window = image_array[y-window:y+window+1,x-window:x+window+1] target_vector = reshape(filter_window, ((vlength),)) ## internal sort median = demo(target_vector, vlength) ##median = medians_1D.quick_select(target_vector, vlength) ## check for threshold if not threshold > 0: image_array[y,x] = median pixel_count += 1 else: scale = zeros(vlength) for n in range(vlength): scale[n] = abs(target_vector[n] - median) scale = sort(scale) Sk = 1.4826 * (scale[vlength/2]) if abs(image_array[y,x] - median) > (threshold * Sk): image_array[y,x] = median pixel_count += 1 except (TypeError), err: print "Error in processing function:", err sys.exit(2) ## ,NameError,ArithmeticError,LookupError print pixel_count, "pixel(s) filtered out of", xlength*ylength ## convert array back to sequence and return return reshape(image_array, (xlength*ylength,)).tolist() | e7040f8d368ded24afeb405deef0c6f80447e83a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8294/e7040f8d368ded24afeb405deef0c6f80447e83a/adaptive_median.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2730,
16,
963,
16,
2742,
16,
5573,
16,
24824,
4672,
225,
7541,
444,
1034,
2742,
471,
1316,
5769,
678,
273,
576,
14,
5668,
397,
404,
619,
2469,
16,
677,
2469,
273,
963,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2730,
16,
963,
16,
2742,
16,
5573,
16,
24824,
4672,
225,
7541,
444,
1034,
2742,
471,
1316,
5769,
678,
273,
576,
14,
5668,
397,
404,
619,
2469,
16,
677,
2469,
273,
963,
331,
... |
return object.__new__(cls) | def __new__(cls): cls.count += 1 return object.__new__(cls) | 434a4bccbdab61805b425accaeb797e44debe791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/434a4bccbdab61805b425accaeb797e44debe791/test_iter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
4672,
2028,
18,
1883,
1011,
404,
327,
733,
16186,
2704,
972,
12,
6429,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
4672,
2028,
18,
1883,
1011,
404,
327,
733,
16186,
2704,
972,
12,
6429,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
'contributor':None, | 'contributor':'contributor', | def test_metadata(self): """ Test Simple Consultation metadata """ releasedate = DateTime() #add Consultation with full fields fields = {'id':'scs_meta', 'title':'Simple consultation metadata test', 'description':'This is a simple consultation object', 'sortorder':'100', 'start_date':'11/11/1111', 'end_date':'12/12/1212', 'public_reg':'1', 'allow_file':'1', 'contributor':None, 'releasedate':releasedate, 'lang':'en', 'REQUEST':None} | e889baebc44324ec29c8e78d9d125f8382051b4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/e889baebc44324ec29c8e78d9d125f8382051b4b/testContentType.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4165,
12,
2890,
4672,
3536,
7766,
4477,
11020,
406,
367,
1982,
3536,
3992,
712,
273,
3716,
1435,
468,
1289,
11020,
406,
367,
598,
1983,
1466,
1466,
273,
13666,
350,
11,
2497,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
12,
2890,
4672,
3536,
7766,
4477,
11020,
406,
367,
1982,
3536,
3992,
712,
273,
3716,
1435,
468,
1289,
11020,
406,
367,
598,
1983,
1466,
1466,
273,
13666,
350,
11,
2497,
1... |
return apply(Open, (), options).show() | return Open(**options).show() | def askopenfilename(**options): "Ask for a filename to open" return apply(Open, (), options).show() | 25ee87cc50ab99a1342091b5067c074878c9b212 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25ee87cc50ab99a1342091b5067c074878c9b212/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
3190,
3459,
12,
636,
2116,
4672,
315,
23663,
364,
279,
1544,
358,
1696,
6,
225,
327,
3502,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
3190,
3459,
12,
636,
2116,
4672,
315,
23663,
364,
279,
1544,
358,
1696,
6,
225,
327,
3502,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
master.putClientInfo('ANTISPAM-FETCH', request.http_host + request.script_name) | master.putClientInfo('ANTISPAM-FETCH', request.url) | def getblacklist(request, pagename, do_update): """ Get blacklist, possibly downloading new copy @param request: current request (request instance) @param pagename: bad content page name (unicode) @rtype: list @return: list of blacklisted regular expressions """ from MoinMoin.PageEditor import PageEditor p = PageEditor(request, pagename, uid_override="Antispam subsystem") mymtime = wikiutil.version2timestamp(p.mtime_usecs()) if do_update: tooold = time.time() - 1800 failure = caching.CacheEntry(request, "antispam", "failure", scope='wiki') fail_time = failure.mtime() # only update if no failure in last hour if (mymtime < tooold) and (fail_time < tooold): logging.info("%d *BadContent too old, have to check for an update..." % tooold) import xmlrpclib import socket timeout = 15 # time out for reaching the master server via xmlrpc old_timeout = socket.getdefaulttimeout() socket.setdefaulttimeout(timeout) master_url = request.cfg.antispam_master_url master = xmlrpclib.ServerProxy(master_url) try: # Get BadContent info master.putClientInfo('ANTISPAM-CHECK', request.http_host+request.script_name) response = master.getPageInfo(pagename) # It seems that response is always a dict if isinstance(response, dict) and 'faultCode' in response: raise WikirpcError("failed to get BadContent information", response) # Compare date against local BadContent copy masterdate = response['lastModified'] if isinstance(masterdate, datetime.datetime): # for python 2.5 mydate = datetime.datetime(*tuple(time.gmtime(mymtime))[0:6]) else: # for python <= 2.4.x mydate = xmlrpclib.DateTime(tuple(time.gmtime(mymtime))) logging.debug("master: %s mine: %s" % (masterdate, mydate)) if mydate < masterdate: # Get new copy and save logging.info("Fetching page from %s..." % master_url) master.putClientInfo('ANTISPAM-FETCH', request.http_host + request.script_name) response = master.getPage(pagename) if isinstance(response, dict) and 'faultCode' in response: raise WikirpcError("failed to get BadContent data", response) p._write_file(response) mymtime = wikiutil.version2timestamp(p.mtime_usecs()) else: failure.update("") # we didn't get a modified version, this avoids # permanent polling for every save when there # is no updated master page except (socket.error, xmlrpclib.ProtocolError), err: logging.error('Timeout / socket / protocol error when accessing %s: %s' % (master_url, str(err))) # update cache to wait before the next try failure.update("") except (xmlrpclib.Fault, ), err: logging.error('Fault on %s: %s' % (master_url, str(err))) # update cache to wait before the next try failure.update("") except Error, err: # In case of Error, we log the error and use the local BadContent copy. logging.error(str(err)) # set back socket timeout socket.setdefaulttimeout(old_timeout) blacklist = p.get_raw_body() return mymtime, makelist(blacklist) | 56f326c77de8f56970e3952618f20a3e3730b6ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/56f326c77de8f56970e3952618f20a3e3730b6ac/antispam.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
22491,
12,
2293,
16,
4262,
1069,
16,
741,
67,
2725,
4672,
3536,
968,
11709,
16,
10016,
23742,
394,
1610,
225,
632,
891,
590,
30,
783,
590,
261,
2293,
791,
13,
632,
891,
4262,
1069... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
22491,
12,
2293,
16,
4262,
1069,
16,
741,
67,
2725,
4672,
3536,
968,
11709,
16,
10016,
23742,
394,
1610,
225,
632,
891,
590,
30,
783,
590,
261,
2293,
791,
13,
632,
891,
4262,
1069... |
code = unpack('!i', self.__read_bytes(4))[0] | code = _unpack('!i', self.__read_bytes(4))[0] | def _pkt_R(self): # # Startup Response # code = unpack('!i', self.__read_bytes(4))[0] if code == 0: self.__authenticated = 1 #print 'Authenticated!' elif code == 1: raise InterfaceError('Kerberos V4 authentication is required by server, but not supported by this client') elif code == 2: raise InterfaceError('Kerberos V5 authentication is required by server, but not supported by this client') elif code == 3: self.__send(pack('!i', len(self.__passwd)+5) + self.__passwd + '\0') elif code == 4: salt = self.__read_bytes(2) try: import crypt except: raise InterfaceError('Encrypted authentication is required by server, but Python crypt module not available') cpwd = crypt.crypt(self.__passwd, salt) self.__send(pack('!i', len(cpwd)+5) + cpwd + '\0') elif code == 5: import md5 | 15a18213714dad035ac4b8cb3da491223392d5b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1238/15a18213714dad035ac4b8cb3da491223392d5b1/bpgsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5465,
88,
67,
54,
12,
2890,
4672,
468,
468,
3603,
416,
2306,
468,
981,
273,
389,
17309,
2668,
5,
77,
2187,
365,
16186,
896,
67,
3890,
12,
24,
3719,
63,
20,
65,
309,
981,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5465,
88,
67,
54,
12,
2890,
4672,
468,
468,
3603,
416,
2306,
468,
981,
273,
389,
17309,
2668,
5,
77,
2187,
365,
16186,
896,
67,
3890,
12,
24,
3719,
63,
20,
65,
309,
981,
422,
... |
self._rbuf = [ ] self._wbuf = [ ] | self._rbuf = [] self._wbuf = [] | def __init__(self, sock, mode='rb', bufsize=-1): self._sock = sock self._mode = mode if bufsize <= 0: if bufsize == 0: bufsize = 1 # Unbuffered mode else: bufsize = 8192 self._rbufsize = bufsize self._wbufsize = bufsize self._rbuf = [ ] self._wbuf = [ ] | dee4f185d018d143d63db650d2b9ee53fe09c8e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dee4f185d018d143d63db650d2b9ee53fe09c8e9/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
4672,
365,
6315,
15031,
273,
7313,
365,
6315,
3188,
273,
1965,
309,
1681,
1467,
1648,
374,
30,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
4672,
365,
6315,
15031,
273,
7313,
365,
6315,
3188,
273,
1965,
309,
1681,
1467,
1648,
374,
30,
309... |
out += _("""If you don't own an account yet, please <a href="./register">register</a> an internal account.""") | out += _("""If you don't own an account yet, please <a href="../youraccount.py/register">register</a> an internal account.""") | def tmpl_login_form(self, ln, referer, internal, register_available, methods, selected_method, supportemail): """ Displays a login form | 7d8338098c4fe017a8209ff3fa297ccbba3a58fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/7d8338098c4fe017a8209ff3fa297ccbba3a58fe/websession_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5819,
67,
687,
12,
2890,
16,
7211,
16,
18068,
16,
2713,
16,
1744,
67,
5699,
16,
2590,
16,
3170,
67,
2039,
16,
2865,
3652,
4672,
3536,
9311,
87,
279,
3925,
646,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5819,
67,
687,
12,
2890,
16,
7211,
16,
18068,
16,
2713,
16,
1744,
67,
5699,
16,
2590,
16,
3170,
67,
2039,
16,
2865,
3652,
4672,
3536,
9311,
87,
279,
3925,
646,
2,
-100,
-1... |
config = Configuration(subpackage_name, self.name, | config = Configuration(subpackage_name, parent_name, | def _get_configuration_from_setup_py(self, setup_py, subpackage_name, subpackage_path, caller_level = 1): # In case setup_py imports local modules: sys.path.insert(0,os.path.dirname(setup_py)) try: fo_setup_py = open(setup_py, 'U') setup_name = os.path.splitext(os.path.basename(setup_py))[0] n = dot_join(self.name,subpackage_name,setup_name) setup_module = imp.load_module('_'.join(n.split('.')), fo_setup_py, setup_py, ('.py', 'U', 1)) fo_setup_py.close() if not hasattr(setup_module,'configuration'): if not self.options['assume_default_configuration']: self.warn('Assuming default configuration '\ '(%s does not define configuration())'\ % (setup_module)) config = Configuration(subpackage_name, self.name, self.top_path, subpackage_path, caller_level = caller_level + 1) else: args = (self.name,) if setup_module.configuration.func_code.co_argcount > 1: args = args + (self.top_path,) config = setup_module.configuration(*args) finally: del sys.path[0] return config | 680a44a631b3d039dc63d108274eeeefa062de34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/680a44a631b3d039dc63d108274eeeefa062de34/misc_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7025,
67,
2080,
67,
8401,
67,
2074,
12,
2890,
16,
3875,
67,
2074,
16,
720,
5610,
67,
529,
16,
720,
5610,
67,
803,
16,
4894,
67,
2815,
273,
404,
4672,
468,
657,
648,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7025,
67,
2080,
67,
8401,
67,
2074,
12,
2890,
16,
3875,
67,
2074,
16,
720,
5610,
67,
529,
16,
720,
5610,
67,
803,
16,
4894,
67,
2815,
273,
404,
4672,
468,
657,
648,
3... |
core.timer(0, g.switch, *args) | core.timer(seconds, g.switch, *args) | def spawn_later(seconds, function, *args, **kwargs): if kwargs: g = Greenlet(_switch_helper) g.parent = get_hub().greenlet core.timer(0, g.switch, function, args, kwargs) return g else: g = Greenlet(function) g.parent = get_hub().greenlet core.timer(0, g.switch, *args) return g | efa962b96059e8e8fe8d698014350efb5b5b0311 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/efa962b96059e8e8fe8d698014350efb5b5b0311/greenlet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
67,
29082,
12,
7572,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
1205,
30,
314,
273,
17766,
1810,
24899,
9610,
67,
4759,
13,
314,
18,
2938,
273,
336,
67,
14986,
7675,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12560,
67,
29082,
12,
7572,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
1205,
30,
314,
273,
17766,
1810,
24899,
9610,
67,
4759,
13,
314,
18,
2938,
273,
336,
67,
14986,
7675,
115... |
while node != "select" | while node.name != "select": | def endTagSelect(self, name="select"): if self.parser.elementInScope(name, True): if self.parser.openElements[-1].name != "select": node = self.parser.openElements.pop() while node != "select" node = self.parser.openElements.pop() self.parser.resetInsertionMode() else: # innerHTML case self.parser.parseError() | 2642c664c6e0937a2fa4a65315b9736bd69d8b03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/2642c664c6e0937a2fa4a65315b9736bd69d8b03/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
3391,
12,
2890,
16,
508,
1546,
4025,
6,
4672,
309,
365,
18,
4288,
18,
2956,
382,
3876,
12,
529,
16,
1053,
4672,
309,
365,
18,
4288,
18,
3190,
3471,
18919,
21,
8009,
529,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
3391,
12,
2890,
16,
508,
1546,
4025,
6,
4672,
309,
365,
18,
4288,
18,
2956,
382,
3876,
12,
529,
16,
1053,
4672,
309,
365,
18,
4288,
18,
3190,
3471,
18919,
21,
8009,
529,
480,
... |
ctime = self.env.cf.stat.st_ctime | try: ctime = self.env.cf.stat.st_ctime except: ctime = -1 | def draw(self): """Draw the statusbar""" | 2ef7d919e75ba172257b5f5cbc1ad0abe371e0b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/2ef7d919e75ba172257b5f5cbc1ad0abe371e0b3/statusbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
3536,
6493,
326,
1267,
3215,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
3536,
6493,
326,
1267,
3215,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
cc_args = self.compile_options + \ | cc_args = compile_options + \ | def compile (self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None): | 4ba9b2e3b64c31b488b1454c9ec4c8e0e2d7da9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4ba9b2e3b64c31b488b1454c9ec4c8e0e2d7da9d/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
261,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
261,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... |
settings.setValue("Ginkgo/Resources", QVariant(currentResourcesUris)) settings.setValue("Ginkgo/Places", QVariant(self.placesData)) | ggroup.writeEntry("active-resources", QVariant(currentResourcesUris)) ggroup.writeEntry("places", QVariant(self.placesData)) config.sync() | def saveSettings(self): settings = QSettings() settings.setValue("Ginkgo/Size", QVariant(self.size())) settings.setValue("Ginkgo/Position", QVariant(self.pos())) settings.setValue("Ginkgo/State", QVariant(self.saveState())) currentResourcesUris = QStringList() for i in range(self.workarea.count()): editor = self.workarea.widget(i) if hasattr(editor, "resource") and editor.resource: currentResourcesUris.append(editor.resource.resourceUri().toString()) settings.setValue("Ginkgo/Resources", QVariant(currentResourcesUris)) settings.setValue("Ginkgo/Places", QVariant(self.placesData)) | 4ab5cfa00af0fef11430da5390f6d7656348b3b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1729/4ab5cfa00af0fef11430da5390f6d7656348b3b4/ginkgo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
4672,
1947,
273,
2238,
2628,
1435,
1947,
18,
542,
620,
2932,
43,
754,
3240,
19,
1225,
3113,
2238,
9356,
12,
2890,
18,
1467,
1435,
3719,
1947,
18,
542,
620,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2628,
12,
2890,
4672,
1947,
273,
2238,
2628,
1435,
1947,
18,
542,
620,
2932,
43,
754,
3240,
19,
1225,
3113,
2238,
9356,
12,
2890,
18,
1467,
1435,
3719,
1947,
18,
542,
620,
2932,
... |
print dir() return True | print envp return True | def client_connect(envp): print dir() return True | 05f75fcd4276beb4b127476d6d02dcc08d6e82d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3904/05f75fcd4276beb4b127476d6d02dcc08d6e82d6/ovpn-def.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
67,
3612,
12,
3074,
84,
4672,
1172,
1550,
84,
327,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
67,
3612,
12,
3074,
84,
4672,
1172,
1550,
84,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def keyGo(self): if (config.timerentry.type.value == 0): self.timer.begin = self.getTimestamp(config.timerentry.startdate.value, config.timerentry.starttime.value) self.timer.end = self.getTimestamp(config.timerentry.enddate.value, config.timerentry.endtime.value) self.close((True, self.timer)) | def checkDate(self, configElement): if (configElement.getConfigPath() == "config.timerentry.startdate"): if (config.timerentry.enddate.value < config.timerentry.startdate.value): config.timerentry.enddate.value = config.timerentry.startdate.value config.timerentry.enddate.change() self["config"].invalidate(config.timerentry.enddate) if (configElement.getConfigPath() == "config.timerentry.enddate"): if (config.timerentry.enddate.value < config.timerentry.startdate.value): config.timerentry.startdate.value = config.timerentry.enddate.value config.timerentry.startdate.change() self["config"].invalidate(config.timerentry.startdate) | def keyGo(self): if (config.timerentry.type.value == 0): # once self.timer.begin = self.getTimestamp(config.timerentry.startdate.value, config.timerentry.starttime.value) self.timer.end = self.getTimestamp(config.timerentry.enddate.value, config.timerentry.endtime.value) self.close((True, self.timer)) | aceb62aeebc259a4da520b303a31a6a174d9400a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/aceb62aeebc259a4da520b303a31a6a174d9400a/TimerEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
5741,
12,
2890,
4672,
309,
261,
1425,
18,
12542,
4099,
18,
723,
18,
1132,
422,
374,
4672,
468,
3647,
365,
18,
12542,
18,
10086,
273,
365,
18,
588,
4921,
12,
1425,
18,
12542,
4099,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
5741,
12,
2890,
4672,
309,
261,
1425,
18,
12542,
4099,
18,
723,
18,
1132,
422,
374,
4672,
468,
3647,
365,
18,
12542,
18,
10086,
273,
365,
18,
588,
4921,
12,
1425,
18,
12542,
4099,... |
return (14,) | return (15,) | def c_code_cache_version(self): #return () return (14,) | bc356dd74291a5140c8d113c61c030c065f75bcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/bc356dd74291a5140c8d113c61c030c065f75bcd/basic_ops.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
468,
2463,
1832,
327,
261,
3461,
16,
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,
... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
468,
2463,
1832,
327,
261,
3461,
16,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if normed is False: return n, bins elif normed is True: | if normed: | def histogram(a, bins=10, range=None, normed=False, weights=None, new=None): """ Compute the histogram of a set of data. Parameters ---------- a : array_like Input data. bins : int or sequence of scalars, optional If `bins` is an int, it defines the number of equal-width bins in the given range (10, by default). If `bins` is a sequence, it defines the bin edges, including the rightmost edge, allowing for non-uniform bin widths. range : (float, float), optional The lower and upper range of the bins. If not provided, range is simply ``(a.min(), a.max())``. Values outside the range are ignored. Note that with `new` set to False, values below the range are ignored, while those above the range are tallied in the rightmost bin. normed : bool, optional If False, the result will contain the number of samples in each bin. If True, the result is the value of the probability *density* function at the bin, normalized such that the *integral* over the range is 1. Note that the sum of the histogram values will often not be equal to 1; it is not a probability *mass* function. weights : array_like, optional An array of weights, of the same shape as `a`. Each value in `a` only contributes its associated weight towards the bin count (instead of 1). If `normed` is True, the weights are normalized, so that the integral of the density over the range remains 1. The `weights` keyword is only available with `new` set to True. new : {None, True, False}, optional Whether to use the new semantics for histogram: * None : the new behaviour is used, no warning is printed. * True : the new behaviour is used and a warning is raised about the future removal of the `new` keyword. * False : the old behaviour is used and a DeprecationWarning is raised. As of NumPy 1.3, this keyword should not be used explicitly since it will disappear in NumPy 1.4. Returns ------- hist : array The values of the histogram. See `normed` and `weights` for a description of the possible semantics. bin_edges : array of dtype float Return the bin edges ``(length(hist)+1)``. With ``new=False``, return the left bin edges (``length(hist)``). See Also -------- histogramdd Notes ----- All but the last (righthand-most) bin is half-open. In other words, if `bins` is:: [1, 2, 3, 4] then the first bin is ``[1, 2)`` (including 1, but excluding 2) and the second ``[2, 3)``. The last bin, however, is ``[3, 4]``, which *includes* 4. Examples -------- >>> np.histogram([1,2,1], bins=[0,1,2,3]) (array([0, 2, 1]), array([0, 1, 2, 3])) """ # Old behavior if new == False: warnings.warn(""" The histogram semantics being used is now deprecated and will disappear in NumPy 1.4. Please update your code to use the default semantics. """, DeprecationWarning) a = asarray(a).ravel() if (range is not None): mn, mx = range if (mn > mx): raise AttributeError, \ 'max must be larger than min in range parameter.' if not iterable(bins): if range is None: range = (a.min(), a.max()) mn, mx = [mi+0.0 for mi in range] if mn == mx: mn -= 0.5 mx += 0.5 bins = linspace(mn, mx, bins, endpoint=False) else: if normed: raise ValueError, 'Use new=True to pass bin edges explicitly.' raise ValueError, 'Use new=True to pass bin edges explicitly.' bins = asarray(bins) if (np.diff(bins) < 0).any(): raise AttributeError, 'bins must increase monotonically.' if weights is not None: raise ValueError, 'weights are only available with new=True.' # best block size probably depends on processor cache size block = 65536 n = sort(a[:block]).searchsorted(bins) for i in xrange(block, a.size, block): n += sort(a[i:i+block]).searchsorted(bins) n = concatenate([n, [len(a)]]) n = n[1:]-n[:-1] if normed: db = bins[1] - bins[0] return 1.0/(a.size*db) * n, bins else: return n, bins # New behavior elif new in [True, None]: if new is True: warnings.warn(""" The new semantics of histogram is now the default and the `new` keyword will be removed in NumPy 1.4. """, Warning) a = asarray(a) if weights is not None: weights = asarray(weights) if np.any(weights.shape != a.shape): raise ValueError, 'weights should have the same shape as a.' weights = weights.ravel() a = a.ravel() if (range is not None): mn, mx = range if (mn > mx): raise AttributeError, \ 'max must be larger than min in range parameter.' if not iterable(bins): if range is None: range = (a.min(), a.max()) mn, mx = [mi+0.0 for mi in range] if mn == mx: mn -= 0.5 mx += 0.5 bins = linspace(mn, mx, bins+1, endpoint=True) else: bins = asarray(bins) if (np.diff(bins) < 0).any(): raise AttributeError, 'bins must increase monotonically.' # Histogram is an integer or a float array depending on the weights. if weights is None: ntype = int else: ntype = weights.dtype n = np.zeros(bins.shape, ntype) block = 65536 if weights is None: for i in arange(0, len(a), block): sa = sort(a[i:i+block]) n += np.r_[sa.searchsorted(bins[:-1], 'left'), \ sa.searchsorted(bins[-1], 'right')] else: zero = array(0, dtype=ntype) for i in arange(0, len(a), block): tmp_a = a[i:i+block] tmp_w = weights[i:i+block] sorting_index = np.argsort(tmp_a) sa = tmp_a[sorting_index] sw = tmp_w[sorting_index] cw = np.concatenate(([zero,], sw.cumsum())) bin_index = np.r_[sa.searchsorted(bins[:-1], 'left'), \ sa.searchsorted(bins[-1], 'right')] n += cw[bin_index] n = np.diff(n) if normed is False: return n, bins elif normed is True: db = array(np.diff(bins), float) return n/(n*db).sum(), bins | da19f3edc5c8995afc821ddc949b386e781e0b6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/da19f3edc5c8995afc821ddc949b386e781e0b6a/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8892,
12,
69,
16,
8963,
33,
2163,
16,
1048,
33,
7036,
16,
4651,
329,
33,
8381,
16,
5376,
33,
7036,
16,
394,
33,
7036,
4672,
3536,
8155,
326,
8892,
434,
279,
444,
434,
501,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8892,
12,
69,
16,
8963,
33,
2163,
16,
1048,
33,
7036,
16,
4651,
329,
33,
8381,
16,
5376,
33,
7036,
16,
394,
33,
7036,
4672,
3536,
8155,
326,
8892,
434,
279,
444,
434,
501,
18,
225,
... |
var = wx.aui.AUI_ART_ACTIVE_CAPTION_COLOUR | var = wx.aui.AUI_DOCKART_ACTIVE_CAPTION_COLOUR | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_InactiveCaptionColor: var = wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR elif event.GetId() == ID_InactiveCaptionGradientColor: var = wx.aui.AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR elif event.GetId() == ID_InactiveCaptionTextColor: var = wx.aui.AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR elif event.GetId() == ID_ActiveCaptionColor: var = wx.aui.AUI_ART_ACTIVE_CAPTION_COLOUR elif event.GetId() == ID_ActiveCaptionGradientColor: var = wx.aui.AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR elif event.GetId() == ID_ActiveCaptionTextColor: var = wx.aui.AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR elif event.GetId() == ID_BorderColor: var = wx.aui.AUI_ART_BORDER_COLOUR elif event.GetId() == ID_GripperColor: var = wx.aui.AUI_ART_GRIPPER_COLOUR else: return self._frame.GetDockArt().SetColor(var, dlg.GetColourData().GetColour()) self._frame.DoUpdate() self.UpdateColors() | de824c0c9cec70a6369d011fb635c8ba12bdacea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de824c0c9cec70a6369d011fb635c8ba12bdacea/AUI_DockingWindowMgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
694,
2957,
12,
2890,
16,
871,
4672,
225,
25840,
273,
7075,
18,
26404,
6353,
12,
2890,
6315,
3789,
13,
225,
25840,
18,
694,
4247,
2932,
2957,
453,
5448,
7923,
225,
309,
25840,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
694,
2957,
12,
2890,
16,
871,
4672,
225,
25840,
273,
7075,
18,
26404,
6353,
12,
2890,
6315,
3789,
13,
225,
25840,
18,
694,
4247,
2932,
2957,
453,
5448,
7923,
225,
309,
25840,
18,
... |
model.put() | for model in models: model.put() if(not is_list): models = models[0] | def update_impl(self, model_name, model_key, is_replace): """Actual implementation of all Model update methods. Creates/updates/replaces Model instances as specified. Writes the key of the modified Model as a plain text result. """ model_handler = self.get_model_handler(model_name) if(not model_handler): return | fcbcc5a53bdc9a0ceb8073f1cee89589ee10750f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4753/fcbcc5a53bdc9a0ceb8073f1cee89589ee10750f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
11299,
12,
2890,
16,
938,
67,
529,
16,
938,
67,
856,
16,
353,
67,
2079,
4672,
3536,
11266,
4471,
434,
777,
3164,
1089,
2590,
18,
225,
10210,
19,
14703,
19,
266,
11350,
3164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
67,
11299,
12,
2890,
16,
938,
67,
529,
16,
938,
67,
856,
16,
353,
67,
2079,
4672,
3536,
11266,
4471,
434,
777,
3164,
1089,
2590,
18,
225,
10210,
19,
14703,
19,
266,
11350,
3164,
... |
print system("svn up") | print system("svn up --non-interactive") | def cmd_up(self): print self.directory os.chdir(self.directory) print system("svn up") | 5efa0067cf9f5b564e700fc2a5773086d6f9d28e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2086/5efa0067cf9f5b564e700fc2a5773086d6f9d28e/dirinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
416,
12,
2890,
4672,
1172,
365,
18,
5149,
1140,
18,
343,
1214,
12,
2890,
18,
5149,
13,
1172,
2619,
2932,
31505,
731,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
416,
12,
2890,
4672,
1172,
365,
18,
5149,
1140,
18,
343,
1214,
12,
2890,
18,
5149,
13,
1172,
2619,
2932,
31505,
731,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if rev < 0: | if rev == nullrev: | def start(self, rev): if rev < 0: return 0 if self.version != REVLOGV0: return self.ngoffset(self.index[rev][0]) return self.index[rev][0] | 4999795a121b28b773eccceb5db342478b766541 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4999795a121b28b773eccceb5db342478b766541/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
5588,
4672,
309,
5588,
422,
446,
9083,
30,
327,
374,
309,
365,
18,
1589,
480,
2438,
58,
4842,
58,
20,
30,
327,
365,
18,
3368,
3348,
12,
2890,
18,
1615,
63,
9083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
2890,
16,
5588,
4672,
309,
5588,
422,
446,
9083,
30,
327,
374,
309,
365,
18,
1589,
480,
2438,
58,
4842,
58,
20,
30,
327,
365,
18,
3368,
3348,
12,
2890,
18,
1615,
63,
9083,
... |
mix_columns = Matrix(k,r*c*e,r*c*e) | mix_columns = Matrix(k, r*c*e, r*c*e) | def D(b): """ Return the e x e matrix $D$ with $b^i$ along the diagonal. | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
12,
70,
4672,
3536,
2000,
326,
425,
619,
425,
3148,
271,
40,
8,
598,
271,
70,
66,
77,
8,
7563,
326,
15425,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
12,
70,
4672,
3536,
2000,
326,
425,
619,
425,
3148,
271,
40,
8,
598,
271,
70,
66,
77,
8,
7563,
326,
15425,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
security.declareProtected(permissions.View, 'keys') | security.declareProtected(CMFCorePermissions.View, 'keys') | def has_key(self, name): return self._fields.has_key(name) | 67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
856,
12,
2890,
16,
508,
4672,
327,
365,
6315,
2821,
18,
5332,
67,
856,
12,
529,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
856,
12,
2890,
16,
508,
4672,
327,
365,
6315,
2821,
18,
5332,
67,
856,
12,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
_debug(1, "<- REQUEST: seq=%d, type=%s, data=%d, timeout=%d" % (seq, packet_type, len(pdata), timeout)) | log.debug("<- REQUEST: seq=%d, type=%s, data=%d, timeout=%d" % (seq, packet_type, len(pdata), timeout)) | def _send_packet(self, packet_type, data, seq = 0, timeout = None, reply_cb = None): if not self.socket: return | a2ef02ba6b2343fafef3eba89f609780397810ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/a2ef02ba6b2343fafef3eba89f609780397810ea/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,
501,
16,
3833,
273,
374,
16,
2021,
273,
599,
16,
4332,
67,
7358,
273,
599,
4672,
309,
486,
365,
18,
7814,
30,
327,
2,
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,
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,
4661,
67,
11482,
12,
2890,
16,
4414,
67,
723,
16,
501,
16,
3833,
273,
374,
16,
2021,
273,
599,
16,
4332,
67,
7358,
273,
599,
4672,
309,
486,
365,
18,
7814,
30,
327,
2,
-100,
-... |
self.Manager.ChangeCurrentNode(selected) self.RefreshBufferState() self.RefreshProfileMenu() | if selected >= 0: self.Manager.ChangeCurrentNode(selected) self.RefreshBufferState() self.RefreshProfileMenu() | def OnFileSelectedChanged(self, event): selected = self.FileOpened.GetSelection() self.Manager.ChangeCurrentNode(selected) self.RefreshBufferState() self.RefreshProfileMenu() event.Skip() | 8c439eb7ae202e60f4674b584401402a78ec673f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11017/8c439eb7ae202e60f4674b584401402a78ec673f/objdictedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
812,
7416,
5033,
12,
2890,
16,
871,
4672,
3170,
273,
365,
18,
812,
23115,
18,
967,
6233,
1435,
225,
309,
3170,
1545,
374,
30,
365,
18,
1318,
18,
3043,
3935,
907,
12,
8109,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
812,
7416,
5033,
12,
2890,
16,
871,
4672,
3170,
273,
365,
18,
812,
23115,
18,
967,
6233,
1435,
225,
309,
3170,
1545,
374,
30,
365,
18,
1318,
18,
3043,
3935,
907,
12,
8109,
13,
... |
>>> p.link_exception() >>> api.sleep(1) Traceback (most recent call last): ... LinkedFailed: '<function demofunc at 0x...>' failed with ZeroDivisionError | >>> _ = p.link_exception() >>> try: ... api.sleep(1) ... except LinkedFailed: ... print 'LinkedFailed' LinkedFailed | >>> def demofunc(x, y): | 7e93ec45360cf6299c27fdb6ee7e74aa0fa4eb1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/7e93ec45360cf6299c27fdb6ee7e74aa0fa4eb1d/proc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
21477,
644,
12,
92,
16,
677,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
21477,
644,
12,
92,
16,
677,
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,
... |
'res_id' : meeting.id, | 'res_id' : meeting.id, | def _set_data(self, cr, uid, meeting_id, name, value, arg, context): if not value: return attendee_obj = self.pool.get('calendar.attendee') model_obj = self.pool.get('ir.model') alarm_obj = self.pool.get('calendar.alarm') eventdata = self.read(cr, uid, meeting_id, [name], context=context) if name == "attendees": attendee_ids = attendee_obj.import_cal(cr, uid, eventdata['attendees']) vals = { 'ref':'%s,%d'%('crm.meeting', meeting_id) } attendee_obj.write(cr, uid, attendee_ids, vals) if name == "alarms": model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0] alarm_ids = alarm_obj.import_cal(cr, uid, eventdata['alarms']) vals = { 'res_id' : meeting.id, 'model_id' : model_id, } alarm_obj.write(cr, uid, alarm_ids, vals) alarm = alarm_obj.browse(cr, uid, alarm_ids)[0] self.write(cr, uid, [meeting_id], {'alarm_id':alarm.alarm_id}) return True | 75258015cae6ae0d493e7eb6204a16eafed73cd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/75258015cae6ae0d493e7eb6204a16eafed73cd9/crm_meeting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
18721,
310,
67,
350,
16,
508,
16,
460,
16,
1501,
16,
819,
4672,
309,
486,
460,
30,
327,
27645,
20953,
67,
2603,
273,
365,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
18721,
310,
67,
350,
16,
508,
16,
460,
16,
1501,
16,
819,
4672,
309,
486,
460,
30,
327,
27645,
20953,
67,
2603,
273,
365,
18,
6... |
nodes = [] nodes.extend(flatten_nodes(self.bases)) nodes.append(self.code) return tuple(nodes) | nodelist = [] nodelist.extend(flatten_nodes(self.bases)) nodelist.append(self.code) return tuple(nodelist) | def getChildNodes(self): nodes = [] nodes.extend(flatten_nodes(self.bases)) nodes.append(self.code) return tuple(nodes) | 101b9307b0d9de62f324ef9ffa6e83f8040af642 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/101b9307b0d9de62f324ef9ffa6e83f8040af642/ast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
18602,
3719,
2199,
18,
6923,
12,
2890,
18,
710,
13,
327,
3193,
12,
4690,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
18602,
3719,
2199,
18,
6923,
12,
2890,
18,
710,
13,
327,
3193,
12,
4690,
13,
2,
-100,
-100,
... |
mock = self.mocker({name: 'path/to/mod'}) | mock = self.mocker({name: os.path.join('path', 'to', 'mod')}) | def test_unloadable(self): name = "mod" mock = self.mocker({name: 'path/to/mod'}) mock.source = b"1/0" with util.uncache(name): self.assertRaises(ZeroDivisionError, mock.load_module, name) self.assert_(name not in sys.modules) return mock | 3714e816446d00f205edc184db1f131faf6bf12b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3714e816446d00f205edc184db1f131faf6bf12b/test_abc_loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
945,
429,
12,
2890,
4672,
508,
273,
315,
1711,
6,
5416,
273,
365,
18,
81,
6203,
12590,
529,
30,
1140,
18,
803,
18,
5701,
2668,
803,
2187,
296,
869,
2187,
296,
1711,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
945,
429,
12,
2890,
4672,
508,
273,
315,
1711,
6,
5416,
273,
365,
18,
81,
6203,
12590,
529,
30,
1140,
18,
803,
18,
5701,
2668,
803,
2187,
296,
869,
2187,
296,
1711,
61... |
print 'Remote directory now:', pwd print 'Remote cwd', subdir | print 'Remote directory now:', `pwd` print 'Remote cwd', `subdir` | def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in %s' % infofilename info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %s...' % pwd f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', `line` if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = string.strip(line) mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = string.split(line, None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1] if string.find(filename, " -> ") >= 0: if verbose > 1: print 'Skipping symbolic link %s' % \ filename continue infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', filename skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', filename subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of', filename continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %s to %s: %s" % (tempname, fullname, str(msg)) continue info[filename] = infostuff writedict(info, infofilename) if verbose: dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print filename, "in", localdir or "." del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', name skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', fullname, print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', fullname remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', subdir localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', pwd print 'Remote cwd', subdir try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", subdir, ":", msg else: if verbose: print 'Mirroring as', localsubdir mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.' | a25969620ad128c95dde9cf500b28fa3e57611c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a25969620ad128c95dde9cf500b28fa3e57611c9/ftpmirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... |
To customize how the worker, server, or client behaves, you can look for their respective conf files in DOT_SAGE/dsage. The configuration file should be self explanatory. | See the $DOT_SAGE/dsage directory. | def spawn(cmd, verbose=True): """ Spawns a process and registers it with the SAGE cleaner. """ null = open('/dev/null', 'a') proc = '%s/%s' % (SAGE_ROOT + '/local/bin', cmd) process = subprocess.Popen(proc, shell=True, stdout=null, stderr=null) sage.interfaces.cleaner.cleaner(process.pid, cmd) if verbose: print 'Spawned %s (pid = %s)\n' % (cmd, process.pid) | e331136533cc2c023b0a8a585a21849be3522501 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e331136533cc2c023b0a8a585a21849be3522501/dsage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
12,
4172,
16,
3988,
33,
5510,
4672,
3536,
5878,
2219,
2387,
279,
1207,
471,
10285,
518,
598,
326,
348,
2833,
25933,
18,
225,
3536,
225,
446,
273,
1696,
2668,
19,
5206,
19,
2011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12560,
12,
4172,
16,
3988,
33,
5510,
4672,
3536,
5878,
2219,
2387,
279,
1207,
471,
10285,
518,
598,
326,
348,
2833,
25933,
18,
225,
3536,
225,
446,
273,
1696,
2668,
19,
5206,
19,
2011,
... |
result = str(msg).strip().split('\n') | result = tools.ustr(msg).strip().split('\n') | def notifyChannel(self, name, level, msg): log = logging.getLogger(name) | 4ae6d79e28f81cc7ad286d86e637210377f80e44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/4ae6d79e28f81cc7ad286d86e637210377f80e44/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
613,
273,
2907,
18,
588,
3328,
12,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
613,
273,
2907,
18,
588,
3328,
12,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def mangle_neg(vals): """ Returns the product of all values in vals, with the result nonnegative if any of the values is nonnegative. EXAMPLES:: sage: from sage.plot.contour_plot import mangle_neg sage: mangle_neg([-1.2, -0.74, -2.56, -1.01]) -2.29601280000000 sage: mangle_neg([-1.2, 0.0, -2.56]) 0.000000000000000 sage: mangle_neg([-1.2, -0.74, -2.56, 1.01]) 2.29601280000000 """ from sage.misc.misc_c import prod res = abs(prod(vals)) if any(map(lambda v: v>=0, vals)): return res else: return -res | def equify(f): """ Returns the equation rewritten as a symbolic function to give negative values when True, positive when False. EXAMPLES:: sage: from sage.plot.contour_plot import equify sage: var('x, y') (x, y) sage: equify(x^2 < 2) x^2 - 2 sage: equify(x^2 > 2) -x^2 + 2 sage: equify(x*y > 1) -x*y + 1 sage: equify(y > 0) -y """ import operator from sage.calculus.all import symbolic_expression op = f.operator() if op is operator.gt or op is operator.ge: return symbolic_expression(f.rhs() - f.lhs()) else: return symbolic_expression(f.lhs() - f.rhs()) | 63c73066c1587ec9886ecf425b6e5da537144bd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/63c73066c1587ec9886ecf425b6e5da537144bd9/contour_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1298,
1164,
12,
74,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1298,
1164,
12,
74,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30... | |
group_id = self.id_get(cr, 'res.groups', group[1:]) | group_id = self.id_get(cr, group[1:]) | def ref(str_id): return self.id_get(cr, None, str_id) | 07a4bc7f3fdbd5f93ba4a066290ae65a3016075c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/07a4bc7f3fdbd5f93ba4a066290ae65a3016075c/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
12,
701,
67,
350,
4672,
327,
365,
18,
350,
67,
588,
12,
3353,
16,
599,
16,
609,
67,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
12,
701,
67,
350,
4672,
327,
365,
18,
350,
67,
588,
12,
3353,
16,
599,
16,
609,
67,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if y1 >= 0 or y1 <= 1: | if y1 >= 0 and y1 <= 1: | def _getPrevXt(self, curXt, Nt, s, ploidy): ''' Solve y from the backward formula and simulate backward trajectories in time It takes parameter curXt in the form of a list. Nt is passed in as a list for current population size/subpopulation sizes. The function returns a list, which contains allele frequencies of one previous generation at all loci through every subpopulation, it is arranged in the order of loc0_sp0, loc0_sp1, ..., loc1_sp0, loc1_sp1, ... and so on. ''' # # given x(t) # calculate y=x(t-1)' by solving an equation # # x_t = y(1+s2 y+s1 (1-y))/(1+s2 y+2 s1 Y(1-y)) it = [] xt = [] nSP = len(Nt) for loc in range(self.nLoci): for sp in range(nSP): x = curXt[loc * nSP + sp] # if current allele freq in subpop sp at locus loc has already been 0 or 1, # set it to be 0 or 1 for previous gens if x in [0, 1]: xt.append(x) continue # In the interaction case, s1, s2 will be different # from subpopulation to subpopulation. if len(s) == 3 * self.nLoci: s1 = s[3 * loc + 1] s2 = s[3 * loc + 2] else: s1 = s[3 * loc + 1 + 3 * self.nLoci * sp] s2 = s[3 * loc + 2 + 3 * self.nLoci * sp] # with s1 and s2 on hand, calculate freq at the previous generation if s1 == 0 and s2 == 0: # special case when a = 0 y = x else: a = s2 * x - 2 * s1 * x - s2 + s1 b = 2 * s1 * x - 1 - s1 c = float(x) b2_4ac = b * b - 4 * a * c if abs(a) < 1e-8: y1 = float(-c) / float(b) # y1 should be valid y2 = 1000. else: y1 = (-b + b2_4ac**0.5) / (2 * a) y2 = (-b - b2_4ac**0.5) / (2 * a) | ed0974aae32cc56594b3c23b4edeaf31bfe091eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/ed0974aae32cc56594b3c23b4edeaf31bfe091eb/simuUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9958,
60,
88,
12,
2890,
16,
662,
60,
88,
16,
423,
88,
16,
272,
16,
293,
383,
29609,
4672,
9163,
348,
5390,
677,
628,
326,
12555,
8013,
471,
20089,
12555,
1284,
937,
2401,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9958,
60,
88,
12,
2890,
16,
662,
60,
88,
16,
423,
88,
16,
272,
16,
293,
383,
29609,
4672,
9163,
348,
5390,
677,
628,
326,
12555,
8013,
471,
20089,
12555,
1284,
937,
2401,
3... |
file.Write("namespace command_buffer {\n") | file.Write("namespace gpu {\n") | def WriteNamespaceOpen(self, file): """Writes the code for the namespace.""" file.Write("namespace command_buffer {\n") file.Write("namespace gles2 {\n") file.Write("\n") | 563fe9981a03887d2ccb4167a16f320afb06a729 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/563fe9981a03887d2ccb4167a16f320afb06a729/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3402,
3678,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
364,
326,
1981,
12123,
585,
18,
3067,
2932,
4937,
21810,
18890,
82,
7923,
585,
18,
3067,
2932,
4937,
314,
1040,
22,
18890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3402,
3678,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
364,
326,
1981,
12123,
585,
18,
3067,
2932,
4937,
21810,
18890,
82,
7923,
585,
18,
3067,
2932,
4937,
314,
1040,
22,
18890... |
out += "\n" | def filter_hidden_fields(recxml, user_info=None, filter_tags=CFG_BIBFORMAT_HIDDEN_TAGS, force_filtering=False): """ Filter out tags specified by filter_tags from MARCXML. If the user is allowed to run bibedit, then filter nothing, unless force_filtering is set to True. @param recxml: marcxml presentation of the record @param user_info: user information; if None, then assume invoked via CLI with all rights @param filter_tags: list of MARC tags to be filtered @param force_filtering: do we force filtering regardless of user rights? @return: recxml without the hidden fields """ if force_filtering: pass else: if user_info is None: #by default return recxml else: if (acc_authorize_action(user_info, 'runbibedit')[0] == 0): #no need to filter return recxml #filter.. out = "" omit = False for line in recxml.splitlines(True): #check if this block needs to be omitted for htag in filter_tags: if line.count('datafield tag="'+str(htag)+'"'): omit = True if not omit: out += line out += "\n" if omit and line.count('</datafield>'): omit = False return out | 20e96ad48ede22462dfe13c27b1e6c0e3b6c3da1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/20e96ad48ede22462dfe13c27b1e6c0e3b6c3da1/bibformat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
6345,
67,
2821,
12,
3927,
2902,
16,
729,
67,
1376,
33,
7036,
16,
1034,
67,
4156,
33,
19727,
67,
38,
13450,
7254,
67,
44,
18216,
67,
29915,
16,
2944,
67,
2188,
310,
33,
8381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
6345,
67,
2821,
12,
3927,
2902,
16,
729,
67,
1376,
33,
7036,
16,
1034,
67,
4156,
33,
19727,
67,
38,
13450,
7254,
67,
44,
18216,
67,
29915,
16,
2944,
67,
2188,
310,
33,
8381... | |
'visible' : 0, | def getCMFVersion(): from os.path import join from Globals import package_home from Products.CMFCore import cmfcore_globals | 007e8c3f4e79f019befd6180292339a943b6f81d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/007e8c3f4e79f019befd6180292339a943b6f81d/ArchetypeTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
13542,
1444,
13332,
628,
1140,
18,
803,
1930,
1233,
628,
18901,
1031,
1930,
2181,
67,
8712,
628,
8094,
87,
18,
9611,
4488,
479,
1930,
5003,
74,
3644,
67,
16227,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
13542,
1444,
13332,
628,
1140,
18,
803,
1930,
1233,
628,
18901,
1031,
1930,
2181,
67,
8712,
628,
8094,
87,
18,
9611,
4488,
479,
1930,
5003,
74,
3644,
67,
16227,
2,
-100,
-100,
-100... | |
self.close = True | self.closed = True | def close(self): if not self.closed: self.stream.close() self.close = True | a0e5b840ca27f073ee39ae34db867e8c24c8f86c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2063/a0e5b840ca27f073ee39ae34db867e8c24c8f86c/charpos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
486,
365,
18,
12204,
30,
365,
18,
3256,
18,
4412,
1435,
365,
18,
4412,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
486,
365,
18,
12204,
30,
365,
18,
3256,
18,
4412,
1435,
365,
18,
4412,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return super(journal_print ,self)._get_fiscalyear(data) | return super(journal_print ,self)._get_fiscalyear(data) | def _get_fiscalyear(self, data): if data['model']=='account.journal.period': return self.pool.get('account.journal.period').browse(self.cr, self.uid, data['id']).fiscalyear_id.name return super(journal_print ,self)._get_fiscalyear(data) | 83bae2679c9e2a2e5d9ead04648b1f0162029f38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/83bae2679c9e2a2e5d9ead04648b1f0162029f38/general_journal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
74,
291,
771,
6874,
12,
2890,
16,
501,
4672,
309,
501,
3292,
2284,
3546,
18920,
4631,
18,
22644,
18,
6908,
4278,
327,
365,
18,
6011,
18,
588,
2668,
4631,
18,
22644,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
74,
291,
771,
6874,
12,
2890,
16,
501,
4672,
309,
501,
3292,
2284,
3546,
18920,
4631,
18,
22644,
18,
6908,
4278,
327,
365,
18,
6011,
18,
588,
2668,
4631,
18,
22644,
18,
... |
try: self.ftp.nlst(file) except ftplib.error_perm, reason: raise IOError, ('ftp error', reason), sys.exc_info()[2] self.ftp.voidcmd(cmd) | def retrfile(self, file, type): import ftplib self.endtransfer() if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 try: self.ftp.voidcmd(cmd) except ftplib.all_errors: self.init() self.ftp.voidcmd(cmd) conn = None if file and not isdir: # Use nlst to see if the file exists at all try: self.ftp.nlst(file) except ftplib.error_perm, reason: raise IOError, ('ftp error', reason), sys.exc_info()[2] # Restore the transfer mode! self.ftp.voidcmd(cmd) # Try to retrieve as a file try: cmd = 'RETR ' + file conn = self.ftp.ntransfercmd(cmd) except ftplib.error_perm, reason: if str(reason)[:3] != '550': raise IOError, ('ftp error', reason), sys.exc_info()[2] if not conn: # Set transfer mode to ASCII! self.ftp.voidcmd('TYPE A') # Try a directory listing if file: cmd = 'LIST ' + file else: cmd = 'LIST' conn = self.ftp.ntransfercmd(cmd) self.busy = 1 # Pass back both a suitably decorated object and a retrieval length return (addclosehook(conn[0].makefile('rb'), self.endtransfer), conn[1]) | 446f9e622f178a516fc4e54fe357eccaa90debf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/446f9e622f178a516fc4e54fe357eccaa90debf2/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
27... | |
Supports an optional ``fields`` parameter of key/value strings. If provided, they will be added to the url. | Supports an optional ``fields`` dictionary parameter key/value strings. If provided, they will be added to the url. | def get_url(self, url, fields={}, headers={}, retries=3, redirect=True): """ Wrapper for performing GET with urlopen (see urlopen for more details). | 4963f6dd0cd2f0b03e268b15e7d0fe2f7801fbdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12281/4963f6dd0cd2f0b03e268b15e7d0fe2f7801fbdd/connectionpool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
718,
12,
2890,
16,
880,
16,
1466,
28793,
1607,
28793,
9453,
33,
23,
16,
3136,
33,
5510,
4672,
3536,
18735,
364,
14928,
4978,
598,
19613,
261,
5946,
19613,
364,
1898,
3189,
2934,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
718,
12,
2890,
16,
880,
16,
1466,
28793,
1607,
28793,
9453,
33,
23,
16,
3136,
33,
5510,
4672,
3536,
18735,
364,
14928,
4978,
598,
19613,
261,
5946,
19613,
364,
1898,
3189,
2934,... |
if os.exists(file_path): | if os.path.exists(file_path): | def save(self, directory_path): """ Save the material (the unencrypted PEM encoded RSA private key) of a newly created KeyPair to a local file. @type directory_path: string @param directory_path: The fully qualified path to the directory in which the keypair will be saved. The keypair file will be named using the name of the keypair as the base name and .pem for the file extension. If a file of that name already exists in the directory, an exception will be raised and the old file will not be overwritten. @rtype: bool @return: True if successful. """ if self.material: file_path = os.path.join(directory_path, '%s.pem' % self.name) if os.exists(file_path): raise BotoClientError('%s already exists, it will not be overwritten' % file_path) fp = open(file_path, 'wb') fp.write(self.material) fp.close() return True else: raise BotoClientError('KeyPair contains no material') | de7f10449fd85cbd08da9ce1b75a7542538efca0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/de7f10449fd85cbd08da9ce1b75a7542538efca0/keypair.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1867,
67,
803,
4672,
3536,
7074,
326,
9390,
261,
5787,
640,
18702,
17475,
3749,
13470,
3238,
498,
13,
434,
279,
10894,
2522,
28968,
358,
279,
1191,
585,
18,
225,
632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1867,
67,
803,
4672,
3536,
7074,
326,
9390,
261,
5787,
640,
18702,
17475,
3749,
13470,
3238,
498,
13,
434,
279,
10894,
2522,
28968,
358,
279,
1191,
585,
18,
225,
632,... |
station = streams[i][0].stats.station.strip() self.dicts[i]['Station'] = station self.dictsMap[station] = self.dicts[i] | sta = self.streams[i][0].stats.station.strip() self.dicts[i]['Station'] = sta self.dictsMap[sta] = self.dicts[i] | def __init__(self, streams = None, options = None): self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagFilt=False #False:no filter True:filter self.flagFiltTyp=0 #0: bandpass 1: bandstop 2:lowpass 3: highpass self.dictFiltTyp={'Bandpass':0, 'Bandstop':1, 'Lowpass':2, 'Highpass':3} self.flagFiltZPH=False #False: no zero-phase True: zero-phase filtering self.valFiltLow=np.NaN # These are overridden with low/high estimated from sampling rate self.valFiltHigh=np.NaN self.flagWheelZoom=True #Switch use of mousewheel for zooming self.flagPhase=0 #0:P 1:S 2:Magnitude self.dictPhase={'P':0, 'S':1, 'Mag':2} self.dictPhaseInverse = {} # We need the reverted dictionary for switching throug the Phase radio button for i in self.dictPhase.items(): self.dictPhaseInverse[i[1]] = i[0] self.dictPhaseColors={'P':'red', 'S':'blue', 'Psynth':'black', 'Ssynth':'black', 'Mag':'green'} self.dictPhaseLinestyles={'P':'-', 'S':'-', 'Psynth':'--', 'Ssynth':'--'} self.pickingColor = self.dictPhaseColors['P'] self.magPickWindow=10 #Estimating the maximum/minimum in a sample-window around click self.magMinMarker='x' self.magMaxMarker='x' self.magMarkerEdgeWidth=1.8 self.magMarkerSize=20 self.axvlinewidths=1.2 #dictionary for key-bindings self.dictKeybindings = {'setPick': 'alt', 'setPickError': ' ', 'delPick': 'escape', 'setMagMin': 'alt', 'setMagMax': ' ', 'switchPhase': 'control', 'delMagMinMax': 'escape', 'switchWheelZoom': 'z', 'switchPan': 'p', 'prevStream': 'y', 'nextStream': 'x', 'setPWeight0': '0', 'setPWeight1': '1', 'setPWeight2': '2', 'setPWeight3': '3', # 'setPWeight4': '4', 'setPWeight5': '5', 'setSWeight0': '0', 'setSWeight1': '1', 'setSWeight2': '2', 'setSWeight3': '3', # 'setSWeight4': '4', 'setSWeight5': '5', 'setPPolUp': 'u', 'setPPolPoorUp': '+', 'setPPolDown': 'd', 'setPPolPoorDown': '-', 'setSPolUp': 'u', 'setSPolPoorUp': '+', 'setSPolDown': 'd', 'setSPolPoorDown': '-', 'setPOnsetImpulsive': 'i', 'setPOnsetEmergent': 'e', 'setSOnsetImpulsive': 'i', 'setSOnsetEmergent': 'e'} self.threeDlocPath = '/baysoft/obspyck/3dloc/' self.threeDlocOutfile = self.threeDlocPath + '3dloc-out' self.threeDlocInfile = self.threeDlocPath + '3dloc-in' self.threeDlocPreCall = 'rm %s %s &> /dev/null' \ % (self.threeDlocOutfile, self.threeDlocInfile) self.threeDlocCall = 'export D3_VELOCITY=/scratch/rh_vel/vp_5836/;' + \ 'export D3_VELOCITY_2=/scratch/rh_vel/vs_32220/;' + \ 'cd %s;' % self.threeDlocPath + \ '3dloc_pitsa' self.hyp2000Path = '/baysoft/obspyck/hyp_2000/' self.hyp2000Controlfile = self.hyp2000Path + 'bay2000.inp' self.hyp2000Phasefile = self.hyp2000Path + 'hyp2000.pha' self.hyp2000Stationsfile = self.hyp2000Path + 'stations.dat' self.hyp2000Summary = self.hyp2000Path + 'hypo.prt' self.hyp2000PreCall = 'rm %s %s %s &> /dev/null' \ % (self.hyp2000Phasefile, self.hyp2000Stationsfile, self.hyp2000Summary) self.hyp2000Call = 'export HYP2000_DATA=%s;' % (self.hyp2000Path) + \ 'cd $HYP2000_DATA;' + \ 'hyp2000 < bay2000.inp &> /dev/null' self.xmlEventID = None self.locationType = None self.flagSpectrogram = False # indicates which of the available events from seishub was loaded self.seishubEventCurrent = None # indicates how many events are available from seishub self.seishubEventCount = None # If keybindings option is set only show keybindings and exit if self.options.keybindings: for k, v in self.dictKeybindings.iteritems(): print "%s: \"%s\"" % (k, v) return | 50570db0175b1852c554a55b2bd91b8f3d8fb93f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/50570db0175b1852c554a55b2bd91b8f3d8fb93f/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8205,
273,
599,
16,
702,
273,
599,
4672,
365,
18,
16320,
273,
8205,
365,
18,
2116,
273,
702,
468,
11644,
2690,
2943,
16,
16176,
471,
20947,
702,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8205,
273,
599,
16,
702,
273,
599,
4672,
365,
18,
16320,
273,
8205,
365,
18,
2116,
273,
702,
468,
11644,
2690,
2943,
16,
16176,
471,
20947,
702,
365,
18,... |
_fl_create_counter = cfuncproto(so_libforms, "fl_create_counter", | _fl_create_counter = cfuncproto(so_libforms, "fl_create_counter", | def fl_set_clock_ampm(ob, y): """ fl_set_clock_ampm(ob, y) """ _fl_set_clock_ampm(ob, y) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
18517,
67,
931,
81,
12,
947,
16,
677,
4672,
3536,
1183,
67,
542,
67,
18517,
67,
931,
81,
12,
947,
16,
677,
13,
3536,
225,
389,
2242,
67,
542,
67,
18517,
67,
931,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
18517,
67,
931,
81,
12,
947,
16,
677,
4672,
3536,
1183,
67,
542,
67,
18517,
67,
931,
81,
12,
947,
16,
677,
13,
3536,
225,
389,
2242,
67,
542,
67,
18517,
67,
931,... |
class TestExceptionSpawn(TestException): spawn = True | def test(self): try: response = urlopen(self.url) except HTTPError, e: assert e.code == 500, e assert e.msg == 'Internal Server Error', e | b9d930ec135c6f617f8874d9ec2c540d777d4b53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/b9d930ec135c6f617f8874d9ec2c540d777d4b53/test__http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
775,
30,
766,
273,
19613,
12,
2890,
18,
718,
13,
1335,
14415,
16,
425,
30,
1815,
425,
18,
710,
422,
6604,
16,
425,
1815,
425,
18,
3576,
422,
296,
3061,
3224,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
775,
30,
766,
273,
19613,
12,
2890,
18,
718,
13,
1335,
14415,
16,
425,
30,
1815,
425,
18,
710,
422,
6604,
16,
425,
1815,
425,
18,
3576,
422,
296,
3061,
3224,
10... | |
returnvalue = (0, 0, 0, 0, 0, 0, 0) satpos = self.tuning_sat.orbital_position if satpos is not None: if self.tuning_type.value == "manual_transponder": returnvalue = (self.scan_sat.frequency.value, self.scan_sat.symbolrate.value, self.scan_sat.polarization.index, self.scan_sat.fec.index, self.scan_sat.inversion.index, satpos) | returnvalue = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0) satpos = int(self.tuning_sat.value) if self.tuning_type.value == "manual_transponder": if self.scan_sat.system.value == "dvb-s2": fec = self.scan_sat.fec_s2.value else: fec = self.scan_sat.fec.value returnvalue = ( self.scan_sat.frequency.value, self.scan_sat.symbolrate.value, self.scan_sat.polarization.index, { "auto": 0, "1_2": 1, "2_3": 2, "3_4": 3, "5_6": 4, "7_8": 5, "8_9": 6, "3_5": 7, "4_5": 8, "9_10": 9, "none": 15 }[fec], self.scan_sat.inversion.index, satpos, self.scan_sat.system.index, self.scan_sat.modulation.index == 1 and 2 or 1, self.scan_sat.rolloff.index, self.scan_sat.pilot.index) self.tune(returnvalue) elif self.tuning_type.value == "predefined_transponder": tps = nimmanager.getTransponders(satpos) l = len(tps) if l > self.tuning_transponder.index: transponder = tps[self.tuning_transponder.index] returnvalue = (int(transponder[1] / 1000), int(transponder[2] / 1000), transponder[3], transponder[4], 2, satpos, transponder[5], transponder[6], transponder[8], transponder[9]) | def retune(self, configElement): returnvalue = (0, 0, 0, 0, 0, 0, 0) satpos = self.tuning_sat.orbital_position if satpos is not None: if self.tuning_type.value == "manual_transponder": returnvalue = (self.scan_sat.frequency.value, self.scan_sat.symbolrate.value, self.scan_sat.polarization.index, self.scan_sat.fec.index, self.scan_sat.inversion.index, satpos) self.tune(returnvalue) elif self.tuning_type.value == "predefined_transponder": tps = nimmanager.getTransponders(satpos) l = len(tps) if l > self.tuning_transponder.index: transponder = nimmanager.getTransponders(satpos)[self.tuning_transponder.index] returnvalue = (int(transponder[1] / 1000), int(transponder[2] / 1000), transponder[3], transponder[4], 2, satpos) self.tune(returnvalue) | 8365147ec23134f886ec4ad374b84034b37c5579 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/8365147ec23134f886ec4ad374b84034b37c5579/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
325,
7556,
12,
2890,
16,
642,
1046,
4672,
327,
1132,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
13,
5942,
917,
273,
509,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
325,
7556,
12,
2890,
16,
642,
1046,
4672,
327,
1132,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
16,
374,
13,
5942,
917,
273,
509,
12,
2... |
P ( contents = [ | P ( contents = [ | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )]), P ( contents = [ Img( src = '%(ROOT)simages/germanylogo.png', width = 16, height = 10), A( 'Deutsch', href='%(BASE)sde/' )]), P ( contents = [ Img( src = '%(ROOT)simages/greecelogo.png', width = 16, height = 10), A( 'Ελληυικά', href='%(BASE)sel/' )]), P ( contents = [ Img( src = '%(ROOT)simages/francelogo.png', width = 16, height = 10), A( 'Français', href='%(BASE)sfr/' )]), P ( contents = [ Img( src = '%(ROOT)simages/italylogo.png', width = 16, height = 10), A( 'Italiano', href='%(BASE)sit/' )]), P ( contents = [ Img( src = '%(ROOT)simages/netherlandslogo.png', width = 16, height = 10), A( 'Nederlands', href='%(BASE)snl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/polandlogo.png', width = 16, height = 10), A( 'Polski', href='%(BASE)spl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/portugallogo.png', width = 16, height = 10), A( 'Português', href='%(BASE)spt/' )]), P ( contents = [ Img( src = '%(ROOT)simages/russialogo.png', width = 16, height = 10), A( 'Русский', href='%(BASE)sru/' )]), P ( contents = [ Img( src = '%(ROOT)simages/spanishlogo.png', width = 16, height = 10), A( 'Español', href='%(BASE)ses/' )]), P ( contents = [ Img( src = '%(ROOT)simages/finlandlogo.png', width = 16, height = 10), A( 'Suomi', href='%(BASE)sfi/' )]), P ( contents = [ Img( src = '%(ROOT)simages/swedenlogo.png', width = 16, height = 10), A( 'Svenska', href='%(BASE)ssv/' )]), P ( contents = [ Img( src = '%(ROOT)simages/czechlogo.png', width = 16, height = 10), A( 'Česky', href='%(BASE)scs/' )]) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['news'], href=makeURL( 'news/', lang ) )]), Tree ( A( _N['archive'], href=makeURL( 'news/archive/', lang ) ) ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['introduction'], href=makeURL( 'introduction/', lang ) ) ]), Tree \ ( [ #A( _N['status'], href=makeURL('introduction/status/everything.html' ), A( _N['screenshots'], href=makeURL( 'pictures/screenshots/', lang) ), A( _N['ports'], href=makeURL( 'introduction/ports', lang ) ), A( _N['license'], href='%(BASE)slicense.html' ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['download'], href=makeURL( 'download', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['documentation'] ]), Tree \ ( [ A( _N['users'], href=makeURL( 'documentation/users/', lang ) ), Tree \ ( [ A( _N['installation'], href=makeURL( 'documentation/users/installation', lang ) ), A( _N['using'], href=makeURL( 'documentation/users/using', lang ) ), A( _N['shell'], href=makeURL( 'documentation/users/shell/index', lang ) ), A( _N['applications'], href=makeURL( 'documentation/users/applications/index', lang ) ), A( _N['faq'], href=makeURL( 'documentation/users/faq', lang ) ), #_N['ports'], #A( _N['links'], href=makeURL( 'documentation/users/links', lang ) ) ] ), A( _N['developers'], href=makeURL( 'documentation/developers/index', lang ) ), Tree \ ( [ A( _N['contribute'], href=makeURL( 'documentation/developers/contribute', lang ) ), A( 'Roadmap', href=makeURL( 'documentation/developers/roadmap', lang ) ), A( _N['bug-tracker'], href='http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse' ), A( _N['working-with-subversion'], href=makeURL( 'documentation/developers/svn', lang ) ), A( _N['compiling'], href=makeURL( 'documentation/developers/compiling', lang ) ), A( _N['application-development-manual'], href=makeURL( 'documentation/developers/app-dev/index', lang ) ), A( _N['zune-application-development-manual'], href=makeURL( 'documentation/developers/zune-application-development', lang ) ), A( _N['system-development-manual'], href=makeURL( 'documentation/developers/system-development', lang ) ), A( _N['debugging-manual'], href=makeURL( 'documentation/developers/debugging', lang ) ), A( _N['reference'], href=makeURL( 'documentation/developers/autodocs/index', lang ) ), A( _N['specifications'], href=makeURL( 'documentation/developers/specifications/', lang ) ), A( _N['ui-style-guide'], href=makeURL( 'documentation/developers/ui', lang ) ), A( _N['documenting'], href=makeURL( 'documentation/developers/documenting', lang ) ), A( _N['porting'], href=makeURL( 'documentation/developers/porting', lang ) ), A( _N['translating'], href=makeURL( 'documentation/developers/translating', lang ) ), A( _N['summaries'], href=makeURL( 'documentation/developers/summaries/', lang ) ), A( _N['links'], href=makeURL( 'documentation/developers/links', lang ) ) ] ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['contact'], href=makeURL( 'contact', lang ) )]), Tree \ ( [ A( _N['mailing-lists'], href=makeURL( 'contact', lang, 'mailing-lists' ) ), #A( _N['forums'], href=makeURL( 'contact', lang, 'forums' ) ), A( _N['irc-channels'], href=makeURL( 'contact', lang, 'irc-channels' ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['credits'], href=makeURL( 'credits', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( 'Acknowledgements', href=makeURL( 'acknowledgements', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['pictures']]), Tree \ ( [ A( _N['developers'], href=makeURL( 'pictures/developers/', lang ) ), A( _N['developers-together'], href=makeURL( 'pictures/developers-together/', lang ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['sponsors'], href=makeURL( 'sponsors', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['linking'], href=makeURL( 'linking', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['links'], href=makeURL( 'links', lang ) )]) ] ) counter = Img( src = 'http://www.hepe.com/cgi-bin/wwwcount.cgi?df=aros.dat&dd=E&ft=0' ) sponsors = Table\ ( cellspacing = 5, cellpadding = 0, contents = [ TR ( TD ( A ( Img( src = '%(ROOT)simages/trustec-small.png', border = 0 ), href = 'http://www.trustsec.de/' ) ) ), TR ( TD ( A ( Img( src = '%(ROOT)simages/genesi-small.gif', border = 0 ), href = 'http://www.pegasosppc.com/' ) ) ), TR ( TD ( A \ ( Img \ ( src = 'http://sflogo.sourceforge.net/sflogo.php?group_id=43586&type=1', width = 88, height = 31, border = 0, alt = 'SourceForge Logo' ), href = 'http://sourceforge.net/' ) ) ) ] ) bar = Table( border = 0, cellpadding = 2, cellspacing = 2, width = 171, valign = 'top', contents = [ TR( valign = 'top', contents = [ TD( rowspan = 8, width=15 ), TD() ] ), TR( valign = 'top', contents = TD( navigation ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = counter ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = sponsors ) ), TR( TD(), height=30 ), TR \ ( valign = 'top', contents = TD \ ( align = 'center', contents = A \ ( Img \ ( src = '%(ROOT)simages/noeupatents-small.png', border = 0 ), href = 'http://petition.eurolinux.org/' ) ) ) ] ) statsPHP = ''' <?php //define("_BBC_PAGE_NAME", "my page title"); define("_BBCLONE_DIR", "%(ROOT)smybbclone/"); define("COUNTER", _BBCLONE_DIR."index.php"); if (file_exists(COUNTER)) include_once(COUNTER); ?> ''' statsPHP2 = ''' <?php echo date("m.d.y"); ?> ''' statsPHP3 = ''' <?php echo "<map name=\\"map\\">"; echo "<area shape=\\"rect\\" coords=\\"11,80,82,95\\" alt=\\"http://www.aros.org\\" href=\\"http://www.aros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"87,78,165,95\\" alt=\\"AROS-Exec\\" href=\\"http://www.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"244,77,323,95166,77,240,95\\" alt=\\"Team AROS\\" href=\\"http://www.teamaros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"166,77,240,95\\" alt=\\"AROS-Exec Archives\\" href=\\"http://archives.aros-exec.org\\">"; echo "</map>"; ?> ''' statsPHP4 = ''' <?php echo "<table width=\\"100%%\\"><tr><td>"; echo "<div style=\\"text-align: right;\\">"; echo "<font color=\\"#aaaaaa\\">"; ?> ''' statsPHP6 = ''' <?php echo "</font></div>"; echo "</p></tr></td></table>"; ?> ''' statsPHP5= ''' <?php include( '/home/groups/a/ar/aros/htdocs/rsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.gif\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } else { echo \"<img src=\\"/images/kittymascot.png\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.png\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } ?> ''' page = HTML( [ Head( [ Charset( charset ), Title( 'AROS Research Operating System' ), Link( href = '%(ROOT)saros.css', type = 'text/css', rel = 'stylesheet' ), Meta( name = 'keywords', content = 'AROS, OS, operating system, research, open source, portage' ) ] ), Body( style = 'margin: 0px;', bgcolor = '#ffffff', contents = [ statsPHP3, Table( border = 0, cellspacing = 0, cellpadding = 0, width = '100%%', contents = [ TR( [ TD( halign = 'top', width = '100%%', height = 109, background='%(ROOT)simages/backgroundtop.png' ,rowspan = 4, contents = statsPHP5) | 6f57d571cb5a191a538d1b271f46a3e100233a4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/6f57d571cb5a191a538d1b271f46a3e100233a4d/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
if not self.songinfo.has_key('album'): album = u'' else: album = self.songinfo['album'] if not self.songinfo.has_key('track'): tracknumber = u'' else: tracknumber = self.songinfo['track'] if self.scrob_post: self.scrob_post.nowplaying(self.songinfo['artist'], | if not self.songinfo.has_key('album'): album = u'' else: album = self.songinfo['album'] if not self.songinfo.has_key('track'): tracknumber = u'' else: tracknumber = self.songinfo['track'] self.scrob_post.nowplaying(self.songinfo['artist'], | def _do_scrobbler_np(self): self.scrobbler_init() if self.use_scrobbler and self.songinfo: if self.songinfo.has_key('artist') and \ self.songinfo.has_key('title') and \ self.songinfo.has_key('time'): if not self.songinfo.has_key('album'): album = u'' else: album = self.songinfo['album'] if not self.songinfo.has_key('track'): tracknumber = u'' else: tracknumber = self.songinfo['track'] if self.scrob_post: self.scrob_post.nowplaying(self.songinfo['artist'], self.songinfo['title'], self.songinfo['time'], tracknumber, album, self.scrob_start_time) time.sleep(10) | e71061740c79f804ae4e9989a02761c1aa54f6d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/e71061740c79f804ae4e9989a02761c1aa54f6d1/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
1017,
303,
9897,
749,
67,
6782,
12,
2890,
4672,
365,
18,
1017,
303,
9897,
749,
67,
2738,
1435,
309,
365,
18,
1202,
67,
1017,
303,
9897,
749,
471,
365,
18,
816,
75,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
1017,
303,
9897,
749,
67,
6782,
12,
2890,
4672,
365,
18,
1017,
303,
9897,
749,
67,
2738,
1435,
309,
365,
18,
1202,
67,
1017,
303,
9897,
749,
471,
365,
18,
816,
75,
137... |
self.textbuffer.insert(iter, "\nTotal size:" + FileUtilities.bytes_to_human(total_bytes)) | self.textbuffer.insert(__iter, "\nTotal size:" + FileUtilities.bytes_to_human(total_bytes)) | def preview_or_run_operations(self, really_delete): """Preview operations or run operations (delete files)""" operations = self.get_selected_operations() if 0 == len(operations): gtk.gdk.threads_enter() dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, _("You must select an operation")) dialog.run() dialog.destroy() gtk.gdk.threads_leave() return gtk.gdk.threads_enter() self.set_sensitive(False) self.textbuffer.set_text("") iter = self.textbuffer.get_iter_at_offset(0) self.progressbar.show() gtk.gdk.threads_leave() total_bytes = 0 count = 0 for operation in operations: gtk.gdk.threads_enter() self.progressbar.set_fraction(1.0 * count / len(operations)) if really_delete: self.progressbar.set_text(_("Please wait. Scanning and deleting: ") + operation) else: self.progressbar.set_text(_("Please wait. Scanning: ") + operation) gtk.gdk.threads_leave() total_bytes += self.clean_operation(operation, really_delete, iter) count += 1 gtk.gdk.threads_enter() self.progressbar.set_text("") self.progressbar.set_fraction(1) self.progressbar.set_text(_("Done.")) self.textbuffer.insert(iter, "\nTotal size:" + FileUtilities.bytes_to_human(total_bytes)) self.set_sensitive(True) gtk.gdk.threads_leave() | ae6ba50f95259c1c2cc0062ebd36d3fef0dce685 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ae6ba50f95259c1c2cc0062ebd36d3fef0dce685/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10143,
67,
280,
67,
2681,
67,
17542,
12,
2890,
16,
8654,
67,
3733,
4672,
3536,
11124,
5295,
578,
1086,
5295,
261,
3733,
1390,
15574,
5295,
273,
365,
18,
588,
67,
8109,
67,
17542,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10143,
67,
280,
67,
2681,
67,
17542,
12,
2890,
16,
8654,
67,
3733,
4672,
3536,
11124,
5295,
578,
1086,
5295,
261,
3733,
1390,
15574,
5295,
273,
365,
18,
588,
67,
8109,
67,
17542,
1435,
... |
this = apply(_quickfix.new_EncodedUnderlyingIssuerLen, args) | this = _quickfix.new_EncodedUnderlyingIssuerLen(*args) | def __init__(self, *args): this = apply(_quickfix.new_EncodedUnderlyingIssuerLen, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
10397,
14655,
6291,
16667,
2891,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
10397,
14655,
6291,
16667,
2891,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
1... |
text = "(none)".encode('utf-8') | text = text.encode('cp1252') | def _clean_text_value(self, text): if text is not None and text.strip() : text = text.strip() if not isinstance(text, unicode): text = text.decode('utf-8', 'replace') text = text.encode('utf-8') else : text = "(none)".encode('utf-8') return text | e60d72753e507ac400e19bdec4907d52940848e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/e60d72753e507ac400e19bdec4907d52940848e6/writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6200,
67,
955,
67,
1132,
12,
2890,
16,
977,
4672,
309,
977,
353,
486,
599,
471,
977,
18,
6406,
1435,
294,
977,
273,
977,
18,
6406,
1435,
309,
486,
1549,
12,
955,
16,
5252,
4672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6200,
67,
955,
67,
1132,
12,
2890,
16,
977,
4672,
309,
977,
353,
486,
599,
471,
977,
18,
6406,
1435,
294,
977,
273,
977,
18,
6406,
1435,
309,
486,
1549,
12,
955,
16,
5252,
4672,... |
lst =[] for name,child in obj.objectItems(): if child.meta_type=="Folder": lst.extend(findChildren(child,dirname+ obj.id + '/')) | lst = [] for name, child in obj.objectItems(): if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish: lst.extend(findChildren(child, dirname + obj.id + '/')) | def findChildren(obj,dirname=''): """ recursive walk through the object hierarchy to find all children of an object (ajung) """ lst =[] for name,child in obj.objectItems(): if child.meta_type=="Folder": lst.extend(findChildren(child,dirname+ obj.id + '/')) else: lst.append( (dirname + obj.id + "/" + name,child) ) return lst | 62fd608a28a6ec86172e8ef8adbd0362880180ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/62fd608a28a6ec86172e8ef8adbd0362880180ad/ObjectManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4212,
12,
2603,
16,
12287,
2218,
11,
4672,
3536,
5904,
5442,
3059,
326,
733,
9360,
358,
1104,
777,
2325,
434,
392,
733,
261,
4365,
20651,
13,
3536,
225,
9441,
273,
5378,
364,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4212,
12,
2603,
16,
12287,
2218,
11,
4672,
3536,
5904,
5442,
3059,
326,
733,
9360,
358,
1104,
777,
2325,
434,
392,
733,
261,
4365,
20651,
13,
3536,
225,
9441,
273,
5378,
364,
508,
... |
bgimagemask=Image.new("RGBA",bgimage.size) | bgimagemask=Image.new("RGBA",overlayimage.size) | def createChapterMenu(screensize, screendpi, numberofitems): """Creates all the necessary menu images and files for the MythBurn menus.""" #Get the main menu node (we must only have 1) menunode=themeDOM.getElementsByTagName("submenu") if menunode.length!=1: fatalError("Cannot find submenu element in theme file") menunode=menunode[0] menuitems=menunode.getElementsByTagName("chapter") #Total number of video items on a single menu page (no less than 1!) itemsperpage = menuitems.length write( "Chapter items per page %s " % itemsperpage) #Get background image filename backgroundfilename = menunode.attributes["background"].value if backgroundfilename=="": fatalError("Background image is not set in theme file") backgroundfilename = getThemeFile(themeName,backgroundfilename) write( "Background image file is %s" % backgroundfilename) if not doesFileExist(backgroundfilename): fatalError("Background image not found (%s)" % backgroundfilename) #Get highlight color highlightcolor = "red" if menunode.hasAttribute("highlightcolor"): highlightcolor = menunode.attributes["highlightcolor"].value #Get menu music menumusic = "menumusic.ac3" if menunode.hasAttribute("music"): menumusic = menunode.attributes["music"].value #Get menu length menulength = 15 if menunode.hasAttribute("length"): menulength = int(menunode.attributes["length"].value) write("Music is %s, length is %s seconds" % (menumusic, menulength)) #Page number counter page=1 write( "Creating DVD sub-menus") while page <= numberofitems: write( "Sub-menu %s " % page) #Default settings for this page #Load background image bgimage=Image.open(backgroundfilename,"r").resize(screensize) draw=ImageDraw.Draw(bgimage) #Create image to hold button masks (same size as background) bgimagemask=Image.new("RGBA",bgimage.size) drawmask=ImageDraw.Draw(bgimagemask) spumuxdom = xml.dom.minidom.parseString('<subpictures><stream><spu force="yes" start="00:00:00.0" highlight="" select="" ></spu></stream></subpictures>') spunode = spumuxdom.documentElement.firstChild.firstChild #Extract the thumbnails chapterlist=createVideoChapters(page,itemsperpage,getLengthOfVideo(page),True) chapterlist=string.split(chapterlist,",") #Loop through all the items on this menu page chapter=0 while chapter < itemsperpage: # and itemsonthispage < itemsperpage: menuitem=menuitems[ chapter ] chapter+=1 drawThemeItem(page, itemsperpage, page, menuitem, bgimage, draw, bgimagemask, drawmask, highlightcolor, spumuxdom, spunode, 999, chapter, chapterlist) #Save this menu image and its mask bgimage.save(os.path.join(getTempPath(),"chaptermenu-%s.png" % page),"PNG",quality=99,optimize=0,dpi=screendpi) bgimagemask.save(os.path.join(getTempPath(),"chaptermenumask-%s.png" % page),"PNG",quality=99,optimize=0,dpi=screendpi) spumuxdom.documentElement.firstChild.firstChild.setAttribute("select",os.path.join(getTempPath(),"chaptermenumask-%s.png" % page)) spumuxdom.documentElement.firstChild.firstChild.setAttribute("highlight",os.path.join(getTempPath(),"chaptermenumask-%s.png" % page)) #Release large amounts of memory ASAP ! del draw del bgimage del drawmask del bgimagemask #write( spumuxdom.toprettyxml()) WriteXMLToFile (spumuxdom,os.path.join(getTempPath(),"chapterspumux-%s.xml" % page)) if chaptermenuAspectRatio == "4:3": aspect_ratio = '2' elif chaptermenuAspectRatio == "16:9": aspect_ratio = '3' else: if getAspectRatioOfVideo(page) > aspectRatioThreshold: aspect_ratio = '3' else: aspect_ratio = '2' write("Encoding Chapter Menu Page %s using aspect ratio '%s'" % (page, chaptermenuAspectRatio)) encodeMenu(os.path.join(getTempPath(),"chaptermenu-%s.png" % page), os.path.join(getTempPath(),"temp.m2v"), getThemeFile(themeName,menumusic), menulength, os.path.join(getTempPath(),"temp.mpg"), os.path.join(getTempPath(),"chapterspumux-%s.xml" % page), os.path.join(getTempPath(),"chaptermenu-%s.mpg" % page), aspect_ratio) #Tidy up | b4b3dc0760dd22f26d036660d08e363e0ebf4ef2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/b4b3dc0760dd22f26d036660d08e363e0ebf4ef2/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
782,
2487,
4599,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
3824,
4602,
471,
1390,
364,
326,
8005,
451,
38,
321,
2137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
782,
2487,
4599,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
3824,
4602,
471,
1390,
364,
326,
8005,
451,
38,
321,
2137... |
format = '%(levelname)s:%(name)s:%(message)s' | msg_format = '%(levelname)s:%(name)s:%(message)s' | def setup_logger(options): """Setup the global (root, basic) configuration for logging.""" format = '%(message)s' if options.debug: level = logging.DEBUG format = '%(levelname)s:%(name)s:%(message)s' elif options.verbose: level = logging.DEBUG elif options.quiet: level = logging.ERROR else: level = logging.INFO logging.basicConfig(level=level, format=format) # XXX: Inappropriate location (style-wise). if options.debug or options.verbose: import gdata LOG.debug('Gdata will be imported from ' + gdata.__file__) | d06210e4550685a6f56af05f975818b155b4b91e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/d06210e4550685a6f56af05f975818b155b4b91e/google.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4901,
12,
2116,
4672,
3536,
7365,
326,
2552,
261,
3085,
16,
5337,
13,
1664,
364,
2907,
12123,
740,
273,
21063,
2150,
13,
87,
11,
309,
702,
18,
4148,
30,
1801,
273,
2907,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4901,
12,
2116,
4672,
3536,
7365,
326,
2552,
261,
3085,
16,
5337,
13,
1664,
364,
2907,
12123,
740,
273,
21063,
2150,
13,
87,
11,
309,
702,
18,
4148,
30,
1801,
273,
2907,
18,
... |
cmd = """INSERT INTO logs.%s(hostId, runId, sliceid, status, level, log, date, node, TIMESTAMP, custom, comment, pipeline, eventtime, pubtime, type, stageid, loopnum) values("%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s")""" % (dbTable, hostId, runId, sliceId, status, level, log, date, node, timestamp, custom, comment, pipeline, eventtime, pubtime, eventtype, stageid, loopnum) | cmd = """INSERT INTO logs.%s(hostId, runId, sliceid, status, level, log, date, node, timestamp, custom, comment, pipeline, eventtime, pubtime, type, stageid, loopnum, workerid) values("%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s"); """ % (dbTable, hostId, runId, sliceId, status, level, log, date, node, timestamp, custom, comment, pipeline, eventtime, pubtime, eventtype, stageid, loopnum, workerid) | def _insertRecord(self, dbTable, ps): | dcff16115fd4b90da4b2aad9583613f6ddb7920b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6552/dcff16115fd4b90da4b2aad9583613f6ddb7920b/DatabaseLogger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return int(time.mktime((now.tm_year, now.tm_mon, now.tm_mday, clock[0], clock[1], 0, now.tm_wday, now.tm_yday, now.tm_isdst))) | wake = int(time.mktime((now.tm_year, now.tm_mon, now.tm_mday, clock[0], clock[1], 0, 0, now.tm_yday, now.tm_isdst))) if wake < now: wake += (24*3600) return wake | def getWakeTime(self): if config.plugins.epgimport.enabled.value: clock = config.plugins.epgimport.wakeup.value nowt = time.time() now = time.localtime(nowt) return int(time.mktime((now.tm_year, now.tm_mon, now.tm_mday, clock[0], clock[1], 0, now.tm_wday, now.tm_yday, now.tm_isdst))) else: return -1 | d41cb1bd0174ca049f7a1f50710c76a9955af141 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10939/d41cb1bd0174ca049f7a1f50710c76a9955af141/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13876,
911,
950,
12,
2890,
4672,
309,
642,
18,
8057,
18,
881,
75,
5666,
18,
5745,
18,
1132,
30,
7268,
273,
642,
18,
8057,
18,
881,
75,
5666,
18,
91,
911,
416,
18,
1132,
2037,
88,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13876,
911,
950,
12,
2890,
4672,
309,
642,
18,
8057,
18,
881,
75,
5666,
18,
5745,
18,
1132,
30,
7268,
273,
642,
18,
8057,
18,
881,
75,
5666,
18,
91,
911,
416,
18,
1132,
2037,
88,
2... |
if __debug__: self.printCurrentView("sendInvitation") | smtp.SMTPSender(self.repository, self.account, self.__createMessage()).sendMail() | def sendInvitation(self): if __debug__: self.printCurrentView("sendInvitation") | 6259a34016a317d71ffe809f51fffa702adfa3a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6259a34016a317d71ffe809f51fffa702adfa3a5/sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
19896,
12,
2890,
4672,
309,
1001,
4148,
972,
30,
365,
18,
1188,
3935,
1767,
2932,
4661,
19896,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
19896,
12,
2890,
4672,
309,
1001,
4148,
972,
30,
365,
18,
1188,
3935,
1767,
2932,
4661,
19896,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def fl_clear_xyplot(obj): """ fl_clear_xyplot(obj) """ _fl_clear_xyplot(obj) | def fl_clear_xyplot(pObject): """ fl_clear_xyplot(pObject) """ _fl_clear_xyplot(pObject) | def fl_clear_xyplot(obj): """ fl_clear_xyplot(obj) """ _fl_clear_xyplot(obj) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8507,
67,
1698,
4032,
12,
84,
921,
4672,
3536,
1183,
67,
8507,
67,
1698,
4032,
12,
84,
921,
13,
3536,
225,
389,
2242,
67,
8507,
67,
1698,
4032,
12,
84,
921,
13,
282,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8507,
67,
1698,
4032,
12,
84,
921,
4672,
3536,
1183,
67,
8507,
67,
1698,
4032,
12,
84,
921,
13,
3536,
225,
389,
2242,
67,
8507,
67,
1698,
4032,
12,
84,
921,
13,
282,
2,
-... |
processes[startup] = process | processes[startup] = name, process | def signal_handler(sig, frame): sys.exit() | ecb97d79d70cffbe2a82cc08d6856395f93dde2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/ecb97d79d70cffbe2a82cc08d6856395f93dde2d/startup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
67,
4176,
12,
7340,
16,
2623,
4672,
2589,
18,
8593,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
67,
4176,
12,
7340,
16,
2623,
4672,
2589,
18,
8593,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise u'Splitting parts do not match word length' | raise ValueError(u'Splitting parts do not match word length') | def Run(self): try: count = 0 lastLetter = '' for namespace in self.namespaces: self.params['apnamespace'] = namespace title = None while True: # Get data self.params['apfrom'] = self.apfrom data = query.GetData(self.site.lang, self.params, self.verbose) try: self.apfrom = data['query']['allpages']['next'] except: self.apfrom = None # Process received data if 'pages' in data: firstItem = True for pageID, page in data['pages'].iteritems(): printed = False title = page['title'] if firstItem: if lastLetter != title[0]: print 'Processing ' + title lastLetter = title[0] firstItem = False if self.titles: err = self.ProcessTitle(title) if err: if page['ns'] == 14: self.WikiLog(u"* Move category content: " + err[0]) else: changed = False if self.replace: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) printed = True if self.links: allLinks = None if 'links' in page: allLinks = page['links'] if 'categories' in page: if allLinks: allLinks = allLinks + page['categories'] else: allLinks = page['categories'] if allLinks: pageObj = None pageTxt = None msg = [] for l in allLinks: ltxt = l['*'] err = self.ProcessTitle(ltxt) if err: newTitle = None if self.replace: newTitle = self.PickTarget(True, ltxt, err[1]) if newTitle: if pageObj is None: pageObj = wikipedia.Page(self.site, title) pageTxt = pageObj.get() msg.append(u'[[%s]] => [[%s]]' % (ltxt, newTitle)) | ab9d478f34cfd6a362913f5c362599b2477e5c5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/ab9d478f34cfd6a362913f5c362599b2477e5c5e/casechecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
1142,
13938,
273,
875,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
2077,
273,
599,
225,
1323,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
1142,
13938,
273,
875,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
2077,
273,
599,
225,
1323,
10... |
"--> %s(\*)? (.*)" % names) | "--> %s(\*)?:? (.*)" % names) | def __init__ (self, connection): GObject.__init__(self) self.connection = connection self.connection.expect_line_plus (self.onPrivateMessage, "%s(\*)?(?:\[(\d+)\])? (?:tells you|says): (.*)" % names) self.connection.expect_line_plus (self.onAnnouncement, "\s*\*\*ANNOUNCEMENT\*\* (.*)") self.connection.expect_line_plus (self.onChannelMessage, "%s(\*)?\((\d+)\): (.*)" % names) self.connection.expect_line_plus (self.onShoutMessage, "%s(\*)? (c-)?shouts: (.*)" % names) self.connection.expect_line_plus (self.onShoutMessage, "--> %s(\*)? (.*)" % names) self.connection.expect_fromto (self.onChannelList, "channels only for their designated topics.", "SPECIAL NOTE") self.connection.expect_line (lambda m: self.emit('channelAdd', m.groups()[0]), "\[(\d+)\] added to your channel list.") self.connection.expect_line (lambda m: self.emit('channelRemove', m.groups()[0]), "\[(\d+)\] removed to your channel list.") self.connection.expect_line (lambda m: self.emit('channelJoinError', *m.groups()), "Only (.+?) may join channel (\d+)\.") self.connection.expect_line (self.getNoChannelPlayers, "Channel \d+ is empty\.") self.connection.expect_fromto (self.getChannelPlayers, "Channel (\d+)(?: \"(\w+)\")?: (.+)", "(\d+) player(?: is|s are) in channel \d+\.") self.connection.expect_fromto (self.gotPlayerChannels, "%s is in the following channels:" % names, "(?!(?:\d+\s+)+)") #self.connection.expect_line (self.toldChannel, # '\(told (\d+) players in channel (\d+) ".+"\)') #(told Chronatog) #Only chess advisers and admins may join channel 63. #Only (.+?) may sey send tells to channel (\d+). #Only admins may send tells to channel 0. #Only registered users may send tells to channels other than 4, 7 and 53. self.currentLogChannel = None self.connection.expect_line (self.onChannelLogStart, ":Channel (\d+|shout|c-shout) log for the last \d+ minutes:$") self.connection.expect_line (self.onChannelLogLine, ":\[(\d+):(\d+):(\d+)\] (?:(?:--> )?%s(?: shouts)?)\S* (.+)$" % names) self.connection.expect_line (self.onChannelLogBreak, ":Use \"tell chLog Next\" to print more.$") #TODO handling of this case is nessesary for console: #fics% tell 1 hi #You are not in channel 1, auto-adding you if possible. self.connection.lvm.setVariable("kibitz", "0") self.connection.lvm.setVariable("ctell", "1") self.connection.lvm.setVariable("tell", "1") self.connection.lvm.setVariable("height", "240") print >> self.connection.client, "inchannel lobais" print >> self.connection.client, "help channel_list" self.getChannelsLock = threading.Semaphore() self.getChannelsLock.acquire() self.channels = {} | f9fa578ab7cb4a82beda276d8c81d627e4977ee3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/f9fa578ab7cb4a82beda276d8c81d627e4977ee3/ChatManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1459,
4672,
611,
921,
16186,
2738,
972,
12,
2890,
13,
365,
18,
4071,
273,
1459,
225,
365,
18,
4071,
18,
12339,
67,
1369,
67,
10103,
261,
2890,
18,
265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
1459,
4672,
611,
921,
16186,
2738,
972,
12,
2890,
13,
365,
18,
4071,
273,
1459,
225,
365,
18,
4071,
18,
12339,
67,
1369,
67,
10103,
261,
2890,
18,
265,
... |
if isinstance(file, str): | if isinstance(file, basestring): | def savez(file, *args, **kwds): """Save several arrays into an .npz file format which is a zipped-archive of arrays If keyword arguments are given, then filenames are taken from the keywords. If arguments are passed in with no keywords, then stored file names are arr_0, arr_1, etc. """ # Import is postponed to here since zipfile depends on gzip, an optional # component of the so-called standard library. import zipfile if isinstance(file, str): if not file.endswith('.npz'): file = file + '.npz' namedict = kwds for i, val in enumerate(args): key = 'arr_%d' % i if key in namedict.keys(): raise ValueError, "Cannot use un-named variables and keyword %s" % key namedict[key] = val zip = zipfile.ZipFile(file, mode="w") # Place to write temporary .npy files # before storing them in the zip direc = tempfile.gettempdir() todel = [] for key, val in namedict.iteritems(): fname = key + '.npy' filename = os.path.join(direc, fname) todel.append(filename) fid = open(filename,'wb') format.write_array(fid, np.asanyarray(val)) fid.close() zip.write(filename, arcname=fname) zip.close() for name in todel: os.remove(name) | 0d04757c1e9255e920395106d9c176af45ff0b4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/0d04757c1e9255e920395106d9c176af45ff0b4d/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
94,
12,
768,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
4755,
11392,
5352,
1368,
392,
263,
6782,
94,
585,
740,
1492,
353,
279,
3144,
1845,
17,
10686,
434,
5352,
225,
971,
4932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
94,
12,
768,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
4755,
11392,
5352,
1368,
392,
263,
6782,
94,
585,
740,
1492,
353,
279,
3144,
1845,
17,
10686,
434,
5352,
225,
971,
4932,
... |
"Platform mutex still help after stop") | "Platform mutex still held after stop") | def _stop_spawner(self, spawner): self.failUnless(spawner.is_running(), "must be running to stop") self.failUnless(is_any_sb_server_running(), "Platform mutex must be held to stop") spawner.stop() self.failUnless(not spawner.is_running(), "didn't stop after stop") self.failUnless(not is_any_sb_server_running(), "Platform mutex still help after stop") | 0c7432867e65288069bc0834bf47e4e1f38eb23d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0c7432867e65288069bc0834bf47e4e1f38eb23d/test_programs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5681,
67,
1752,
2219,
1224,
12,
2890,
16,
1694,
2219,
1224,
4672,
365,
18,
6870,
984,
2656,
12,
1752,
2219,
1224,
18,
291,
67,
8704,
9334,
315,
11926,
506,
3549,
358,
2132,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5681,
67,
1752,
2219,
1224,
12,
2890,
16,
1694,
2219,
1224,
4672,
365,
18,
6870,
984,
2656,
12,
1752,
2219,
1224,
18,
291,
67,
8704,
9334,
315,
11926,
506,
3549,
358,
2132,
7923,
... |
plane2Dlist = EMNumPy.em2numpy(em) pType = plane2Dlist.dtype.name | npArray = EMNumPy.em2numpy(em) if len(npArray.shape) < 3: plane2Dlist = [npArray] else: plane2Dlist = npArray pType = npArray.dtype.name | def uploadImageToDataset(services, localImage, dataset=None, description="", imageName=None): """ Uploads a local Spider image to an OMERO dataset. Same function exists in spider2omero.py. @param services Map of OMERO services @param pixelsType The OMERO PixelsType object for new image. @param imageName The local image path/name. Also used for new image name. @param dataset Dataset to put images in, if specified. omero.model.Dataset """ gateway = services["gateway"] renderingEngine = services["renderingEngine"] queryService = services["queryService"] pixelsService = services["pixelsService"] rawPixelsStore = services["rawPixelsStore"] updateService = services["updateService"] rawFileStore = services["rawFileStore"] if imageName == None: imageName = localImage print "Importing image: %s" % imageName em = EMData() em.read_image(localImage) plane2Dlist = EMNumPy.em2numpy(em) pType = plane2Dlist.dtype.name pixelsType = queryService.findByQuery("from PixelsType as p where p.value='%s'" % pType, None) # omero::model::PixelsType if pixelsType == None and pType.startswith("float"): # try 'float' pixelsType = queryService.findByQuery("from PixelsType as p where p.value='%s'" % "float", None) # omero::model::PixelsType if pixelsType == None: print "Unknown pixels type for: " % pType return else: print "Using pixels type ", pixelsType.getValue().getValue() image = scriptUtil.createNewImage(pixelsService, rawPixelsStore, renderingEngine, pixelsType, gateway, plane2Dlist, imageName, description, dataset) return image | 3412119e3634a1ca4a85126a69b856f1613dd33d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/3412119e3634a1ca4a85126a69b856f1613dd33d/Nonlinear_Anisotropic_Diffusion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
2040,
774,
10656,
12,
8387,
16,
1191,
2040,
16,
3709,
33,
7036,
16,
2477,
1546,
3113,
29842,
33,
7036,
4672,
225,
3536,
9414,
87,
279,
1191,
5878,
3585,
1316,
358,
392,
28839,
1330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3617,
2040,
774,
10656,
12,
8387,
16,
1191,
2040,
16,
3709,
33,
7036,
16,
2477,
1546,
3113,
29842,
33,
7036,
4672,
225,
3536,
9414,
87,
279,
1191,
5878,
3585,
1316,
358,
392,
28839,
1330... |
lda = a_shape[0] ldb = b_shape[0] | lda = m ldb = k | def dot_device(a, a_shape, b, b_shape, a_dtype): """ Matrix product of two arrays. Computes the matrix product of two arrays of shapes `(m, k)` and `(k, n)`; the result has shape `(m, n)`. Parameters ---------- a : c_void_p Pointer to device memory containing matrix of shape `(m, k)`. a_shape : tuple Shape of matrix `a` data `(m, k)`. b : c_void_p Pointer to device memory containing matrix of shape `(k, n)`. b_shape : tuple Shape of matrix `b` data `(k, n)`. a_dtype : {float32, complex64} Type of matrix. Example ------- >>> import numpy as np >>> import cula >>> cula.cublasInit() 0 >>> a = np.array([[1, 2], [3, 4], [5, 6], [7, 8]], np.float32) >>> b = np.array([[2, 3], [4, 5]], np.float32) >>> c = np.empty((2, 4), np.float32) >>> a_ptr = cula.cuda_malloc(a.nbytes) >>> b_ptr = cula.cuda_malloc(b.nbytes) >>> c_ptr = cula.dot_device(a_ptr, a.shape, b_ptr, b.shape, a.dtype) >>> cula.cuda_memcpy_dtoh(c.ctypes.data, c_ptr, c.nbytes) >>> np.allclose(np.dot(a, b), c.T) True """ if (a_dtype == np.complex64): cublas_func = _cublasCgemm a_dtype_nbytes = np.nbytes[a_dtype] alpha = np.complex64(1.0) beta = np.complex64(0.0) elif a_dtype == np.float32: cublas_func = _cublasSgemm a_dtype_nbytes = np.nbytes[a_dtype] alpha = np.float32(1.0) beta = np.complex64(0.0) else: raise ValueError('unsupported type') transa = 'N' transb = 'N' m = a_shape[0] n = b_shape[1] k = a_shape[1] lda = a_shape[0] ldb = b_shape[0] ldc = max(1, m) c = cuda_malloc(ldc*n*a_dtype_nbytes) cublas_func(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc) status = cublasGetError() cublasCheckStatus(status) return c | 0db46f21347ad2e74c074cc1aebf3c79a24e3cd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/0db46f21347ad2e74c074cc1aebf3c79a24e3cd4/cula.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
67,
5964,
12,
69,
16,
279,
67,
4867,
16,
324,
16,
324,
67,
4867,
16,
279,
67,
8972,
4672,
3536,
7298,
3017,
434,
2795,
5352,
18,
225,
14169,
281,
326,
3148,
3017,
434,
2795,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
67,
5964,
12,
69,
16,
279,
67,
4867,
16,
324,
16,
324,
67,
4867,
16,
279,
67,
8972,
4672,
3536,
7298,
3017,
434,
2795,
5352,
18,
225,
14169,
281,
326,
3148,
3017,
434,
2795,
53... |
client.notify_add("/desktop/gnome/interface/toolbar_style", self.gconf_key_changed) | client.notify_add("/desktop/gnome/interface/toolbar_style", self.gconf_key_changed) | def __init__(self): try: gettext.install('mirage', '/usr/share/locale', unicode=1) except: gettext.install('mirage', '/usr/local/share/locale', unicode=1) # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit | f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... |
sys.__stdout__.write("OUT %s\n"%(time())) | if not hasattr(self, "prevTime"): self.prevTime = time() snow = time() | def _loop(self, starttime, count, interval): if hasattr(self, "call"): del self.call sys.__stdout__.write("OUT %s\n"%(time())) self.f(*self.a, **self.kw) now = time() while self.running: count += 1 fromStart = count * interval fromNow = starttime - now delay = fromNow + fromStart if delay > 0: self.call = reactor.callLater(delay, self._loop, starttime, count, interval) return | fe13da535c92a56f1ea61fcfdfb5efeaf4929e3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/fe13da535c92a56f1ea61fcfdfb5efeaf4929e3d/rtp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6498,
12,
2890,
16,
23437,
16,
1056,
16,
3673,
4672,
309,
3859,
12,
2890,
16,
315,
1991,
6,
4672,
1464,
365,
18,
1991,
309,
486,
3859,
12,
2890,
16,
315,
10001,
950,
6,
4672,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6498,
12,
2890,
16,
23437,
16,
1056,
16,
3673,
4672,
309,
3859,
12,
2890,
16,
315,
1991,
6,
4672,
1464,
365,
18,
1991,
309,
486,
3859,
12,
2890,
16,
315,
10001,
950,
6,
4672,
36... |
tx.setXPos(offset) tx._textOut(string.join(words),1) | setXPos(tx,offset) tx._textOut(join(words),1) setXPos(tx,-offset) | def _leftDrawParaLine( tx, offset, extraspace, words, last=0): tx.setXPos(offset) tx._textOut(string.join(words),1) | 8f8ad2094f390b0f1bc05d368540a202a73fdeef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8f8ad2094f390b0f1bc05d368540a202a73fdeef/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4482,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
2229,
6315,
955,
1182,
12,
5701,
12,
3753,
3631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4482,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
2229,
6315,
955,
1182,
12,
5701,
12,
3753,
3631,... |
if needed_sonames: | if options.debug and needed_sonames: | def main(): result_ok = True errors = [] options, args = checkpkg.GetOptions() pkgnames = args if options.debug: logging.basicConfig(level=logging.DEBUG) else: logging.basicConfig(level=logging.INFO) checkers = [] for pkgname in pkgnames: checker = checkpkg.CheckpkgBase(options.extractdir, pkgname) checkers.append(checker) binaries = [] binaries_by_pkgname = {} sonames_by_pkgname = {} pkg_by_any_filename = {} for checker in checkers: pkg_binary_paths = checker.ListBinaries() binaries_base = [os.path.split(x)[1] for x in pkg_binary_paths] binaries_by_pkgname[checker.pkgname] = binaries_base binaries.extend(pkg_binary_paths) for filename in checker.GetAllFilenames(): pkg_by_any_filename[filename] = checker.pkgname # Making the binaries unique binaries = set(binaries) ws_re = re.compile(r"\s+") # man ld.so.1 for more info on this hack env = copy.copy(os.environ) env["LD_NOAUXFLTR"] = "1" needed_sonames_by_binary = {} filenames_by_soname = {} # Assembling a data structure with the data about binaries. # { # <binary1 name>: { checkpkg.NEEDED_SONAMES: [...], # checkpkg.RUNPATH: [...]}, # <binary2 name>: ..., # ... # } # for binary in binaries: binary_base_name = binary.split("/")[-1] args = [DUMP_BIN, "-Lv", binary] dump_proc = subprocess.Popen(args, stdout=subprocess.PIPE, env=env) stdout, stderr = dump_proc.communicate() ret = dump_proc.wait() binary_data = checkpkg.ParseDumpOutput(stdout) needed_sonames_by_binary[binary_base_name] = binary_data if checkpkg.SONAME not in binary_data: logging.debug("The %s binary doesn't provide a SONAME. " "(It might be an executable)", binary_base_name) # The shared library doesn't tell its SONAME. We're guessing it's the # same as the base file name. binary_data[checkpkg.SONAME] = binary_base_name filenames_by_soname[binary_data[checkpkg.SONAME]] = binary_base_name isalist = GetIsalist() # Building indexes by soname to simplify further processing # These are indexes "by soname". (needed_sonames, binaries_by_soname, runpath_by_needed_soname) = checkpkg.BuildIndexesBySoname( needed_sonames_by_binary) pkgmap = checkpkg.SystemPkgmap() logging.debug("Determining the soname-package relationships.") # lines by soname is an equivalent of $EXTRACTDIR/shortcatalog lines_by_soname = checkpkg.GetLinesBySoname( pkgmap, needed_sonames, runpath_by_needed_soname, isalist) # Creating a map from files to packages. pkgs_by_filename = {} for soname, line in lines_by_soname.iteritems(): # TODO: Find all the packages, not just the last field. fields = re.split(ws_re, line.strip()) # For now, we'll assume that the last field is the package. pkgname = fields[-1] pkgs_by_filename[soname] = pkgname # A shared object dependency/provisioning report, plus checking. # # This section is somewhat overlapping with checkpkg.AnalyzeDependencies(), # it has a different purpose: it reports the relationships between shared # libraries, binaries using them and packages providing them. Ideally, the # same bit of code with do checking and reporting. # # TODO: Rewrite this using cheetah templates if needed_sonames: print "Analysis of sonames needed by the package set:" binaries_with_missing_sonames = set([]) for soname in needed_sonames: logging.debug("Analyzing: %s", soname) if soname in filenames_by_soname: print "%s is provided by the package itself" % soname elif soname in lines_by_soname: print ("%s is provided by %s and required by:" % (soname, pkgs_by_filename[soname])) filename_lines = " ".join(sorted(binaries_by_soname[soname])) for line in textwrap.wrap(filename_lines, 70): print " ", line else: print ("%s is required by %s, but we don't know what provides it." % (soname, binaries_by_soname[soname])) for binary in binaries_by_soname[soname]: binaries_with_missing_sonames.add(binary) if soname in checkpkg.ALLOWED_ORPHAN_SONAMES: print "However, it's a whitelisted soname." else: errors.append( checkpkg.Error("%s is required by %s, but " "we don't know what provides it." % (soname, binaries_by_soname[soname]))) if binaries_with_missing_sonames: print "The following are binaries with missing sonames:" binary_lines = " ".join(sorted(binaries_with_missing_sonames)) for line in textwrap.wrap(binary_lines, 70): print " ", line print dependent_pkgs = {} for checker in checkers: pkgname = checker.pkgname declared_dependencies = checker.GetDependencies() if options.debug: sanitized_pkgname = pkgname.replace("-", "_") data_file_name = "/var/tmp/checkpkg_test_data_%s.py" % sanitized_pkgname logging.warn("Saving test data to %s." % repr(data_file_name)) test_fd = open(data_file_name, "w") print >>test_fd, "# Testing data for %s" % pkgname print >>test_fd, "# $Id$" print >>test_fd, "DATA_PKGNAME =", repr(pkgname) print >>test_fd, "DATA_DECLARED_DEPENDENCIES =", repr(declared_dependencies) print >>test_fd, "DATA_BINARIES_BY_PKGNAME =", repr(binaries_by_pkgname) print >>test_fd, "DATA_NEEDED_SONAMES_BY_BINARY =", repr(needed_sonames_by_binary) print >>test_fd, "DATA_PKGS_BY_FILENAME =", repr(pkgs_by_filename) print >>test_fd, "DATA_FILENAMES_BY_SONAME =", repr(filenames_by_soname) print >>test_fd, "DATA_PKG_BY_ANY_FILENAME =", repr(pkg_by_any_filename) print >>test_fd, "DATA_LINES_BY_SONAME =", repr(lines_by_soname) print >>test_fd, "DATA_PKGMAP_CACHE =", repr(pkgmap.cache) print >>test_fd, "DATA_BINARIES_BY_SONAME =", repr(binaries_by_soname) print >>test_fd, "DATA_ISALIST =", repr(isalist) test_fd.close() missing_deps, surplus_deps, orphan_sonames = checkpkg.AnalyzeDependencies( pkgname, declared_dependencies, binaries_by_pkgname, needed_sonames_by_binary, pkgs_by_filename, filenames_by_soname, pkg_by_any_filename) print checker.FormatDepsReport(missing_deps, surplus_deps, orphan_sonames) for soname in orphan_sonames: errors.append(checkpkg.Error("The following soname does't belong to " "any package: %s" % soname)) if errors: for error in errors: logging.error(error) sys.exit(1) else: sys.exit(0) | de72ac91c52ea56ac742eb6392e49f0a04d1f137 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3137/de72ac91c52ea56ac742eb6392e49f0a04d1f137/checkpkg-libs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
563,
67,
601,
273,
1053,
1334,
273,
5378,
702,
16,
833,
273,
866,
10657,
18,
967,
1320,
1435,
2365,
1600,
753,
273,
833,
309,
702,
18,
4148,
30,
2907,
18,
13240,
809,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
563,
67,
601,
273,
1053,
1334,
273,
5378,
702,
16,
833,
273,
866,
10657,
18,
967,
1320,
1435,
2365,
1600,
753,
273,
833,
309,
702,
18,
4148,
30,
2907,
18,
13240,
809,
12,
... |
'comment': fields.text('Additionnal Information'), | 'comment': fields.text('Additional Information'), | def _get_invoice_from_reconcile(self, cr, uid, ids, context={}): move = {} for r in self.pool.get('account.move.reconcile').browse(cr, uid, ids): for line in r.line_partial_ids: move[line.move_id.id] = True for line in r.line_id: move[line.move_id.id] = True invoice_ids = [] if move: invoice_ids = self.pool.get('account.invoice').search(cr, uid, [('move_id','in',move.keys())], context=context) return invoice_ids | 6484ed935417169baf3ccfae18c1b54455b7193e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6484ed935417169baf3ccfae18c1b54455b7193e/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
16119,
67,
2080,
67,
266,
11504,
398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3635,
273,
2618,
364,
436,
316,
365,
18,
6011,
18,
588,
2668,
4631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
16119,
67,
2080,
67,
266,
11504,
398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3635,
273,
2618,
364,
436,
316,
365,
18,
6011,
18,
588,
2668,
4631,
... |
if frequency == 44100 and format == -16 and stereo: | if frequency == 44100 and format == -16 and stereo and ogg: | def __new__(cls, engine, channel, fileName): frequency, format, stereo = pygame.mixer.get_init() if fileName.lower().endswith(".ogg"): if frequency == 44100 and format == -16 and stereo: return StreamingOggSound(engine, channel, fileName) else: Log.warn("Audio settings must match stereo 16 bits at 44100 Hz in order to stream OGG files.") return super(StreamingSound, cls).__new__(cls, engine, channel, fileName) | 5bba11543d81322005c2ce19bd0430281d324392 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7946/5bba11543d81322005c2ce19bd0430281d324392/Audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
4073,
16,
1904,
16,
3968,
4672,
8670,
16,
740,
16,
29558,
273,
2395,
13957,
18,
14860,
264,
18,
588,
67,
2738,
1435,
309,
3968,
18,
8167,
7675,
5839,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2704,
972,
12,
6429,
16,
4073,
16,
1904,
16,
3968,
4672,
8670,
16,
740,
16,
29558,
273,
2395,
13957,
18,
14860,
264,
18,
588,
67,
2738,
1435,
309,
3968,
18,
8167,
7675,
5839,
191... |
message['to'] = "%semchat@conference.%s" % (wfo.lower(), CHATSERVER) self.xmlstream.send(message) message['to'] = "kccichat@conference.%s" % (CHATSERVER,) | message['to'] = "%semchat@conference.%s" % (wfo.lower(), secret.CHATSERVER) self.xmlstream.send(message) message['to'] = "kccichat@conference.%s" % (secret.CHATSERVER,) | def processMessagePC(self, elem): _from = jid.JID( elem["from"] ) # Intercept private messages via a chatroom, can't do that :) if (_from.host == "conference.%s" % (CHATSERVER,)): self.send_private_request( _from ) return | 24fa6a8a683868db6a24e95e0b656f67ea1dbe8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/24fa6a8a683868db6a24e95e0b656f67ea1dbe8d/iemchatbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1079,
3513,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
468,
5294,
956,
3238,
2743,
3970,
279,
7916,
13924,
16,
848,
1404,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1079,
3513,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
468,
5294,
956,
3238,
2743,
3970,
279,
7916,
13924,
16,
848,
1404,
741,
... |
data = data.replace ("\t", u"& data = data.replace ("\r", u"& data = data.replace ("\n", u"& | data = data.replace ("\t", "& data = data.replace ("\r", "& data = data.replace ("\n", "& | def xml_attr (data): assert type (data) == types.StringType data = data.replace ("&", "&") data = data.replace ("\"", """) data = data.replace ("<", "<") data = data.replace ("\t", u"	") data = data.replace ("\r", u"
") data = data.replace ("\n", u"
") return data.replace (">", ">") | d07c0ea1544d1c9b22f87a132f4dc6c590143c39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/d07c0ea1544d1c9b22f87a132f4dc6c590143c39/xml_utf8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
1747,
261,
892,
4672,
1815,
618,
261,
892,
13,
422,
1953,
18,
780,
559,
501,
273,
501,
18,
2079,
7566,
10,
3113,
7830,
931,
4868,
13,
501,
273,
501,
18,
2079,
7566,
2412,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
1747,
261,
892,
4672,
1815,
618,
261,
892,
13,
422,
1953,
18,
780,
559,
501,
273,
501,
18,
2079,
7566,
10,
3113,
7830,
931,
4868,
13,
501,
273,
501,
18,
2079,
7566,
2412,
3... |
self._width_cache, self._height_cache = None, None | def __init__(self, **traits): # This will be overriden if 'text' is provided as a trait, but it # must be initialized if not self._text = [ [] ] | 2aabfcf82b38275275fbfa84285c922ac3b54f00 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/2aabfcf82b38275275fbfa84285c922ac3b54f00/text_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2033,
1282,
4672,
468,
1220,
903,
506,
31736,
309,
296,
955,
11,
353,
2112,
487,
279,
13517,
16,
1496,
518,
468,
1297,
506,
6454,
309,
486,
365,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2033,
1282,
4672,
468,
1220,
903,
506,
31736,
309,
296,
955,
11,
353,
2112,
487,
279,
13517,
16,
1496,
518,
468,
1297,
506,
6454,
309,
486,
365,
63... | |
users_a((user.name, user.firstname, user.lastname, user.email, sheet_ob.notify, sheet_ob.language)) | users_a((user.name, user.firstname, user.lastname, user.email, sheet_ob.notify, sheet_ob.language, sheet_ob.flash)) | def _getFlashUsers(self, query=''): site = self.getSite() profiles_tool = site.getProfilesTool() users = [] users_a = users.append for user in site.getAuthenticationTool().getUsers(): profile = profiles_tool.getProfile(user.name) sheet_ob = profile.getSheetById(self.getInstanceSheetId()) if sheet_ob.notify or sheet_ob.flash: if query: if self.utToUnicode(user.name).find(query)!=-1 or user.email.find(query)!=-1 or \ self.utToUnicode(user.firstname).find(query)!=-1 or self.utToUnicode(user.lastname).find(query)!=-1: users_a((user.name, user.firstname, user.lastname, user.email, sheet_ob.notify, sheet_ob.language)) else: users_a((user.name, user.firstname, user.lastname, user.email, sheet_ob.notify, sheet_ob.language)) return users | ba99780d7671ce36c67101fb48f36c410f5edbc3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/ba99780d7671ce36c67101fb48f36c410f5edbc3/FlashTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
11353,
6588,
12,
2890,
16,
843,
2218,
11,
4672,
2834,
273,
365,
18,
588,
4956,
1435,
11788,
67,
6738,
273,
2834,
18,
588,
12450,
6364,
1435,
3677,
273,
5378,
3677,
67,
69,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
11353,
6588,
12,
2890,
16,
843,
2218,
11,
4672,
2834,
273,
365,
18,
588,
4956,
1435,
11788,
67,
6738,
273,
2834,
18,
588,
12450,
6364,
1435,
3677,
273,
5378,
3677,
67,
69,
27... |
if not os.system("which mplayer > /dev/null 2>&1"): | if not os.system("which mplayer >/dev/null 2>&1"): | def ipod_supported(): global enable_ipod_functions return enable_ipod_functions | b6e9a12d1657eaae07e6abde986ea8e65eb781c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12778/b6e9a12d1657eaae07e6abde986ea8e65eb781c5/libipodsync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2359,
369,
67,
4127,
13332,
2552,
4237,
67,
625,
369,
67,
10722,
327,
4237,
67,
625,
369,
67,
10722,
225,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2359,
369,
67,
4127,
13332,
2552,
4237,
67,
625,
369,
67,
10722,
327,
4237,
67,
625,
369,
67,
10722,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if l.date < l.sheet_id.date_from: | if l.date[:10] < l.sheet_id.date_from: | def _sheet_date(self, cr, uid, ids): timesheet_lines = self.browse(cr, uid, ids) for l in timesheet_lines: if l.date < l.sheet_id.date_from: return False if l.date > l.sheet_id.date_to: return False return True | 81865eae1b48d4b75766d33a6223eb241148646f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/81865eae1b48d4b75766d33a6223eb241148646f/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
4124,
2963,
67,
3548,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
13,
364,
328,
316,
4124,
2963,
67,
3548,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
4124,
2963,
67,
3548,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
13,
364,
328,
316,
4124,
2963,
67,
3548,
30... |
try: copy_time_and_permissions(tmp, chroot+tmp, be_verbose, allow_suid=0, copy_ownership=retain_owner) except OSError, (errno,strerror): sys.stderr.write('ERROR: failed to copy time/permissions/owner from '+tmp+' to '+chroot+tmp+': '+strerror+'\n') | create_parent_path(chroot, tmp, be_verbose=be_verbose, copy_permissions=1, allow_suid=0, copy_ownership=retain_owner) | def copy_dir_recursive(chroot,dir,force_overwrite=0, be_verbose=0, check_libs=1, try_hardlink=1, retain_owner=0, handledfiles=[]): """copies a directory and the permissions recursive, except any setuid or setgid bits""" for root, dirs, files in os.walk(dir): files2 = () for name in files: files2 += os.path.join(root, name), handledfiles = copy_binaries_and_libs(chroot,files2,force_overwrite, be_verbose, check_libs, try_hardlink, retain_owner, handledfiles) for name in dirs: tmp = os.path.join(root, name) os.mkdir(chroot+tmp) try: copy_time_and_permissions(tmp, chroot+tmp, be_verbose, allow_suid=0, copy_ownership=retain_owner) except OSError, (errno,strerror): sys.stderr.write('ERROR: failed to copy time/permissions/owner from '+tmp+' to '+chroot+tmp+': '+strerror+'\n') handledfiles = copy_dir_recursive(chroot,os.path.join(root, name),force_overwrite, be_verbose, check_libs, try_hardlink, retain_owner, handledfiles) return handledfiles | 6df680f0e93fbb77e4552ac0799fcf1a7df35db7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6201/6df680f0e93fbb77e4552ac0799fcf1a7df35db7/jk_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1214,
67,
10543,
12,
343,
3085,
16,
1214,
16,
5734,
67,
19274,
33,
20,
16,
506,
67,
11369,
33,
20,
16,
866,
67,
21571,
33,
21,
16,
775,
67,
20379,
1232,
33,
21,
16,
15096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1610,
67,
1214,
67,
10543,
12,
343,
3085,
16,
1214,
16,
5734,
67,
19274,
33,
20,
16,
506,
67,
11369,
33,
20,
16,
866,
67,
21571,
33,
21,
16,
775,
67,
20379,
1232,
33,
21,
16,
15096... |
def fl_clear_browser(ob): """ fl_clear_browser(ob) """ _fl_clear_browser(ob) _fl_add_browser_line = cfuncproto(so_libforms, "fl_add_browser_line", None, [cty.POINTER(FL_OBJECT), STRING], | def fl_clear_browser(pObject): """ fl_clear_browser(pObject) """ _fl_clear_browser(pObject) _fl_add_browser_line = cfuncproto(so_libforms, "fl_add_browser_line", None, [cty.POINTER(FL_OBJECT), STRING], | def fl_clear_browser(ob): """ fl_clear_browser(ob) """ _fl_clear_browser(ob) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8507,
67,
11213,
12,
947,
4672,
3536,
1183,
67,
8507,
67,
11213,
12,
947,
13,
3536,
225,
389,
2242,
67,
8507,
67,
11213,
12,
947,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8507,
67,
11213,
12,
947,
4672,
3536,
1183,
67,
8507,
67,
11213,
12,
947,
13,
3536,
225,
389,
2242,
67,
8507,
67,
11213,
12,
947,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
... |
return http.Response(stream = s) | return HTMLResponse(stream = s) | def render(self, ctx): s = notebook.html_share(self.worksheet, self.username) return http.Response(stream = s) | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
2620,
67,
14419,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
327,
1062,
18,
1064,
12,
3256,
273,
272,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
2620,
67,
14419,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
327,
1062,
18,
1064,
12,
3256,
273,
272,
13,
2,
-100,
-100,
-10... |
self.message('WARNING: do NOT try to interrupt this migration, you will leave your DB in a messy state') | self.message('WARNING: do NOT interrupt this migration, you will leave your DB in a messy state') | def migrate(self): self.message('WARNING: do NOT try to interrupt this migration, you will leave your DB in a messy state') | 03e40c53e137197d582f524aa5e66be4e0a87a5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/03e40c53e137197d582f524aa5e66be4e0a87a5d/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
365,
18,
2150,
2668,
9511,
30,
741,
4269,
775,
358,
13123,
333,
6333,
16,
1846,
903,
8851,
3433,
2383,
316,
279,
12755,
93,
919,
6134,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
365,
18,
2150,
2668,
9511,
30,
741,
4269,
775,
358,
13123,
333,
6333,
16,
1846,
903,
8851,
3433,
2383,
316,
279,
12755,
93,
919,
6134,
2,
-100,
-100,
-100,
-100,
... |
self.fields['delegate'] = DelegateField(project) | self.fields['delegate'] = DelegateField(project, required = False) | def __init__(self, instance = None, project = None, *args, **kwargs): | aec7cf5771cd3244e024aada3b51a3d58b1af2f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7754/aec7cf5771cd3244e024aada3b51a3d58b1af2f0/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
273,
599,
16,
1984,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
273,
599,
16,
1984,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items()]) | par = ' : ' + ','.join(['%s:=%s'%(a,self(b)) for a,b in params.items()]) | def function_call(self, function, args=[], params={}, nvals=1): if not isinstance(args, list): args = [args] for i in range(len(args)): if not isinstance(args[i], ExpectElement): args[i] = self(args[i]) nvals = int(nvals) if len(params) == 0: par = '' else: par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items()]) fun = "%s(%s%s)"%(function, ",".join([s.name() for s in args]), par) if nvals <= 0: out = self.eval(fun) ans = None elif nvals == 1: return self(fun) else: v = [self._next_var_name() for _ in range(nvals)] vars = ", ".join(v) cmd = "%s := %s;"%(vars, fun) out = self.eval(cmd) ans = tuple([MagmaElement(self, x, is_name = True) for x in v]) if out.lower().find("error") != -1: raise TypeError, "Error executing Magma code:\n%s"%out return ans | 09df6dc03e5975978a16ad0de8dc982817a25907 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/09df6dc03e5975978a16ad0de8dc982817a25907/magma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
12... |
wiz_journal3('stock.traceability.lot.amont') | wiz_journal3('stock.traceability.lot.upstream') | def open_tab(self, cr, uid, data, context): obj = pooler.get_pool(cr.dbname).get('stock.move') ids = obj.search(cr, uid, [(field, 'in', data['ids'])]) cr.execute('select id from ir_ui_view where model=%s and field_parent=%s and type=%s', ('stock.move', type, 'tree')) view_id = cr.fetchone()[0] value = { 'domain': "[('id','in',["+','.join(map(str,ids))+"])]", 'name': ((type=='move_history_ids') and 'Upstream Traceability') or 'Downstream Traceability', 'view_type': 'tree', 'res_model': 'stock.move', 'field_parent': type, 'view_id': (view_id,'View'), 'type': 'ir.actions.act_window' } return value | 67ca84598f4db922bc38f23e9b7031e452ee3b9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/67ca84598f4db922bc38f23e9b7031e452ee3b9e/stock_traceability.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
7032,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
1081,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
15381,
18,
8501,
6134,
3258,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
7032,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
1081,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
15381,
18,
8501,
6134,
3258,
273,
... |
self._do_element(node, inherited) | self._do_element(node, inherited, unused=unused) | def __init__(self, node, write, **kw): '''Create and run the implementation.''' self.write = write self.subset = kw.get('subset') self.comments = kw.get('comments', 0) self.unsuppressedPrefixes = kw.get('unsuppressedPrefixes') nsdict = kw.get('nsdict', { 'xml': XMLNS.XML, 'xmlns': XMLNS.BASE }) # Processing state. self.state = (nsdict, {'xml':''}, {}) #0422 if node.nodeType == Node.DOCUMENT_NODE: self._do_document(node) elif node.nodeType == Node.ELEMENT_NODE: self.documentOrder = _Element # At document element if not _inclusive(self): inherited = _inclusiveNamespacePrefixes(node, self._inherit_context(node), self.unsuppressedPrefixes) self._do_element(node, inherited) else: inherited = self._inherit_context(node) self._do_element(node, inherited) elif node.nodeType == Node.DOCUMENT_TYPE_NODE: pass else: raise TypeError, str(node) | 25d03d3886754d1722b5d43dbd06d0aa5e778312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/25d03d3886754d1722b5d43dbd06d0aa5e778312/c14n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
365,
18,
2626,
273,
1045,
365,
18,
15657,
273,
5323,
18,
588,
2668,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
365,
18,
2626,
273,
1045,
365,
18,
15657,
273,
5323,
18,
588,
2668,
15... |
raise ValueError('%r is not a directory' % directory) | raise OSError('%r is not a directory' % directory) | def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory. | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if len(name) >= self.dialect.max_identifier_length(): | if len(name) > self.dialect.max_identifier_length(): | def _truncated_identifier(self, ident_class, name): if (ident_class, name) in self.generated_ids: return self.generated_ids[(ident_class, name)] if len(name) >= self.dialect.max_identifier_length(): counter = self.generated_ids.get(ident_class, 1) truncname = name[0:self.dialect.max_identifier_length() - 6] + "_" + hex(counter)[2:] self.generated_ids[ident_class] = counter + 1 else: truncname = name self.generated_ids[(ident_class, name)] = truncname return truncname | b35e93ecf484ef0b11da36688667df68d1321857 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/b35e93ecf484ef0b11da36688667df68d1321857/ansisql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23558,
690,
67,
5644,
12,
2890,
16,
3390,
67,
1106,
16,
508,
4672,
309,
261,
6392,
67,
1106,
16,
508,
13,
316,
365,
18,
11168,
67,
2232,
30,
327,
365,
18,
11168,
67,
2232,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23558,
690,
67,
5644,
12,
2890,
16,
3390,
67,
1106,
16,
508,
4672,
309,
261,
6392,
67,
1106,
16,
508,
13,
316,
365,
18,
11168,
67,
2232,
30,
327,
365,
18,
11168,
67,
2232,
63,
... |
raise DBError("RowClass must have class variable: %s" % att) | raise DBError("RowClass %s must have class variable: %s" % (rc, att)) | def _populateSchemaFor(self, transaction, rc): """construct all the SQL for database operations on <tableName> and populate the class <rowClass> with that info. """ attributes = ("rowColumns", "rowKeyColumns", "rowTableName" ) for att in attributes: if not hasattr(rc, att): raise DBError("RowClass must have class variable: %s" % att) tableInfo = _TableInfo(rc) tableInfo.updateSQL = self.buildUpdateSQL(tableInfo) tableInfo.insertSQL = self.buildInsertSQL(tableInfo) tableInfo.deleteSQL = self.buildDeleteSQL(tableInfo) self.populateSchemaFor(tableInfo) | 2bc07fc47f01a78a5d3d4665d055ae3af2d119b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2bc07fc47f01a78a5d3d4665d055ae3af2d119b5/sqlreflector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19936,
3078,
1290,
12,
2890,
16,
2492,
16,
4519,
4672,
3536,
10062,
777,
326,
3063,
364,
2063,
5295,
603,
411,
18033,
34,
471,
6490,
326,
667,
411,
492,
797,
34,
598,
716,
1123,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19936,
3078,
1290,
12,
2890,
16,
2492,
16,
4519,
4672,
3536,
10062,
777,
326,
3063,
364,
2063,
5295,
603,
411,
18033,
34,
471,
6490,
326,
667,
411,
492,
797,
34,
598,
716,
1123,
1... |
prev=u64(sprev) tloc=u64(stloc) plen=u64(splen) | prev=U64(sprev) tloc=U64(stloc) plen=U64(splen) | def next(self, index=0): name='' pos = self._pos tend, file, seek, read, tpos = self._stuff while pos < tend: # Read the data records for this transaction | e9aa3bd398cba329c8a421eb6d47f4dba6e400a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e9aa3bd398cba329c8a421eb6d47f4dba6e400a9/FileStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
16,
770,
33,
20,
4672,
508,
2218,
11,
949,
273,
365,
6315,
917,
268,
409,
16,
585,
16,
6520,
16,
855,
16,
268,
917,
273,
365,
6315,
334,
3809,
1323,
949,
411,
268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
16,
770,
33,
20,
4672,
508,
2218,
11,
949,
273,
365,
6315,
917,
268,
409,
16,
585,
16,
6520,
16,
855,
16,
268,
917,
273,
365,
6315,
334,
3809,
1323,
949,
411,
268,
... |
results = dict((subtask.task_id, subtask.__class__(subtask.task_id)) | pending = list(self.subtasks) results = dict((subtask.task_id, copy(subtask)) | def iterate(self): """Iterate over the return values of the tasks as they finish one by one. | b87d81664d610944c5b4775c8906bd34afebdd3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/b87d81664d610944c5b4775c8906bd34afebdd3f/result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7401,
12,
2890,
4672,
3536,
14916,
1879,
326,
327,
924,
434,
326,
4592,
487,
2898,
4076,
1245,
635,
1245,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7401,
12,
2890,
4672,
3536,
14916,
1879,
326,
327,
924,
434,
326,
4592,
487,
2898,
4076,
1245,
635,
1245,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.