rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
sw.show_all()
|
def __init__(self, activator, Kind=SearchBar): gtk.Window.__init__(self) self.set_border_width(12) self.set_title(_("Library Browser")) icon_theme = gtk.icon_theme_get_default() self.set_icon(icon_theme.load_icon( const.ICON, 64, gtk.ICON_LOOKUP_USE_BUILTIN))
|
f1bdc25eef59b94c1e9407c010ba679e8aa77ae5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/f1bdc25eef59b94c1e9407c010ba679e8aa77ae5/widgets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5981,
639,
16,
5851,
33,
2979,
5190,
4672,
22718,
18,
3829,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
67,
8815,
67,
2819,
12,
2138,
13,
365,
18,
542,
67,
2649,
24899,
2932,
9313,
15408,
6,
3719,
4126,
67,
7997,
273,
22718,
18,
3950,
67,
7997,
67,
588,
67,
1886,
1435,
365,
18,
542,
67,
3950,
12,
3950,
67,
7997,
18,
945,
67,
3950,
12,
1866,
18,
21745,
16,
5178,
16,
22718,
18,
21745,
67,
1502,
31581,
67,
8001,
67,
3000,
2627,
56,
706,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
18,
542,
67,
8815,
67,
2819,
12,
2138,
13,
365,
18,
542,
67,
2649,
24899,
2932,
9313,
15408,
6,
3719,
4126,
67,
7997,
273,
22718,
18,
3950,
67,
7997,
67,
588,
67,
1886,
1435,
365,
18,
542,
67,
3950,
12,
3950,
67,
7997,
18,
945,
67,
3950,
12,
1866,
18,
21745,
16,
5178,
16,
22718,
18,
21745,
67,
1502,
31581,
67,
8001,
67,
3000,
2627,
56,
706,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert not is_string(paths),`paths`
|
assert not is_string(paths),repr(paths)
|
def _fix_paths(paths,local_path,include_non_existing): assert is_sequence(paths), repr(type(paths)) new_paths = [] assert not is_string(paths),`paths` for n in paths: if is_string(n): if '*' in n or '?' in n: p = glob.glob(n) p2 = glob.glob(njoin(local_path,n)) if p2: new_paths.extend(p2) elif p: new_paths.extend(p) else: if include_non_existing: new_paths.append(n) print 'could not resolve pattern in %r: %r' \ % (local_path,n) else: n2 = njoin(local_path,n) if os.path.exists(n2): new_paths.append(n2) else: if os.path.exists(n): new_paths.append(n) elif include_non_existing: new_paths.append(n) if not os.path.exists(n): print 'non-existing path in %r: %r' \ % (local_path,n) elif is_sequence(n): new_paths.extend(_fix_paths(n,local_path,include_non_existing)) else: new_paths.append(n) return [minrelpath(p) for p in new_paths]
|
c85421c3b85e794d07e8de0304136c068c7f2e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c85421c3b85e794d07e8de0304136c068c7f2e17/misc_util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
4481,
12,
4481,
16,
3729,
67,
803,
16,
6702,
67,
5836,
67,
11711,
4672,
1815,
353,
67,
6178,
12,
4481,
3631,
8480,
12,
723,
12,
4481,
3719,
394,
67,
4481,
273,
5378,
1815,
486,
353,
67,
1080,
12,
4481,
3631,
12715,
12,
4481,
13,
364,
290,
316,
2953,
30,
309,
353,
67,
1080,
12,
82,
4672,
309,
5306,
316,
290,
578,
6787,
316,
290,
30,
293,
273,
4715,
18,
10581,
12,
82,
13,
293,
22,
273,
4715,
18,
10581,
12,
82,
5701,
12,
3729,
67,
803,
16,
82,
3719,
309,
293,
22,
30,
394,
67,
4481,
18,
14313,
12,
84,
22,
13,
1327,
293,
30,
394,
67,
4481,
18,
14313,
12,
84,
13,
469,
30,
309,
2341,
67,
5836,
67,
11711,
30,
394,
67,
4481,
18,
6923,
12,
82,
13,
1172,
296,
15195,
486,
2245,
1936,
316,
738,
86,
30,
738,
86,
11,
521,
738,
261,
3729,
67,
803,
16,
82,
13,
469,
30,
290,
22,
273,
290,
5701,
12,
3729,
67,
803,
16,
82,
13,
309,
1140,
18,
803,
18,
1808,
12,
82,
22,
4672,
394,
67,
4481,
18,
6923,
12,
82,
22,
13,
469,
30,
309,
1140,
18,
803,
18,
1808,
12,
82,
4672,
394,
67,
4481,
18,
6923,
12,
82,
13,
1327,
2341,
67,
5836,
67,
11711,
30,
394,
67,
4481,
18,
6923,
12,
82,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
82,
4672,
1172,
296,
5836,
17,
11711,
589,
316,
738,
86,
30,
738,
86,
11,
521,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
4481,
12,
4481,
16,
3729,
67,
803,
16,
6702,
67,
5836,
67,
11711,
4672,
1815,
353,
67,
6178,
12,
4481,
3631,
8480,
12,
723,
12,
4481,
3719,
394,
67,
4481,
273,
5378,
1815,
486,
353,
67,
1080,
12,
4481,
3631,
12715,
12,
4481,
13,
364,
290,
316,
2953,
30,
309,
353,
67,
1080,
12,
82,
4672,
309,
5306,
316,
290,
578,
6787,
316,
290,
30,
293,
273,
4715,
18,
10581,
12,
82,
13,
293,
22,
273,
4715,
18,
10581,
12,
82,
5701,
12,
3729,
67,
803,
16,
82,
3719,
309,
293,
22,
30,
394,
67,
4481,
18,
14313,
12,
84,
22,
13,
1327,
293,
30,
394,
67,
4481,
18,
14313,
12,
84,
13,
469,
30,
2
] |
def OnTextEnter(self, event):
|
def SaveItem(self):
|
def OnTextEnter(self, event): if self.item != None: self.item.displayName = self.GetValue() self.Hide() event.Skip()
|
198f845fb11f76a42bb0d89843db2f2bc3f2808d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/198f845fb11f76a42bb0d89843db2f2bc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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7074,
1180,
12,
2890,
4672,
309,
365,
18,
1726,
480,
599,
30,
365,
18,
1726,
18,
5417,
461,
273,
365,
18,
967,
620,
1435,
365,
18,
15690,
1435,
871,
18,
6368,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iwreq = iwstruct.pack("ihBB", -1, 0, 0, pythonwifi.flags.IW_FREQ_AUTO)
|
iwreq = iwstruct.pack(format, -1, 0, 0, pythonwifi.flags.IW_FREQ_AUTO)
|
def setFrequency(self, freq): """ Sets the frequency on the card.
|
48c1d48d2846ae641db4bc5778937b0ba4d0dd0a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/48c1d48d2846ae641db4bc5778937b0ba4d0dd0a/iwlibs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
13865,
12,
2890,
16,
7684,
4672,
3536,
11511,
326,
8670,
603,
326,
5270,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
13865,
12,
2890,
16,
7684,
4672,
3536,
11511,
326,
8670,
603,
326,
5270,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
t=valu.split(" ") opt=t[0] key=t[1]
|
opt, key, action, param=valu.split(None,3)
|
def e17_keys(): try: import pyetun_keys keys=pyetun_keys.get_KEYS() mod=pyetun_keys.get_MODIFIERS() action=pyetun_keys.get_ACTION() par=pyetun_keys.get_PARAMS() for index,i in enumerate(keys): print bold("[MODIFIER+KEY] "), print mod[index],"+",i, print bold(" [ACTION] "), print action[index], print bold(" [ACTION PARAMS] "), print par[index][:-1] print "> Options: " print bold("[a]dd keybinding <modifier+key> <action> <action_params>") print bold("[d]elete keybinding <modifier+key> <action> <action_params>") print "EXAMPLE: a ALT+g exec gedit * This example creates a shortcut key (ALT+g) to open gedit *" print "> CTRL+C - Main Menu" valu=raw_input("Option: ") while 1: try: t=valu.split(" ") opt=t[0] key=t[1] key_final=key.split("+")[1] mod=key.split("+")[0] action=t[2] param=t[3] except IndexError: print "[error]: m00, wrong wrong wrong! ;-)" e17_keys() if opt=="a": pyetun_keys.add_key(key_final,mod,action,param) print bold("KEY:"), print mod,"+",key, "ADDED!" e17_keys() elif opt=="d": pyetun_keys.del_key(key_final,mod,action,param) print bold("KEY:"), print mod,"+",key, "DELETED!" e17_keys() else: print bold("[error] m000 wrong option!") e17_keys() except KeyboardInterrupt: print "\nOops! exiting ;)" console()
|
ed8ecddeb585ef604137d25f0a0389c26533b33a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/ed8ecddeb585ef604137d25f0a0389c26533b33a/pyetun.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
2452,
13332,
775,
30,
1930,
2395,
278,
318,
67,
2452,
1311,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
16333,
1435,
681,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
6720,
10591,
55,
1435,
1301,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
12249,
1435,
779,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
16785,
1435,
282,
364,
770,
16,
77,
316,
4241,
12,
2452,
4672,
1172,
13068,
2932,
63,
6720,
10591,
15,
3297,
65,
315,
3631,
1172,
681,
63,
1615,
6487,
6,
15,
3113,
77,
16,
1172,
13068,
2932,
306,
12249,
65,
315,
3631,
1172,
1301,
63,
1615,
6487,
1172,
13068,
2932,
306,
12249,
4655,
55,
65,
315,
3631,
1172,
779,
63,
1615,
6362,
30,
17,
21,
65,
225,
1172,
14402,
5087,
30,
315,
1172,
13068,
2932,
63,
69,
65,
449,
498,
7374,
225,
411,
20597,
15,
856,
34,
411,
1128,
34,
411,
1128,
67,
2010,
2984,
13,
1172,
13068,
2932,
63,
72,
65,
929,
498,
7374,
411,
20597,
15,
856,
34,
411,
1128,
34,
411,
1128,
67,
2010,
2984,
13,
1172,
315,
2294,
21373,
30,
279,
30939,
15,
75,
1196,
314,
4619,
380,
1220,
3454,
3414,
279,
10995,
498,
261,
18255,
15,
75,
13,
358,
1696,
314,
4619,
380,
6,
225,
1172,
14402,
31568,
48,
15,
39,
300,
12740,
9809,
6,
21748,
33,
1899,
67,
2630,
2932,
1895,
30,
9369,
1323,
404,
30,
775,
30,
2153,
16,
498,
16,
1301,
16,
579,
33,
4531,
18,
4939,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
2452,
13332,
775,
30,
1930,
2395,
278,
318,
67,
2452,
1311,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
16333,
1435,
681,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
6720,
10591,
55,
1435,
1301,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
12249,
1435,
779,
33,
2074,
278,
318,
67,
2452,
18,
588,
67,
16785,
1435,
282,
364,
770,
16,
77,
316,
4241,
12,
2452,
4672,
1172,
13068,
2932,
63,
6720,
10591,
15,
3297,
65,
315,
3631,
1172,
681,
63,
1615,
6487,
6,
15,
3113,
77,
16,
1172,
13068,
2932,
306,
12249,
65,
315,
3631,
1172,
1301,
63,
1615,
6487,
1172,
13068,
2932,
306,
12249,
4655,
55,
65,
315,
3631,
1172,
2
] |
keyword.
|
keyword. In case the value is not found, -1 is returned. The given list is never altered by this keyword.
|
def get_index_from_list(self, L, value, start=0, end=None): """Returns the index of the first occurrence of the value on the list.
|
9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db/Collections.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
2080,
67,
1098,
12,
2890,
16,
511,
16,
460,
16,
787,
33,
20,
16,
679,
33,
7036,
4672,
3536,
1356,
326,
770,
434,
326,
1122,
13083,
434,
326,
460,
603,
326,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
2080,
67,
1098,
12,
2890,
16,
511,
16,
460,
16,
787,
33,
20,
16,
679,
33,
7036,
4672,
3536,
1356,
326,
770,
434,
326,
1122,
13083,
434,
326,
460,
603,
326,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
checkupdates = tmpprefs.get('CheckForUpdates') locale = tmpprefs.get('locale')
|
try: checkupdates = tmpprefs.get('CheckForUpdates') locale = tmpprefs.get('locale') except: pass
|
def init2(self): Damnlog('Starting DamnMainFrame init stage 2.') if os.path.exists(DV.conf_file_directory + 'lastversion.damnvid'): lastversion = DamnOpenFile(DV.conf_file_directory + 'lastversion.damnvid', 'r') dvversion = lastversion.readline().strip() lastversion.close() del lastversion Damnlog('Version file found; version number read:',dvversion) else: dvversion = 'old' # This is not just an arbitrary erroneous value, it's actually handy in the concatenation on the wx.FileDialog line below Damnlog('No version file found.') Damnlog('Read version:',dvversion,';running version:',DV.version) if dvversion != DV.version: # Just updated to new version, ask what to do about the preferences #dlg = wx.MessageDialog(self, DV.l('DamnVid was updated to ') + DV.version + '.\n' + DV.l('locale:damnvid-updated-export-prefs'), DV.l('DamnVid was successfully updated'), wx.YES | wx.NO | wx.ICON_QUESTION) tmpprefs = DamnVidPrefs() checkupdates = tmpprefs.get('CheckForUpdates') locale = tmpprefs.get('locale') Damnlog('Check for updates preference is',checkupdates) if False: #dlg.ShowModal() == wx.ID_YES: dlg.Destroy() dlg = wx.FileDialog(self, DV.l('Where do you want to export DamnVid\'s configuration?'), tmpprefs.get('lastprefdir'), 'DamnVid-' + dvversion + '-configuration.ini', DV.l('locale:browse-ini-files'), wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT) if dlg.ShowModal() == wx.ID_OK: path = dlg.GetPath() f = DamnOpenFile(path, 'w') tmpprefs.ini.write(f) f.close() dlg.Destroy() else: pass#dlg.Destroy() # Now, overwrite the preferences! del tmpprefs os.remove(DV.conf_file) shutil.copyfile(DV.curdir + 'conf' + DV.sep + 'conf.ini', DV.conf_file) lastversion = DamnOpenFile(DV.conf_file_directory + 'lastversion.damnvid', 'w') lastversion.write(DV.version.encode('utf8')) lastversion.close() del lastversion tmpprefs = DamnVidPrefs() tmpprefs.set('CheckForUpdates', checkupdates) tmpprefs.set('locale', locale) tmpprefs.save() del tmpprefs Damnlog('Local version check done, initializing DamnMainFrame properties.') self.videos = [] self.clippedvideos = [] self.resultlist = [] self.thisbatch = 0 self.thisvideo = [] self.meta = {} DV.prefs = DamnVidPrefs() self.converting = -1 self.isclosing = False self.searchopen = False self.addurl = None self.loadingvisible = 0 self.onListSelect() Damnlog('DamnMainFrame properties OK, first run?',DV.first_run) if DV.first_run: dlg = wx.MessageDialog(self, DV.l('Welcome to DamnVid ') + DV.version + '!\n' + DV.l('Would you like DamnVid to check for updates every time it starts?'), DV.l('Welcome to DamnVid ') + DV.version + '!', wx.YES | wx.NO | wx.ICON_QUESTION) if dlg.ShowModal() == wx.ID_YES: DV.prefs.set('CheckForUpdates', 'True') else: DV.prefs.set('CheckForUpdates', 'False') if DV.prefs.get('CheckForUpdates') == 'True': Damnlog('DamnMainFrame checking for updates.') self.onCheckUpdates(None) self.SetStatusText(DV.l('DamnVid ready.')) windowpolicy = DV.prefs.get('windowpolicy') if not len(windowpolicy) or windowpolicy=='center': Damnlog('Window policy is centering.') self.Center() elif windowpolicy=='remember': Damnlog('Window policy is remember; trying to load saved window geometry.') lastx = DV.prefs.gets('damnvid-mainwindow','lastx') lasty = DV.prefs.gets('damnvid-mainwindow','lasty') lastw = DV.prefs.gets('damnvid-mainwindow','lastw') lasth = DV.prefs.gets('damnvid-mainwindow','lasth') lastresw = DV.prefs.gets('damnvid-mainwindow','lastresw') lastresh = DV.prefs.gets('damnvid-mainwindow','lastresh') allstuff=(lastx,lasty,lastw,lasth,lastresw,lastresh) Damnlog('Old window geometry information:',allstuff) allstuff2=[] for i in allstuff: try: allstuff2.append(int(i)) except: allstuff2.append(-1) if -1 in allstuff2: Damnlog('Invalid information in old window geometry information; giving up on restoring window geometry.') else: try: screen = wx.Display().GetGeometry()[2:] if allstuff2[4] != screen[0] or allstuff2[5]!= screen[1]: Damnlog('Resolution information is different:',allstuff2[4:5],'vs',screen,'(current); giving up on restoring window geometry.') else: Damnlog('All window geometry tests passed, attempting to restore window geometry.') try: self.SetSizeWH(allstuff2[2],allstuff2[3]) self.MoveXY(allstuff2[0],allstuff2[1]) Damnlog('Window geometry restored successfully.') except: Damnlog('Window manager refused to change window geometry.') except: Damnlog('Could not get screen resolution; giving up on restoring window geometry.') else: Damnlog('Window policy is',windowpolicy,'; doing nothing.') self.buildHistoryMenu() Damnlog('DamnMainFrame: Main window all ready,')
|
b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b/DamnVid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
22,
12,
2890,
4672,
463,
301,
82,
1330,
2668,
11715,
463,
301,
82,
6376,
3219,
1208,
6009,
576,
1093,
13,
309,
1140,
18,
803,
18,
1808,
12,
30199,
18,
3923,
67,
768,
67,
5149,
397,
296,
2722,
1589,
18,
72,
301,
82,
1246,
11,
4672,
1142,
1589,
273,
463,
301,
82,
3678,
812,
12,
30199,
18,
3923,
67,
768,
67,
5149,
397,
296,
2722,
1589,
18,
72,
301,
82,
1246,
2187,
296,
86,
6134,
12494,
1589,
273,
1142,
1589,
18,
896,
1369,
7675,
6406,
1435,
1142,
1589,
18,
4412,
1435,
1464,
1142,
1589,
463,
301,
82,
1330,
2668,
1444,
585,
1392,
31,
1177,
1300,
855,
30,
2187,
15679,
1589,
13,
469,
30,
12494,
1589,
273,
296,
1673,
11,
468,
1220,
353,
486,
2537,
392,
11078,
393,
476,
1481,
460,
16,
518,
1807,
6013,
948,
93,
316,
326,
26833,
603,
326,
7075,
18,
812,
6353,
980,
5712,
463,
301,
82,
1330,
2668,
2279,
1177,
585,
1392,
1093,
13,
463,
301,
82,
1330,
2668,
1994,
1177,
30,
2187,
15679,
1589,
11189,
31,
8704,
1177,
30,
2187,
30199,
18,
1589,
13,
309,
12494,
1589,
480,
463,
58,
18,
1589,
30,
468,
12526,
3526,
358,
394,
1177,
16,
6827,
4121,
358,
741,
2973,
326,
12750,
468,
5761,
75,
273,
7075,
18,
1079,
6353,
12,
2890,
16,
463,
58,
18,
80,
2668,
40,
301,
82,
58,
350,
1703,
3526,
358,
8624,
397,
463,
58,
18,
1589,
397,
2418,
64,
82,
11,
397,
463,
58,
18,
80,
2668,
6339,
30,
72,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
22,
12,
2890,
4672,
463,
301,
82,
1330,
2668,
11715,
463,
301,
82,
6376,
3219,
1208,
6009,
576,
1093,
13,
309,
1140,
18,
803,
18,
1808,
12,
30199,
18,
3923,
67,
768,
67,
5149,
397,
296,
2722,
1589,
18,
72,
301,
82,
1246,
11,
4672,
1142,
1589,
273,
463,
301,
82,
3678,
812,
12,
30199,
18,
3923,
67,
768,
67,
5149,
397,
296,
2722,
1589,
18,
72,
301,
82,
1246,
2187,
296,
86,
6134,
12494,
1589,
273,
1142,
1589,
18,
896,
1369,
7675,
6406,
1435,
1142,
1589,
18,
4412,
1435,
1464,
1142,
1589,
463,
301,
82,
1330,
2668,
1444,
585,
1392,
31,
1177,
1300,
855,
30,
2187,
15679,
1589,
13,
469,
30,
12494,
1589,
273,
296,
1673,
2
] |
code1 = _fixescape(this, 1)
|
code1 = _class_escape(source, this)
|
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: subpattern.append((LITERAL, this)) elif this == "[": # character set set = []
|
d46b2a42eda94cbac3b610e36d5f97230d629068 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d46b2a42eda94cbac3b610e36d5f97230d629068/sre_parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
225,
1323,
404,
30,
225,
309,
609,
12,
3168,
18,
4285,
13,
316,
7566,
96,
3113,
7310,
4672,
898,
468,
679,
434,
720,
4951,
333,
273,
1084,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
1936,
225,
309,
333,
471,
333,
63,
20,
65,
486,
316,
22872,
6365,
67,
21666,
30,
720,
4951,
18,
6923,
12443,
23225,
16,
333,
3719,
225,
1327,
333,
422,
5158,
6877,
468,
3351,
444,
444,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
225,
1323,
404,
30,
225,
309,
609,
12,
3168,
18,
4285,
13,
316,
7566,
96,
3113,
7310,
4672,
898,
468,
679,
434,
720,
4951,
333,
273,
1084,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
1936,
225,
309,
333,
471,
333,
63,
20,
65,
486,
316,
22872,
6365,
67,
21666,
30,
720,
4951,
18,
6923,
12443,
23225,
16,
333,
3719,
225,
1327,
333,
422,
5158,
6877,
468,
3351,
444,
444,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
p = [0]*G.num_verts()
|
p = [None]*G.num_verts()
|
def blocks_and_cut_vertices(self): """ Computes the blocks and cut vertices of the graph. In the case of a digraph, this computation is done on the underlying graph.
|
592545f3bcbdce40614121ff33879bf7c4995e08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/592545f3bcbdce40614121ff33879bf7c4995e08/graph.py
|
[
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4398,
67,
464,
67,
5150,
67,
17476,
12,
2890,
4672,
3536,
14169,
281,
326,
4398,
471,
6391,
6928,
434,
326,
2667,
18,
657,
326,
648,
434,
279,
3097,
1483,
16,
333,
16039,
353,
2731,
603,
326,
6808,
2667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return h.digest()
|
if suffix: return h.digest()[:-len(suffix)] + suffix else: return h.digest()
|
def newID(): """Get a new pseudorandom globally unique hash string.""" h = sha() h.update(urandom(HASH_LENGTH)) return h.digest()
|
dead3eff408396611d9f0dd7f8a3fc09cc097ae8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/dead3eff408396611d9f0dd7f8a3fc09cc097ae8/khash.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
734,
13332,
3536,
967,
279,
394,
29606,
280,
2111,
25654,
3089,
1651,
533,
12123,
366,
273,
6056,
1435,
366,
18,
2725,
12,
295,
2111,
12,
15920,
67,
7096,
3719,
309,
3758,
30,
327,
366,
18,
10171,
1435,
10531,
17,
1897,
12,
8477,
25887,
397,
3758,
469,
30,
327,
366,
18,
10171,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
394,
734,
13332,
3536,
967,
279,
394,
29606,
280,
2111,
25654,
3089,
1651,
533,
12123,
366,
273,
6056,
1435,
366,
18,
2725,
12,
295,
2111,
12,
15920,
67,
7096,
3719,
309,
3758,
30,
327,
366,
18,
10171,
1435,
10531,
17,
1897,
12,
8477,
25887,
397,
3758,
469,
30,
327,
366,
18,
10171,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
default_minilay_paths = [os.path.join(self._prefix,'minilays', minilay)\
|
default_minilays_pathes_urls = [(os.path.join(self._prefix,'minilays', minilay), '/'.join((urlbase, minilay)))\
|
def _sync(self): """Sync or install our minilays.""" # install our default minilays self.logger.info('Syncing minilays') default_minilays = [s.strip() \ for s in self._config._sections\ .get('minimerge', {})\ .get('default_minilays','')\ .split('\n')] minimerge_section = self._config._sections.get('minimerge', {}) urlbase = '%s/%s' % ( minimerge_section\ .get('minilays_url','')\ .strip(), version )
|
76d5bf95735327499584c9cda2384ba15a856ab6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9393/76d5bf95735327499584c9cda2384ba15a856ab6/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
12,
2890,
4672,
3536,
4047,
578,
3799,
3134,
1131,
330,
8271,
12123,
468,
3799,
3134,
805,
1131,
330,
8271,
365,
18,
4901,
18,
1376,
2668,
4047,
310,
1131,
330,
8271,
6134,
805,
67,
1154,
330,
8271,
273,
306,
87,
18,
6406,
1435,
521,
364,
272,
316,
365,
6315,
1425,
6315,
11657,
64,
263,
588,
2668,
1154,
381,
1583,
2187,
2618,
5153,
263,
588,
2668,
1886,
67,
1154,
330,
8271,
2187,
6309,
5153,
263,
4939,
2668,
64,
82,
6134,
65,
18172,
1583,
67,
3464,
273,
365,
6315,
1425,
6315,
11657,
18,
588,
2668,
1154,
381,
1583,
2187,
2618,
13,
880,
1969,
273,
1995,
87,
5258,
87,
11,
738,
261,
18172,
1583,
67,
3464,
64,
263,
588,
2668,
1154,
330,
8271,
67,
718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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
12,
2890,
4672,
3536,
4047,
578,
3799,
3134,
1131,
330,
8271,
12123,
468,
3799,
3134,
805,
1131,
330,
8271,
365,
18,
4901,
18,
1376,
2668,
4047,
310,
1131,
330,
8271,
6134,
805,
67,
1154,
330,
8271,
273,
306,
87,
18,
6406,
1435,
521,
364,
272,
316,
365,
6315,
1425,
6315,
11657,
64,
263,
588,
2668,
1154,
381,
1583,
2187,
2618,
5153,
263,
588,
2668,
1886,
67,
1154,
330,
8271,
2187,
6309,
5153,
263,
4939,
2668,
64,
82,
6134,
65,
18172,
1583,
67,
3464,
273,
365,
6315,
1425,
6315,
11657,
18,
588,
2668,
1154,
381,
1583,
2187,
2618,
13,
880,
1969,
273,
1995,
87,
5258,
87,
11,
738,
261,
18172,
1583,
67,
3464,
64,
263,
588,
2668,
2
] |
return self.no == other.no and self.setting == other.setting
|
if isinstance(other, int): return self.no == other elif isinstance(other, str): return self.symbol == other else: return self.no == other.no and self.setting == other.setting
|
def __eq__(self, other): """Chech whether *self* and *other* refer to the same spacegroup number and setting.""" return self.no == other.no and self.setting == other.setting
|
e6b43a282e4f374086d16b913744056243256848 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e6b43a282e4f374086d16b913744056243256848/spacegroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
3536,
39,
580,
343,
2856,
380,
2890,
14,
471,
380,
3011,
14,
8884,
358,
326,
1967,
3476,
1655,
1300,
471,
3637,
12123,
327,
365,
18,
2135,
422,
1308,
18,
2135,
471,
365,
18,
8920,
422,
1308,
18,
8920,
2,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
3536,
39,
580,
343,
2856,
380,
2890,
14,
471,
380,
3011,
14,
8884,
358,
326,
1967,
3476,
1655,
1300,
471,
3637,
12123,
327,
365,
18,
2135,
422,
1308,
18,
2135,
471,
365,
18,
8920,
422,
1308,
18,
8920,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"]],
|
"access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"].upper()],
|
def GenerateNode(filepath, nodeID = 0): global Node # Create a new node Node = node.Node(id = nodeID) try: # Parse file and extract dictionary of EDS entry eds_dict = ParseEDSFile(filepath) # Extract Profile Number from Device Type entry ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff # If profile is not DS-301 or DS-302 if ProfileNb not in [301, 302]: # Compile Profile name and path to .prf file ProfileName = "DS-%d"%ProfileNb ProfilePath = os.path.join(os.path.split(__file__)[0], "config/%s.prf"%ProfileName) # Verify that profile is available if os.path.isfile(ProfilePath): try: # Load Profile execfile(ProfilePath) Node.SetProfileName(ProfileName) Node.SetProfile(Mapping) Node.SetSpecificMenu(AddMenuEntries) except: pass # Read all entries in the EDS dictionary for entry, values in eds_dict.items(): # All sections with a name in keynames are escaped if entry in SECTION_KEYNAMES: pass else: # Extract informations for the entry entry_infos = Node.GetEntryInfos(entry) # If no informations are available, then we write them if not entry_infos: # First case, entry is a VAR if values["OBJECTTYPE"] == 7: # Add mapping for entry Node.AddMappingEntry(entry, name = values["PARAMETERNAME"], struct = 1) # Add mapping for first subindex Node.AddMappingEntry(entry, 0, values = {"name" : values["PARAMETERNAME"], "type" : values["DATATYPE"], "access" : ACCESS_TRANSLATE[values["ACCESSTYPE"]], "pdo" : values.get("PDOMAPPING", 0) == 1}) # Second case, entry is an ARRAY elif values["OBJECTTYPE"] == 8: # Extract maximum subindex number defined try: max_subindex = values["subindexes"][0]["DEFAULTVALUE"] except: raise SyntaxError, "Error on entry 0x%4.4X:\nSubindex 0 must be defined for an ARRAY entry"%entry # Add mapping for entry Node.AddMappingEntry(entry, name = values["PARAMETERNAME"], struct = 3) # Add mapping for first subindex Node.AddMappingEntry(entry, 0, values = {"name" : "Number of Entries", "type" : 0x05, "access" : "ro", "pdo" : False}) # Add mapping for other subindexes for subindex in xrange(1, int(max_subindex) + 1): # if subindex is defined if subindex in values["subindexes"]: Node.AddMappingEntry(entry, subindex, values = {"name" : values["subindexes"][subindex]["PARAMETERNAME"], "type" : values["subindexes"][subindex]["DATATYPE"], "access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"]], "pdo" : values["subindexes"][subindex].get("PDOMAPPING", 0) == 1}) # if not, we add a mapping for compatibility else: Node.AddMappingEntry(entry, subindex, values = {"name" : "Compatibility Entry", "type" : 0x05, "access" : "rw", "pdo" : False}) # Third case, entry is an RECORD elif values["OBJECTTYPE"] == 9: # Verify that the first subindex is defined if 0 not in values["subindexes"]: raise SyntaxError, "Error on entry 0x%4.4X:\nSubindex 0 must be defined for a RECORD entry"%entry # Add mapping for entry Node.AddMappingEntry(entry, name = values["PARAMETERNAME"], struct = 7) # Add mapping for first subindex Node.AddMappingEntry(entry, 0, values = {"name" : "Number of Entries", "type" : 0x05, "access" : "ro", "pdo" : False}) # Verify that second subindex is defined if 1 in values: Node.AddMappingEntry(entry, 1, values = {"name" : values["PARAMETERNAME"] + " %d[(sub)]", "type" : values["subindexes"][1]["DATATYPE"], "access" : ACCESS_TRANSLATE[values["subindexes"][1]["ACCESSTYPE"]], "pdo" : values["subindexes"][1].get("PDOMAPPING", 0) == 1}) else: raise SyntaxError, "Error on entry 0x%4.4X:\nA RECORD entry must have at least 2 subindexes"%entry # Define entry for the new node # First case, entry is a VAR if values["OBJECTTYPE"] == 7: # Take default value if it is defined if "DEFAULTVALUE" in values: value = values["DEFAULTVALUE"] # Find default value for value type of the entry else: value = GetDefaultValue(entry) Node.AddEntry(entry, 0, value) # Second case, entry is an ARRAY or a RECORD elif values["OBJECTTYPE"] in (8, 9): # Verify that "Subnumber" attribute is defined and has a valid value if "SUBNUMBER" in values and values["SUBNUMBER"] > 0: # Extract maximum subindex number defined try: max_subindex = values["subindexes"][0]["DEFAULTVALUE"] except: raise SyntaxError, "Error on entry 0x%4.4X:\nSubindex 0 must be defined for an ARRAY or a RECORD entry"%entry Node.AddEntry(entry, value = []) # Define value for all subindexes except the first for subindex in xrange(1, int(max_subindex) + 1): # Take default value if it is defined and entry is defined if subindex in values["subindexes"] and "DEFAULTVALUE" in values["subindexes"][subindex]: value = values["subindexes"][subindex]["DEFAULTVALUE"] # Find default value for value type of the subindex else: value = GetDefaultValue(entry, subindex) Node.AddEntry(entry, subindex, value) else: raise SyntaxError, "Array or Record entry 0x%4.4X must have a \"SubNumber\" attribute"%entry return Node except SyntaxError, message: return "Unable to import EDS file\n%s"%message
|
377e3b02a272798306727eecf174777a489d3f3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/377e3b02a272798306727eecf174777a489d3f3d/eds_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
907,
12,
10561,
16,
14871,
273,
374,
4672,
2552,
2029,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
3880,
434,
512,
3948,
1241,
1675,
87,
67,
1576,
273,
2884,
2056,
55,
812,
12,
10561,
13,
468,
8152,
11357,
3588,
628,
6077,
1412,
1241,
11357,
22816,
273,
1675,
87,
67,
1576,
63,
20,
92,
18088,
6362,
6,
5280,
4051,
11929,
473,
374,
92,
2787,
9460,
468,
971,
3042,
353,
486,
8678,
17,
31831,
578,
8678,
17,
23,
3103,
309,
11357,
22816,
486,
316,
306,
31831,
16,
22072,
14542,
468,
16143,
11357,
508,
471,
589,
358,
263,
683,
74,
585,
11357,
461,
273,
315,
3948,
6456,
72,
28385,
4029,
22816,
11357,
743,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
4939,
12,
972,
768,
972,
25146,
20,
6487,
315,
1425,
5258,
87,
18,
683,
74,
28385,
4029,
461,
13,
468,
8553,
716,
3042,
353,
2319,
309,
1140,
18,
803,
18,
291,
768,
12,
4029,
743,
4672,
775,
30,
468,
4444,
11357,
1196,
768,
12,
4029,
743,
13,
2029,
18,
694,
4029,
461,
12,
4029,
461,
13,
2029,
18,
694,
4029,
12,
3233,
13,
2029,
18,
694,
9969,
4599,
12,
986,
4599,
5400,
13,
1335,
30,
1342,
468,
2720,
777,
3222,
316,
326,
512,
3948,
3880,
364,
1241,
16,
924,
316,
1675,
87,
67,
1576,
18,
3319,
13332,
468,
4826,
7178,
598,
279,
508,
316,
498,
1973,
854,
8345,
309,
1241,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
907,
12,
10561,
16,
14871,
273,
374,
4672,
2552,
2029,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
3880,
434,
512,
3948,
1241,
1675,
87,
67,
1576,
273,
2884,
2056,
55,
812,
12,
10561,
13,
468,
8152,
11357,
3588,
628,
6077,
1412,
1241,
11357,
22816,
273,
1675,
87,
67,
1576,
63,
20,
92,
18088,
6362,
6,
5280,
4051,
11929,
473,
374,
92,
2787,
9460,
468,
971,
3042,
353,
486,
8678,
17,
31831,
578,
8678,
17,
23,
3103,
309,
11357,
22816,
486,
316,
306,
31831,
16,
22072,
14542,
468,
16143,
11357,
508,
471,
589,
358,
263,
683,
74,
585,
11357,
461,
273,
315,
3948,
2
] |
_rcsid="$Id: fitting_toolkit.py,v 1.7 2003-05-30 13:31:55 mendenhall Exp $"
|
_rcsid="$Id: fitting_toolkit.py,v 1.8 2003-07-03 14:17:50 mendenhall Exp $"
|
def derivs(self): #analytic derivatives for a 2-d gaussian #z0+a*exp( -(x-xmu)**2/(2*xsig**2) -(y-ymu)**2/(2.0*ysig**2)) z0, a, xmu, xsigma, ymu, ysigma = self.funcparams n=self.pointcount x=self.xarray[0,:n] y=self.xarray[1,:n] xsigi=-1.0/(2.0*xsigma**2) ysigi=-1.0/(2.0*ysigma**2) dx=x-xmu dx2=dx*dx dy=y-ymu dy2=dy*dy expfact=Numeric.exp(xsigi*dx2+ysigi*dy2) z=a*expfact dd = Numeric.zeros((n, 6), self.atype) dd[:,0]=1.0 dd[:,1]=expfact dd[:,2]=(-2.0*xsigi)*(dx*z) dd[:,3]=(-2.0*xsigi/xsigma)*(dx2*z) dd[:,4]=(-2.0*ysigi)*(dy*z) dd[:,5]= (-2.0*ysigi/ysigma)*(dy2*z) return dd
|
4d44ea8ac114ba81a7fea75d025f5d3b975b2f1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/4d44ea8ac114ba81a7fea75d025f5d3b975b2f1e/fitting_toolkit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9630,
87,
12,
2890,
4672,
468,
304,
7834,
335,
9630,
8785,
364,
279,
576,
17,
72,
21490,
468,
94,
20,
15,
69,
14,
2749,
12,
300,
12,
92,
17,
92,
13297,
13,
636,
22,
19,
12,
22,
14,
92,
7340,
636,
22,
13,
300,
12,
93,
17,
2942,
89,
13,
636,
22,
19,
12,
22,
18,
20,
14,
1900,
360,
636,
22,
3719,
998,
20,
16,
279,
16,
619,
13297,
16,
619,
13201,
16,
677,
13297,
16,
677,
13201,
273,
365,
18,
644,
2010,
290,
33,
2890,
18,
1153,
1883,
619,
33,
2890,
18,
92,
1126,
63,
20,
16,
30,
82,
65,
677,
33,
2890,
18,
92,
1126,
63,
21,
16,
30,
82,
65,
619,
7340,
77,
29711,
21,
18,
20,
19,
12,
22,
18,
20,
14,
92,
13201,
636,
22,
13,
677,
7340,
77,
29711,
21,
18,
20,
19,
12,
22,
18,
20,
14,
1900,
17288,
636,
22,
13,
6633,
33,
92,
17,
92,
13297,
6633,
22,
33,
13437,
14,
13437,
7732,
33,
93,
17,
2942,
89,
7732,
22,
33,
15680,
14,
15680,
1329,
3493,
33,
9902,
18,
2749,
12,
92,
7340,
77,
14,
13437,
22,
15,
1900,
360,
77,
14,
15680,
22,
13,
998,
33,
69,
14,
2749,
3493,
225,
6957,
273,
16980,
18,
22008,
12443,
82,
16,
1666,
3631,
365,
18,
6361,
13,
6957,
10531,
16,
20,
65,
33,
21,
18,
20,
6957,
10531,
16,
21,
65,
33,
2749,
3493,
6957,
10531,
16,
22,
65,
33,
19236,
22,
18,
20,
14,
92,
7340,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9630,
87,
12,
2890,
4672,
468,
304,
7834,
335,
9630,
8785,
364,
279,
576,
17,
72,
21490,
468,
94,
20,
15,
69,
14,
2749,
12,
300,
12,
92,
17,
92,
13297,
13,
636,
22,
19,
12,
22,
14,
92,
7340,
636,
22,
13,
300,
12,
93,
17,
2942,
89,
13,
636,
22,
19,
12,
22,
18,
20,
14,
1900,
360,
636,
22,
3719,
998,
20,
16,
279,
16,
619,
13297,
16,
619,
13201,
16,
677,
13297,
16,
677,
13201,
273,
365,
18,
644,
2010,
290,
33,
2890,
18,
1153,
1883,
619,
33,
2890,
18,
92,
1126,
63,
20,
16,
30,
82,
65,
677,
33,
2890,
18,
92,
1126,
63,
21,
16,
30,
82,
65,
619,
7340,
77,
29711,
2
] |
classAdAgent = ClassAd("["+resourceJDL+"]")
|
classAdAgent = ClassAd(resourceJDL)
|
def selectJob(self, resourceJDL): """ Main job selection function to find the highest priority job matching the resource capacity """
|
efa72d039ea8335d5706043f0e4af017355dbdd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/efa72d039ea8335d5706043f0e4af017355dbdd3/MatcherHandler.py
|
[
1,
8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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert not gc.garbage, 'uncollectable garbage left over from previous tests'
|
check_garbage()
|
def leakTest_generic(func): print 'memory leak test', func.__name__ assert not gc.garbage, 'uncollectable garbage left over from previous tests' doc = document.Document() #gc.set_debug(gc.DEBUG_LEAK) m = [] N = 20 for i in range(N): func(doc, i) m2 = mem() m.append(m2) print 'iteration %02d/%02d: %d pages used' % (i+1, N, m2) print m for i in range(N/2,N): assert m[i] == m[9], 'looks like a memory leak in ' + func.__name__ #import objgraph #from lib import strokemap #objgraph.show_refs(doc) #sys.exit(0) #assert m2 == m0, (m2-m0, m3-m2) # note: if gc.DEBUG_LEAK is enabled above this is expected to fail assert not gc.garbage print 'no leak found'
|
e9401ce8fa849433b139b4ec9499bfad444e6a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/e9401ce8fa849433b139b4ec9499bfad444e6a21/test_mypaintlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20891,
4709,
67,
13540,
12,
644,
4672,
1172,
296,
7858,
20891,
1842,
2187,
1326,
16186,
529,
972,
866,
67,
75,
12332,
1435,
225,
997,
273,
1668,
18,
2519,
1435,
468,
13241,
18,
542,
67,
4148,
12,
13241,
18,
9394,
67,
900,
14607,
13,
225,
312,
273,
5378,
423,
273,
4200,
364,
277,
316,
1048,
12,
50,
4672,
1326,
12,
2434,
16,
277,
13,
312,
22,
273,
1663,
1435,
312,
18,
6923,
12,
81,
22,
13,
1172,
296,
16108,
738,
3103,
72,
5258,
3103,
72,
30,
738,
72,
4689,
1399,
11,
738,
261,
77,
15,
21,
16,
423,
16,
312,
22,
13,
225,
1172,
312,
364,
277,
316,
1048,
12,
50,
19,
22,
16,
50,
4672,
1815,
312,
63,
77,
65,
422,
312,
63,
29,
6487,
296,
7330,
87,
3007,
279,
3778,
20891,
316,
296,
397,
1326,
16186,
529,
972,
225,
468,
5666,
1081,
4660,
468,
2080,
2561,
1930,
384,
3250,
25248,
468,
2603,
4660,
18,
4500,
67,
9316,
12,
2434,
13,
468,
9499,
18,
8593,
12,
20,
13,
225,
468,
11231,
312,
22,
422,
312,
20,
16,
261,
81,
22,
17,
81,
20,
16,
312,
23,
17,
81,
22,
13,
225,
468,
4721,
30,
309,
8859,
18,
9394,
67,
900,
14607,
353,
3696,
5721,
333,
353,
2665,
358,
2321,
1815,
486,
8859,
18,
75,
12332,
1172,
296,
2135,
20891,
1392,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20891,
4709,
67,
13540,
12,
644,
4672,
1172,
296,
7858,
20891,
1842,
2187,
1326,
16186,
529,
972,
866,
67,
75,
12332,
1435,
225,
997,
273,
1668,
18,
2519,
1435,
468,
13241,
18,
542,
67,
4148,
12,
13241,
18,
9394,
67,
900,
14607,
13,
225,
312,
273,
5378,
423,
273,
4200,
364,
277,
316,
1048,
12,
50,
4672,
1326,
12,
2434,
16,
277,
13,
312,
22,
273,
1663,
1435,
312,
18,
6923,
12,
81,
22,
13,
1172,
296,
16108,
738,
3103,
72,
5258,
3103,
72,
30,
738,
72,
4689,
1399,
11,
738,
261,
77,
15,
21,
16,
423,
16,
312,
22,
13,
225,
1172,
312,
364,
277,
316,
1048,
12,
50,
19,
22,
16,
50,
4672,
1815,
312,
63,
2
] |
[(-5 : 6 : 1), (-4 : 5 : 1), (-3 : 4 : 1), (-2 : 3 : 1), (-3/2 : 5/2 : 1), (-1 : 1 : 0), (-1 : 2 : 1), (-2/3 : 5/3 : 1), (-1/2 : 3/2 : 1), (-1/3 : 4/3 : 1), (-1/4 : 5/4 : 1), (-1/5 : 6/5 : 1), (0 : 1 : 1), (1/6 : 5/6 : 1), (1/5 : 4/5 : 1), (1/4 : 3/4 : 1), (1/3 : 2/3 : 1), (2/5 : 3/5 : 1), (1/2 : 1/2 : 1), (3/5 : 2/5 : 1), (2/3 : 1/3 : 1), (3/4 : 1/4 : 1), (4/5 : 1/5 : 1), (5/6 : 1/6 : 1), (1 : 0 : 1), (6/5 : -1/5 : 1), (5/4 : -1/4 : 1), (4/3 : -1/3 : 1), (3/2 : -1/2 : 1), (5/3 : -2/3 : 1), (2 : -1 : 1), (5/2 : -3/2 : 1), (3 : -2 : 1), (4 : -3 : 1), (5 : -4 : 1), (6 : -5 : 1)]
|
[(-5 : 6 : 1), (-4 : 5 : 1), (-3 : 4 : 1), (-2 : 3 : 1), (-3/2 : 5/2 : 1), (-1 : 1 : 0), (-1 : 2 : 1), (-2/3 : 5/3 : 1), (-1/2 : 3/2 : 1), (-1/3 : 4/3 : 1), (-1/4 : 5/4 : 1), (-1/5 : 6/5 : 1), (0 : 1 : 1), (1/6 : 5/6 : 1), (1/5 : 4/5 : 1), (1/4 : 3/4 : 1), (1/3 : 2/3 : 1), (2/5 : 3/5 : 1), (1/2 : 1/2 : 1), (3/5 : 2/5 : 1), (2/3 : 1/3 : 1), (3/4 : 1/4 : 1), (4/5 : 1/5 : 1), (5/6 : 1/6 : 1), (1 : 0 : 1), (6/5 : -1/5 : 1), (5/4 : -1/4 : 1), (4/3 : -1/3 : 1), (3/2 : -1/2 : 1), (5/3 : -2/3 : 1), (2 : -1 : 1), (5/2 : -3/2 : 1), (3 : -2 : 1), (4 : -3 : 1), (5 : -4 : 1), (6 : -5 : 1)]
|
def enum_projective_rational_field(X,B): """ Enumerates projective, rational points on scheme X of height up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme. - ``B`` - a positive integer bound OUTPUT: - a list containing the projective points of X of height up to B, sorted. EXAMPLES:: sage: P.<X,Y,Z> = ProjectiveSpace(2,QQ) sage: C = P.subscheme([X+Y-Z]) sage: from sage.schemes.generic.rational_point import enum_projective_rational_field sage: enum_projective_rational_field(C(QQ),6) [(-5 : 6 : 1), (-4 : 5 : 1), (-3 : 4 : 1), (-2 : 3 : 1), (-3/2 : 5/2 : 1), (-1 : 1 : 0), (-1 : 2 : 1), (-2/3 : 5/3 : 1), (-1/2 : 3/2 : 1), (-1/3 : 4/3 : 1), (-1/4 : 5/4 : 1), (-1/5 : 6/5 : 1), (0 : 1 : 1), (1/6 : 5/6 : 1), (1/5 : 4/5 : 1), (1/4 : 3/4 : 1), (1/3 : 2/3 : 1), (2/5 : 3/5 : 1), (1/2 : 1/2 : 1), (3/5 : 2/5 : 1), (2/3 : 1/3 : 1), (3/4 : 1/4 : 1), (4/5 : 1/5 : 1), (5/6 : 1/6 : 1), (1 : 0 : 1), (6/5 : -1/5 : 1), (5/4 : -1/4 : 1), (4/3 : -1/3 : 1), (3/2 : -1/2 : 1), (5/3 : -2/3 : 1), (2 : -1 : 1), (5/2 : -3/2 : 1), (3 : -2 : 1), (4 : -3 : 1), (5 : -4 : 1), (6 : -5 : 1)] sage: enum_projective_rational_field(C,6) == enum_projective_rational_field(C(QQ),6) True :: sage: P3.<W,X,Y,Z> = ProjectiveSpace(3,QQ) sage: enum_projective_rational_field(P3,1) [(-1 : -1 : -1 : 1), (-1 : -1 : 0 : 1), (-1 : -1 : 1 : 0), (-1 : -1 : 1 : 1), (-1 : 0 : -1 : 1), (-1 : 0 : 0 : 1), (-1 : 0 : 1 : 0), (-1 : 0 : 1 : 1), (-1 : 1 : -1 : 1), (-1 : 1 : 0 : 0), (-1 : 1 : 0 : 1), (-1 : 1 : 1 : 0), (-1 : 1 : 1 : 1), (0 : -1 : -1 : 1), (0 : -1 : 0 : 1), (0 : -1 : 1 : 0), (0 : -1 : 1 : 1), (0 : 0 : -1 : 1), (0 : 0 : 0 : 1), (0 : 0 : 1 : 0), (0 : 0 : 1 : 1), (0 : 1 : -1 : 1), (0 : 1 : 0 : 0), (0 : 1 : 0 : 1), (0 : 1 : 1 : 0), (0 : 1 : 1 : 1), (1 : -1 : -1 : 1), (1 : -1 : 0 : 1), (1 : -1 : 1 : 0), (1 : -1 : 1 : 1), (1 : 0 : -1 : 1), (1 : 0 : 0 : 0), (1 : 0 : 0 : 1), (1 : 0 : 1 : 0), (1 : 0 : 1 : 1), (1 : 1 : -1 : 1), (1 : 1 : 0 : 0), (1 : 1 : 0 : 1), (1 : 1 : 1 : 0), (1 : 1 : 1 : 1)] ALGORITHM: We just check all possible projective points in correct dimension of projective space to see if they lie on X. AUTHORS: John Cremona and Charlie Turner (06-2010) """ if is_Scheme(X): X = X(X.base_ring()) n = X.codomain().ambient_space().ngens()-1 zero=tuple([0 for _ in range(n+1)])
|
7437114fd97818d63a9f0b766fecf0fb34f4f16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7437114fd97818d63a9f0b766fecf0fb34f4f16c/rational_point.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
1984,
688,
16,
436,
8371,
3143,
603,
4355,
1139,
434,
2072,
731,
358,
2489,
605,
18,
225,
12943,
30,
225,
300,
12176,
60,
10335,
300,
225,
279,
4355,
578,
444,
434,
8770,
436,
8371,
3143,
434,
279,
4355,
18,
300,
12176,
38,
10335,
300,
225,
279,
6895,
3571,
2489,
225,
11550,
30,
225,
300,
279,
666,
4191,
326,
1984,
688,
3143,
434,
1139,
434,
2072,
731,
358,
605,
16,
3115,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
453,
22782,
60,
16,
61,
16,
62,
34,
273,
5420,
688,
3819,
12,
22,
16,
53,
53,
13,
272,
410,
30,
385,
273,
453,
18,
1717,
9068,
3816,
60,
15,
61,
17,
62,
5717,
272,
410,
30,
628,
272,
410,
18,
87,
13268,
18,
13540,
18,
7034,
287,
67,
1153,
1930,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
272,
410,
30,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
12,
39,
12,
53,
53,
3631,
26,
13,
306,
19236,
25,
294,
1666,
294,
404,
3631,
24927,
24,
294,
1381,
294,
404,
3631,
24927,
23,
294,
1059,
294,
404,
3631,
24927,
22,
294,
890,
294,
404,
3631,
24927,
23,
19,
22,
294,
1381,
19,
22,
294,
404,
3631,
24927,
21,
294,
404,
294,
374,
3631,
24927,
21,
294,
576,
294,
404,
3631,
24927,
22,
19,
23,
294,
1381,
19,
23,
294,
404,
3631,
24927,
21,
19,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
1984,
688,
16,
436,
8371,
3143,
603,
4355,
1139,
434,
2072,
731,
358,
2489,
605,
18,
225,
12943,
30,
225,
300,
12176,
60,
10335,
300,
225,
279,
4355,
578,
444,
434,
8770,
436,
8371,
3143,
434,
279,
4355,
18,
300,
12176,
38,
10335,
300,
225,
279,
6895,
3571,
2489,
225,
11550,
30,
225,
300,
279,
666,
4191,
326,
1984,
688,
3143,
434,
1139,
434,
2072,
731,
358,
605,
16,
3115,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
453,
22782,
60,
16,
61,
16,
62,
34,
273,
5420,
688,
3819,
12,
22,
16,
53,
53,
13,
272,
410,
2
] |
self.failedDown.append( FailedItem( link, threadName, itemNode, failureDownDict ) )
|
self.failedDown.append( FailedItem( link, threadName, itemNode, failureDownDict ) )
|
def load(self): u"""take care of conversion from older versions here, then call save to store updates, then continue with loading.""" f = open(self.saveFileName, 'rb') saveFile = pickle.load(f) if 'version' not in saveFile: self.version = u'0.2.4' else: self.version = saveFile['version'] self.lastChecked = saveFile['lastChecked'] self.downloads = saveFile['downloads'] self.minScanTime = saveFile['minScanTime'] if (self.version <= u'0.2.4' and len(saveFile['failedDown']) and not isinstance(saveFile['failedDown'][0], FailedItem)): for link, threadName, itemNode, LDir in saveFile['failedDown']: failureDownDict = DownloadItemConfig(None, None, None, LDir) self.failedDown.append( FailedItem( link, threadName, itemNode, failureDownDict ) ) self.version = getVersion() self.save() else: self.failedDown = saveFile['failedDown'] del saveFile # upgrade process should be complete, set to current version self.version = getVersion()
|
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
582,
8395,
22188,
7671,
434,
4105,
628,
12156,
5244,
2674,
16,
1508,
745,
1923,
358,
1707,
4533,
16,
1508,
1324,
598,
7153,
12123,
284,
273,
1696,
12,
2890,
18,
5688,
4771,
16,
296,
6731,
6134,
1923,
812,
273,
13379,
18,
945,
12,
74,
13,
309,
296,
1589,
11,
486,
316,
1923,
812,
30,
365,
18,
1589,
273,
582,
11,
20,
18,
22,
18,
24,
11,
469,
30,
365,
18,
1589,
273,
1923,
812,
3292,
1589,
3546,
365,
18,
2722,
11454,
273,
1923,
812,
3292,
2722,
11454,
3546,
365,
18,
7813,
87,
273,
1923,
812,
3292,
7813,
87,
3546,
365,
18,
1154,
7972,
950,
273,
1923,
812,
3292,
1154,
7972,
950,
3546,
309,
261,
2890,
18,
1589,
1648,
582,
11,
20,
18,
22,
18,
24,
11,
471,
562,
12,
5688,
812,
3292,
7307,
4164,
19486,
225,
471,
486,
1549,
12,
5688,
812,
3292,
7307,
4164,
3546,
63,
20,
6487,
11175,
1180,
3719,
30,
364,
1692,
16,
2650,
461,
16,
761,
907,
16,
511,
1621,
225,
316,
1923,
812,
3292,
7307,
4164,
3546,
30,
5166,
4164,
5014,
273,
13059,
1180,
809,
12,
7036,
16,
599,
16,
599,
16,
511,
1621,
13,
365,
18,
7307,
4164,
18,
6923,
12,
11175,
1180,
12,
1692,
16,
2650,
461,
16,
761,
907,
16,
5166,
4164,
5014,
262,
262,
365,
18,
1589,
273,
8343,
1435,
365,
18,
5688,
1435,
469,
30,
365,
18,
7307,
4164,
273,
1923,
812,
3292,
7307,
4164,
3546,
1464,
1923,
812,
468,
8400,
1207,
1410,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
582,
8395,
22188,
7671,
434,
4105,
628,
12156,
5244,
2674,
16,
1508,
745,
1923,
358,
1707,
4533,
16,
1508,
1324,
598,
7153,
12123,
284,
273,
1696,
12,
2890,
18,
5688,
4771,
16,
296,
6731,
6134,
1923,
812,
273,
13379,
18,
945,
12,
74,
13,
309,
296,
1589,
11,
486,
316,
1923,
812,
30,
365,
18,
1589,
273,
582,
11,
20,
18,
22,
18,
24,
11,
469,
30,
365,
18,
1589,
273,
1923,
812,
3292,
1589,
3546,
365,
18,
2722,
11454,
273,
1923,
812,
3292,
2722,
11454,
3546,
365,
18,
7813,
87,
273,
1923,
812,
3292,
7813,
87,
3546,
365,
18,
1154,
7972,
950,
273,
1923,
812,
3292,
1154,
7972,
950,
3546,
309,
261,
2890,
2
] |
returns 'modelRoot' NOTE: returns parts of first LOD"""
|
returns 'modelRoot' NOTE: returns parts of arbitrary LOD"""
|
def getPartNames(self): """getPartNames(self): Return list of Actor part names. If not an multipart actor, returns 'modelRoot' NOTE: returns parts of first LOD""" return self.__partBundleDict.values()[0].keys()
|
f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9/Actor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13657,
1557,
12,
2890,
4672,
3536,
588,
1988,
1557,
12,
2890,
4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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13657,
1557,
12,
2890,
4672,
3536,
588,
1988,
1557,
12,
2890,
4672,
2000,
666,
434,
21142,
1087,
1257,
18,
971,
486,
392,
10263,
8327,
16,
1135,
296,
2284,
2375,
11,
5219,
30,
1135,
2140,
434,
11078,
511,
1212,
8395,
327,
365,
16186,
2680,
3405,
5014,
18,
2372,
1435,
63,
20,
8009,
2452,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
table.addElement(ecs.Tr().addElement(td)) if f.description: tr.addElement(ecs.Td().addElement(f.description)) tr.addElement(ecs.Td().addElement(f.getView())) else: td=ecs.Td().addElement(f.getView()).setAttribute('colspan', '2')
|
def handleField(self, f, tr, table): msg=self.errors.get(f) if msg: em=ecs.Em(msg).setAttribute('class', 'form_error') td=ecs.Td(em).setAttribute('colspan', '2') table.addElement(ecs.Tr().addElement(td))
|
dd3fcaae83881277e9cf6cdf57b1d04d852ed615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/dd3fcaae83881277e9cf6cdf57b1d04d852ed615/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
974,
12,
2890,
16,
284,
16,
433,
16,
1014,
4672,
1234,
33,
2890,
18,
4324,
18,
588,
12,
74,
13,
309,
1234,
30,
801,
33,
557,
87,
18,
1514,
12,
3576,
2934,
542,
1499,
2668,
1106,
2187,
296,
687,
67,
1636,
6134,
6655,
33,
557,
87,
18,
27340,
12,
351,
2934,
542,
1499,
2668,
1293,
3969,
2187,
296,
22,
6134,
1014,
18,
1289,
1046,
12,
557,
87,
18,
1070,
7675,
1289,
1046,
12,
4465,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
974,
12,
2890,
16,
284,
16,
433,
16,
1014,
4672,
1234,
33,
2890,
18,
4324,
18,
588,
12,
74,
13,
309,
1234,
30,
801,
33,
557,
87,
18,
1514,
12,
3576,
2934,
542,
1499,
2668,
1106,
2187,
296,
687,
67,
1636,
6134,
6655,
33,
557,
87,
18,
27340,
12,
351,
2934,
542,
1499,
2668,
1293,
3969,
2187,
296,
22,
6134,
1014,
18,
1289,
1046,
12,
557,
87,
18,
1070,
7675,
1289,
1046,
12,
4465,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
popen([python, '-c', cmd])
|
p = popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) p.stdout.close() p.stdin.close() p.stderr.close()
|
def run(self, job_id, func, args=[], kwdargs={}, monitor=True): ''' Run a job in a separate process. @param job_id: A unique (per server) identifier @param func: One of C{PARALLEL_FUNCS.keys()} @param args: A list of arguments to pass of C{func} @param kwdargs: A dictionary of keyword arguments to pass to C{func} @param monitor: If False launch the child process and return. Do not monitor/communicate with it. @return: (result, exception, formatted_traceback, log) where log is the combined stdout + stderr of the child process; or None if monitor is True. If a job is killed by a call to L{kill()} then result will be L{KILL_RESULT} ''' job_id = str(job_id) job_dir = os.path.join(self.tdir, job_id) if os.path.exists(job_dir): raise ValueError('Cannot run job. The job_id %s has already been used.'%job_id) os.mkdir(job_dir) job_data = os.path.join(job_dir, 'job_data.pickle') cPickle.dump((func, args, kwdargs), open(job_data, 'wb'), -1) prefix = '' if hasattr(sys, 'frameworks_dir'): fd = getattr(sys, 'frameworks_dir') prefix = 'import sys; sys.frameworks_dir = "%s"; sys.frozen = "macosx_app"; '%fd if fd not in os.environ['PATH']: os.environ['PATH'] += ':'+fd cmd = prefix + 'from libprs500.parallel import run_job; run_job(\'%s\')'%binascii.hexlify(job_data) if not monitor: popen([python, '-c', cmd]) return output = open(os.path.join(job_dir, 'output.txt'), 'wb') p = popen([python, '-c', cmd], stdout=output, stderr=output, stdin=subprocess.PIPE) p.stdin.close() while p.returncode is None: if job_id in self.kill_jobs: self._terminate(p) return self.KILL_RESULT, None, None, _('Job killed by user') time.sleep(0.1) p.poll() output.close() job_result = os.path.join(job_dir, 'job_result.pickle') if not os.path.exists(job_result): result, exception, traceback = None, ('ParallelRuntimeError', 'The worker process died unexpectedly.'), '' else: result, exception, traceback = cPickle.load(open(job_result, 'rb')) log = open(output.name, 'rb').read() return result, exception, traceback, log
|
fb805aa4ece85e6e4fde23ade4d93233e714387f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/fb805aa4ece85e6e4fde23ade4d93233e714387f/parallel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1719,
67,
350,
16,
1326,
16,
833,
22850,
6487,
417,
3623,
1968,
28793,
6438,
33,
5510,
4672,
9163,
1939,
279,
1719,
316,
279,
9004,
1207,
18,
632,
891,
1719,
67,
350,
30,
432,
3089,
261,
457,
1438,
13,
2756,
632,
891,
1326,
30,
6942,
434,
385,
95,
2778,
1013,
900,
48,
67,
42,
2124,
4596,
18,
2452,
17767,
632,
891,
833,
30,
432,
666,
434,
1775,
358,
1342,
434,
385,
95,
644,
97,
632,
891,
417,
3623,
1968,
30,
432,
3880,
434,
4932,
1775,
358,
1342,
358,
385,
95,
644,
97,
632,
891,
6438,
30,
971,
1083,
8037,
326,
1151,
1207,
471,
327,
18,
2256,
486,
6438,
19,
5702,
318,
2659,
598,
518,
18,
632,
2463,
30,
261,
2088,
16,
1520,
16,
4955,
67,
21696,
16,
613,
13,
1625,
613,
353,
326,
8224,
3909,
397,
4514,
434,
326,
1151,
1207,
31,
578,
599,
309,
6438,
353,
1053,
18,
971,
279,
1719,
353,
24859,
635,
279,
745,
358,
511,
95,
16418,
17767,
1508,
563,
903,
506,
511,
95,
47,
15125,
67,
12289,
97,
9163,
1719,
67,
350,
273,
609,
12,
4688,
67,
350,
13,
1719,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
88,
1214,
16,
1719,
67,
350,
13,
309,
1140,
18,
803,
18,
1808,
12,
4688,
67,
1214,
4672,
1002,
2068,
2668,
4515,
1086,
1719,
18,
1021,
1719,
67,
350,
738,
87,
711,
1818,
2118,
1399,
1093,
9,
4688,
67,
350,
13,
1140,
18,
26686,
12,
4688,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1719,
67,
350,
16,
1326,
16,
833,
22850,
6487,
417,
3623,
1968,
28793,
6438,
33,
5510,
4672,
9163,
1939,
279,
1719,
316,
279,
9004,
1207,
18,
632,
891,
1719,
67,
350,
30,
432,
3089,
261,
457,
1438,
13,
2756,
632,
891,
1326,
30,
6942,
434,
385,
95,
2778,
1013,
900,
48,
67,
42,
2124,
4596,
18,
2452,
17767,
632,
891,
833,
30,
432,
666,
434,
1775,
358,
1342,
434,
385,
95,
644,
97,
632,
891,
417,
3623,
1968,
30,
432,
3880,
434,
4932,
1775,
358,
1342,
358,
385,
95,
644,
97,
632,
891,
6438,
30,
971,
1083,
8037,
326,
1151,
1207,
471,
327,
18,
2256,
486,
6438,
19,
5702,
318,
2659,
598,
518,
18,
2
] |
audio.cancel() audio.speakMessage(str(self.dom.frames.item(frameNum).document.readyState))
|
if winUser.isDescendantWindow(self.NVDAObject.windowHandle,api.getFocusObject().windowHandle): audio.cancel() audio.speakMessage(str(self.dom.frames.item(frameNum).document.readyState))
|
def isDocumentComplete(self): documentComplete=True if self.dom.readyState!="complete": audio.cancel() audio.speakMessage(str(self.dom.readyState)) documentComplete=False for frameNum in range(self.dom.frames.length): try: if self.dom.frames.item(frameNum).document.readyState!="complete": audio.cancel() audio.speakMessage(str(self.dom.frames.item(frameNum).document.readyState)) documentComplete=False except: pass return documentComplete
|
2ccbd29a498b50e15a00cf571a2d239c140eb639 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/2ccbd29a498b50e15a00cf571a2d239c140eb639/MSHTML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
2519,
6322,
12,
2890,
4672,
1668,
6322,
33,
5510,
309,
365,
18,
9859,
18,
1672,
1119,
5,
1546,
6226,
6877,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
364,
2623,
2578,
316,
1048,
12,
2890,
18,
9859,
18,
10278,
18,
2469,
4672,
775,
30,
309,
365,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
5,
1546,
6226,
6877,
309,
5657,
1299,
18,
291,
29014,
3829,
12,
2890,
18,
11679,
9793,
921,
18,
5668,
3259,
16,
2425,
18,
588,
9233,
921,
7675,
5668,
3259,
4672,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
1335,
30,
1342,
327,
1668,
6322,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
2519,
6322,
12,
2890,
4672,
1668,
6322,
33,
5510,
309,
365,
18,
9859,
18,
1672,
1119,
5,
1546,
6226,
6877,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
364,
2623,
2578,
316,
1048,
12,
2890,
18,
9859,
18,
10278,
18,
2469,
4672,
775,
30,
309,
365,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
5,
1546,
6226,
6877,
309,
5657,
1299,
18,
291,
29014,
3829,
12,
2890,
18,
11679,
9793,
921,
18,
5668,
3259,
16,
2425,
18,
588,
9233,
921,
7675,
5668,
3259,
4672,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2
] |
path = self._find_file(self.main_module) fp = open(path, 'r') source = fp.read() fp.close()
|
def _regenerate(self): if self._dependencies: for name, mtime in self._dependencies.items(): path = self._find_file(name) if not path or os.path.getmtime(path) != mtime: # Just recompile everything self._dependencies = {} break else: # No changes return
|
d81888e767010d1d117a8a8eb85fb468a070a307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11828/d81888e767010d1d117a8a8eb85fb468a070a307/sass.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1574,
14681,
12,
2890,
4672,
309,
365,
6315,
11037,
30,
364,
508,
16,
13158,
316,
365,
6315,
11037,
18,
3319,
13332,
589,
273,
365,
6315,
4720,
67,
768,
12,
529,
13,
309,
486,
589,
578,
1140,
18,
803,
18,
588,
10838,
12,
803,
13,
480,
13158,
30,
468,
12526,
283,
11100,
7756,
365,
6315,
11037,
273,
2618,
898,
469,
30,
468,
2631,
3478,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1574,
14681,
12,
2890,
4672,
309,
365,
6315,
11037,
30,
364,
508,
16,
13158,
316,
365,
6315,
11037,
18,
3319,
13332,
589,
273,
365,
6315,
4720,
67,
768,
12,
529,
13,
309,
486,
589,
578,
1140,
18,
803,
18,
588,
10838,
12,
803,
13,
480,
13158,
30,
468,
12526,
283,
11100,
7756,
365,
6315,
11037,
273,
2618,
898,
469,
30,
468,
2631,
3478,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
map = socket_map
|
map = self._map
|
def del_channel(self, map=None): fd = self._fileno if map is None: map = socket_map if map.has_key(fd): #self.log_info('closing channel %d:%s' % (fd, self)) del map[fd]
|
f9ca40929241fa83c4fc7a8f2ba6c334286e5e16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f9ca40929241fa83c4fc7a8f2ba6c334286e5e16/asyncore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4327,
12,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
273,
365,
6315,
1458,
309,
852,
18,
5332,
67,
856,
12,
8313,
4672,
468,
2890,
18,
1330,
67,
1376,
2668,
19506,
1904,
738,
72,
5319,
87,
11,
738,
261,
8313,
16,
365,
3719,
1464,
852,
63,
8313,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1464,
67,
4327,
12,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
273,
365,
6315,
1458,
309,
852,
18,
5332,
67,
856,
12,
8313,
4672,
468,
2890,
18,
1330,
67,
1376,
2668,
19506,
1904,
738,
72,
5319,
87,
11,
738,
261,
8313,
16,
365,
3719,
1464,
852,
63,
8313,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addFilter('E: emacs.*el|xemacs.*el no-dependency-on locales-el')
|
addFilter('E: emacs.*-el|xemacs.*-el no-dependency-on locales-el')
|
def isFiltered(s): global _filters if not no_exception: for f in _filters: if f.search(s): return 1 return 0
|
5755bb2e69569c1758ae9432582bc9f3efd9d7cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3346/5755bb2e69569c1758ae9432582bc9f3efd9d7cd/Config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
14478,
12,
87,
4672,
2552,
389,
6348,
225,
309,
486,
1158,
67,
4064,
30,
364,
284,
316,
389,
6348,
30,
309,
284,
18,
3072,
12,
87,
4672,
327,
404,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
284,
18,
3072,
12,
87,
4672,
327,
404,
327,
374,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
|
qscanList = getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
|
def getQscanTable(opts,type): summary = readSummaryFiles() if "FG" in type: type_string = "foreground" elif "BG" in type: type_string = "background" if eval("opts.qscan_cache_" + type_string): qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type) else: try: inputPath = eval("opts." + type_string + "_input_path") qscanList = parseDirectoryList(inputPath) except: print >> sys.stderr, "cannot get input path for " + type_string print >> sys.stderr, "specify at least one of the following options:" print >> sys.stderr, "--qscan-cache, --" + type_string + "-input-path" sys.exit(1) table = summary.parseQscanList(qscanList) # perform a sanity check if not (len(table['channel_name']) == len(table['qscan_dir'])): print >> sys.stderr, "the length of channel_name does not match the length of qscan_dir in the " + type_string + " table" print >> sys.stderr, "check for data corruption in the qscan summary files in the " + type_string + " table" sys.exit(1) return table
|
6c15368b6ad90ea664a08bf234347a0623f88dd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/6c15368b6ad90ea664a08bf234347a0623f88dd1/analyseQscan.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23413,
9871,
1388,
12,
4952,
16,
723,
4672,
225,
4916,
273,
855,
4733,
2697,
1435,
225,
309,
315,
42,
43,
6,
316,
618,
30,
618,
67,
1080,
273,
315,
1405,
2915,
6,
1327,
315,
30098,
6,
316,
618,
30,
618,
67,
1080,
273,
315,
9342,
6,
225,
309,
5302,
2932,
4952,
18,
85,
9871,
67,
2493,
9548,
397,
618,
67,
1080,
4672,
1043,
9871,
682,
273,
13281,
19800,
12,
8622,
2932,
4952,
18,
85,
9871,
67,
2493,
9548,
397,
618,
67,
1080,
3631,
723,
13,
469,
30,
775,
30,
810,
743,
273,
5302,
2932,
4952,
1199,
397,
618,
67,
1080,
397,
4192,
2630,
67,
803,
7923,
1043,
9871,
682,
273,
1109,
2853,
682,
12,
2630,
743,
13,
1335,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
12892,
336,
810,
589,
364,
315,
397,
618,
67,
1080,
1172,
1671,
2589,
18,
11241,
16,
315,
2793,
1164,
622,
4520,
1245,
434,
326,
3751,
702,
2773,
1172,
1671,
2589,
18,
11241,
16,
5238,
85,
9871,
17,
2493,
16,
1493,
6,
397,
618,
67,
1080,
397,
3701,
2630,
17,
803,
6,
2589,
18,
8593,
12,
21,
13,
225,
1014,
273,
4916,
18,
2670,
53,
9871,
682,
12,
85,
9871,
682,
13,
225,
468,
3073,
279,
16267,
866,
309,
486,
261,
1897,
12,
2121,
3292,
4327,
67,
529,
19486,
422,
562,
12,
2121,
3292,
85,
9871,
67,
1214,
3546,
3719,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
5787,
769,
434,
1904,
67,
529,
1552,
486,
845,
326,
769,
434,
1043,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23413,
9871,
1388,
12,
4952,
16,
723,
4672,
225,
4916,
273,
855,
4733,
2697,
1435,
225,
309,
315,
42,
43,
6,
316,
618,
30,
618,
67,
1080,
273,
315,
1405,
2915,
6,
1327,
315,
30098,
6,
316,
618,
30,
618,
67,
1080,
273,
315,
9342,
6,
225,
309,
5302,
2932,
4952,
18,
85,
9871,
67,
2493,
9548,
397,
618,
67,
1080,
4672,
1043,
9871,
682,
273,
13281,
19800,
12,
8622,
2932,
4952,
18,
85,
9871,
67,
2493,
9548,
397,
618,
67,
1080,
3631,
723,
13,
469,
30,
775,
30,
810,
743,
273,
5302,
2932,
4952,
1199,
397,
618,
67,
1080,
397,
4192,
2630,
67,
803,
7923,
1043,
9871,
682,
273,
1109,
2853,
682,
12,
2630,
743,
13,
1335,
2
] |
except ImportError:
|
gzip.GzipFile except (ImportError, AttributeError):
|
def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9): """Open gzip compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'"
|
dfaef169347f31b7cfb56d0efdf0f53c2ff1dd24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dfaef169347f31b7cfb56d0efdf0f53c2ff1dd24/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14136,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
10331,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
18,
6181,
310,
353,
486,
2935,
18,
3536,
309,
562,
12,
3188,
13,
405,
404,
578,
1965,
486,
316,
315,
21878,
6877,
1002,
2068,
16,
315,
3188,
1297,
506,
296,
86,
11,
578,
296,
91,
4970,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14136,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
10331,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
18,
6181,
310,
353,
486,
2935,
18,
3536,
309,
562,
12,
3188,
13,
405,
404,
578,
1965,
486,
316,
315,
21878,
6877,
1002,
2068,
16,
315,
3188,
1297,
506,
296,
86,
11,
578,
296,
91,
4970,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
handleStatus_200 = lambda *args: None
|
def handleStatus_200(self): self.factory.gotHeaders(self.headers)
|
1e191aa32d1fc9299221c26afe945b16e55bccfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1e191aa32d1fc9299221c26afe945b16e55bccfc/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1482,
67,
6976,
12,
2890,
4672,
365,
18,
6848,
18,
13212,
3121,
12,
2890,
18,
2485,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'):
|
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING', ''):
|
def __call__(self, environ, start_response): if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'): # nothing for us to do, so this middleware will # be a no-op: return self.application(environ, start_response) response = GzipResponse(start_response, self.compress_level) app_iter = self.application(environ, response.gzip_start_response) try: if app_iter: response.finish_response(app_iter) finally: response.close() return None
|
b122f389283fa3b627d3c4d1bc51706be175567a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/b122f389283fa3b627d3c4d1bc51706be175567a/gzipper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
296,
17380,
11,
486,
316,
5473,
18,
588,
2668,
3693,
67,
21417,
67,
14672,
2187,
875,
4672,
468,
5083,
364,
584,
358,
741,
16,
1427,
333,
5827,
903,
468,
506,
279,
1158,
17,
556,
30,
327,
365,
18,
3685,
12,
28684,
16,
787,
67,
2740,
13,
766,
273,
31712,
1064,
12,
1937,
67,
2740,
16,
365,
18,
14706,
67,
2815,
13,
595,
67,
2165,
273,
365,
18,
3685,
12,
28684,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
296,
17380,
11,
486,
316,
5473,
18,
588,
2668,
3693,
67,
21417,
67,
14672,
2187,
875,
4672,
468,
5083,
364,
584,
358,
741,
16,
1427,
333,
5827,
903,
468,
506,
279,
1158,
17,
556,
30,
327,
365,
18,
3685,
12,
28684,
16,
787,
67,
2740,
13,
766,
273,
31712,
1064,
12,
1937,
67,
2740,
16,
365,
18,
14706,
67,
2815,
13,
595,
67,
2165,
273,
365,
18,
3685,
12,
28684,
16,
766,
18,
17380,
67,
1937,
67,
2740,
13,
775,
30,
309,
595,
67,
2165,
30,
766,
18,
13749,
67,
2740,
12,
2910,
67,
2165,
13,
3095,
30,
766,
18,
4412,
1435,
327,
599,
2,
-100
] |
for child in obj.children: if child.name not in exported_children: writeObject(scene, path, child, current_pass, write) exported_children.append(child.name)
|
writeChildren()
|
def writeObject(path, obj, current_pass, write, scene): if obj.type == 'MESH': if check_visible(obj, scene): print("write "+obj.name) mat = obj.active_material write("\nAttributeBegin\n") write('Attribute "identifier" "name" ["'+obj.name+'"]\n') write_attrs_or_opts(obj.renderman[current_pass.name].attribute_groups, write, "Attribute", "", scene) if not current_pass.shadow: for item in obj.renderman[current_pass.name].light_list: if not item.illuminate: write('Illuminate "'+item.lightname+'"') write(' 0\n') objtransform(obj, write, current_pass, scene) rmansettings = scene.renderman_settings if mat: write(writeMaterial(mat, path, current_pass, scene).replace('\\', '\\\\')) if obj.children: for child in obj.children: if child.name not in exported_children: writeObject(scene, path, child, current_pass, write) exported_children.append(child.name) if obj.data.show_double_sided: write('Sides 2\n') write('ShadingRate '+str(obj.renderman[current_pass.name].shadingrate)+'\n') export_type = obj.data.export_type meshpath = os.path.join(path, scene.renderman_settings.polydir) if export_type == 'ObjectInstance': write('ObjectInstance "'+obj.data.name+'"\n') else: export_object(obj, current_pass, meshpath, write, scene, export_type) write("AttributeEnd\n") print("Done")
|
36e719e8947fc0f79b6d39a93ad6ee903a8f98de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14285/36e719e8947fc0f79b6d39a93ad6ee903a8f98de/export_renderman.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16306,
12,
803,
16,
1081,
16,
783,
67,
5466,
16,
1045,
16,
9065,
4672,
309,
1081,
18,
723,
422,
296,
958,
2664,
4278,
309,
866,
67,
8613,
12,
2603,
16,
9065,
4672,
1172,
2932,
2626,
13773,
2603,
18,
529,
13,
225,
4834,
273,
1081,
18,
3535,
67,
20542,
225,
1045,
31458,
82,
1499,
8149,
64,
82,
7923,
1045,
2668,
1499,
315,
5644,
6,
315,
529,
6,
306,
5187,
15,
2603,
18,
529,
15,
4970,
13944,
82,
6134,
1045,
67,
7039,
67,
280,
67,
4952,
12,
2603,
18,
5902,
4728,
63,
2972,
67,
5466,
18,
529,
8009,
4589,
67,
4650,
16,
1045,
16,
315,
1499,
3113,
23453,
9065,
13,
225,
309,
486,
783,
67,
5466,
18,
19119,
30,
364,
761,
316,
1081,
18,
5902,
4728,
63,
2972,
67,
5466,
18,
529,
8009,
5099,
67,
1098,
30,
309,
486,
761,
18,
737,
379,
3322,
30,
1045,
2668,
25560,
2491,
15,
1726,
18,
5099,
529,
15,
4970,
6134,
1045,
2668,
374,
64,
82,
6134,
225,
1081,
6547,
12,
2603,
16,
1045,
16,
783,
67,
5466,
16,
9065,
13,
436,
4728,
4272,
273,
9065,
18,
5902,
4728,
67,
4272,
225,
309,
4834,
30,
1045,
12,
2626,
11790,
12,
7373,
16,
589,
16,
783,
67,
5466,
16,
9065,
2934,
2079,
2668,
1695,
2187,
25215,
3719,
225,
309,
1081,
18,
5906,
30,
1045,
4212,
1435,
225,
309,
1081,
18,
892,
18,
4500,
67,
9056,
67,
7722,
785,
30,
1045,
2668,
55,
4369,
576,
64,
82,
6134,
225,
1045,
2668,
1555,
14968,
4727,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16306,
12,
803,
16,
1081,
16,
783,
67,
5466,
16,
1045,
16,
9065,
4672,
309,
1081,
18,
723,
422,
296,
958,
2664,
4278,
309,
866,
67,
8613,
12,
2603,
16,
9065,
4672,
1172,
2932,
2626,
13773,
2603,
18,
529,
13,
225,
4834,
273,
1081,
18,
3535,
67,
20542,
225,
1045,
31458,
82,
1499,
8149,
64,
82,
7923,
1045,
2668,
1499,
315,
5644,
6,
315,
529,
6,
306,
5187,
15,
2603,
18,
529,
15,
4970,
13944,
82,
6134,
1045,
67,
7039,
67,
280,
67,
4952,
12,
2603,
18,
5902,
4728,
63,
2972,
67,
5466,
18,
529,
8009,
4589,
67,
4650,
16,
1045,
16,
315,
1499,
3113,
23453,
9065,
13,
225,
309,
486,
783,
67,
5466,
18,
19119,
30,
364,
2
] |
try: class C(bool): pass except TypeError: pass else: raise TestFailed, "bool should not be subclassable" try: int.__new__(bool, 0) except TypeError: pass else: raise TestFailed, "should not be able to create new bool instances" fo = open(TESTFN, "wb") print >> fo, False, True fo.close() fo = open(TESTFN, "rb") vereq(fo.read(), 'False True\n') fo.close() os.remove(TESTFN) vereq(str(False), 'False') vereq(str(True), 'True') vereq(repr(False), 'False') vereq(repr(True), 'True') vereq(eval(repr(False)), False) vereq(eval(repr(True)), True) vereq(int(False), 0) verisnot(int(False), False) vereq(int(True), 1) verisnot(int(True), True) vereq(+False, 0) verisnot(+False, False) vereq(-False, 0) verisnot(-False, False) vereq(abs(False), 0) verisnot(abs(False), False) vereq(+True, 1) verisnot(+True, True) vereq(-True, -1) vereq(abs(True), 1) verisnot(abs(True), True) vereq(~False, -1) vereq(~True, -2) vereq(False+2, 2) vereq(True+2, 3) vereq(2+False, 2) vereq(2+True, 3) vereq(False+False, 0) verisnot(False+False, False) vereq(False+True, 1) verisnot(False+True, True) vereq(True+False, 1) verisnot(True+False, True) vereq(True+True, 2) vereq(True-True, 0) verisnot(True-True, False) vereq(False-False, 0) verisnot(False-False, False) vereq(True-False, 1) verisnot(True-False, True) vereq(False-True, -1) vereq(True*1, 1) vereq(False*1, 0) verisnot(False*1, False) vereq(True/1, 1) verisnot(True/1, True) vereq(False/1, 0) verisnot(False/1, False) for b in False, True: for i in 0, 1, 2: vereq(b**i, int(b)**i) verisnot(b**i, bool(int(b)**i)) for a in False, True: for b in False, True: veris(a&b, bool(int(a)&int(b))) veris(a|b, bool(int(a)|int(b))) veris(a^b, bool(int(a)^int(b))) vereq(a&int(b), int(a)&int(b)) verisnot(a&int(b), bool(int(a)&int(b))) vereq(a|int(b), int(a)|int(b)) verisnot(a|int(b), bool(int(a)|int(b))) vereq(a^int(b), int(a)^int(b)) verisnot(a^int(b), bool(int(a)^int(b))) vereq(int(a)&b, int(a)&int(b)) verisnot(int(a)&b, bool(int(a)&int(b))) vereq(int(a)|b, int(a)|int(b)) verisnot(int(a)|b, bool(int(a)|int(b))) vereq(int(a)^b, int(a)^int(b)) verisnot(int(a)^b, bool(int(a)^int(b))) veris(1==1, True) veris(1==0, False) x = [1] veris(x is x, True) veris(x is not x, False) veris(1 in x, True) veris(0 in x, False) veris(1 not in x, False) veris(0 not in x, True) veris(not True, False) veris(not False, True) veris(bool(10), True) veris(bool(1), True) veris(bool(-1), True) veris(bool(0), False) veris(bool("hello"), True) veris(bool(""), False) veris(bool(), False) veris(hasattr([], "append"), True) veris(hasattr([], "wobble"), False) veris(callable(len), True) veris(callable(1), False) veris(isinstance(True, bool), True) veris(isinstance(False, bool), True) veris(isinstance(True, int), True) veris(isinstance(False, int), True) veris(isinstance(1, bool), False) veris(isinstance(0, bool), False) veris(issubclass(bool, int), True) veris(issubclass(int, bool), False) veris({}.has_key(1), False) veris({1:1}.has_key(1), True) veris("xyz".endswith("z"), True) veris("xyz".endswith("x"), False) veris("xyz0123".isalnum(), True) veris("@ veris("xyz".isalpha(), True) veris("@ veris("0123".isdigit(), True) veris("xyz".isdigit(), False) veris("xyz".islower(), True) veris("XYZ".islower(), False) veris(" ".isspace(), True) veris("XYZ".isspace(), False) veris("X".istitle(), True) veris("x".istitle(), False) veris("XYZ".isupper(), True) veris("xyz".isupper(), False) veris("xyz".startswith("x"), True) veris("xyz".startswith("z"), False) if have_unicode: veris(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True) veris(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False) veris(unicode("xyz0123", 'ascii').isalnum(), True) veris(unicode("@ veris(unicode("xyz", 'ascii').isalpha(), True) veris(unicode("@ veris(unicode("0123", 'ascii').isdecimal(), True) veris(unicode("xyz", 'ascii').isdecimal(), False) veris(unicode("0123", 'ascii').isdigit(), True) veris(unicode("xyz", 'ascii').isdigit(), False) veris(unicode("xyz", 'ascii').islower(), True) veris(unicode("XYZ", 'ascii').islower(), False) veris(unicode("0123", 'ascii').isnumeric(), True) veris(unicode("xyz", 'ascii').isnumeric(), False) veris(unicode(" ", 'ascii').isspace(), True) veris(unicode("XYZ", 'ascii').isspace(), False) veris(unicode("X", 'ascii').istitle(), True) veris(unicode("x", 'ascii').istitle(), False) veris(unicode("XYZ", 'ascii').isupper(), True) veris(unicode("xyz", 'ascii').isupper(), False) veris(unicode("xyz", 'ascii').startswith(unicode("x", 'ascii')), True) veris(unicode("xyz", 'ascii').startswith(unicode("z", 'ascii')), False) f = file(TESTFN, "w") veris(f.closed, False) f.close() veris(f.closed, True) os.remove(TESTFN) import operator veris(operator.truth(0), False) veris(operator.truth(1), True) veris(operator.isCallable(0), False) veris(operator.isCallable(len), True) veris(operator.isNumberType(None), False) veris(operator.isNumberType(0), True) veris(operator.not_(1), False) veris(operator.not_(0), True) veris(operator.isSequenceType(0), False) veris(operator.isSequenceType([]), True) veris(operator.contains([], 1), False) veris(operator.contains([1], 1), True) veris(operator.isMappingType(1), False) veris(operator.isMappingType({}), True) veris(operator.lt(0, 0), False) veris(operator.lt(0, 1), True) import marshal veris(marshal.loads(marshal.dumps(True)), True) veris(marshal.loads(marshal.dumps(False)), False) import pickle veris(pickle.loads(pickle.dumps(True)), True) veris(pickle.loads(pickle.dumps(False)), False) veris(pickle.loads(pickle.dumps(True, True)), True) veris(pickle.loads(pickle.dumps(False, True)), False) import cPickle veris(cPickle.loads(cPickle.dumps(True)), True) veris(cPickle.loads(cPickle.dumps(False)), False) veris(cPickle.loads(cPickle.dumps(True, True)), True) veris(cPickle.loads(cPickle.dumps(False, True)), False) veris(pickle.loads(cPickle.dumps(True)), True) veris(pickle.loads(cPickle.dumps(False)), False) veris(pickle.loads(cPickle.dumps(True, True)), True) veris(pickle.loads(cPickle.dumps(False, True)), False) veris(cPickle.loads(pickle.dumps(True)), True) veris(cPickle.loads(pickle.dumps(False)), False) veris(cPickle.loads(pickle.dumps(True, True)), True) veris(cPickle.loads(pickle.dumps(False, True)), False) vereq(pickle.dumps(True), "I01\n.") vereq(pickle.dumps(False), "I00\n.") vereq(cPickle.dumps(True), "I01\n.") vereq(cPickle.dumps(False), "I00\n.") vereq(pickle.dumps(True, True), "I01\n.") vereq(pickle.dumps(False, True), "I00\n.") vereq(cPickle.dumps(True, True), "I01\n.") vereq(cPickle.dumps(False, True), "I00\n.") if verbose: print "All OK"
|
class BoolTest(unittest.TestCase): def assertIs(self, a, b): self.assert_(a is b) def assertIsNot(self, a, b): self.assert_(a is not b) def test_subclass(self): try: class C(bool): pass except TypeError: pass else: self.fail("bool should not be subclassable") self.assertRaises(TypeError, int.__new__, bool, 0) def test_print(self): try: fo = open(test_support.TESTFN, "wb") print >> fo, False, True fo.close() fo = open(test_support.TESTFN, "rb") self.assertEqual(fo.read(), 'False True\n') finally: fo.close() os.remove(test_support.TESTFN) def test_repr(self): self.assertEqual(repr(False), 'False') self.assertEqual(repr(True), 'True') self.assertEqual(eval(repr(False)), False) self.assertEqual(eval(repr(True)), True) def test_str(self): self.assertEqual(str(False), 'False') self.assertEqual(str(True), 'True') def test_int(self): self.assertEqual(int(False), 0) self.assertIsNot(int(False), False) self.assertEqual(int(True), 1) self.assertIsNot(int(True), True) def test_math(self): self.assertEqual(+False, 0) self.assertIsNot(+False, False) self.assertEqual(-False, 0) self.assertIsNot(-False, False) self.assertEqual(abs(False), 0) self.assertIsNot(abs(False), False) self.assertEqual(+True, 1) self.assertIsNot(+True, True) self.assertEqual(-True, -1) self.assertEqual(abs(True), 1) self.assertIsNot(abs(True), True) self.assertEqual(~False, -1) self.assertEqual(~True, -2) self.assertEqual(False+2, 2) self.assertEqual(True+2, 3) self.assertEqual(2+False, 2) self.assertEqual(2+True, 3) self.assertEqual(False+False, 0) self.assertIsNot(False+False, False) self.assertEqual(False+True, 1) self.assertIsNot(False+True, True) self.assertEqual(True+False, 1) self.assertIsNot(True+False, True) self.assertEqual(True+True, 2) self.assertEqual(True-True, 0) self.assertIsNot(True-True, False) self.assertEqual(False-False, 0) self.assertIsNot(False-False, False) self.assertEqual(True-False, 1) self.assertIsNot(True-False, True) self.assertEqual(False-True, -1) self.assertEqual(True*1, 1) self.assertEqual(False*1, 0) self.assertIsNot(False*1, False) self.assertEqual(True/1, 1) self.assertIsNot(True/1, True) self.assertEqual(False/1, 0) self.assertIsNot(False/1, False) for b in False, True: for i in 0, 1, 2: self.assertEqual(b**i, int(b)**i) self.assertIsNot(b**i, bool(int(b)**i)) for a in False, True: for b in False, True: self.assertIs(a&b, bool(int(a)&int(b))) self.assertIs(a|b, bool(int(a)|int(b))) self.assertIs(a^b, bool(int(a)^int(b))) self.assertEqual(a&int(b), int(a)&int(b)) self.assertIsNot(a&int(b), bool(int(a)&int(b))) self.assertEqual(a|int(b), int(a)|int(b)) self.assertIsNot(a|int(b), bool(int(a)|int(b))) self.assertEqual(a^int(b), int(a)^int(b)) self.assertIsNot(a^int(b), bool(int(a)^int(b))) self.assertEqual(int(a)&b, int(a)&int(b)) self.assertIsNot(int(a)&b, bool(int(a)&int(b))) self.assertEqual(int(a)|b, int(a)|int(b)) self.assertIsNot(int(a)|b, bool(int(a)|int(b))) self.assertEqual(int(a)^b, int(a)^int(b)) self.assertIsNot(int(a)^b, bool(int(a)^int(b))) self.assertIs(1==1, True) self.assertIs(1==0, False) self.assertIs(0<1, True) self.assertIs(1<0, False) self.assertIs(0<=0, True) self.assertIs(1<=0, False) self.assertIs(1>0, True) self.assertIs(1>1, False) self.assertIs(1>=1, True) self.assertIs(0>=1, False) self.assertIs(0!=1, True) self.assertIs(0!=0, False) x = [1] self.assertIs(x is x, True) self.assertIs(x is not x, False) self.assertIs(1 in x, True) self.assertIs(0 in x, False) self.assertIs(1 not in x, False) self.assertIs(0 not in x, True) x = {1: 2} self.assertIs(x is x, True) self.assertIs(x is not x, False) self.assertIs(1 in x, True) self.assertIs(0 in x, False) self.assertIs(1 not in x, False) self.assertIs(0 not in x, True) self.assertIs(not True, False) self.assertIs(not False, True) def test_convert(self): self.assertRaises(TypeError, bool, 42, 42) self.assertIs(bool(10), True) self.assertIs(bool(1), True) self.assertIs(bool(-1), True) self.assertIs(bool(0), False) self.assertIs(bool("hello"), True) self.assertIs(bool(""), False) self.assertIs(bool(), False) def test_hasattr(self): self.assertIs(hasattr([], "append"), True) self.assertIs(hasattr([], "wobble"), False) def test_callable(self): self.assertIs(callable(len), True) self.assertIs(callable(1), False) def test_isinstance(self): self.assertIs(isinstance(True, bool), True) self.assertIs(isinstance(False, bool), True) self.assertIs(isinstance(True, int), True) self.assertIs(isinstance(False, int), True) self.assertIs(isinstance(1, bool), False) self.assertIs(isinstance(0, bool), False) def test_issubclass(self): self.assertIs(issubclass(bool, int), True) self.assertIs(issubclass(int, bool), False) def test_haskey(self): self.assertIs({}.has_key(1), False) self.assertIs({1:1}.has_key(1), True) def test_string(self): self.assertIs("xyz".endswith("z"), True) self.assertIs("xyz".endswith("x"), False) self.assertIs("xyz0123".isalnum(), True) self.assertIs("@ self.assertIs("xyz".isalpha(), True) self.assertIs("@ self.assertIs("0123".isdigit(), True) self.assertIs("xyz".isdigit(), False) self.assertIs("xyz".islower(), True) self.assertIs("XYZ".islower(), False) self.assertIs(" ".isspace(), True) self.assertIs("XYZ".isspace(), False) self.assertIs("X".istitle(), True) self.assertIs("x".istitle(), False) self.assertIs("XYZ".isupper(), True) self.assertIs("xyz".isupper(), False) self.assertIs("xyz".startswith("x"), True) self.assertIs("xyz".startswith("z"), False) if have_unicode: self.assertIs(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True) self.assertIs(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False) self.assertIs(unicode("xyz0123", 'ascii').isalnum(), True) self.assertIs(unicode("@ self.assertIs(unicode("xyz", 'ascii').isalpha(), True) self.assertIs(unicode("@ self.assertIs(unicode("0123", 'ascii').isdecimal(), True) self.assertIs(unicode("xyz", 'ascii').isdecimal(), False) self.assertIs(unicode("0123", 'ascii').isdigit(), True) self.assertIs(unicode("xyz", 'ascii').isdigit(), False) self.assertIs(unicode("xyz", 'ascii').islower(), True) self.assertIs(unicode("XYZ", 'ascii').islower(), False) self.assertIs(unicode("0123", 'ascii').isnumeric(), True) self.assertIs(unicode("xyz", 'ascii').isnumeric(), False) self.assertIs(unicode(" ", 'ascii').isspace(), True) self.assertIs(unicode("XYZ", 'ascii').isspace(), False) self.assertIs(unicode("X", 'ascii').istitle(), True) self.assertIs(unicode("x", 'ascii').istitle(), False) self.assertIs(unicode("XYZ", 'ascii').isupper(), True) self.assertIs(unicode("xyz", 'ascii').isupper(), False) self.assertIs(unicode("xyz", 'ascii').startswith(unicode("x", 'ascii')), True) self.assertIs(unicode("xyz", 'ascii').startswith(unicode("z", 'ascii')), False) def test_boolean(self): self.assertEqual(True & 1, 1) self.assert_(not isinstance(True & 1, bool)) self.assertIs(True & True, True) self.assertEqual(True | 1, 1) self.assert_(not isinstance(True | 1, bool)) self.assertIs(True | True, True) self.assertEqual(True ^ 1, 0) self.assert_(not isinstance(True ^ 1, bool)) self.assertIs(True ^ True, False) def test_fileclosed(self): try: f = file(TESTFN, "w") self.assertIs(f.closed, False) f.close() self.assertIs(f.closed, True) finally: os.remove(TESTFN) def test_operator(self): import operator self.assertIs(operator.truth(0), False) self.assertIs(operator.truth(1), True) self.assertIs(operator.isCallable(0), False) self.assertIs(operator.isCallable(len), True) self.assertIs(operator.isNumberType(None), False) self.assertIs(operator.isNumberType(0), True) self.assertIs(operator.not_(1), False) self.assertIs(operator.not_(0), True) self.assertIs(operator.isSequenceType(0), False) self.assertIs(operator.isSequenceType([]), True) self.assertIs(operator.contains([], 1), False) self.assertIs(operator.contains([1], 1), True) self.assertIs(operator.isMappingType(1), False) self.assertIs(operator.isMappingType({}), True) self.assertIs(operator.lt(0, 0), False) self.assertIs(operator.lt(0, 1), True) self.assertIs(operator.is_(True, True), True) self.assertIs(operator.is_(True, False), False) self.assertIs(operator.is_not(True, True), False) self.assertIs(operator.is_not(True, False), True) def test_marshal(self): import marshal veris(marshal.loads(marshal.dumps(True)), True) veris(marshal.loads(marshal.dumps(False)), False) def test_pickle(self): import pickle self.assertIs(pickle.loads(pickle.dumps(True)), True) self.assertIs(pickle.loads(pickle.dumps(False)), False) self.assertIs(pickle.loads(pickle.dumps(True, True)), True) self.assertIs(pickle.loads(pickle.dumps(False, True)), False) def test_cpickle(self): import cPickle self.assertIs(cPickle.loads(cPickle.dumps(True)), True) self.assertIs(cPickle.loads(cPickle.dumps(False)), False) self.assertIs(cPickle.loads(cPickle.dumps(True, True)), True) self.assertIs(cPickle.loads(cPickle.dumps(False, True)), False) def test_mixedpickle(self): import pickle, cPickle self.assertIs(pickle.loads(cPickle.dumps(True)), True) self.assertIs(pickle.loads(cPickle.dumps(False)), False) self.assertIs(pickle.loads(cPickle.dumps(True, True)), True) self.assertIs(pickle.loads(cPickle.dumps(False, True)), False) self.assertIs(cPickle.loads(pickle.dumps(True)), True) self.assertIs(cPickle.loads(pickle.dumps(False)), False) self.assertIs(cPickle.loads(pickle.dumps(True, True)), True) self.assertIs(cPickle.loads(pickle.dumps(False, True)), False) def test_picklevalues(self): import pickle, cPickle self.assertEqual(pickle.dumps(True), "I01\n.") self.assertEqual(pickle.dumps(False), "I00\n.") self.assertEqual(cPickle.dumps(True), "I01\n.") self.assertEqual(cPickle.dumps(False), "I00\n.") self.assertEqual(pickle.dumps(True, True), "I01\n.") self.assertEqual(pickle.dumps(False, True), "I00\n.") self.assertEqual(cPickle.dumps(True, True), "I01\n.") self.assertEqual(cPickle.dumps(False, True), "I00\n.") def test_main(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(BoolTest)) test_support.run_suite(suite) if __name__ == "__main__": test_main()
|
def verisnot(a, b): if a is b: raise TestFailed, "%r is %r" % (a, b)
|
dbcede5d66aee2999c16367fd4a2529fe77e91ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dbcede5d66aee2999c16367fd4a2529fe77e91ae/test_bool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1924,
291,
902,
12,
69,
16,
324,
4672,
309,
279,
353,
324,
30,
1002,
7766,
2925,
16,
2213,
86,
353,
738,
86,
6,
738,
261,
69,
16,
324,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cty.c_int, [cty.POINTER(FL_OBJECT)],
|
cty.c_int, [cty.POINTER(FL_OBJECT)],
|
def fl_set_input_xoffset(ob, xoff): """ fl_set_input_xoffset(ob, xoff) """ _fl_set_input_xoffset(ob, xoff)
|
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,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
4672,
3536,
1183,
67,
542,
67,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
13,
3536,
225,
389,
2242,
67,
542,
67,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
542,
67,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
4672,
3536,
1183,
67,
542,
67,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
13,
3536,
225,
389,
2242,
67,
542,
67,
2630,
67,
92,
3348,
12,
947,
16,
619,
3674,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print strftime("%c", localnow)
|
def processRepeated(self, findRunningEvent = True): print "ProcessRepeated" if (self.repeated != 0): now = int(time()) + 1
|
9ddb6ca949731ad0f510602b012ee0b2ea53890f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/9ddb6ca949731ad0f510602b012ee0b2ea53890f/timer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
20730,
12,
2890,
16,
1104,
7051,
1133,
273,
1053,
4672,
1172,
315,
2227,
20730,
6,
309,
261,
2890,
18,
266,
9061,
480,
374,
4672,
2037,
273,
509,
12,
957,
10756,
397,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1207,
20730,
12,
2890,
16,
1104,
7051,
1133,
273,
1053,
4672,
1172,
315,
2227,
20730,
6,
309,
261,
2890,
18,
266,
9061,
480,
374,
4672,
2037,
273,
509,
12,
957,
10756,
397,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
alpha_k, fc, gc, old_fval, old_old_fval = \
|
alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \
|
def fmin_cg(f, x0, fprime=None, args=(), avegtol=1e-5, epsilon=1.49e-8, maxiter=None, full_output=0, disp=1, retall=0): """Minimize a function with nonlinear conjugate gradient algorithm. Description: Optimize the function, f, whose gradient is given by fprime using the nonlinear conjugate gradient algorithm of Polak and Ribiere See Wright, and Nocedal 'Numerical Optimization', 1999, pg. 120-122. Inputs: f -- the Python function or method to be minimized. x0 -- the initial guess for the minimizer. fprime -- a function to compute the gradient of f. args -- extra arguments to f and fprime. avegtol -- minimum average value of gradient for stopping epsilon -- if fprime is approximated use this value for the step size (can be scalar or vector) Outputs: (xopt, {fopt, func_calls, grad_calls, warnflag}, {allvecs}) xopt -- the minimizer of f. fopt -- the value of f(xopt). func_calls -- the number of function_calls. grad_calls -- the number of gradient calls. warnflag -- an integer warning flag: 1 : 'Maximum number of iterations exceeded.' 2 : 'Gradient and/or function calls not changing' allvecs -- if retall then this vector of the iterates is returned Additional Inputs: avegtol -- the minimum occurs when fprime(xopt)==0. This specifies how close to zero the average magnitude of fprime(xopt) needs to be. maxiter -- the maximum number of iterations. full_output -- if non-zero then return fopt, func_calls, grad_calls, and warnflag in addition to xopt. disp -- print convergence message if non-zero. retall -- return a list of results at each iteration if True """ app_fprime = 0 if fprime is None: app_fprime = 1 x0 = asarray(x0) if maxiter is None: maxiter = len(x0)*200 func_calls = 0 grad_calls = 0 k = 0 N = len(x0) gtol = N*avegtol if app_fprime: gfk = apply(approx_fprime,(x0,f,epsilon)+args) myfprime = (approx_fprime,epsilon) func_calls = func_calls + len(x0) + 1 else: gfk = apply(fprime,(x0,)+args) myfprime = fprime grad_calls = grad_calls + 1 xk = x0 if retall: allvecs = [xk] sk = [2*gtol] warnflag = 0 pk = -gfk old_fval = f(xk,*args) old_old_fval = old_fval + 5000 while (Num.add.reduce(abs(gfk)) > gtol) and (k < maxiter): deltak = Num.dot(gfk,gfk) alpha_k, fc, gc, old_fval, old_old_fval = \ line_search(f,myfprime,xk,pk,gfk,old_fval,old_old_fval,args=args,c2=0.3) func_calls += fc grad_calls += gc xk = xk + alpha_k*pk if retall: allvecs.append(xk) if app_fprime: gfkp1 = apply(approx_fprime,(xk,f,epsilon)+args) func_calls = func_calls + gc + len(x0) + 1 else: gfkp1 = apply(fprime,(xk,)+args) grad_calls = grad_calls + gc + 1 yk = gfkp1 - gfk beta_k = pymax(0,Num.dot(yk,gfkp1)/deltak) pk = -gfkp1 + beta_k * pk gfk = gfkp1 k = k + 1 if disp or full_output: fval = apply(f,(xk,)+args) if warnflag == 2: if disp: print "Warning: Desired error not necessarily achieved due to precision loss" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls elif k >= maxiter: warnflag = 1 if disp: print "Warning: Maximum number of iterations has been exceeded" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls else: if disp: print "Optimization terminated successfully." print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls if full_output: retlist = xk, fval, func_calls, grad_calls, warnflag if retall: retlist += (allvecs,) else: retlist = xk if retall: retlist = (xk, allvecs) return retlist
|
18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b/optimize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
26275,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
279,
537,
75,
3490,
33,
21,
73,
17,
25,
16,
12263,
33,
21,
18,
7616,
73,
17,
28,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
598,
1661,
12379,
10550,
31529,
10292,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
1661,
12379,
10550,
31529,
10292,
4886,
434,
6730,
581,
471,
534,
495,
77,
822,
2164,
678,
4083,
16,
471,
2631,
3263,
287,
296,
2578,
10882,
19615,
1588,
2187,
404,
11984,
16,
7184,
18,
15743,
17,
22266,
18,
225,
24472,
30,
225,
284,
1493,
326,
6600,
445,
578,
707,
358,
506,
18172,
1235,
18,
619,
20,
1493,
326,
2172,
7274,
364,
326,
18172,
1824,
18,
225,
284,
16382,
1493,
279,
445,
358,
3671,
326,
10292,
434,
284,
18,
833,
1493,
2870,
1775,
358,
284,
471,
284,
16382,
18,
279,
537,
75,
3490,
1493,
5224,
8164,
460,
434,
10292,
364,
17008,
12263,
1493,
309,
284,
16382,
353,
10818,
17275,
999,
333,
460,
364,
326,
2235,
963,
261,
4169,
506,
4981,
578,
3806,
13,
225,
26168,
30,
261,
92,
3838,
16,
288,
617,
337,
16,
1326,
67,
12550,
16,
6058,
67,
12550,
16,
1894,
6420,
5779,
288,
454,
27698,
6792,
225,
619,
3838,
1493,
326,
18172,
1824,
434,
284,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1154,
67,
26275,
12,
74,
16,
619,
20,
16,
284,
16382,
33,
7036,
16,
833,
33,
9334,
279,
537,
75,
3490,
33,
21,
73,
17,
25,
16,
12263,
33,
21,
18,
7616,
73,
17,
28,
16,
25743,
33,
7036,
16,
1983,
67,
2844,
33,
20,
16,
16232,
33,
21,
16,
325,
454,
33,
20,
4672,
3536,
2930,
10153,
279,
445,
598,
1661,
12379,
10550,
31529,
10292,
4886,
18,
225,
6507,
30,
225,
12056,
10153,
326,
445,
16,
284,
16,
8272,
10292,
353,
864,
635,
284,
16382,
1450,
326,
1661,
12379,
10550,
31529,
10292,
4886,
434,
6730,
581,
471,
534,
495,
77,
822,
2164,
678,
4083,
16,
471,
2631,
3263,
287,
296,
2578,
10882,
19615,
1588,
2187,
404,
2
] |
mol = self.molecule from chunk import _nullMol better_alive_answer = mol is not None and self.key in mol.atoms and mol is not _nullMol
|
better_alive_answer = mol is not None and self.key in mol.atoms and mol is not _nullMol
|
def killed(self): #bruce 041029; totally revised by bruce 050702 """ (Public method) Report whether an atom has been killed. """ # Note: some "friend code" inlines this method for speed # (and omits the debug code). To find it, search for _Atom__killed # (the mangled version of __killed). [bruce 071018 comment] if debug_flags.atom_debug: # this cond is for speed mol = self.molecule from chunk import _nullMol better_alive_answer = mol is not None and self.key in mol.atoms and mol is not _nullMol ##e and mol is not killed??? if (not not better_alive_answer) != (not self.__killed): if debug_flags.atom_debug: #bruce 060414 re bug 1779, but it never printed for it (worth keeping in for other bugs) #bruce 071018 fixed typo of () after debug_flags.atom_debug -- could that be why it never printed it?!? print "debug: better_alive_answer is %r but (not self.__killed) is %r" % (better_alive_answer , not self.__killed) return self.__killed
|
ed409134e77b5e0b4516d0060e8f298611249859 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ed409134e77b5e0b4516d0060e8f298611249859/chem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24859,
12,
2890,
4672,
468,
2848,
3965,
16486,
2163,
5540,
31,
9997,
1230,
283,
26779,
635,
5186,
3965,
374,
3361,
27,
3103,
3536,
261,
4782,
707,
13,
8706,
2856,
392,
3179,
711,
2118,
24859,
18,
3536,
468,
3609,
30,
2690,
315,
74,
7522,
981,
6,
316,
3548,
333,
707,
364,
8632,
468,
261,
464,
8068,
1282,
326,
1198,
981,
2934,
2974,
1104,
518,
16,
1623,
364,
389,
3641,
972,
79,
13148,
468,
261,
5787,
29674,
1259,
1177,
434,
1001,
79,
13148,
2934,
306,
2848,
3965,
10934,
15168,
28,
2879,
65,
309,
1198,
67,
7133,
18,
7466,
67,
4148,
30,
468,
333,
6941,
353,
364,
8632,
7844,
67,
11462,
67,
13490,
273,
12629,
353,
486,
599,
471,
365,
18,
856,
316,
12629,
18,
14937,
471,
12629,
353,
486,
389,
2011,
49,
355,
7541,
73,
471,
12629,
353,
486,
24859,
14646,
35,
309,
261,
902,
486,
7844,
67,
11462,
67,
13490,
13,
480,
261,
902,
365,
16186,
79,
13148,
4672,
309,
1198,
67,
7133,
18,
7466,
67,
4148,
30,
468,
2848,
3965,
13026,
3028,
3461,
283,
7934,
404,
4700,
29,
16,
1496,
518,
5903,
14099,
364,
518,
261,
91,
7825,
19966,
316,
364,
1308,
22398,
13,
468,
2848,
3965,
10934,
15168,
28,
5499,
3815,
83,
434,
1832,
1839,
1198,
67,
7133,
18,
7466,
67,
4148,
1493,
3377,
716,
506,
11598,
518,
5903,
14099,
518,
35,
5,
35,
1172,
315,
4148,
30,
7844,
67,
11462,
67,
13490,
353,
738,
86,
1496,
261,
902,
365,
16186,
79,
13148,
13,
353,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24859,
12,
2890,
4672,
468,
2848,
3965,
16486,
2163,
5540,
31,
9997,
1230,
283,
26779,
635,
5186,
3965,
374,
3361,
27,
3103,
3536,
261,
4782,
707,
13,
8706,
2856,
392,
3179,
711,
2118,
24859,
18,
3536,
468,
3609,
30,
2690,
315,
74,
7522,
981,
6,
316,
3548,
333,
707,
364,
8632,
468,
261,
464,
8068,
1282,
326,
1198,
981,
2934,
2974,
1104,
518,
16,
1623,
364,
389,
3641,
972,
79,
13148,
468,
261,
5787,
29674,
1259,
1177,
434,
1001,
79,
13148,
2934,
306,
2848,
3965,
10934,
15168,
28,
2879,
65,
309,
1198,
67,
7133,
18,
7466,
67,
4148,
30,
468,
333,
6941,
353,
364,
8632,
7844,
67,
11462,
67,
13490,
273,
12629,
353,
486,
599,
471,
365,
18,
2
] |
return http.Response(stream=template('login.html', **template_dict)) else: return http.Response(stream = message("Please enable cookies and try again."))
|
return HTMLResponse(stream=template('login.html', **template_dict)) else: return HTMLResponse(stream = message("Please enable cookies and try again."))
|
def render(self, ctx): # Since public access is allowed, which lists usernames in the published # worksheets and ratings, this gives no new information way. # If published pages were disabled, then this should be disabled too. if self.problem == 'username': template_dict = {'accounts': notebook.get_accounts(), 'default_user': notebook.default_user(), 'username_error': True, 'recovery': notebook.conf()['email']} return http.Response(stream=template('login.html', **template_dict)) elif self.problem == 'password': template_dict = {'accounts': notebook.get_accounts(), 'default_user': self.username, 'password_error': True, 'recovery': notebook.conf()['email']} return http.Response(stream=template('login.html', **template_dict)) else: return http.Response(stream = message("Please enable cookies and try again."))
|
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,
468,
7897,
1071,
2006,
353,
2935,
16,
1492,
6035,
27675,
316,
326,
9487,
468,
6330,
10245,
471,
15183,
899,
16,
333,
14758,
1158,
394,
1779,
4031,
18,
468,
971,
9487,
4689,
4591,
5673,
16,
1508,
333,
1410,
506,
5673,
4885,
18,
309,
365,
18,
18968,
422,
296,
5053,
4278,
1542,
67,
1576,
273,
13666,
13739,
4278,
14718,
18,
588,
67,
13739,
9334,
296,
1886,
67,
1355,
4278,
14718,
18,
1886,
67,
1355,
9334,
296,
5053,
67,
1636,
4278,
1053,
16,
296,
23963,
4278,
14718,
18,
3923,
1435,
3292,
3652,
14579,
327,
1062,
18,
1064,
12,
3256,
33,
3202,
2668,
5819,
18,
2620,
2187,
2826,
3202,
67,
1576,
3719,
1327,
365,
18,
18968,
422,
296,
3664,
4278,
1542,
67,
1576,
273,
13666,
13739,
4278,
14718,
18,
588,
67,
13739,
9334,
296,
1886,
67,
1355,
4278,
365,
18,
5053,
16,
296,
3664,
67,
1636,
4278,
1053,
16,
296,
23963,
4278,
14718,
18,
3923,
1435,
3292,
3652,
14579,
327,
1062,
18,
1064,
12,
3256,
33,
3202,
2668,
5819,
18,
2620,
2187,
2826,
3202,
67,
1576,
3719,
469,
30,
327,
1062,
18,
1064,
12,
3256,
273,
883,
2932,
8496,
4237,
7237,
471,
775,
3382,
1199,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
7897,
1071,
2006,
353,
2935,
16,
1492,
6035,
27675,
316,
326,
9487,
468,
6330,
10245,
471,
15183,
899,
16,
333,
14758,
1158,
394,
1779,
4031,
18,
468,
971,
9487,
4689,
4591,
5673,
16,
1508,
333,
1410,
506,
5673,
4885,
18,
309,
365,
18,
18968,
422,
296,
5053,
4278,
1542,
67,
1576,
273,
13666,
13739,
4278,
14718,
18,
588,
67,
13739,
9334,
296,
1886,
67,
1355,
4278,
14718,
18,
1886,
67,
1355,
9334,
296,
5053,
67,
1636,
4278,
1053,
16,
296,
23963,
4278,
14718,
18,
3923,
1435,
3292,
3652,
14579,
327,
1062,
18,
1064,
12,
3256,
33,
3202,
2668,
5819,
18,
2620,
2187,
2826,
3202,
67,
1576,
3719,
1327,
365,
18,
18968,
2
] |
return ""
|
return "2000"
|
def GetImageWindowWidth(self, preset=WL_PRESET, multiple=WL_MULT): """ Return image window width (related to contrast). This is an integer or a floating point. If the value can't be read, return "".
|
c7ea4e643babd25a3c51ade4e2a02ac75bc59474 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/c7ea4e643babd25a3c51ade4e2a02ac75bc59474/dicom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2040,
3829,
2384,
12,
2890,
16,
12313,
33,
59,
48,
67,
3670,
4043,
16,
3229,
33,
59,
48,
67,
12845,
4672,
3536,
2000,
1316,
2742,
1835,
261,
9243,
358,
23119,
2934,
1220,
353,
392,
3571,
578,
279,
13861,
1634,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2040,
3829,
2384,
12,
2890,
16,
12313,
33,
59,
48,
67,
3670,
4043,
16,
3229,
33,
59,
48,
67,
12845,
4672,
3536,
2000,
1316,
2742,
1835,
261,
9243,
358,
23119,
2934,
1220,
353,
392,
3571,
578,
279,
13861,
1634,
18,
971,
326,
460,
848,
1404,
506,
855,
16,
327,
1408,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
group_info=group_info.replace(group_info[openindex:closeindex+1],"")
|
group_info=group_info.replace\ (group_info[openindex:closeindex+1],"")
|
def verify_sched_domain_dmesg(sched_mc_level, sched_smt_level): ''' Read sched domain information from dmesg. ''' cpu_group = list() try: dmesg_info = os.popen('dmesg').read() if dmesg_info != "": lines = dmesg_info.split('\n') for i in range(0, len(lines)): if lines[i].endswith('CPU'): groups = lines[i+1].split("groups:") group_info = groups[1] if group_info.find("(") != -1: openindex=group_info.index("(") closeindex=group_info.index(")") group_info=group_info.replace(group_info[openindex:closeindex+1],"") subgroup = group_info.split() for j in range(0, len(subgroup)): cpu_group = expand_range(subgroup[j]) status = validate_cpugrp_map(cpu_group, sched_mc_level,\ sched_smt_level) if status == 1: if is_quad_core() == 1: if int(sched_mc_level) == 0: return(0) else: return(1) else: return(1) return(0) else: return(1) except Exception, details: print "Reading dmesg failed", details sys.exit(1)
|
bde0088285dcc63685bddce865f205b2c4a8bbe0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/bde0088285dcc63685bddce865f205b2c4a8bbe0/sched_mc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
87,
2049,
67,
4308,
67,
10956,
281,
75,
12,
87,
2049,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
2720,
23964,
2461,
1779,
628,
9113,
281,
75,
18,
9163,
8326,
67,
1655,
273,
666,
1435,
775,
30,
9113,
281,
75,
67,
1376,
273,
1140,
18,
84,
3190,
2668,
10956,
281,
75,
16063,
896,
1435,
309,
9113,
281,
75,
67,
1376,
480,
1408,
30,
2362,
273,
9113,
281,
75,
67,
1376,
18,
4939,
2668,
64,
82,
6134,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
3548,
3719,
30,
309,
2362,
63,
77,
8009,
5839,
1918,
2668,
15222,
11,
4672,
3252,
273,
2362,
63,
77,
15,
21,
8009,
4939,
2932,
4650,
2773,
13,
1041,
67,
1376,
273,
3252,
63,
21,
65,
309,
1041,
67,
1376,
18,
4720,
2932,
2932,
13,
480,
300,
21,
30,
1696,
1615,
33,
1655,
67,
1376,
18,
1615,
2932,
2932,
13,
1746,
1615,
33,
1655,
67,
1376,
18,
1615,
2932,
2225,
13,
1041,
67,
1376,
33,
1655,
67,
1376,
18,
2079,
64,
261,
1655,
67,
1376,
63,
3190,
1615,
30,
4412,
1615,
15,
21,
6487,
3660,
13,
225,
720,
1655,
273,
1041,
67,
1376,
18,
4939,
1435,
364,
525,
316,
1048,
12,
20,
16,
562,
12,
1717,
1655,
3719,
30,
8326,
67,
1655,
273,
4542,
67,
3676,
12,
1717,
1655,
63,
78,
5717,
1267,
273,
1954,
67,
4057,
637,
13832,
67,
1458,
12,
11447,
67,
1655,
16,
23964,
67,
13952,
67,
2815,
17211,
23964,
67,
87,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
87,
2049,
67,
4308,
67,
10956,
281,
75,
12,
87,
2049,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
2720,
23964,
2461,
1779,
628,
9113,
281,
75,
18,
9163,
8326,
67,
1655,
273,
666,
1435,
775,
30,
9113,
281,
75,
67,
1376,
273,
1140,
18,
84,
3190,
2668,
10956,
281,
75,
16063,
896,
1435,
309,
9113,
281,
75,
67,
1376,
480,
1408,
30,
2362,
273,
9113,
281,
75,
67,
1376,
18,
4939,
2668,
64,
82,
6134,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
3548,
3719,
30,
309,
2362,
63,
77,
8009,
5839,
1918,
2668,
15222,
11,
4672,
3252,
273,
2362,
63,
77,
15,
21,
8009,
4939,
2932,
4650,
2773,
2
] |
print 'workflow creation command for workflow:',workflow,'exited with ExitCode:',exitValue else : exitValue = exitCode
|
print 'workflow creation command for workflow:',workflow,'exited with ExitCode:',exitCode else :
|
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection script - prepare local DBS query script required parameters --samples <textfile> : list of RelVal sample parameter-sets in plain text file, one sample per line, # marks comment --version <processing version> : processing version (v1, v2, ... ) --DBSURL <URL> : URL of the local DBS (http://cmsdbsprod.cern.ch/cms_dbs_prod_local_07/servlet/DBSServlet, http://cmssrv46.fnal.gov:8080/DBS126/servlet/DBSServlet) optional parameters : --lumi <number> : initial run for generation (default: 666666), set it to 777777 for high statistics samples --event <number> : initial event number --help (-h) : help --debug (-d) : debug statements """ # default try: version = os.environ.get("CMSSW_VERSION") except: print '' print 'CMSSW version cannot be determined from $CMSSW_VERSION' sys.exit(2) try: architecture = os.environ.get("SCRAM_ARCH") except: print '' print 'CMSSW architecture cannot be determined from $SCRAM_ARCH' sys.exit(2) samples = None processing_version = None initial_run = "666666" initial_event = None debug = 0 DBSURL = None try: opts, args = getopt.getopt(argv, "", ["help", "debug", "samples=", "version=", "DBSURL=", "event=", "lumi="]) except getopt.GetoptError: print main.__doc__ sys.exit(2) # check command line parameter for opt, arg in opts : if opt == "--help" : print main.__doc__ sys.exit() elif opt == "--debug" : debug = 1 elif opt == "--samples" : samples = arg elif opt == "--version" : processing_version = arg
|
47397be0ad25e900c8367cb1b05a7d6e187b915f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/47397be0ad25e900c8367cb1b05a7d6e187b915f/prepareRelValWorkflows.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
471,
576,
4880,
6075,
300,
2911,
31738,
300,
2911,
11363,
19210,
30,
1210,
2728,
300,
2911,
11889,
6786,
2728,
300,
2911,
2383,
7303,
6574,
774,
5160,
2728,
300,
2911,
4360,
2056,
424,
12039,
2728,
300,
2911,
1191,
2383,
55,
843,
2728,
225,
1931,
1472,
1493,
7319,
411,
955,
768,
34,
6647,
294,
666,
434,
4275,
3053,
3296,
1569,
17,
4424,
316,
7351,
977,
585,
16,
1245,
3296,
1534,
980,
16,
468,
13999,
2879,
1493,
1589,
411,
10632,
1177,
34,
294,
4929,
1177,
261,
90,
21,
16,
331,
22,
16,
1372,
262,
1493,
2290,
55,
1785,
411,
1785,
34,
1171,
294,
1976,
434,
326,
1191,
2383,
55,
261,
2505,
2207,
6851,
23475,
17672,
18,
14770,
18,
343,
19,
6851,
67,
23475,
67,
17672,
67,
3729,
67,
8642,
19,
23231,
19,
2290,
55,
4745,
16,
1062,
2207,
6851,
20818,
8749,
18,
4293,
287,
18,
75,
1527,
30,
3672,
3672,
19,
2290,
55,
25452,
19,
23231,
19,
2290,
55,
4745,
13,
225,
3129,
1472,
5411,
294,
1493,
80,
30865,
411,
2696,
34,
7734,
294,
2172,
1086,
364,
9377,
261,
1886,
30,
1666,
6028,
25308,
3631,
444,
518,
358,
2371,
4700,
14509,
364,
3551,
7691,
5216,
1493,
2575,
411,
2696,
34,
9079,
294,
2172,
871,
1300,
1493,
5201,
24927,
76,
13,
10792,
294,
2809,
1493,
4148,
24927,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
13,
294,
3536,
225,
2911,
1971,
3053,
13815,
87,
225,
2911,
31738,
364,
20269,
4929,
434,
4275,
3053,
5216,
225,
300,
1109,
585,
19918,
6166,
4668,
4364,
364,
404,
334,
471,
576,
4880,
6075,
300,
2911,
31738,
300,
2911,
11363,
19210,
30,
1210,
2728,
300,
2911,
11889,
6786,
2728,
300,
2911,
2383,
7303,
6574,
774,
5160,
2728,
300,
2911,
4360,
2056,
424,
12039,
2728,
300,
2911,
1191,
2383,
55,
843,
2728,
225,
1931,
1472,
1493,
7319,
411,
955,
768,
34,
6647,
294,
666,
434,
4275,
3053,
3296,
1569,
17,
4424,
316,
7351,
977,
585,
16,
1245,
3296,
1534,
980,
16,
468,
13999,
2879,
1493,
1589,
411,
10632,
1177,
34,
294,
4929,
1177,
261,
90,
21,
2
] |
lines1 = file(os.path.join(dirname(), filename), "r").readlines()
|
lines1 = file(os.path.join(dirname(), filename), "rU").readlines()
|
def test_readlines(self): """Test readlines() method of _FileObject. """ if self.sep != "|": filename = "0-REGTYPE-TEXT" self.tar.extract(filename, dirname()) lines1 = file(os.path.join(dirname(), filename), "r").readlines() lines2 = self.tar.extractfile(filename).readlines() self.assert_(lines1 == lines2, "_FileObject.readline() does not work correctly")
|
17e0b35990981886e883d198e3696cf53a8b312a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/17e0b35990981886e883d198e3696cf53a8b312a/test_tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
12,
2890,
4672,
3536,
4709,
17546,
1435,
707,
434,
389,
21471,
18,
3536,
309,
365,
18,
10814,
480,
11747,
6877,
1544,
273,
315,
20,
17,
5937,
2399,
17,
5151,
6,
365,
18,
11718,
18,
8004,
12,
3459,
16,
4283,
10756,
2362,
21,
273,
585,
12,
538,
18,
803,
18,
5701,
12,
12287,
9334,
1544,
3631,
315,
86,
57,
20387,
896,
3548,
1435,
2362,
22,
273,
365,
18,
11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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
12,
2890,
4672,
3536,
4709,
17546,
1435,
707,
434,
389,
21471,
18,
3536,
309,
365,
18,
10814,
480,
11747,
6877,
1544,
273,
315,
20,
17,
5937,
2399,
17,
5151,
6,
365,
18,
11718,
18,
8004,
12,
3459,
16,
4283,
10756,
2362,
21,
273,
585,
12,
538,
18,
803,
18,
5701,
12,
12287,
9334,
1544,
3631,
315,
86,
57,
20387,
896,
3548,
1435,
2362,
22,
273,
365,
18,
11718,
18,
8004,
768,
12,
3459,
2934,
896,
3548,
1435,
365,
18,
11231,
67,
12,
3548,
21,
422,
2362,
22,
16,
4192,
21471,
18,
896,
1369,
1435,
1552,
486,
1440,
8783,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iface)
|
iface, addr)
|
def __repr__(self): rt = "Network Netmask Gateway Iface\n" for net,msk,gw,iface,addr in self.routes: rt += "%-15s %-15s %-15s %s\n" % (ltoa(net), ltoa(msk), gw, iface) return rt
|
3189058f12fcf8b5eb134c746ce4ab9b49c84e27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/3189058f12fcf8b5eb134c746ce4ab9b49c84e27/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
8253,
273,
315,
3906,
540,
8503,
4455,
540,
11381,
540,
29808,
64,
82,
6,
364,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
316,
365,
18,
10854,
30,
8253,
1011,
2213,
17,
3600,
87,
738,
17,
3600,
87,
738,
17,
3600,
87,
738,
87,
64,
82,
6,
738,
261,
80,
12799,
12,
2758,
3631,
328,
12799,
12,
959,
79,
3631,
14662,
16,
9751,
16,
3091,
13,
327,
8253,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
8253,
273,
315,
3906,
540,
8503,
4455,
540,
11381,
540,
29808,
64,
82,
6,
364,
2901,
16,
959,
79,
16,
28500,
16,
31479,
16,
4793,
316,
365,
18,
10854,
30,
8253,
1011,
2213,
17,
3600,
87,
738,
17,
3600,
87,
738,
17,
3600,
87,
738,
87,
64,
82,
6,
738,
261,
80,
12799,
12,
2758,
3631,
328,
12799,
12,
959,
79,
3631,
14662,
16,
9751,
16,
3091,
13,
327,
8253,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""SMTP 'verify' command. Checks for address validity."""
|
"""SMTP 'verify' command -- checks for address validity."""
|
def verify(self, address): """SMTP 'verify' command. Checks for address validity.""" self.putcmd("vrfy", quoteaddr(address)) return self.getreply()
|
33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
1493,
4271,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
16825,
93,
3113,
4914,
684,
3069,
12,
2867,
3719,
327,
365,
18,
588,
10629,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
1493,
4271,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
16825,
93,
3113,
4914,
684,
3069,
12,
2867,
3719,
327,
365,
18,
588,
10629,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id)
|
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id)
|
def onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False): # Copy partner data to invoice, also the new field payment_type result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id) payment_type = False if partner_id: partner_line = self.pool.get('res.partner').browse(cr, uid, partner_id) if partner_line: if type=='in_invoice' or type=='in_refund': payment_type = partner_line.payment_type_supplier.id else: payment_type = partner_line.payment_type_customer.id if payment_type: result['value']['payment_type'] = payment_type return self.onchange_payment_type(cr, uid, ids, payment_type, partner_id, result)
|
cf9be14079eef5bcb578f22889621498f66aacda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9833/cf9be14079eef5bcb578f22889621498f66aacda/account_invoice.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,
67,
350,
33,
8381,
4672,
468,
5631,
19170,
501,
358,
9179,
16,
2546,
326,
394,
652,
5184,
67,
723,
563,
273,
2240,
12,
4631,
67,
16119,
16,
365,
2934,
265,
3427,
67,
31993,
67,
350,
12,
3353,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
16,
5184,
67,
6408,
16,
19170,
67,
10546,
67,
350,
16,
9395,
67,
350,
13,
5184,
67,
723,
273,
1083,
309,
19170,
67,
350,
30,
19170,
67,
1369,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
16063,
25731,
12,
3353,
16,
4555,
16,
19170,
67,
350,
13,
309,
19170,
67,
1369,
30,
309,
618,
18920,
267,
67,
16119,
11,
578,
618,
18920,
267,
67,
1734,
1074,
4278,
5184,
67,
723,
273,
19170,
67,
1369,
18,
9261,
67,
723,
67,
2859,
5742,
18,
350,
469,
30,
5184,
67,
723,
273,
19170,
67,
1369,
18,
9261,
67,
723,
67,
10061,
18,
350,
309,
5184,
67,
723,
30,
563,
3292,
1132,
21712,
9261,
67,
723,
3546,
273,
5184,
67,
723,
327,
365,
18,
265,
3427,
67,
9261,
67,
723,
12,
3353,
16,
4555,
16,
3258,
16,
5184,
67,
723,
16,
19170,
67,
350,
16,
563,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,
67,
350,
33,
8381,
4672,
468,
5631,
19170,
501,
358,
9179,
16,
2546,
326,
394,
652,
5184,
67,
723,
563,
273,
2240,
12,
4631,
67,
16119,
16,
365,
2934,
265,
3427,
67,
31993,
67,
350,
12,
3353,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
16,
5184,
67,
6408,
16,
19170,
67,
10546,
67,
350,
16,
9395,
67,
350,
13,
5184,
67,
723,
273,
1083,
309,
19170,
67,
350,
30,
19170,
67,
1369,
273,
365,
18,
2
] |
uo.addheader('Range', 'bytes=%s-' % rlen)
|
headers.append(('Range', 'bytes=%s-' % rlen)) uo.addheaders = headers
|
def read_file_content(self): if not self._retrieved or self.uploadByUrl: # Get file contents wikipedia.output(u'Reading file %s' % self.url) if '://' in self.url: resume = False dt = 15
|
ea1c58d03dbc2e3d9a652b98906a40612ff7b553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/ea1c58d03dbc2e3d9a652b98906a40612ff7b553/upload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
768,
67,
1745,
12,
2890,
4672,
309,
486,
365,
6315,
14580,
2155,
578,
365,
18,
6327,
858,
1489,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
768,
67,
1745,
12,
2890,
4672,
309,
486,
365,
6315,
14580,
2155,
578,
365,
18,
6327,
858,
1489,
30,
468,
968,
585,
2939,
21137,
18,
2844,
12,
89,
11,
15714,
585,
738,
87,
11,
738,
365,
18,
718,
13,
309,
18397,
316,
365,
18,
718,
30,
10774,
273,
1083,
3681,
273,
4711,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
request.user.getFormattedDateTime( wikiutil.version2timestamp(idx.mtime())) or _('N/A'))
|
request.user.getFormattedDateTime(idx.mtime()) or _('N/A'))
|
def getInfo(self): _ = self.request.getText request = self.request
|
112ce962db695889a0bc7d7130f192b2ece7a92e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/112ce962db695889a0bc7d7130f192b2ece7a92e/SystemInfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
2890,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
590,
273,
365,
18,
2293,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17142,
12,
2890,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
590,
273,
365,
18,
2293,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fo = open(test_support.TESTFN, "rb")
|
fo = open(test_support.TESTFN, "r")
|
def test_print(self): d = deque(range(200)) d.append(d) try: fo = open(test_support.TESTFN, "wb") fo.write(str(d)) fo.close() fo = open(test_support.TESTFN, "rb") self.assertEqual(fo.read(), repr(d)) finally: fo.close() os.remove(test_support.TESTFN)
|
a298c0b8a7d06b4262b35baebca62bab653bbf81 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/a298c0b8a7d06b4262b35baebca62bab653bbf81/test_deque.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1188,
12,
2890,
4672,
302,
273,
21147,
12,
3676,
12,
6976,
3719,
302,
18,
6923,
12,
72,
13,
775,
30,
18261,
273,
1696,
12,
3813,
67,
13261,
18,
16961,
19793,
16,
315,
9464,
7923,
18261,
18,
2626,
12,
701,
12,
72,
3719,
18261,
18,
4412,
1435,
18261,
273,
1696,
12,
3813,
67,
13261,
18,
16961,
19793,
16,
315,
86,
7923,
365,
18,
11231,
5812,
12,
617,
18,
896,
9334,
8480,
12,
72,
3719,
3095,
30,
18261,
18,
4412,
1435,
1140,
18,
4479,
12,
3813,
67,
13261,
18,
16961,
19793,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
13,
775,
30,
18261,
273,
1696,
12,
3813,
67,
13261,
18,
16961,
19793,
16,
315,
9464,
7923,
18261,
18,
2626,
12,
701,
12,
72,
3719,
18261,
18,
4412,
1435,
18261,
273,
1696,
12,
3813,
67,
13261,
18,
16961,
19793,
16,
315,
86,
7923,
365,
18,
11231,
5812,
12,
617,
18,
896,
9334,
8480,
12,
72,
3719,
3095,
30,
18261,
18,
4412,
1435,
1140,
18,
4479,
12,
3813,
67,
13261,
18,
16961,
19793,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
<TABLE> <TR> <TD>Username:</TD> <TD><INPUT name="username" type="text"> (Hint: any username will work)</TD> </TR> <TR> <TD>Password:</TD> <TD><INPUT name="password" type="password"> (Hint: redfoot)</TD> </TR> <TR> <TD colspan=2"><INPUT value="Login" type="submit"></TD> </TR>
|
<TABLE> <TR> <TD>Username:</TD> <TD><INPUT name="username" type="text"> (Hint: any username will work)</TD> </TR> <TR> <TD>Password:</TD> <TD><INPUT name="password" type="password"> (Hint: redfoot)</TD> </TR> <TR> <TD colspan="2"><INPUT value="Login" type="submit"></TD> </TR> </TABLE>
|
def authenticated(self, request, response): parameters = request.getParameters() session = request.getSession() if hasattr(session, 'username'): return 1 elif parameters['username']!="" and \ parameters['password']!="" and parameters['password']=="redfoot": session.username = parameters['username'] return 1 else: response.write("""
|
826e6f4dc15f8e9c7fbf4366667f8ddff5934466 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/826e6f4dc15f8e9c7fbf4366667f8ddff5934466/sample1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9370,
12,
2890,
16,
590,
16,
766,
4672,
1472,
273,
590,
18,
588,
2402,
1435,
1339,
273,
590,
18,
588,
2157,
1435,
309,
3859,
12,
3184,
16,
296,
5053,
11,
4672,
327,
404,
1327,
1472,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9370,
12,
2890,
16,
590,
16,
766,
4672,
1472,
273,
590,
18,
588,
2402,
1435,
1339,
273,
590,
18,
588,
2157,
1435,
309,
3859,
12,
3184,
16,
296,
5053,
11,
4672,
327,
404,
1327,
1472,
3292,
5053,
3546,
5,
1546,
6,
471,
521,
1472,
3292,
3664,
3546,
5,
1546,
6,
471,
1472,
3292,
3664,
3546,
31713,
1118,
10923,
6877,
1339,
18,
5053,
273,
1472,
3292,
5053,
3546,
327,
404,
469,
30,
766,
18,
2626,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else
|
else:
|
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 472) else quickfix.StringField.__init__(self, 472, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9060,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9060,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9060,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9060,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
help: Help text to show in a tooltip
|
def __init__(self, label='', default='', help='', state='normal', *flags): """Create a FlagGroup with the given label and state. label: Label for the group default: Default selection help: Help text to show in a tooltip state: 'normal' for regular Flags, 'exclusive' for mutually-exclusive Flags *flags: All additional arguments are Flag controls """ Control.__init__(self, str, '', label, '', '') self.flags = flags self.state = state
|
57d407a827a5f2348c131eec7e0fa2b279dd1577 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/57d407a827a5f2348c131eec7e0fa2b279dd1577/control.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
2218,
2187,
805,
2218,
2187,
2809,
2218,
2187,
919,
2218,
6130,
2187,
380,
7133,
4672,
3536,
1684,
279,
9960,
1114,
598,
326,
864,
1433,
471,
919,
18,
225,
1433,
30,
565,
5287,
364,
326,
1041,
805,
30,
225,
2989,
4421,
919,
30,
565,
296,
6130,
11,
364,
6736,
10104,
16,
296,
23792,
11,
364,
4318,
3452,
17,
23792,
10104,
380,
7133,
30,
282,
4826,
3312,
1775,
854,
9960,
11022,
3536,
8888,
16186,
2738,
972,
12,
2890,
16,
609,
16,
10226,
1433,
16,
10226,
28707,
365,
18,
7133,
273,
2943,
365,
18,
2019,
273,
919,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
5287,
364,
326,
1041,
805,
30,
225,
2989,
4421,
919,
30,
565,
296,
6130,
11,
364,
6736,
10104,
16,
296,
23792,
11,
364,
4318,
3452,
17,
23792,
10104,
380,
7133,
30,
282,
4826,
3312,
1775,
854,
9960,
11022,
3536,
8888,
16186,
2738,
972,
12,
2890,
16,
609,
16,
10226,
1433,
16,
10226,
28707,
365,
18,
7133,
273,
2943,
365,
18,
2019,
273,
919,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print 'WARNING: failed to parse ldd output "'+line[:-1]+'", compared "'+line[:len(executable)+1]+'" and "'+executable+':'+'"'
|
print 'WARNING: failed to parse ldd output "'+line[:-1]+'"'
|
def lddlist_libraries_freebsd(executable): """returns a list of libraries that the executable depends on """ retval = [] pd = os.popen3('ldd '+executable) line = pd[1].readline() while (len(line)>0): subl = string.split(line) if (len(subl)>0): if (subl[0] == executable+':'): pass if (len(subl)>=6 and subl[2] == 'not' and subl[4] == 'dynamic'): return retval elif (len(subl)>=4): if (os.path.exists(subl[2])): retval += [subl[2]] else: print 'ldd returns non existing library '+subl[2] else: print 'WARNING: failed to parse ldd output "'+line[:-1]+'", len subl='+str(len(subl))+'' elif (line[:len(executable)+1] == executable+':'): pass else: print 'WARNING: failed to parse ldd output "'+line[:-1]+'", compared "'+line[:len(executable)+1]+'" and "'+executable+':'+'"' line = pd[1].readline() return retval
|
82956646eb861112466c02a3eddf9793cbe3c5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6201/82956646eb861112466c02a3eddf9793cbe3c5e7/jk_lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
449,
1098,
67,
31417,
67,
9156,
2038,
72,
12,
17751,
4672,
3536,
6154,
279,
666,
434,
14732,
716,
326,
9070,
10935,
603,
3536,
5221,
273,
5378,
4863,
273,
1140,
18,
84,
3190,
23,
2668,
80,
449,
15126,
17751,
13,
980,
273,
4863,
63,
21,
8009,
896,
1369,
1435,
1323,
261,
1897,
12,
1369,
13,
34,
20,
4672,
17809,
273,
533,
18,
4939,
12,
1369,
13,
309,
261,
1897,
12,
87,
440,
13,
34,
20,
4672,
309,
261,
87,
440,
63,
20,
65,
422,
9070,
6797,
2497,
4672,
1342,
309,
261,
1897,
12,
87,
440,
13,
34,
33,
26,
471,
17809,
63,
22,
65,
422,
296,
902,
11,
471,
17809,
63,
24,
65,
422,
296,
14507,
11,
4672,
327,
5221,
1327,
261,
1897,
12,
87,
440,
13,
34,
33,
24,
4672,
309,
261,
538,
18,
803,
18,
1808,
12,
87,
440,
63,
22,
22643,
30,
5221,
1011,
306,
87,
440,
63,
22,
13563,
469,
30,
1172,
296,
80,
449,
1135,
1661,
2062,
5313,
15126,
87,
440,
63,
22,
65,
469,
30,
1172,
296,
9511,
30,
2535,
358,
1109,
328,
449,
876,
2491,
15,
1369,
10531,
17,
21,
30658,
3113,
562,
17809,
2218,
15,
701,
12,
1897,
12,
87,
440,
3719,
15,
6309,
1327,
261,
1369,
10531,
1897,
12,
17751,
27921,
21,
65,
422,
9070,
6797,
2497,
4672,
1342,
469,
30,
1172,
296,
9511,
30,
2535,
358,
1109,
328,
449,
876,
2491,
15,
1369,
10531,
17,
21,
3737,
4970,
11,
980,
273,
4863,
63,
21,
8009,
896,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
449,
1098,
67,
31417,
67,
9156,
2038,
72,
12,
17751,
4672,
3536,
6154,
279,
666,
434,
14732,
716,
326,
9070,
10935,
603,
3536,
5221,
273,
5378,
4863,
273,
1140,
18,
84,
3190,
23,
2668,
80,
449,
15126,
17751,
13,
980,
273,
4863,
63,
21,
8009,
896,
1369,
1435,
1323,
261,
1897,
12,
1369,
13,
34,
20,
4672,
17809,
273,
533,
18,
4939,
12,
1369,
13,
309,
261,
1897,
12,
87,
440,
13,
34,
20,
4672,
309,
261,
87,
440,
63,
20,
65,
422,
9070,
6797,
2497,
4672,
1342,
309,
261,
1897,
12,
87,
440,
13,
34,
33,
26,
471,
17809,
63,
22,
65,
422,
296,
902,
11,
471,
17809,
63,
24,
65,
422,
296,
14507,
11,
4672,
2
] |
d = deque(xrange(100)) d.__init__(xrange(100, 200))
|
d = deque(xrange(-5125, -5000)) d.__init__(xrange(200))
|
def test_basics(self): d = deque(xrange(100)) d.__init__(xrange(100, 200)) for i in xrange(200, 400): d.append(i) for i in reversed(xrange(-200, 0)): d.appendleft(i) self.assertEqual(list(d), range(-200, 400)) self.assertEqual(len(d), 600)
|
7a4cc637b10bc88df173b42e22a51691a4182eb8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7a4cc637b10bc88df173b42e22a51691a4182eb8/test_deque.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9157,
2102,
12,
2890,
4672,
302,
273,
21147,
12,
92,
3676,
19236,
13757,
25,
16,
300,
25,
3784,
3719,
302,
16186,
2738,
972,
12,
92,
3676,
12,
6976,
3719,
364,
277,
316,
12314,
12,
6976,
16,
7409,
4672,
302,
18,
6923,
12,
77,
13,
364,
277,
316,
9553,
12,
92,
3676,
19236,
6976,
16,
374,
3719,
30,
302,
18,
6923,
4482,
12,
77,
13,
365,
18,
11231,
5812,
12,
1098,
12,
72,
3631,
1048,
19236,
6976,
16,
7409,
3719,
365,
18,
11231,
5812,
12,
1897,
12,
72,
3631,
14707,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9157,
2102,
12,
2890,
4672,
302,
273,
21147,
12,
92,
3676,
19236,
13757,
25,
16,
300,
25,
3784,
3719,
302,
16186,
2738,
972,
12,
92,
3676,
12,
6976,
3719,
364,
277,
316,
12314,
12,
6976,
16,
7409,
4672,
302,
18,
6923,
12,
77,
13,
364,
277,
316,
9553,
12,
92,
3676,
19236,
6976,
16,
374,
3719,
30,
302,
18,
6923,
4482,
12,
77,
13,
365,
18,
11231,
5812,
12,
1098,
12,
72,
3631,
1048,
19236,
6976,
16,
7409,
3719,
365,
18,
11231,
5812,
12,
1897,
12,
72,
3631,
14707,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.PropertyStepSize.value = 1
|
self.Property.value = 0
|
def __init__(self): self.always_evaluate(True) self.last_trigger_time = TimeIn.value self.PropertyInc.value = False self.PropertyDec.value = False self.Enable.value = False self.PropertyStepSize.value = 1 self.PropertyMin.value = 0 self.PropertyMax.value = 100000 self.TriggerTimeDelta.value = 0.05
|
06bc2489bc34aff885b81bb01041ee2bcf45f8b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8421/06bc2489bc34aff885b81bb01041ee2bcf45f8b1/_property_modifier.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
17737,
67,
21024,
12,
5510,
13,
365,
18,
2722,
67,
10668,
67,
957,
273,
2647,
382,
18,
1132,
225,
365,
18,
1396,
14559,
18,
1132,
273,
1083,
365,
18,
1396,
1799,
18,
1132,
273,
1083,
225,
365,
18,
8317,
18,
1132,
273,
1083,
225,
365,
18,
1396,
18,
1132,
273,
374,
365,
18,
1396,
2930,
18,
1132,
273,
374,
365,
18,
1396,
2747,
18,
1132,
273,
25259,
365,
18,
6518,
950,
9242,
18,
1132,
273,
374,
18,
6260,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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17737,
67,
21024,
12,
5510,
13,
365,
18,
2722,
67,
10668,
67,
957,
273,
2647,
382,
18,
1132,
225,
365,
18,
1396,
14559,
18,
1132,
273,
1083,
365,
18,
1396,
1799,
18,
1132,
273,
1083,
225,
365,
18,
8317,
18,
1132,
273,
1083,
225,
365,
18,
1396,
18,
1132,
273,
374,
365,
18,
1396,
2930,
18,
1132,
273,
374,
365,
18,
1396,
2747,
18,
1132,
273,
25259,
365,
18,
6518,
950,
9242,
18,
1132,
273,
374,
18,
6260,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class ChannelContextMenu(FixedMenu):
|
class ChannelContextMenu(Screen):
|
def cancelClick(self): self.close(False)
|
d4fc7c9fea8e8a52d607596ab4d1027a82199de3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/d4fc7c9fea8e8a52d607596ab4d1027a82199de3/ChannelSelection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
6563,
12,
2890,
4672,
365,
18,
4412,
12,
8381,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
6563,
12,
2890,
4672,
365,
18,
4412,
12,
8381,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
W = Q + (k*2*m)*P
|
W = Q + k*twomP
|
def order(self, disable_warning=False): """ Return the order of this point on the elliptic curve. If the point has infinite order, returns 0.
|
c349c1cda66ccdb73d8c3a4b57eceb087747edcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c349c1cda66ccdb73d8c3a4b57eceb087747edcd/ell_point.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
16,
4056,
67,
8551,
33,
8381,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
16,
4056,
67,
8551,
33,
8381,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
del names["__builtins__"]
|
if names.has_key("__builtins__"): del names["__builtins__"]
|
def check_all(modname): names = {} try: exec "import %s" % modname in names except ImportError: # silent fail here seems the best route since some modules # may not be available in all environments return verify(hasattr(sys.modules[modname], "__all__"), "%s has no __all__ attribute" % modname) names = {} exec "from %s import *" % modname in names del names["__builtins__"] keys = names.keys() keys.sort() all = list(sys.modules[modname].__all__) # in case it's a tuple all.sort() verify(keys==all, "%s != %s" % (keys, all))
|
cc012e92b21fbd8476bbaa8d4aa91b7e78111182 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cc012e92b21fbd8476bbaa8d4aa91b7e78111182/test___all__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
454,
12,
1711,
529,
4672,
1257,
273,
2618,
775,
30,
1196,
315,
5666,
738,
87,
6,
738,
16037,
316,
1257,
1335,
11308,
30,
468,
10404,
2321,
2674,
12001,
326,
3796,
1946,
3241,
2690,
4381,
468,
2026,
486,
506,
2319,
316,
777,
15900,
327,
3929,
12,
5332,
1747,
12,
9499,
18,
6400,
63,
1711,
529,
6487,
10425,
454,
14437,
3631,
2213,
87,
711,
1158,
1001,
454,
972,
1566,
6,
738,
16037,
13,
1257,
273,
2618,
1196,
315,
2080,
738,
87,
1930,
380,
6,
738,
16037,
316,
1257,
309,
1257,
18,
5332,
67,
856,
2932,
972,
12406,
2679,
14437,
4672,
1464,
1257,
9614,
972,
12406,
2679,
972,
11929,
1311,
273,
1257,
18,
2452,
1435,
1311,
18,
3804,
1435,
777,
273,
666,
12,
9499,
18,
6400,
63,
1711,
529,
8009,
972,
454,
972,
13,
468,
316,
648,
518,
1807,
279,
3193,
777,
18,
3804,
1435,
3929,
12,
2452,
631,
454,
16,
2213,
87,
480,
738,
87,
6,
738,
261,
2452,
16,
777,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
454,
12,
1711,
529,
4672,
1257,
273,
2618,
775,
30,
1196,
315,
5666,
738,
87,
6,
738,
16037,
316,
1257,
1335,
11308,
30,
468,
10404,
2321,
2674,
12001,
326,
3796,
1946,
3241,
2690,
4381,
468,
2026,
486,
506,
2319,
316,
777,
15900,
327,
3929,
12,
5332,
1747,
12,
9499,
18,
6400,
63,
1711,
529,
6487,
10425,
454,
14437,
3631,
2213,
87,
711,
1158,
1001,
454,
972,
1566,
6,
738,
16037,
13,
1257,
273,
2618,
1196,
315,
2080,
738,
87,
1930,
380,
6,
738,
16037,
316,
1257,
309,
1257,
18,
5332,
67,
856,
2932,
972,
12406,
2679,
14437,
4672,
1464,
1257,
9614,
972,
12406,
2679,
972,
11929,
1311,
273,
1257,
18,
2452,
1435,
1311,
18,
3804,
1435,
2
] |
feat_read = gdaltest.sl_lyr.GetNextFeature()
|
feat_read = sql_lyr.GetNextFeature()
|
dst_feat = ogr.Feature( feature_def = gdaltest.sl_lyr.GetLayerDefn() )
|
d6228cd064850d95937fb5ab368af77da084a02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/d6228cd064850d95937fb5ab368af77da084a02d/ogr_sqlite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3046,
67,
29735,
273,
320,
3197,
18,
4595,
12,
2572,
67,
536,
273,
15551,
2390,
395,
18,
2069,
67,
715,
86,
18,
967,
4576,
3262,
82,
1435,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return NOT_FOUND_MSG % (next_part, wsgilib.construct_url(environ))
|
return NOT_FOUND_MSG % (next_part, request.construct_url(environ))
|
def debug(self, environ, start_response): assert request.path_info_pop(environ) == '_debug' next_part = request.path_info_pop(environ) method = getattr(self, next_part, None) if not method: start_response('404 Not Found', [('content-type', 'text/plain')]) return NOT_FOUND_MSG % (next_part, wsgilib.construct_url(environ)) if not getattr(method, 'exposed', False): start_response('403 Forbidden', [('content-type', 'text/plain')]) return FORBIDDEN_MSG % next_part return method(environ, start_response)
|
bfceb7aa266724f818b7696526816d18411f0d39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12946/bfceb7aa266724f818b7696526816d18411f0d39/middleware.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
1815,
590,
18,
803,
67,
1376,
67,
5120,
12,
28684,
13,
422,
2070,
4148,
11,
1024,
67,
2680,
273,
590,
18,
803,
67,
1376,
67,
5120,
12,
28684,
13,
707,
273,
3869,
12,
2890,
16,
1024,
67,
2680,
16,
599,
13,
309,
486,
707,
30,
787,
67,
2740,
2668,
11746,
2288,
10750,
2187,
306,
2668,
1745,
17,
723,
2187,
296,
955,
19,
7446,
6134,
5717,
327,
4269,
67,
9294,
67,
11210,
738,
261,
4285,
67,
2680,
16,
590,
18,
10062,
67,
718,
12,
28684,
3719,
309,
486,
3869,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
1815,
590,
18,
803,
67,
1376,
67,
5120,
12,
28684,
13,
422,
2070,
4148,
11,
1024,
67,
2680,
273,
590,
18,
803,
67,
1376,
67,
5120,
12,
28684,
13,
707,
273,
3869,
12,
2890,
16,
1024,
67,
2680,
16,
599,
13,
309,
486,
707,
30,
787,
67,
2740,
2668,
11746,
2288,
10750,
2187,
306,
2668,
1745,
17,
723,
2187,
296,
955,
19,
7446,
6134,
5717,
327,
4269,
67,
9294,
67,
11210,
738,
261,
4285,
67,
2680,
16,
590,
18,
10062,
67,
718,
12,
28684,
3719,
309,
486,
3869,
12,
2039,
16,
296,
338,
7423,
2187,
1083,
4672,
787,
67,
2740,
2668,
24,
4630,
20204,
2187,
306,
2668,
1745,
2
] |
adb_putcat2 = cfunc('tcadbputcat2', libtc, c_bool, ('adb', c_void_p, 1), ('kstr', c_char_p, 1), ('vstr', c_char_p, 1))
|
adb_putcat2 = cfunc_fast('tcadbputcat2', libtc, c_bool, ('adb', c_void_p, 1), ('kstr', c_char_p, 1), ('vstr', c_char_p, 1))
|
def __del__(self): if self and libtc: libtc.tcmapdel(self)
|
d933a88c35eaafd1e33ecc67d5d79a71d19a200b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4926/d933a88c35eaafd1e33ecc67d5d79a71d19a200b/tc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
471,
2561,
5111,
30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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
471,
2561,
5111,
30,
2561,
5111,
18,
5111,
1458,
3771,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except util.SSL.WantReadError: return 0 finally: if cancel: cancel.cancel()
|
raise except util.SSL.WantWriteError: return 0 except util.SSL.WantReadError: return 0
|
def socket_send(descriptor, data): timeout = descriptor.gettimeout() if timeout: cancel = exc_after(timeout, TimeoutError) else: cancel = None try: try: return descriptor.send(data) except socket.error, e: if e[0] == errno.EWOULDBLOCK or e[0] == errno.ENOTCONN: return 0 raise except util.SSL.WantWriteError: return 0 except util.SSL.WantReadError: return 0 finally: if cancel: cancel.cancel()
|
33ccd249ce6338c6350d1a12be9b41ce6591de83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/33ccd249ce6338c6350d1a12be9b41ce6591de83/greenio.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
67,
4661,
12,
12628,
16,
501,
4672,
2021,
273,
4950,
18,
588,
4538,
1435,
309,
2021,
30,
3755,
273,
3533,
67,
5205,
12,
4538,
16,
28758,
13,
469,
30,
3755,
273,
599,
775,
30,
775,
30,
327,
4950,
18,
4661,
12,
892,
13,
1335,
2987,
18,
1636,
16,
425,
30,
309,
425,
63,
20,
65,
422,
8402,
18,
7245,
51,
1506,
2290,
6589,
578,
425,
63,
20,
65,
422,
8402,
18,
1157,
1974,
27733,
30,
327,
374,
1002,
1335,
1709,
18,
6745,
18,
59,
970,
3067,
668,
30,
327,
374,
1002,
1335,
1709,
18,
6745,
18,
59,
970,
3067,
668,
30,
327,
374,
1335,
1709,
18,
6745,
18,
59,
970,
1994,
668,
30,
327,
374,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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4661,
12,
892,
13,
1335,
2987,
18,
1636,
16,
425,
30,
309,
425,
63,
20,
65,
422,
8402,
18,
7245,
51,
1506,
2290,
6589,
578,
425,
63,
20,
65,
422,
8402,
18,
1157,
1974,
27733,
30,
327,
374,
1002,
1335,
1709,
18,
6745,
18,
59,
970,
3067,
668,
30,
327,
374,
1002,
1335,
1709,
18,
6745,
18,
59,
970,
3067,
668,
30,
327,
374,
1335,
1709,
18,
6745,
18,
59,
970,
1994,
668,
30,
327,
374,
282,
2,
-100
] |
self.myRequests[-1].append(self.raw_requestline)
|
self.myRequests[self.reqidx].append(self.raw_requestline)
|
def handle_one_request(self): result = self.parentClass.handle_one_request(self) self.myRequests[-1].append(self.raw_requestline) return result
|
9a96ed69551dade73e041c5d7528afed89a0c37e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/9a96ed69551dade73e041c5d7528afed89a0c37e/test_xmlrpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,
18,
1899,
67,
2293,
1369,
13,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,
18,
1899,
67,
2293,
1369,
13,
327,
563,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: ignore = posix.fdopen except: raise AttributeError, 'dup() method unavailable'
|
if not hasattr(posix, 'fdopen'): raise AttributeError, 'dup() method unavailable'
|
def dup(self): import posix
|
dcd465307021ea32e342ce955e99e3bb4a129848 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dcd465307021ea32e342ce955e99e3bb4a129848/posixfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9417,
12,
2890,
4672,
1930,
16366,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9417,
12,
2890,
4672,
1930,
16366,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
% (name, name, attrs, ['','CHECKED'][isChecked], value)
|
% (name, offValue, name, attrs, ['','CHECKED'][isChecked], onValue)
|
def checkbox(name, isChecked, value=1, attrs=''): ''' An html checkbox. Also adds a hidden __expect__ variable since the browser doesn\'t often send unchecked checkboxes. ''' return '<input type="hidden" name="__expect__" value="%s;0">' \ '<input type="checkbox" name="%s" %s %s value="%s">' \ % (name, name, attrs, ['','CHECKED'][isChecked], value)
|
a412a333f940f97e784c0081dbb8548de154a52c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/a412a333f940f97e784c0081dbb8548de154a52c/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11832,
12,
529,
16,
31041,
16,
460,
33,
21,
16,
3422,
2218,
11,
4672,
9163,
1922,
1729,
11832,
18,
8080,
4831,
279,
5949,
1001,
12339,
972,
2190,
3241,
326,
4748,
3302,
3730,
88,
16337,
1366,
22893,
11832,
281,
18,
9163,
327,
2368,
2630,
618,
1546,
6345,
6,
508,
1546,
972,
12339,
14437,
460,
11613,
87,
31,
20,
7918,
521,
2368,
2630,
618,
1546,
12017,
6,
508,
11613,
87,
6,
738,
87,
738,
87,
460,
11613,
87,
7918,
521,
738,
261,
529,
16,
3397,
620,
16,
508,
16,
3422,
16,
10228,
17023,
10687,
2056,
3546,
63,
291,
11454,
6487,
603,
620,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11832,
12,
529,
16,
31041,
16,
460,
33,
21,
16,
3422,
2218,
11,
4672,
9163,
1922,
1729,
11832,
18,
8080,
4831,
279,
5949,
1001,
12339,
972,
2190,
3241,
326,
4748,
3302,
3730,
88,
16337,
1366,
22893,
11832,
281,
18,
9163,
327,
2368,
2630,
618,
1546,
6345,
6,
508,
1546,
972,
12339,
14437,
460,
11613,
87,
31,
20,
7918,
521,
2368,
2630,
618,
1546,
12017,
6,
508,
11613,
87,
6,
738,
87,
738,
87,
460,
11613,
87,
7918,
521,
738,
261,
529,
16,
3397,
620,
16,
508,
16,
3422,
16,
10228,
17023,
10687,
2056,
3546,
63,
291,
11454,
6487,
603,
620,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result[campaign.id]=str(quantity) return result _columns = { 'code1' : fields.function(_campaign_code,string='Code',type="char",size=64,method=True,readonly=True), 'offer_id' : fields.many2one('dm.offer', 'Offer',domain=[('state','in',['ready','open']),('type','in',['new','standart','rewrite'])], required=True,
|
result[campaign.id] = str(quantity) return result _columns = { 'code1': fields.function(_campaign_code, string='Code', type="char", size=64, method=True, readonly=True), 'offer_id': fields.many2one('dm.offer', 'Offer', domain=[('state', 'in', ['ready', 'open']), ('type', 'in', ['new', 'standart', 'rewrite'])], required=True,
|
def _quantity_usable_total(self, cr, uid, ids, name, args, context={}): result={} campaigns = self.browse(cr,uid,ids) for campaign in campaigns: quantity=0 numeric=True for propo in campaign.proposition_ids: if propo.quantity_usable.isdigit(): quantity += int(propo.quantity_usable) else: result[campaign.id]='Check Segments' numeric=False break if numeric: result[campaign.id]=str(quantity) return result
|
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16172,
67,
16665,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
12938,
8965,
87,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
364,
8965,
316,
8965,
87,
30,
10457,
33,
20,
6389,
33,
5510,
364,
450,
1631,
316,
8965,
18,
685,
3276,
67,
2232,
30,
309,
450,
1631,
18,
16172,
67,
16665,
18,
291,
11052,
13332,
10457,
1011,
509,
12,
685,
1631,
18,
16172,
67,
16665,
13,
469,
30,
563,
63,
14608,
18,
350,
65,
2218,
1564,
348,
27501,
11,
6389,
33,
8381,
898,
309,
6389,
30,
563,
63,
14608,
18,
350,
65,
33,
701,
12,
16172,
13,
327,
563,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16172,
67,
16665,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
12938,
8965,
87,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
364,
8965,
316,
8965,
87,
30,
10457,
33,
20,
6389,
33,
5510,
364,
450,
1631,
316,
8965,
18,
685,
3276,
67,
2232,
30,
309,
450,
1631,
18,
16172,
67,
16665,
18,
291,
11052,
13332,
10457,
1011,
509,
12,
685,
1631,
18,
16172,
67,
16665,
13,
469,
30,
563,
63,
14608,
18,
350,
65,
2218,
1564,
348,
27501,
11,
6389,
33,
8381,
898,
309,
6389,
30,
563,
63,
14608,
18,
350,
65,
33,
701,
12,
16172,
13,
327,
563,
2,
-100,
-100,
-100
] |
repack_info): super(RepackWin32, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, repack_info) self.platform = "win32"
|
platform_formatted, repack_info): super(RepackWin, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, platform_formatted, repack_info)
|
def __init__(self, build, partner_dir, build_dir, working_dir, final_dir, repack_info): super(RepackWin32, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, repack_info) self.platform = "win32"
|
8345bd04fc746d831846644290606cce5844b5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/8345bd04fc746d831846644290606cce5844b5a8/partner-repacks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
727,
67,
1214,
16,
2071,
484,
67,
1376,
4672,
2240,
12,
426,
2920,
18049,
1578,
16,
365,
2934,
972,
2738,
972,
12,
3510,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
727,
67,
1214,
16,
2071,
484,
67,
1376,
4672,
2240,
12,
426,
2920,
18049,
1578,
16,
365,
2934,
972,
2738,
972,
12,
3510,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
727,
67,
1214,
16,
2071,
484,
67,
1376,
13,
365,
18,
9898,
273,
315,
8082,
1578,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(config.REC_CMD, string.split(prog.channel_id)[0], duration, title)
|
(config.REC_CMD, prog.tunerid, duration, title)
|
def checkToRecord(): rec_cmd = None scheduledRecordings = getScheduledRecordings() progs = scheduledRecordings.getProgramList() now = time.time() for prog in progs.values(): print 'checkToRecord: progloop = %s' % prog try: recording = prog.isRecording except: recording = FALSE if prog.start <= now and prog.stop >= now and recording == FALSE: # just add to the 'we want to record this' list # then end the loop, and figure out which has priority, # remember to take into account the full length of the shows # and how much they overlap, or chop one short # yeah thats a good idea but make sure its not like 5 mins duration = int(prog.stop - now - 10) if duration < 60: return FALSE title = '%s--%s' % (prog.title, time.strftime('%Y-%m-%d-%H%M', time.localtime(prog.start))) rec_cmd = '%s %s %s "%s"' % \ (config.REC_CMD, string.split(prog.channel_id)[0], duration, title) print 'REC_CMD: %s' % rec_cmd prog.isRecording = TRUE scheduledRecordings.setProgramList(progs) saveScheduledRecordings(scheduledRecordings) return rec_cmd
|
1472741f9fde310060e5bbb1631fd592d214b145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1472741f9fde310060e5bbb1631fd592d214b145/rec_interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
774,
2115,
13332,
1950,
67,
4172,
273,
599,
9755,
2115,
899,
273,
30879,
72,
2115,
899,
1435,
225,
450,
564,
273,
9755,
2115,
899,
18,
588,
9459,
682,
1435,
225,
2037,
273,
813,
18,
957,
1435,
364,
11243,
316,
450,
564,
18,
2372,
13332,
1172,
296,
1893,
774,
2115,
30,
11243,
6498,
273,
738,
87,
11,
738,
11243,
225,
775,
30,
14949,
273,
11243,
18,
291,
21037,
1335,
30,
14949,
273,
4934,
225,
309,
11243,
18,
1937,
1648,
2037,
471,
11243,
18,
5681,
1545,
2037,
471,
14949,
422,
4934,
30,
468,
2537,
527,
358,
326,
296,
1814,
2545,
358,
1409,
333,
11,
666,
468,
1508,
679,
326,
2798,
16,
471,
7837,
596,
1492,
711,
4394,
16,
468,
11586,
358,
4862,
1368,
2236,
326,
1983,
769,
434,
326,
17975,
468,
471,
3661,
9816,
2898,
7227,
16,
578,
31258,
1245,
3025,
468,
677,
73,
9795,
716,
87,
279,
7494,
21463,
1496,
1221,
3071,
2097,
486,
3007,
1381,
26381,
225,
3734,
273,
509,
12,
14654,
18,
5681,
300,
2037,
300,
1728,
13,
309,
3734,
411,
4752,
30,
327,
4934,
2077,
273,
1995,
87,
413,
9,
87,
11,
738,
261,
14654,
18,
2649,
16,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6456,
44,
9,
49,
2187,
813,
18,
3729,
957,
12,
14654,
18,
1937,
20349,
1950,
67,
4172,
273,
1995,
87,
738,
87,
738,
87,
2213,
87,
5187,
738,
521,
261,
1425,
18,
862,
39,
67,
19473,
16,
11243,
18,
88,
29640,
350,
16,
3734,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
774,
2115,
13332,
1950,
67,
4172,
273,
599,
9755,
2115,
899,
273,
30879,
72,
2115,
899,
1435,
225,
450,
564,
273,
9755,
2115,
899,
18,
588,
9459,
682,
1435,
225,
2037,
273,
813,
18,
957,
1435,
364,
11243,
316,
450,
564,
18,
2372,
13332,
1172,
296,
1893,
774,
2115,
30,
11243,
6498,
273,
738,
87,
11,
738,
11243,
225,
775,
30,
14949,
273,
11243,
18,
291,
21037,
1335,
30,
14949,
273,
4934,
225,
309,
11243,
18,
1937,
1648,
2037,
471,
11243,
18,
5681,
1545,
2037,
471,
14949,
422,
4934,
30,
468,
2537,
527,
358,
326,
296,
1814,
2545,
358,
1409,
333,
11,
666,
468,
1508,
679,
326,
2798,
16,
471,
7837,
596,
1492,
711,
4394,
16,
468,
2
] |
for ca in ca_info: self.enzyme_record.CA.append(ca[2:].strip())
|
self.enzyme_record.CA = string.join([self.enzyme_record.CA,ca_info[2:].strip()],'')
|
def catalytic_activity(self, ca_info): for ca in ca_info: self.enzyme_record.CA.append(ca[2:].strip())
|
34aea942e95a30dff9ff864abe0f09eb6b8b5849 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/34aea942e95a30dff9ff864abe0f09eb6b8b5849/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
3145,
93,
88,
335,
67,
9653,
12,
2890,
16,
3474,
67,
1376,
4672,
364,
3474,
316,
3474,
67,
1376,
30,
365,
18,
275,
94,
2942,
73,
67,
3366,
18,
3587,
18,
6923,
12,
5353,
63,
22,
30,
8009,
6406,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
3145,
93,
88,
335,
67,
9653,
12,
2890,
16,
3474,
67,
1376,
4672,
364,
3474,
316,
3474,
67,
1376,
30,
365,
18,
275,
94,
2942,
73,
67,
3366,
18,
3587,
18,
6923,
12,
5353,
63,
22,
30,
8009,
6406,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not self.literal_block:
|
if self.literal_block or self.literal: pass else:
|
def encode(self, text): """ Encode special characters in `text` & return. # $ % & ~ _ ^ \ { } Escaping with a backslash does not help with backslashes, ~ and ^.
|
c045734350487e7f8b5a345ef15bf977ebd4a889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/c045734350487e7f8b5a345ef15bf977ebd4a889/latex2e.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
977,
4672,
3536,
6240,
4582,
3949,
316,
1375,
955,
68,
473,
327,
18,
468,
271,
738,
473,
4871,
389,
3602,
521,
288,
289,
512,
1017,
24447,
598,
279,
23253,
1552,
486,
2809,
598,
1473,
13675,
16,
4871,
471,
3602,
18,
2,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
977,
4672,
3536,
6240,
4582,
3949,
316,
1375,
955,
68,
473,
327,
18,
468,
271,
738,
473,
4871,
389,
3602,
521,
288,
289,
512,
1017,
24447,
598,
279,
23253,
1552,
486,
2809,
598,
1473,
13675,
16,
4871,
471,
3602,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
CopyFile(plugindir + "nppanda3d.dmg", plugfile)
|
CopyFile(plugindir + os.path.basename(plugfile), plugfile)
|
def MakeRuntime(): # Delete the current. if (os.path.exists(GetOutputDir()+"/stage")): shutil.rmtree(GetOutputDir()+"/stage") if (os.path.exists(GetOutputDir()+"/rlib")): shutil.rmtree(GetOutputDir()+"/rlib") # Create a couple of directories. coreapidir = GetOutputDir()+"/stage/coreapi/"+RUNTIME_PLATFORM+"/"+RUNTIME_VERSION+"/" plugindir = GetOutputDir()+"/stage/plugin/"+RUNTIME_PLATFORM+"/"+RUNTIME_VERSION+"/" MakeDirectory(GetOutputDir()+"/rlib") MakeDirectory(GetOutputDir()+"/stage") MakeDirectory(GetOutputDir()+"/stage/coreapi") MakeDirectory(GetOutputDir()+"/stage/coreapi/"+RUNTIME_PLATFORM) MakeDirectory(GetOutputDir()+"/stage/plugin") MakeDirectory(GetOutputDir()+"/stage/plugin/"+RUNTIME_PLATFORM) MakeDirectory(coreapidir); MakeDirectory(plugindir) # Copy the p3d_plugin file to coreapi dir and the plugin to the plugin dir. plugfile = CalcLocation("p3d_plugin.dll", None) CopyFile(coreapidir + os.path.basename(plugfile), plugfile) if (sys.platform == "darwin"): plugfile = CalcLocation("nppanda3d.plugin", None) if (os.path.isdir(GetOutputDir()+"/tmp/bundle")): oscmd("rm -rf %s" % BracketNameWithQuotes(GetOutputDir()+"/tmp/bundle")) MakeDirectory(GetOutputDir()+"/tmp/bundle") CopyTree(GetOutputDir()+"/tmp/bundle/nppanda3d.plugin", plugfile) if (os.path.exists(GetOutputDir()+"/plugins/nppanda3d.dmg")): oscmd("rm -rf " + BracketNameWithQuotes(GetOutputDir()+"/plugins/nppanda3d.dmg")) oscmd("hdiutil create -fs HFS+ -srcfolder %s -volname nppanda3d %s" % (GetOutputDir()+"/tmp/bundle", GetOutputDir()+"/plugins/nppanda3d.dmg")) CopyFile(plugindir + os.path.basename(plugfile), GetOutputDir()+"/plugins/nppanda3d.dmg") oscmd("rm -rf " + BracketNameWithQuotes(GetOutputDir()+"/tmp/bundle")) else: plugfile = CalcLocation("nppanda3d.dll", None) CopyFile(plugindir + "nppanda3d.dmg", plugfile) # Copy the important libraries to built/rlib/. CopyFile(GetOutputDir()+"/rlib/Config.prc", GetOutputDir()+"/etc/Config.prc") plugfile = CalcLocation("p3dpython.exe", None) CopyFile(GetOutputDir()+"/rlib/"+os.path.basename(plugfile), plugfile) plugfile = CalcLocation("runp3d_frozen.pyd", None) CopyFile(GetOutputDir()+"/rlib/"+os.path.basename(plugfile), plugfile) if (sys.platform.startswith("win")): for base in os.listdir(GetOutputDir()+"/bin"): if (base.endswith(".dll")): omit = False for romit in RUNTIME_OMIT: if fnmatch.fnmatch(base, romit): omit = True if omit: continue CopyFile(GetOutputDir()+"/rlib/"+base, GetOutputDir()+"/bin/"+base) else: for base in os.listdir(GetOutputDir()+"/lib"): if (base.startswith("lib")) and (base.endswith(".so") or base.endswith(".dylib")): omit = False for romit in RUNTIME_OMIT: if fnmatch.fnmatch(base, romit): omit = True if omit: continue CopyFile(GetOutputDir()+"/rlib/"+base, GetOutputDir()+"/lib/"+base) if (sys.platform == "darwin"): oscmd("strip "+GetOutputDir()+"/rlib/"+base) else: oscmd("strip --strip-all "+GetOutputDir()+"/rlib/"+base) # Invoke the make_package and make_contents scripts. command = SDK["PYTHONEXEC"] + " direct/src/plugin/make_package.py" command += " -d \"" + GetOutputDir() + "/stage\"" command += " -s \"" + GetOutputDir() + "/rlib\"" command += " -p panda3d_%s_%s" % (RUNTIME_PLATFORM, RUNTIME_VERSION) oscmd(command) command = SDK["PYTHONEXEC"] + " direct/src/plugin/make_contents.py" command += " -d \"" + GetOutputDir() + "/stage\"" oscmd(command) # Tar the whole thing. if (not sys.platform.startswith("win")): if (os.path.exists("runtime_%s_%s.tar.bz2" % (RUNTIME_PLATFORM, RUNTIME_VERSION))): os.remove("runtime_%s_%s.tar.bz2" % (RUNTIME_PLATFORM, RUNTIME_VERSION)) oscmd("cd " + GetOutputDir() + "/stage/ && tar -cjvf " + os.getcwd() + ("/runtime_%s_%s.tar.bz2 coreapi panda3d plugin" % (RUNTIME_PLATFORM, RUNTIME_VERSION)))
|
5f119ddd28f300822f72eb6b3a36d2d969cd7f1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/5f119ddd28f300822f72eb6b3a36d2d969cd7f1e/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
5576,
13332,
468,
2504,
326,
783,
18,
309,
261,
538,
18,
803,
18,
1808,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
6,
3719,
30,
11060,
18,
86,
17371,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
7923,
309,
261,
538,
18,
803,
18,
1808,
12,
967,
1447,
1621,
1435,
9078,
19,
1321,
495,
6,
3719,
30,
11060,
18,
86,
17371,
12,
967,
1447,
1621,
1435,
9078,
19,
1321,
495,
7923,
225,
468,
1788,
279,
1825,
2268,
434,
6402,
18,
2922,
438,
350,
481,
273,
968,
1447,
1621,
1435,
9078,
19,
12869,
19,
3644,
2425,
4898,
15,
54,
25375,
67,
6253,
789,
4983,
9078,
4898,
15,
54,
25375,
67,
5757,
9078,
4898,
15852,
728,
481,
273,
968,
1447,
1621,
1435,
9078,
19,
12869,
19,
4094,
4898,
15,
54,
25375,
67,
6253,
789,
4983,
9078,
4898,
15,
54,
25375,
67,
5757,
9078,
4898,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
1321,
495,
7923,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
7923,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
19,
3644,
2425,
7923,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
19,
3644,
2425,
4898,
15,
54,
25375,
67,
6253,
789,
4983,
13,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
19,
4094,
7923,
4344,
2853,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
19,
4094,
4898,
15,
54,
25375,
67,
6253,
789,
4983,
13,
4344,
2853,
12,
3644,
438,
350,
481,
1769,
4344,
2853,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
5576,
13332,
468,
2504,
326,
783,
18,
309,
261,
538,
18,
803,
18,
1808,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
6,
3719,
30,
11060,
18,
86,
17371,
12,
967,
1447,
1621,
1435,
9078,
19,
12869,
7923,
309,
261,
538,
18,
803,
18,
1808,
12,
967,
1447,
1621,
1435,
9078,
19,
1321,
495,
6,
3719,
30,
11060,
18,
86,
17371,
12,
967,
1447,
1621,
1435,
9078,
19,
1321,
495,
7923,
225,
468,
1788,
279,
1825,
2268,
434,
6402,
18,
2922,
438,
350,
481,
273,
968,
1447,
1621,
1435,
9078,
19,
12869,
19,
3644,
2425,
4898,
15,
54,
25375,
67,
6253,
789,
4983,
9078,
4898,
15,
54,
25375,
67,
5757,
9078,
4898,
15852,
728,
481,
273,
968,
2
] |
def __init__(self, message): self.message = message
|
def __init__(self, msg): self.msg = msg
|
def __init__(self, message): self.message = message
|
b5027f778753355f1d9ebf8cb4725d6056a3f0a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/b5027f778753355f1d9ebf8cb4725d6056a3f0a3/NodeSet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
365,
18,
2150,
273,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
365,
18,
2150,
273,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self):
|
def __init__(self, host='game.eternal-lands.com', port=2001): self.host = host self.port = port self.LOG_IN_OK = False
|
def __init__(self): self.__setup() pass
|
e9336a953df9a043de95a448a1f396dd28003dde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5162/e9336a953df9a043de95a448a1f396dd28003dde/login.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
13957,
18,
847,
82,
287,
17,
80,
5708,
18,
832,
2187,
1756,
33,
6976,
21,
4672,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
4842,
67,
706,
67,
3141,
273,
1083,
365,
16186,
8401,
1435,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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287,
17,
80,
5708,
18,
832,
2187,
1756,
33,
6976,
21,
4672,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
4842,
67,
706,
67,
3141,
273,
1083,
365,
16186,
8401,
1435,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
timestamp = "%s-%s-%sT%s:%s:%sZ" % (b[0:4], b[4:6], b[6:8], b[8:10], b[10:12], b[12:14])
|
timestamp = imageData[1]
|
def checkbot(): """ Main function """ # Command line configurable parameters repeat = True # Restart after having check all the images? limit = 80 # How many images check? time_sleep = 30 # How many time sleep after the check? skip_number = 0 # How many images to skip before checking? waitTime = 0 # How many time sleep before the check? commonsActive = False # Check if on commons there's an image with the same name? normal = False # Check the new images or use another generator? urlUsed = False # Use the url-related function instead of the new-pages generator regexGen = False # Use the regex generator untagged = False # Use the untagged generator duplicatesActive = False # Use the duplicate option duplicatesReport = False # Use the duplicate-report option sendemailActive = False # Use the send-email logFullError = True # Raise an error when the log is full # Here below there are the parameters. for arg in wikipedia.handleArgs(): if arg.startswith('-limit'): if len(arg) == 7: limit = int(wikipedia.input(u'How many files do you want to check?')) else: limit = int(arg[7:]) if arg.startswith('-time'): if len(arg) == 5: time_sleep = int(wikipedia.input(u'How many seconds do you want runs to be apart?')) else: time_sleep = int(arg[6:]) elif arg == '-break': repeat = False elif arg == '-nologerror': logFullError = False elif arg == '-commons': commonsActive = True elif arg.startswith('-duplicates'): duplicatesActive = True if len(arg) == 11: duplicates_rollback = 1 elif len(arg) > 11: duplicates_rollback = int(arg[12:]) elif arg == '-duplicatereport': duplicatesReport = True elif arg == '-sendemail': sendemailActive = True elif arg.startswith('-skip'): if len(arg) == 5: skip = True skip_number = int(wikipedia.input(u'How many files do you want to skip?')) elif len(arg) > 5: skip = True skip_number = int(arg[6:]) elif arg.startswith('-wait'): if len(arg) == 5: wait = True waitTime = int(wikipedia.input(u'How many time do you want to wait before checking the files?')) elif len(arg) > 5: wait = True waitTime = int(arg[6:]) elif arg.startswith('-start'): if len(arg) == 6: firstPageTitle = wikipedia.input(u'From witch page do you want to start?') elif len(arg) > 6: firstPageTitle = arg[7:] firstPageTitle = firstPageTitle.split(":")[1:] generator = wikipedia.getSite().allpages(start=firstPageTitle, namespace=6) repeat = False elif arg.startswith('-page'): if len(arg) == 5: regexPageName = str(wikipedia.input(u'Which page do you want to use for the regex?')) elif len(arg) > 5: regexPageName = str(arg[6:]) repeat = False regexGen = True elif arg.startswith('-url'): if len(arg) == 4: regexPageUrl = str(wikipedia.input(u'Which url do you want to use for the regex?')) elif len(arg) > 4: regexPageUrl = str(arg[5:]) urlUsed = True repeat = False regexGen = True elif arg.startswith('-regex'): if len(arg) == 6: regexpToUse = str(wikipedia.input(u'Which regex do you want to use?')) elif len(arg) > 6: regexpToUse = str(arg[7:]) generator = 'regex' repeat = False elif arg.startswith('-cat'): if len(arg) == 4: catName = str(wikipedia.input(u'In which category do I work?')) elif len(arg) > 4: catName = str(arg[5:]) catSelected = catlib.Category(wikipedia.getSite(), 'Category:%s' % catName) generator = pagegenerators.CategorizedPageGenerator(catSelected) repeat = False elif arg.startswith('-ref'): if len(arg) == 4: refName = str(wikipedia.input(u'The references of what page should I parse?')) elif len(arg) > 4: refName = str(arg[5:]) generator = pagegenerators.ReferringPageGenerator(wikipedia.Page(wikipedia.getSite(), refName)) repeat = False elif arg.startswith('-untagged'): untagged = True if len(arg) == 9: projectUntagged = str(wikipedia.input(u'In which project should I work?')) elif len(arg) > 9: projectUntagged = str(arg[10:]) # Understand if the generator it's the default or not. try: generator except NameError: normal = True # Define the site. site = wikipedia.getSite() # Block of text to translate the parameters set above. image_old_namespace = u"%s:" % site.image_namespace() image_namespace = u"File:" # If the images to skip are 0, set the skip variable to False (the same for the wait time) if skip_number == 0: skip = False if waitTime == 0: wait = False # A little block-statement to ensure that the bot will not start with en-parameters if site.lang not in project_inserted: wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!") return # Reading the log of the new images if another generator is not given. if normal == True: if limit == 1: wikipedia.output(u"Retrieving the latest file for checking...") else: wikipedia.output(u"Retrieving the latest %d files for checking..." % limit) # Main Loop while 1: # Defing the Main Class. mainClass = main(site, sendemailActive = sendemailActive, duplicatesReport = duplicatesReport, logFullError = logFullError) # Untagged is True? Let's take that generator if untagged == True: generator = mainClass.untaggedGenerator(projectUntagged, limit) normal = False # Ensure that normal is False # Normal True? Take the default generator if normal == True: generator = site.newimages(number = limit) # if urlUsed and regexGen, get the source for the generator if urlUsed == True and regexGen == True: textRegex = site.getUrl(regexPageUrl, no_hostname = True) # Not an url but a wiki page as "source" for the regex elif regexGen == True: pageRegex = wikipedia.Page(site, regexPageName) try: textRegex = pageRegex.get() except wikipedia.NoPage: wikipedia.output(u"%s doesn't exist!" % pageRegex.title()) textRegex = '' # No source, so the bot will quit later. # If generator is the regex' one, use your own Generator using an url or page and a regex. if generator == 'regex' and regexGen == True: generator = mainClass.regexGenerator(regexpToUse, textRegex) # Ok, We (should) have a generator, so let's go on. # Take the additional settings for the Project mainClass.takesettings() # Not the main, but the most important loop. #parsed = False if wait: # Let's sleep... generator = mainClass.wait(waitTime, generator, normal, limit) for image in generator: # When you've a lot of image to skip before working use this workaround, otherwise # let this commented, thanks. [ decoment also parsed = False if you want to use it # #if image.title() != u'File:Nytlogo379x64.gif' and not parsed: # wikipedia.output(u"%s already parsed." % image.title()) # continue #else: # parsed = True # If the generator returns something that is not an image, simply skip it. if normal == False and regexGen == False: if image_namespace.lower() not in image.title().lower() and \ image_old_namespace.lower() not in image.title().lower() and 'file:' not in image.title().lower(): wikipedia.output(u'%s seems not an file, skip it...' % image.title()) continue if normal: imageData = image image = imageData[0] #20100511133318L --- 15:33, 11 mag 2010 e 18 sec b = str(imageData[1]) # use b as variable to make smaller the timestamp-formula used below.. # fixing the timestamp to the format that we normally use.. timestamp = "%s-%s-%sT%s:%s:%sZ" % (b[0:4], b[4:6], b[6:8], b[8:10], b[10:12], b[12:14]) uploader = imageData[2] comment = imageData[3] # useless, in reality.. else: timestamp = None uploader = None comment = None # useless, also this, let it here for further developments try: imageName = image.title().split(image_namespace)[1] # Deleting the namespace (useless here) except IndexError:# Namespace image not found, that's not an image! Let's skip... try: imageName = image.title().split(image_old_namespace)[1] except IndexError: wikipedia.output(u"%s is not a file, skipping..." % image.title()) continue mainClass.setParameters(imageName, timestamp, uploader) # Setting the image for the main class # Skip block if skip == True: skip = mainClass.skipImages(skip_number, limit) if skip == True: continue # Check on commons if there's already an image with the same name if commonsActive == True and site.family.name != "commons": response = mainClass.checkImageOnCommons() if response == False: continue # Check if there are duplicates of the image on the project selected if duplicatesActive == True: response2 = mainClass.checkImageDuplicated(duplicates_rollback) if response2 == False: continue resultCheck = mainClass.checkStep() if resultCheck: continue # A little block to perform the repeat or to break. if repeat == True: printWithTimeZone(u"Waiting for %s seconds," % time_sleep) time.sleep(time_sleep) else: wikipedia.output(u"\t\t\t>> STOP! <<") break # Exit
|
718c26e440835e890aeb9eccc86467e322fe9cd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/718c26e440835e890aeb9eccc86467e322fe9cd3/checkimages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
35,
813,
67,
19607,
273,
5196,
468,
9017,
4906,
813,
5329,
1839,
326,
866,
35,
2488,
67,
2696,
273,
374,
468,
9017,
4906,
4602,
358,
2488,
1865,
6728,
35,
30452,
273,
374,
468,
9017,
4906,
813,
5329,
1865,
326,
866,
35,
24021,
3896,
273,
1083,
468,
2073,
309,
603,
24021,
1915,
1807,
392,
1316,
598,
326,
1967,
508,
35,
2212,
273,
1083,
468,
2073,
326,
394,
4602,
578,
999,
4042,
4456,
35,
880,
6668,
273,
1083,
468,
2672,
326,
880,
17,
9243,
445,
3560,
434,
326,
394,
17,
7267,
4456,
3936,
7642,
273,
1083,
468,
2672,
326,
3936,
4456,
640,
23023,
273,
1083,
468,
2672,
326,
640,
23023,
4456,
11211,
3896,
273,
1083,
468,
2672,
326,
6751,
1456,
11211,
4820,
273,
1083,
468,
2672,
326,
6751,
17,
6006,
1456,
28901,
323,
4408,
3896,
273,
1083,
468,
2672,
326,
1366,
17,
3652,
613,
5080,
668,
273,
1053,
468,
20539,
392,
555,
1347,
326,
613,
353,
1983,
225,
468,
13743,
5712,
1915,
854,
326,
1472,
18,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
18,
17514,
1918,
2668,
17,
3595,
11,
4672,
309,
562,
12,
3175,
13,
422,
2371,
30,
1800,
273,
509,
12,
11999,
13744,
18,
2630,
12,
89,
11,
44,
543,
4906,
1390,
741,
1846,
2545,
358,
866,
4899,
3719,
469,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
35,
813,
67,
19607,
273,
5196,
468,
9017,
4906,
813,
5329,
1839,
326,
866,
35,
2488,
67,
2696,
273,
374,
468,
9017,
4906,
4602,
358,
2488,
1865,
6728,
35,
30452,
273,
374,
468,
9017,
4906,
813,
5329,
1865,
326,
866,
35,
24021,
3896,
273,
1083,
468,
2073,
309,
603,
24021,
1915,
1807,
392,
1316,
598,
326,
1967,
508,
35,
2212,
273,
1083,
468,
2073,
326,
394,
4602,
578,
999,
4042,
4456,
35,
880,
6668,
273,
1083,
468,
2672,
326,
880,
17,
9243,
445,
3560,
434,
326,
2
] |
return inclusive
|
elif n.startswith('xmlns:'): unused_namespace_dict[n] = attr.value return inclusive, unused_namespace_dict
|
def _inclusiveNamespacePrefixes(node, context, unsuppressedPrefixes): '''http://www.w3.org/TR/xml-exc-c14n/ InclusiveNamespaces PrefixList parameter, which lists namespace prefixes that are handled in the manner described by the Canonical XML Recommendation''' inclusive = [] if node.prefix: usedPrefixes = ['xmlns:%s' %node.prefix] else: usedPrefixes = ['xmlns'] for a in _attrs(node): if a.nodeName.startswith('xmlns') or not a.prefix: continue usedPrefixes.append('xmlns:%s' %a.prefix) for attr in context: n = attr.nodeName if n in unsuppressedPrefixes: inclusive.append(attr) elif n.startswith('xmlns:') and n[6:] in unsuppressedPrefixes: inclusive.append(attr) elif n.startswith('xmlns') and n[5:] in unsuppressedPrefixes: inclusive.append(attr) elif attr.nodeName in usedPrefixes: inclusive.append(attr) return inclusive
|
c0147db0b9b6607aa24507cb068c88c1f611cec5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/c0147db0b9b6607aa24507cb068c88c1f611cec5/c14n.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
9173,
3402,
11700,
12,
2159,
16,
819,
16,
640,
2859,
10906,
11700,
4672,
9163,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2902,
17,
10075,
17,
71,
3461,
82,
19,
657,
9173,
13180,
10139,
682,
1569,
16,
1492,
6035,
1981,
9419,
716,
854,
7681,
316,
326,
21296,
11893,
635,
326,
19413,
3167,
25546,
18782,
26418,
13562,
273,
5378,
309,
756,
18,
3239,
30,
1399,
11700,
273,
10228,
16741,
5319,
87,
11,
738,
2159,
18,
3239,
65,
469,
30,
1399,
11700,
273,
10228,
16741,
3546,
225,
364,
279,
316,
389,
7039,
12,
2159,
4672,
309,
279,
18,
2159,
461,
18,
17514,
1918,
2668,
16741,
6134,
578,
486,
279,
18,
3239,
30,
1324,
1399,
11700,
18,
6923,
2668,
16741,
5319,
87,
11,
738,
69,
18,
3239,
13,
225,
364,
1604,
316,
819,
30,
290,
273,
1604,
18,
2159,
461,
309,
290,
316,
640,
2859,
10906,
11700,
30,
13562,
18,
6923,
12,
1747,
13,
1327,
290,
18,
17514,
1918,
2668,
16741,
2497,
13,
471,
290,
63,
26,
26894,
316,
640,
2859,
10906,
11700,
30,
13562,
18,
6923,
12,
1747,
13,
1327,
290,
18,
17514,
1918,
2668,
16741,
6134,
471,
290,
63,
25,
26894,
316,
640,
2859,
10906,
11700,
30,
13562,
18,
6923,
12,
1747,
13,
1327,
1604,
18,
2159,
461,
316,
1399,
11700,
30,
13562,
18,
6923,
12,
1747,
13,
1327,
290,
18,
17514,
1918,
2668,
16741,
2497,
4672,
10197,
67,
4937,
67,
1576,
63,
82,
65,
273,
1604,
18,
1132,
225,
327,
13562,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
9173,
3402,
11700,
12,
2159,
16,
819,
16,
640,
2859,
10906,
11700,
4672,
9163,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2902,
17,
10075,
17,
71,
3461,
82,
19,
657,
9173,
13180,
10139,
682,
1569,
16,
1492,
6035,
1981,
9419,
716,
854,
7681,
316,
326,
21296,
11893,
635,
326,
19413,
3167,
25546,
18782,
26418,
13562,
273,
5378,
309,
756,
18,
3239,
30,
1399,
11700,
273,
10228,
16741,
5319,
87,
11,
738,
2159,
18,
3239,
65,
469,
30,
1399,
11700,
273,
10228,
16741,
3546,
225,
364,
279,
316,
389,
7039,
12,
2159,
4672,
309,
279,
18,
2159,
461,
18,
17514,
1918,
2668,
16741,
6134,
578,
486,
279,
18,
3239,
30,
1324,
1399,
11700,
2
] |
def getBondLength(self, isBondLength):
|
def getBondLength(self, isBondLength, atomDistPrecision):
|
def getBondLength(self, isBondLength): '''returns the atom center distance between the atoms connected by the highlighted bond. Note that this does *not* return the covalent bondlength''' from VQT import vlen glpane = self.glpane if isBondLength: a1 = glpane.selobj.atom1 a2 = glpane.selobj.atom2
|
1c8387d0b036edd275a4e706a0e6dcc393ab92fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1c8387d0b036edd275a4e706a0e6dcc393ab92fa/DynamicTip.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29585,
1782,
12,
2890,
16,
353,
9807,
1782,
16,
3179,
5133,
15410,
4672,
9163,
6154,
326,
3179,
4617,
3888,
3086,
326,
9006,
5840,
635,
326,
24375,
8427,
18,
3609,
716,
333,
1552,
380,
902,
14,
327,
326,
1825,
1125,
319,
8427,
2469,
26418,
225,
628,
776,
53,
56,
1930,
331,
1897,
225,
5118,
29009,
273,
365,
18,
7043,
29009,
225,
309,
353,
9807,
1782,
30,
279,
21,
273,
5118,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29585,
1782,
12,
2890,
16,
353,
9807,
1782,
16,
3179,
5133,
15410,
4672,
9163,
6154,
326,
3179,
4617,
3888,
3086,
326,
9006,
5840,
635,
326,
24375,
8427,
18,
3609,
716,
333,
1552,
380,
902,
14,
327,
326,
1825,
1125,
319,
8427,
2469,
26418,
225,
628,
776,
53,
56,
1930,
331,
1897,
225,
5118,
29009,
273,
365,
18,
7043,
29009,
225,
309,
353,
9807,
1782,
30,
279,
21,
273,
5118,
29009,
18,
1786,
2603,
18,
7466,
21,
279,
22,
273,
5118,
29009,
18,
1786,
2603,
18,
7466,
22,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous')
|
m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0)
|
def matrix(arg0=None, arg1=None, arg2=None, arg3=None, sparse=None): """ Create a matrix. INPUT: Supported formats 1. matrix([sparse=True]): the 0x0 matrix over ZZ 2. matrix(list_of_rows, [sparse=True]): matrix with each row constructed from the list_of_rows 3. matrix(nrows, entries, [sparse=True]): matrix with given number of rows and flat list of entries 4. matrix(nrows, ncols, entries, [sparse=True]): matrix with given number of rows and columns with flat list of entries 5. matrix(ring, list_of_row, [sparse=True]): matrix over ring with rows the elements of the list_of_rows 6. matrix(ring, nrows, entries, [sparse=True]): matrix over ring with given number of rows and entries from the flat list 7. matrix(ring, nrows, ncols, entries, [sparse=True]): matrix over the given ring with given number of rows and columns and entries. 8. matrix(numpy_array) The sparse option is optional, must be explicitly named (i.e., sparse=True), and may be either True or False. The entries can instead be a dictionary of key:value pairs of the form (i,j):x, where i,j are integers instead of a list. If sparse is not specified and the entries are a dictionary, it default to True. OUTPUT: a matrix EXAMPLES: 1. The degenerate matrix input format: sage: m = matrix(); m [] sage: parent(m) Full MatrixSpace of 0 by 0 dense matrices over Integer Ring sage: m = matrix(sparse=True); m [] sage: parent(m) Full MatrixSpace of 0 by 0 sparse matrices over Integer Ring 2. The "matrix(list_of_rows, [sparse])" input format. Notice that SAGE is careful to find a sensible common ring for all the entries (using the Sequence object): sage: x = polygen(QQ) sage: m = matrix([[1/3,2+x],[3,4]]); m [ 1/3 x + 2] [ 3 4] sage: parent(m) Full MatrixSpace of 2 by 2 dense matrices over Univariate Polynomial Ring in x over Rational Field sage: m = matrix([[1,2],[3,4/7]]); m [ 1 2] [ 3 4/7] sage: parent(m) Full MatrixSpace of 2 by 2 dense matrices over Rational Field sage: m = matrix([[1,2,3], [RDF(2), CDF(1,2), 3]]); m [ 1.0 2.0 3.0] [ 2.0 1.0 + 2.0*I 3.0] sage: parent(m) Full MatrixSpace of 2 by 3 dense matrices over Complex Double Field sage: V = GF(7)^2 sage: m = matrix([V.0, V.0+2*V.1], sparse=True); m [1 0] [1 2] sage: parent(m) Full MatrixSpace of 2 by 2 sparse matrices over Finite Field of size 7 3. matrix(nrows, entries, [sparse]): sage: matrix(2,[1,2,3, 4,5,6]) [1 2 3] [4 5 6] sage: matrix(3, [1,2, 3/4, 5/6, 7*x, 8*x]) [ 1 2] [3/4 5/6] [7*x 8*x] The number of rows must divide the number of entries. sage: matrix(5,[1,2,3, 4,5,6]) Traceback (most recent call last): ... TypeError: entries has the wrong length 4. matrix(nrows, ncols, entries, [sparse]): sage: matrix(2,3, [1,2,3, 4,5,6]) [1 2 3] [4 5 6] sage: matrix(3,2, [1,2, 3/4, 5/6, 7*x, 8*x]) [ 1 2] [3/4 5/6] [7*x 8*x] The length of the entry list must be the same as the number of rows times columns. sage: matrix(3,3, [1,2, 3/4, 5/6, 7*x, 8*x]) Traceback (most recent call last): ... TypeError: entries has the wrong length 5. matrix(ring, list_of_row, [sparse]): sage: m = matrix(QQ, [[1,2], [3,4]]); m [1 2] [3 4] sage: parent(m) Full MatrixSpace of 2 by 2 dense matrices over Rational Field sage: m = matrix(GF(7), [[1/3,2/3,1/2], [3/4,4/5,7]]); m [5 3 4] [6 5 0] sage: parent(m) Full MatrixSpace of 2 by 3 dense matrices over Finite Field of size 7 6. matrix(ring, nrows, entries, [sparse]): sage: M = ZZ^4 sage: m = matrix(QQ, [M([1,2,3,4]), M([-1,0,3,4])]); m [ 1 2 3 4] [-1 0 3 4] sage: parent(m) Full MatrixSpace of 2 by 4 dense matrices over Rational Field 7. matrix(ring, nrows, ncols, entries, [sparse]) sage: matrix(QQ, 2, 2, [1,2,3,4]) [1 2] [3 4] sage: matrix(GF(5), 2, 3, range(6)) [0 1 2] [3 4 0] sage: matrix(ZZ, 10, 10, range(100)).parent() Full MatrixSpace of 10 by 10 dense matrices over Integer Ring sage: matrix(ZZ, 10, 10, range(100), sparse=True).parent() Full MatrixSpace of 10 by 10 sparse matrices over Integer Ring sage: R = PolynomialRing(QQ, 9, 'x') sage: A = matrix(R, 3, 3, R.gens()); A [x0 x1 x2] [x3 x4 x5] [x6 x7 x8] sage: det(A) -x2*x4*x6 + x1*x5*x6 + x2*x3*x7 - x0*x5*x7 - x1*x3*x8 + x0*x4*x8 CREATING SPARSE MATRICES FROM DICTS: sage: a = matrix({(1,2):10, (2,3):5/1}) sage: print a, a.parent() [ 0 0 0 0] [ 0 0 10 0] [ 0 0 0 5] Full MatrixSpace of 3 by 4 sparse matrices over Rational Field sage: a = matrix({(1,2):10}) sage: print a, a.is_sparse() [ 0 0 0] [ 0 0 10] True sage: a = matrix(3,{(1,2):10}) sage: print a, a.is_sparse() [ 0 0 0] [ 0 0 10] [ 0 0 0] True sage: a = matrix(3,5,{(1,2):10}) sage: print a, a.is_sparse() [ 0 0 0 0 0] [ 0 0 10 0 0] [ 0 0 0 0 0] True sage: a = matrix(QQ, 3, {(1,2):10}) sage: print a, a.is_sparse() [ 0 0 0] [ 0 0 10] [ 0 0 0] True sage: a = matrix(QQ, 3, {(1,2):10}, sparse=True) sage: print a, a.is_sparse() [ 0 0 0] [ 0 0 10] [ 0 0 0] True sage: a = matrix(QQ, 3, 5, {(1,2):10}, sparse=True) sage: print a, a.is_sparse() [ 0 0 0 0 0] [ 0 0 10 0 0] [ 0 0 0 0 0] True 8. Creating a matrix from a numpy array Any numpy array with a datatype of float or complex may be passed to matrix If the data type is float the result will be a matrix over the real double field. complex numpy arrays will give matrices over the complex double field. The data of the numpy array must be contiguous, so slices of other matrices will raise an exception. sage: import numpy sage: n=numpy.array([[1,2],[3,4]],float) sage: m=matrix(n) sage: n=numpy.array([[numpy.complex(0,1),numpy.complex(0,2)],[3,4]],complex) sage: m=matrix(n) TESTS: sage: import numpy sage: a = numpy.array([[1,2,3],[4,5,6],[7,8,9]],'float32') sage: matrix(a) [1.0 2.0 3.0] [4.0 5.0 6.0] [7.0 8.0 9.0] sage: a = numpy.array([[1,2,3],[4,5,6],[7,8,9]],'float64') sage: matrix(a) [1.0 2.0 3.0] [4.0 5.0 6.0] [7.0 8.0 9.0] sage: a = numpy.array([[1,2,3],[4,5,6],[7,8,9]],'complex64') sage: matrix(a) [1.0 2.0 3.0] [4.0 5.0 6.0] [7.0 8.0 9.0] sage: a = numpy.array([[1,2,3],[4,5,6],[7,8,9]],'complex128') sage: matrix(a) [1.0 2.0 3.0] [4.0 5.0 6.0] [7.0 8.0 9.0] sage: a = matrix([[1,2],[3,4]]) sage: b = matrix(a.numpy()); b [1 2] [3 4] sage: a == b True sage: c = matrix(a.numpy('float32')); c [1.0 2.0] [3.0 4.0] """ if hasattr(arg0, '_matrix_'): if arg1 is None: arg1 = rings.ZZ return arg0._matrix_(arg1) if hasattr(arg1, '_matrix_'): return arg1._matrix_(arg0) if arg0 is None: # 1. matrix([sparse]): # the 0x0 matrix over ZZ # the degenerate matrix ring = rings.ZZ nrows = 0 ncols = 0 entries = [] elif isinstance(arg0, (list, tuple)): # 2. matrix(list_of_rows, [sparse]): # matrix with each row constructed from the list_of_rows # list of rows if not (arg1 is None and arg2 is None and arg3 is None): raise TypeError, "invalid input" nrows = len(arg0) if nrows == 0: ncols = 0 else: ncols = len(arg0[0]) w = sum([list(v) for v in arg0], []) entries, ring = prepare(w) elif isinstance(arg0, dict): # 2. matrix(dict_of_rows, sparse=True): if sparse is None: sparse = True entries, ring = prepare_dict(arg0) nrows = nrows_from_dict(entries) ncols = ncols_from_dict(entries) elif not rings.is_Ring(arg0) and isinstance(arg1, (list, tuple)) and arg2 is None and arg3 is None: # 3. matrix(nrows, entries, [sparse]): # matrix with given number of rows and flat list of entries nrows = int(arg0) entries, ring = prepare(arg1) ncols = len(entries) // nrows elif not rings.is_Ring(arg0) and isinstance(arg1, dict) and arg2 is None and arg3 is None: # 3. matrix(nrows, entries, sparse=True): # matrix with given number of rows and sparse dict of entries if sparse is None: sparse = True nrows = int(arg0) entries, ring = prepare_dict(arg1) ncols = ncols_from_dict(entries) elif not rings.is_Ring(arg0) and isinstance(arg2, (list, tuple)) and arg3 is None: # 4. matrix(nrows, ncols, entries, [sparse]): # matrix with given number of rows and columns with flat list of entries nrows = int(arg0) ncols = int(arg1) entries, ring = prepare(arg2) elif not rings.is_Ring(arg0) and isinstance(arg2, dict) and arg3 is None: # 4. matrix(nrows, ncols, entries, sparse=True): # matrix with given number of rows and columns with flat list of entries if sparse is None: sparse = True nrows = int(arg0) ncols = int(arg1) entries, ring = prepare_dict(arg2) elif rings.is_Ring(arg0) and isinstance(arg1, (list, tuple)) and arg2 is None and arg3 is None: # 5. matrix(ring, list_of_row, [sparse]): # matrix over ring with rows the elements of the list_of_rows ring = arg0 nrows = len(arg1) if nrows == 0: ncols = 0 else: try: ncols = len(arg1[0]) except TypeError: raise TypeError, "If making a matrix with the matrix(ring, list_of_row, [sparse]) constructor, the second input must be a list of rows." entries = sum([list(v) for v in arg1], []) elif rings.is_Ring(arg0) and isinstance(arg1, dict) and arg2 is None and arg3 is None: # 5. matrix(ring, dict, sparse=True): # matrix over ring with rows the elements the dict if sparse is None: sparse = True ring = arg0 entries = arg1 nrows = nrows_from_dict(entries) elif rings.is_Ring(arg0) and isinstance(arg2, (list, tuple)) and arg3 is None: # 6. matrix(ring, nrows, entries, [sparse]): # matrix over ring with given number of rows and entries from the flat list ring = arg0 nrows = int(arg1) entries = arg2 if nrows == 0: ncols = 0 else: ncols = len(entries) // nrows elif rings.is_Ring(arg0) and isinstance(arg2, dict) and arg3 is None: # 6. matrix(ring, nrows, entries, sparse=True) # matrix over ring with given number of rows and entries from the dict if sparse is None: sparse = True ring = arg0 nrows = int(arg1) entries = arg2 if nrows == 0: ncols = 0 else: ncols = ncols_from_dict(entries) elif rings.is_Ring(arg0): # 7. matrix(ring, nrows, ncols, entries, [sparse]): # matrix over the given ring with given number of rows and columns and entries. ring = arg0 nrows = int(arg1) if arg2 is None: ncols = nrows else: ncols = int(arg2) entries = arg3 if isinstance(entries, dict): if sparse is None: sparse = True else: import numpy if isinstance(arg0,numpy.ndarray): str_dtype = str(arg0.dtype) if str_dtype.count('float32')==1: if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy32(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous') elif str_dtype.count('float64')==1: if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous') elif str_dtype.count('complex64')==1: if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(CDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy32(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous') elif str_dtype.count('complex128')==1: if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(CDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous') elif str_dtype.count('object') == 1: #Get the raw nested list from the numpy array #and feed it back into matrix try: return matrix( map(list, list(arg0)) ) except TypeError: raise TypeError("cannot convert numpy matrix to SAGE matrix") else: raise TypeError("cannot convert numpy matrix to SAGE matrix") else: raise TypeError, "unknown matrix constructor format. Type matrix? for help" if sparse is None: sparse = False return matrix_space.MatrixSpace(ring, nrows, ncols, sparse=sparse)(entries)
|
aee2e5ab4b0be97a6e29e4a927f71363c9a070ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/aee2e5ab4b0be97a6e29e4a927f71363c9a070ed/constructor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
12,
3175,
20,
33,
7036,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1501,
23,
33,
7036,
16,
9387,
33,
7036,
4672,
3536,
1788,
279,
3148,
18,
225,
12943,
30,
19503,
6449,
404,
18,
3148,
3816,
17472,
33,
5510,
65,
4672,
326,
374,
92,
20,
3148,
1879,
2285,
62,
576,
18,
3148,
12,
1098,
67,
792,
67,
3870,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
598,
1517,
1027,
15688,
628,
326,
666,
67,
792,
67,
3870,
890,
18,
3148,
12,
82,
3870,
16,
3222,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
598,
864,
1300,
434,
2595,
471,
3569,
666,
434,
3222,
1059,
18,
3148,
12,
82,
3870,
16,
21330,
16,
3222,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
598,
864,
1300,
434,
2595,
471,
2168,
598,
3569,
666,
434,
3222,
1381,
18,
3148,
12,
8022,
16,
666,
67,
792,
67,
492,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
1879,
9221,
598,
2595,
326,
2186,
434,
326,
666,
67,
792,
67,
3870,
1666,
18,
3148,
12,
8022,
16,
18871,
16,
3222,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
1879,
9221,
598,
864,
1300,
434,
2595,
471,
3222,
628,
326,
3569,
666,
2371,
18,
3148,
12,
8022,
16,
18871,
16,
21330,
16,
3222,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
1879,
326,
864,
9221,
598,
864,
1300,
434,
2595,
471,
2168,
471,
3222,
18,
1725,
18,
3148,
12,
15974,
67,
1126,
13,
1021,
9387,
1456,
353,
3129,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
12,
3175,
20,
33,
7036,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1501,
23,
33,
7036,
16,
9387,
33,
7036,
4672,
3536,
1788,
279,
3148,
18,
225,
12943,
30,
19503,
6449,
404,
18,
3148,
3816,
17472,
33,
5510,
65,
4672,
326,
374,
92,
20,
3148,
1879,
2285,
62,
576,
18,
3148,
12,
1098,
67,
792,
67,
3870,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
598,
1517,
1027,
15688,
628,
326,
666,
67,
792,
67,
3870,
890,
18,
3148,
12,
82,
3870,
16,
3222,
16,
306,
17472,
33,
5510,
65,
4672,
3148,
598,
864,
1300,
434,
2595,
471,
3569,
666,
434,
3222,
1059,
18,
3148,
12,
82,
3870,
16,
21330,
16,
3222,
16,
2
] |
query['sort_on'] = sort_index query['sort_order'] = self.sort_order
|
if self.sort_withcatalog : query['sort_on'] = sort_index query['sort_order'] = self.sort_order
|
def finderQuery(self) : """ return query for results depending on some params """ request = self.request if self.query : return self.query elif self.typeview == 'selection': return {'uid' : self.blacklist} elif self.displaywithoutquery or self.searchsubmit : query = {} path = {} if not self.searchsubmit : path['depth'] = 1 path['query'] = self.browsedpath query['path'] = path sort_index = self.sort_on query['sort_on'] = sort_index query['sort_order'] = self.sort_order if self.types : query['portal_type'] = self.types if self.searchsubmit : # TODO : use a dynamic form with different possible searchform fields q = request.get('SearchableText', '') if q : for char in '?-+*': q = q.replace(char, ' ') r=q.split() r = " AND ".join(r) searchterms = _quote_bad_chars(r)+'*' query['SearchableText'] = searchterms #query = {'path': {'query': '/cktest', 'depth': 2}, 'sort_on': 'getObjPositionInParent'} return query
|
5e1bd0b8474637a44e6095e689d013db886351d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/5e1bd0b8474637a44e6095e689d013db886351d2/finder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7532,
1138,
12,
2890,
13,
294,
3536,
327,
843,
364,
1686,
8353,
603,
2690,
859,
3536,
225,
590,
273,
365,
18,
2293,
309,
365,
18,
2271,
294,
327,
365,
18,
2271,
1327,
365,
18,
723,
1945,
422,
296,
10705,
4278,
327,
13666,
1911,
11,
294,
365,
18,
22491,
97,
1327,
365,
18,
5417,
13299,
2271,
578,
365,
18,
3072,
9297,
294,
843,
273,
2618,
589,
273,
2618,
309,
486,
365,
18,
3072,
9297,
294,
589,
3292,
5979,
3546,
273,
404,
589,
3292,
2271,
3546,
273,
225,
365,
18,
70,
492,
730,
803,
843,
3292,
803,
3546,
273,
589,
1524,
67,
1615,
273,
365,
18,
3804,
67,
265,
309,
365,
18,
3804,
67,
1918,
7199,
294,
843,
3292,
3804,
67,
265,
3546,
273,
1524,
67,
1615,
843,
3292,
3804,
67,
1019,
3546,
273,
365,
18,
3804,
67,
1019,
309,
365,
18,
2352,
294,
843,
3292,
24386,
67,
723,
3546,
273,
365,
18,
2352,
225,
309,
365,
18,
3072,
9297,
294,
468,
2660,
294,
999,
279,
5976,
646,
598,
3775,
3323,
1623,
687,
1466,
1043,
273,
590,
18,
588,
2668,
2979,
429,
1528,
2187,
28707,
309,
1043,
294,
364,
1149,
316,
13023,
17,
15,
4035,
30,
1043,
273,
1043,
18,
2079,
12,
3001,
16,
296,
8624,
436,
33,
85,
18,
4939,
1435,
436,
273,
315,
4116,
3552,
5701,
12,
86,
13,
1623,
10112,
273,
389,
6889,
67,
8759,
67,
7549,
12,
86,
13,
6797,
4035,
225,
843,
3292,
2979,
429,
1528,
3546,
273,
1623,
10112,
225,
468,
2271,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7532,
1138,
12,
2890,
13,
294,
3536,
327,
843,
364,
1686,
8353,
603,
2690,
859,
3536,
225,
590,
273,
365,
18,
2293,
309,
365,
18,
2271,
294,
327,
365,
18,
2271,
1327,
365,
18,
723,
1945,
422,
296,
10705,
4278,
327,
13666,
1911,
11,
294,
365,
18,
22491,
97,
1327,
365,
18,
5417,
13299,
2271,
578,
365,
18,
3072,
9297,
294,
843,
273,
2618,
589,
273,
2618,
309,
486,
365,
18,
3072,
9297,
294,
589,
3292,
5979,
3546,
273,
404,
589,
3292,
2271,
3546,
273,
225,
365,
18,
70,
492,
730,
803,
843,
3292,
803,
3546,
273,
589,
1524,
67,
1615,
273,
365,
18,
3804,
67,
265,
309,
365,
18,
3804,
67,
1918,
7199,
294,
843,
3292,
3804,
2
] |
this = apply(_quickfix.new_ListExecInstType, args)
|
this = _quickfix.new_ListExecInstType(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_ListExecInstType, 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,
682,
1905,
10773,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
682,
1905,
10773,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.assertEqual(func, os.remove) self.assertEqual(arg, self.childpath)
|
if func is os.remove: self.assertEqual(arg, self.childpath) else: self.assertIs(func, os.listdir, "func must be either os.remove or os.listdir") self.assertEqual(arg, TESTFN)
|
def check_args_to_onerror(self, func, arg, exc): if self.errorState == 0: self.assertEqual(func, os.remove) self.assertEqual(arg, self.childpath) self.failUnless(issubclass(exc[0], OSError)) self.errorState = 1 else: self.assertEqual(func, os.rmdir) self.assertEqual(arg, TESTFN) self.failUnless(issubclass(exc[0], OSError)) self.errorState = 2
|
19e9ae5a8d3a0990ca4d6116a4b1a9ef4656e03b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/19e9ae5a8d3a0990ca4d6116a4b1a9ef4656e03b/test_shutil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1968,
67,
869,
67,
265,
1636,
12,
2890,
16,
1326,
16,
1501,
16,
3533,
4672,
309,
365,
18,
1636,
1119,
422,
374,
30,
309,
1326,
353,
1140,
18,
4479,
30,
365,
18,
11231,
5812,
12,
3175,
16,
365,
18,
3624,
803,
13,
469,
30,
365,
18,
11231,
2520,
12,
644,
16,
1140,
18,
1098,
1214,
16,
315,
644,
1297,
506,
3344,
1140,
18,
4479,
578,
1140,
18,
1098,
1214,
7923,
365,
18,
11231,
5812,
12,
3175,
16,
22130,
19793,
13,
365,
18,
6870,
984,
2656,
12,
1054,
373,
1106,
12,
10075,
63,
20,
6487,
10002,
3719,
365,
18,
1636,
1119,
273,
404,
469,
30,
365,
18,
11231,
5812,
12,
644,
16,
1140,
18,
8864,
1214,
13,
365,
18,
11231,
5812,
12,
3175,
16,
22130,
19793,
13,
365,
18,
6870,
984,
2656,
12,
1054,
373,
1106,
12,
10075,
63,
20,
6487,
10002,
3719,
365,
18,
1636,
1119,
273,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1968,
67,
869,
67,
265,
1636,
12,
2890,
16,
1326,
16,
1501,
16,
3533,
4672,
309,
365,
18,
1636,
1119,
422,
374,
30,
309,
1326,
353,
1140,
18,
4479,
30,
365,
18,
11231,
5812,
12,
3175,
16,
365,
18,
3624,
803,
13,
469,
30,
365,
18,
11231,
2520,
12,
644,
16,
1140,
18,
1098,
1214,
16,
315,
644,
1297,
506,
3344,
1140,
18,
4479,
578,
1140,
18,
1098,
1214,
7923,
365,
18,
11231,
5812,
12,
3175,
16,
22130,
19793,
13,
365,
18,
6870,
984,
2656,
12,
1054,
373,
1106,
12,
10075,
63,
20,
6487,
10002,
3719,
365,
18,
1636,
1119,
273,
404,
469,
30,
365,
18,
11231,
5812,
12,
644,
16,
1140,
18,
8864,
1214,
13,
2
] |
pkgdir = os.path.join(data.expand('${SVNDIR}', localdata), pkg)
|
relpath = ud.path if relpath.startswith('/'): relpath = relpath[1:] pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath)
|
def go(self, loc, ud, d): """Fetch url"""
|
8f7194038c3bd45794988096b5a295417ce36b89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/8f7194038c3bd45794988096b5a295417ce36b89/svn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
12,
2890,
16,
1515,
16,
23969,
16,
302,
4672,
3536,
5005,
880,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1960,
12,
2890,
16,
1515,
16,
23969,
16,
302,
4672,
3536,
5005,
880,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not os.path.isfile(os.path.join(MEDIA_ROOT, version_path)):
|
if not os.path.isfile(smart_str(os.path.join(MEDIA_ROOT, version_path))):
|
def render(self, context): try: source = self.src.resolve(context) except VariableDoesNotExist: return None if self.version_prefix: version_prefix = self.version_prefix else: try: version_prefix = self.version_prefix_var.resolve(context) except VariableDoesNotExist: return None try: source = force_unicode(source) version_path = get_version_path(url_to_path(source), version_prefix) if not os.path.isfile(os.path.join(MEDIA_ROOT, version_path)): # create version version_path = version_generator(url_to_path(source), version_prefix) elif os.path.getmtime(os.path.join(MEDIA_ROOT, url_to_path(source))) > os.path.getmtime(os.path.join(MEDIA_ROOT, version_path)): # recreate version if original image was updated version_path = version_generator(url_to_path(source), version_prefix, force=True) context[self.var_name] = FileObject(version_path) except: context[self.var_name] = "" return ''
|
ba75c7397ad347fe99b5ef5c98fe29e360e77cc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12975/ba75c7397ad347fe99b5ef5c98fe29e360e77cc1/fb_versions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
4672,
775,
30,
1084,
273,
365,
18,
4816,
18,
10828,
12,
2472,
13,
1335,
7110,
15264,
30,
327,
599,
309,
365,
18,
1589,
67,
3239,
30,
1177,
67,
3239,
273,
365,
18,
1589,
67,
3239,
469,
30,
775,
30,
1177,
67,
3239,
273,
365,
18,
1589,
67,
3239,
67,
1401,
18,
10828,
12,
2472,
13,
1335,
7110,
15264,
30,
327,
599,
775,
30,
1084,
273,
2944,
67,
9124,
12,
3168,
13,
1177,
67,
803,
273,
336,
67,
1589,
67,
803,
12,
718,
67,
869,
67,
803,
12,
3168,
3631,
1177,
67,
3239,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
26416,
67,
701,
12,
538,
18,
803,
18,
5701,
12,
26368,
67,
9185,
16,
1177,
67,
803,
3719,
4672,
468,
752,
1177,
1177,
67,
803,
273,
1177,
67,
8812,
12,
718,
67,
869,
67,
803,
12,
3168,
3631,
1177,
67,
3239,
13,
1327,
1140,
18,
803,
18,
588,
10838,
12,
538,
18,
803,
18,
5701,
12,
26368,
67,
9185,
16,
880,
67,
869,
67,
803,
12,
3168,
20349,
405,
1140,
18,
803,
18,
588,
10838,
12,
538,
18,
803,
18,
5701,
12,
26368,
67,
9185,
16,
1177,
67,
803,
3719,
30,
468,
23052,
1177,
309,
2282,
1316,
1703,
3526,
1177,
67,
803,
273,
1177,
67,
8812,
12,
718,
67,
869,
67,
803,
12,
3168,
3631,
1177,
67,
3239,
16,
2944,
33,
5510,
13,
819,
63,
2890,
18,
1401,
67,
529,
65,
273,
1387,
921,
12,
1589,
67,
803,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
4672,
775,
30,
1084,
273,
365,
18,
4816,
18,
10828,
12,
2472,
13,
1335,
7110,
15264,
30,
327,
599,
309,
365,
18,
1589,
67,
3239,
30,
1177,
67,
3239,
273,
365,
18,
1589,
67,
3239,
469,
30,
775,
30,
1177,
67,
3239,
273,
365,
18,
1589,
67,
3239,
67,
1401,
18,
10828,
12,
2472,
13,
1335,
7110,
15264,
30,
327,
599,
775,
30,
1084,
273,
2944,
67,
9124,
12,
3168,
13,
1177,
67,
803,
273,
336,
67,
1589,
67,
803,
12,
718,
67,
869,
67,
803,
12,
3168,
3631,
1177,
67,
3239,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
26416,
67,
701,
12,
538,
18,
803,
18,
5701,
12,
26368,
2
] |
RoutesContext = DefaultRoutesContext deprecated('RoutesContext', "('from repoze.bfg.urldispatch import RoutesContext' is now " "deprecated; instead use 'from repoze.bfg.urldispatch import " "DefaultRoutesContext')", )
|
def __init__(self, **kw): self.__dict__.update(kw)
|
fab47b47407306d893f43517c322e724612c834f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/fab47b47407306d893f43517c322e724612c834f/urldispatch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
9987,
4672,
365,
16186,
1576,
25648,
2725,
12,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
9987,
4672,
365,
16186,
1576,
25648,
2725,
12,
9987,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
librsync.librsyncError, C.UnknownFileTypeError
|
librsync.librsyncError, C.UnknownFileTypeError,
|
def catch_error(exc): """Return true if exception exc should be caught""" for exception_class in (rpath.SkipFileException, rpath.RPathException, librsync.librsyncError, C.UnknownFileTypeError zlib.error): if isinstance(exc, exception_class): return 1 if (isinstance(exc, EnvironmentError) and # the invalid mode shows up in backups of /proc for some reason (exc[0] in ('invalid mode: rb', 'Not a gzipped file') or errno.errorcode.has_key(exc[0]) and errno.errorcode[exc[0]] in ('EPERM', 'ENOENT', 'EACCES', 'EBUSY', 'EEXIST', 'ENOTDIR', 'EILSEQ', 'ENAMETOOLONG', 'EINTR', 'ESTALE', 'ENOTEMPTY', 'EIO', 'ETXTBSY', 'ESRCH', 'EINVAL', 'EDEADLOCK', 'EDEADLK', 'EOPNOTSUPP', 'ETIMEDOUT'))): return 1 return 0
|
5daf429621ec601a2365f2406850227935d0801f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/783/5daf429621ec601a2365f2406850227935d0801f/robust.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1044,
67,
1636,
12,
10075,
4672,
3536,
990,
638,
309,
1520,
3533,
1410,
506,
13537,
8395,
364,
1520,
67,
1106,
316,
261,
86,
803,
18,
6368,
812,
503,
16,
436,
803,
18,
54,
743,
503,
16,
2561,
5453,
1209,
18,
2941,
5453,
1209,
668,
16,
385,
18,
4874,
812,
19030,
16,
24220,
18,
1636,
4672,
309,
1549,
12,
10075,
16,
1520,
67,
1106,
4672,
327,
404,
309,
261,
291,
1336,
12,
10075,
16,
7518,
668,
13,
471,
468,
326,
2057,
1965,
17975,
731,
316,
22091,
434,
342,
9381,
364,
2690,
3971,
261,
10075,
63,
20,
65,
316,
7707,
5387,
1965,
30,
7138,
2187,
296,
1248,
279,
10331,
1845,
585,
6134,
578,
8402,
18,
1636,
710,
18,
5332,
67,
856,
12,
10075,
63,
20,
5717,
471,
8402,
18,
1636,
710,
63,
10075,
63,
20,
13563,
316,
7707,
41,
3194,
49,
2187,
296,
1157,
51,
2222,
2187,
296,
41,
31110,
55,
2187,
296,
41,
3000,
7474,
2187,
296,
41,
11838,
2187,
296,
1157,
1974,
4537,
2187,
296,
41,
2627,
28114,
2187,
296,
21150,
26263,
7390,
2187,
296,
41,
3217,
54,
2187,
296,
11027,
37,
900,
2187,
296,
1157,
51,
16988,
6915,
2187,
296,
41,
4294,
2187,
296,
1584,
3983,
38,
7474,
2187,
296,
3991,
54,
1792,
2187,
296,
41,
706,
2669,
2187,
296,
41,
1639,
1880,
6589,
2187,
296,
41,
1639,
1880,
48,
47,
2187,
296,
41,
3665,
4400,
13272,
52,
2187,
296,
15537,
16864,
26112,
4672,
327,
404,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1044,
67,
1636,
12,
10075,
4672,
3536,
990,
638,
309,
1520,
3533,
1410,
506,
13537,
8395,
364,
1520,
67,
1106,
316,
261,
86,
803,
18,
6368,
812,
503,
16,
436,
803,
18,
54,
743,
503,
16,
2561,
5453,
1209,
18,
2941,
5453,
1209,
668,
16,
385,
18,
4874,
812,
19030,
16,
24220,
18,
1636,
4672,
309,
1549,
12,
10075,
16,
1520,
67,
1106,
4672,
327,
404,
309,
261,
291,
1336,
12,
10075,
16,
7518,
668,
13,
471,
468,
326,
2057,
1965,
17975,
731,
316,
22091,
434,
342,
9381,
364,
2690,
3971,
261,
10075,
63,
20,
65,
316,
7707,
5387,
1965,
30,
7138,
2187,
296,
1248,
279,
10331,
1845,
585,
6134,
578,
8402,
18,
1636,
710,
18,
5332,
67,
2
] |
def __createRawCursor__(self):
|
def __createRawCursor__():
|
def __createRawCursor__(self): """ A method that is only used for testing. It return a cursor object to the database currently open. """ return self.db.cursor()
|
756890fb4599378e90ea67f0294b07d61cdb0e9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/756890fb4599378e90ea67f0294b07d61cdb0e9b/fu_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
4809,
6688,
972,
13332,
3536,
432,
707,
716,
353,
1338,
1399,
364,
7769,
18,
225,
2597,
327,
279,
3347,
733,
358,
326,
2063,
4551,
1696,
18,
3536,
327,
365,
18,
1966,
18,
9216,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
4809,
6688,
972,
13332,
3536,
432,
707,
716,
353,
1338,
1399,
364,
7769,
18,
225,
2597,
327,
279,
3347,
733,
358,
326,
2063,
4551,
1696,
18,
3536,
327,
365,
18,
1966,
18,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for p in patches),
|
for p in reversed(patches)),
|
def __build_cover(tmpl, patches, msg_id, options): """Build the cover message (series description) to be sent via SMTP """ sender = __get_sender() if options.version: version_str = ' %s' % options.version else: version_str = '' if options.prefix: prefix_str = options.prefix + ' ' else: confprefix = config.get('stgit.mail.prefix') if confprefix: prefix_str = confprefix + ' ' else: prefix_str = '' total_nr_str = str(len(patches)) patch_nr_str = '0'.zfill(len(total_nr_str)) if len(patches) > 1: number_str = ' %s/%s' % (patch_nr_str, total_nr_str) else: number_str = '' tmpl_dict = {'sender': sender, # for backward template compatibility 'maintainer': sender, # for backward template compatibility 'endofheaders': '', # for backward template compatibility 'date': '', 'version': version_str, 'prefix': prefix_str, 'patchnr': patch_nr_str, 'totalnr': total_nr_str, 'number': number_str, 'shortlog': stack.shortlog(crt_series.get_patch(p) for p in patches), 'diffstat': gitlib.diffstat(git.diff( rev1 = git_id(crt_series, '%s^' % patches[0]), rev2 = git_id(crt_series, '%s' % patches[-1]), diff_flags = options.diff_flags))} try: msg_string = tmpl % tmpl_dict except KeyError, err: raise CmdException, 'Unknown patch template variable: %s' \ % err except TypeError: raise CmdException, 'Only "%(name)s" variables are ' \ 'supported in the patch template' if options.edit_cover: msg_string = __edit_message(msg_string) # The Python email message try: msg = email.message_from_string(msg_string) except Exception, ex: raise CmdException, 'template parsing error: %s' % str(ex) __build_address_headers(msg, options) __build_extra_headers(msg, msg_id, options.refid) __encode_message(msg) return msg
|
c9379a15770a699c0d64ae0897ea1a8e235a2c71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12366/c9379a15770a699c0d64ae0897ea1a8e235a2c71/mail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
3165,
12,
24717,
16,
16482,
16,
1234,
67,
350,
16,
702,
4672,
3536,
3116,
326,
5590,
883,
261,
10222,
2477,
13,
358,
506,
3271,
3970,
18102,
3536,
5793,
273,
1001,
588,
67,
15330,
1435,
225,
309,
702,
18,
1589,
30,
1177,
67,
701,
273,
296,
738,
87,
11,
738,
702,
18,
1589,
469,
30,
1177,
67,
701,
273,
875,
225,
309,
702,
18,
3239,
30,
1633,
67,
701,
273,
702,
18,
3239,
397,
296,
296,
469,
30,
2195,
3239,
273,
642,
18,
588,
2668,
334,
6845,
18,
4408,
18,
3239,
6134,
309,
2195,
3239,
30,
1633,
67,
701,
273,
2195,
3239,
397,
296,
296,
469,
30,
1633,
67,
701,
273,
875,
225,
2078,
67,
11611,
67,
701,
273,
609,
12,
1897,
12,
30278,
3719,
4729,
67,
11611,
67,
701,
273,
296,
20,
10332,
94,
5935,
12,
1897,
12,
4963,
67,
11611,
67,
701,
3719,
309,
562,
12,
30278,
13,
405,
404,
30,
1300,
67,
701,
273,
296,
738,
87,
5258,
87,
11,
738,
261,
2272,
67,
11611,
67,
701,
16,
2078,
67,
11611,
67,
701,
13,
469,
30,
1300,
67,
701,
273,
875,
225,
10720,
67,
1576,
273,
13666,
15330,
4278,
4202,
5793,
16,
468,
364,
12555,
1542,
8926,
296,
81,
1598,
1521,
4278,
282,
5793,
16,
468,
364,
12555,
1542,
8926,
296,
409,
792,
2485,
4278,
10226,
468,
364,
12555,
1542,
8926,
296,
712,
4278,
540,
10226,
296,
1589,
4278,
1377,
1177,
67,
701,
16,
296,
3239,
4278,
202,
1633,
67,
701,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
67,
3165,
12,
24717,
16,
16482,
16,
1234,
67,
350,
16,
702,
4672,
3536,
3116,
326,
5590,
883,
261,
10222,
2477,
13,
358,
506,
3271,
3970,
18102,
3536,
5793,
273,
1001,
588,
67,
15330,
1435,
225,
309,
702,
18,
1589,
30,
1177,
67,
701,
273,
296,
738,
87,
11,
738,
702,
18,
1589,
469,
30,
1177,
67,
701,
273,
875,
225,
309,
702,
18,
3239,
30,
1633,
67,
701,
273,
702,
18,
3239,
397,
296,
296,
469,
30,
2195,
3239,
273,
642,
18,
588,
2668,
334,
6845,
18,
4408,
18,
3239,
6134,
309,
2195,
3239,
30,
1633,
67,
701,
273,
2195,
3239,
397,
296,
296,
469,
30,
1633,
67,
701,
273,
875,
225,
2078,
67,
11611,
2
] |
try: pid = int(codecs.open( os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'w', 'utf-8').read())
|
try: pid = int(codecs.open( os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'r', 'utf-8').read())
|
def _main(arglist): signal.signal(signal.SIGINT, signalHandler) try: (argp, rest) = getopt.gnu_getopt(arglist[1:], "sdfrokc:h", longopts=["state", "daemon", "full-help", "run", "runonce", "kill", "config=", "set-default-config=", "help", "list-failed", "list-saved", "purged-saved", "purge-failed", "comment-config"]) except getopt.GetoptError: sys.stderrUTF.write(helpMessage) sys.exit(1) global _action, _runOnce, configFile, REDIRECT_TO, saved for param, argum in argp: if param == "--daemon" or param == "-d": _action = "daemon" elif param == "--run" or param == "-r": _action = "run" elif param == "--runonce" or param == "-o": _action = "run" _runOnce = True elif param =="--state" or param == "-s": _action = 'state' elif param == "--kill" or param == "-k": _action = "kill" elif param == "--config" or param == "-c": configFile = argum elif param == "--purge-failed": _action="purge-failed" elif param == "--help" or param == "-h": _action = 'help' elif param == "--full-help" or param == "-f": _action = 'fullhelp' elif param == "--set-default-config": _action ='set-default-config' elif param == "--list-failed": _action = 'list-failed' elif param == "--list-saved": _action = 'list-saved' elif param == "--purge-saved": _action = 'purge-saved' elif param == "--comment-config": _action = 'comment-config' if _action == 'comment-config': # do not use ReFormatString b/c we want to preserve lines for e.g. > sample.cfg print commentConfig raise SystemExit elif _action == "daemon": getConfig(filename=configFile, reload=True) if os.name == u'nt' or os.name == u'dos' or os.name == u'ce': logStatusMsg( u"daemon mode not supported on Windows. will try to continue, but this is likely to crash", 1) elif os.name == u'mac' or os.name == u"os2": logStatusMsg( u"daemon mode may have issues on your platform. will try to continue, but may crash. feel free to submit a ticket with relevant output on this issue", 1) getConfig()['global']['verbose'] = 0 if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir']) if isinstance(getConfig()['global']['umask'], int ): try: os.umask( getConfig()['global']['umask'] ) except (AttributeError, ValueError), m: logStatusMsg( u'cannot set umask. Umask must be an integer value. Umask only available on some platforms. %s' % unicode(m), 2) logStatusMsg(u"entering Daemon mode", 5) if (hasattr(os, "devnull")): REDIRECT_TO = os.devnull else: REDIRECT_TO = "/dev/null" callDaemon() logStatusMsg( u"--- RSSDler %s" % getVersion() , 4) main() elif _action == 'fullhelp': sys.stdoutUTF.write(unicode(ReFormatString(inputstring=helpMessage)) + os.linesep) raise SystemExit elif _action == 'help': sys.stdoutUTF.write(unicode(ReFormatString(inputstring=cliOptions)) + os.linesep) raise SystemExit elif _action == "kill": getConfig(filename=configFile, reload=True) pid = int(codecs.open(os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'r', 'utf-8').read()) raise SystemExit elif _action == "list-failed": getConfig(filename=configFile, reload=True) if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir']) logStatusMsg(u"changed directory to %s" % getConfig()['global']['workingDir'], 5) while 1: getSaved( getConfig()['global']['saveFile'] ) try: getSaved.lock() getSaved.load() break except (Locked, IOError, ValueError, IndexError): del saved time.sleep(3) continue for failure in getSaved.failedDown: print failure['link'] getSaved.unlock() raise SystemExit elif _action == "list-saved": getConfig(filename=configFile, reload=True) if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir']) logStatusMsg(u"changed directory to %s" % getConfig()['global']['workingDir'], 5) while 1: getSaved( getConfig()['global']['saveFile'] ) try: getSaved.lock() getSaved.load() break except (Locked, IOError, ValueError, IndexError): del saved time.sleep(3) continue for down in getSaved().downloads: print down getSaved().unlock() sys.exit() elif _action == "purge-failed": getConfig(filename=configFile, reload=True) if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir'])
|
13d117720c8018be030f6516cb9906c0b2260aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/13d117720c8018be030f6516cb9906c0b2260aa1/rssdler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
3175,
1098,
4672,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
1503,
13,
775,
30,
261,
3175,
84,
16,
3127,
13,
273,
225,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
3175,
1098,
63,
21,
30,
6487,
315,
87,
2180,
3250,
71,
30,
76,
3113,
1525,
4952,
33,
9614,
2019,
3113,
315,
21511,
3113,
315,
2854,
17,
5201,
3113,
315,
2681,
3113,
315,
2681,
8243,
3113,
315,
16418,
3113,
315,
1425,
1546,
16,
315,
542,
17,
1886,
17,
1425,
1546,
16,
315,
5201,
3113,
315,
1098,
17,
7307,
3113,
315,
1098,
17,
14077,
3113,
315,
12688,
2423,
17,
14077,
3113,
315,
26422,
17,
7307,
3113,
315,
3469,
17,
1425,
6,
5717,
1335,
225,
336,
3838,
18,
967,
3838,
668,
30,
2589,
18,
11241,
5159,
18,
2626,
12,
5201,
1079,
13,
2589,
18,
8593,
12,
21,
13,
2552,
389,
1128,
16,
389,
2681,
12212,
16,
12247,
16,
14411,
45,
4512,
67,
4296,
16,
5198,
364,
579,
16,
1501,
379,
316,
1501,
84,
30,
309,
579,
422,
5238,
21511,
6,
578,
579,
422,
3701,
72,
6877,
565,
389,
1128,
273,
315,
21511,
6,
1327,
579,
422,
5238,
2681,
6,
578,
579,
422,
3701,
86,
6877,
389,
1128,
273,
315,
2681,
6,
1327,
579,
422,
5238,
2681,
8243,
6,
578,
579,
422,
3701,
83,
6877,
389,
1128,
273,
315,
2681,
6,
389,
2681,
12212,
273,
1053,
1327,
579,
422,
6,
413,
2019,
6,
578,
579,
422,
3701,
87,
6877,
389,
1128,
273,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
3175,
1098,
4672,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
1503,
13,
775,
30,
261,
3175,
84,
16,
3127,
13,
273,
225,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
3175,
1098,
63,
21,
30,
6487,
315,
87,
2180,
3250,
71,
30,
76,
3113,
1525,
4952,
33,
9614,
2019,
3113,
315,
21511,
3113,
315,
2854,
17,
5201,
3113,
315,
2681,
3113,
315,
2681,
8243,
3113,
315,
16418,
3113,
315,
1425,
1546,
16,
315,
542,
17,
1886,
17,
1425,
1546,
16,
315,
5201,
3113,
315,
1098,
17,
7307,
3113,
315,
1098,
17,
14077,
3113,
315,
12688,
2423,
17,
14077,
3113,
315,
26422,
17,
7307,
3113,
315,
3469,
17,
1425,
6,
5717,
1335,
2
] |
if what == "chunks" and self.last_tover > 0:
|
if what == "chunks" and self.last_tover > 0. and tover > 0.:
|
def swap(self, what, mode=None): "Swap chunks or slices using a certain bounds reference."
|
47dfe4a697632e15817b133a135a93c989b6f6d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/47dfe4a697632e15817b133a135a93c989b6f6d0/index.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7720,
12,
2890,
16,
4121,
16,
1965,
33,
7036,
4672,
315,
12521,
6055,
578,
12390,
1450,
279,
8626,
4972,
2114,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7720,
12,
2890,
16,
4121,
16,
1965,
33,
7036,
4672,
315,
12521,
6055,
578,
12390,
1450,
279,
8626,
4972,
2114,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.LogWindow.show()
|
self.LogWindow.show()
|
def window_state_event_cb(window, event): if event.changed_mask & gtk.gdk.WINDOW_STATE_ICONIFIED: if event.new_window_state & gtk.gdk.WINDOW_STATE_ICONIFIED: self.minimized = 1 else: self.minimized = 0
|
de19e9fd7192b52611630ff5e726665e825d19de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/de19e9fd7192b52611630ff5e726665e825d19de/frame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
2019,
67,
2575,
67,
7358,
12,
5668,
16,
871,
4672,
309,
871,
18,
6703,
67,
4455,
473,
22718,
18,
75,
2883,
18,
23407,
67,
7998,
67,
21745,
13519,
30,
309,
871,
18,
2704,
67,
5668,
67,
2019,
473,
22718,
18,
75,
2883,
18,
23407,
67,
7998,
67,
21745,
13519,
30,
365,
18,
1154,
381,
1235,
273,
404,
469,
30,
365,
18,
1154,
381,
1235,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
2019,
67,
2575,
67,
7358,
12,
5668,
16,
871,
4672,
309,
871,
18,
6703,
67,
4455,
473,
22718,
18,
75,
2883,
18,
23407,
67,
7998,
67,
21745,
13519,
30,
309,
871,
18,
2704,
67,
5668,
67,
2019,
473,
22718,
18,
75,
2883,
18,
23407,
67,
7998,
67,
21745,
13519,
30,
365,
18,
1154,
381,
1235,
273,
404,
469,
30,
365,
18,
1154,
381,
1235,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return isinstance(member, ModuleType)
|
return False
|
def can_document_member(cls, member, membername, isattr, parent): return isinstance(member, ModuleType)
|
fd1313e7b895befa6478154fe627a8974effc014 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/fd1313e7b895befa6478154fe627a8974effc014/autodoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
5457,
67,
5990,
12,
6429,
16,
3140,
16,
3140,
529,
16,
353,
1747,
16,
982,
4672,
327,
1549,
12,
5990,
16,
5924,
559,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
848,
67,
5457,
67,
5990,
12,
6429,
16,
3140,
16,
3140,
529,
16,
353,
1747,
16,
982,
4672,
327,
1549,
12,
5990,
16,
5924,
559,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
default=u'Values ${val} is not allowed for vocabulary of element ${label}.',
|
default=u'Values ${val} are not allowed for vocabulary of element ${label}.',
|
def validate_vocabulary(self, instance, value, errors): """Make sure value is inside the allowed values for a given vocabulary""" badvalues = [] if value: # coerce value into a list called values values = value if type(value) in STRING_TYPES: values = [value] elif type(value) == BooleanType: values = [str(value)] elif type(value) not in (TupleType, ListType): raise TypeError("Field value type error: %s" % type(value)) vocab = self.Vocabulary(instance) # filter empty values = [instance.unicodeEncode(v) for v in values if v.strip()] # extract valid values from vocabulary valids = [] for v in vocab: if type(v) in (TupleType, ListType): v = v[0] if not type(v) in STRING_TYPES: v = str(v) valids.append(instance.unicodeEncode(v)) # check field values badvalues = [val for val in values if not val in valids]
|
c023d3352babadc7d91a4f5e383ddeca3024e27a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/c023d3352babadc7d91a4f5e383ddeca3024e27a/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
15913,
13631,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
3536,
6464,
3071,
460,
353,
4832,
326,
2935,
924,
364,
279,
864,
20906,
8395,
5570,
2372,
273,
5378,
309,
460,
30,
468,
12270,
460,
1368,
279,
666,
2566,
924,
924,
273,
460,
309,
618,
12,
1132,
13,
316,
9469,
67,
10564,
30,
924,
273,
306,
1132,
65,
1327,
618,
12,
1132,
13,
422,
3411,
559,
30,
924,
273,
306,
701,
12,
1132,
25887,
1327,
618,
12,
1132,
13,
486,
316,
261,
9038,
559,
16,
987,
559,
4672,
1002,
3580,
2932,
974,
460,
618,
555,
30,
738,
87,
6,
738,
618,
12,
1132,
3719,
9623,
273,
365,
18,
30747,
12,
1336,
13,
468,
1034,
1008,
924,
273,
306,
1336,
18,
9124,
5509,
12,
90,
13,
364,
331,
316,
924,
309,
331,
18,
6406,
1435,
65,
468,
2608,
923,
924,
628,
20906,
923,
87,
273,
5378,
364,
331,
316,
9623,
30,
309,
618,
12,
90,
13,
316,
261,
9038,
559,
16,
987,
559,
4672,
331,
273,
331,
63,
20,
65,
309,
486,
618,
12,
90,
13,
316,
9469,
67,
10564,
30,
331,
273,
609,
12,
90,
13,
923,
87,
18,
6923,
12,
1336,
18,
9124,
5509,
12,
90,
3719,
468,
866,
652,
924,
5570,
2372,
273,
306,
1125,
364,
1244,
316,
924,
309,
486,
1244,
316,
923,
87,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
15913,
13631,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
3536,
6464,
3071,
460,
353,
4832,
326,
2935,
924,
364,
279,
864,
20906,
8395,
5570,
2372,
273,
5378,
309,
460,
30,
468,
12270,
460,
1368,
279,
666,
2566,
924,
924,
273,
460,
309,
618,
12,
1132,
13,
316,
9469,
67,
10564,
30,
924,
273,
306,
1132,
65,
1327,
618,
12,
1132,
13,
422,
3411,
559,
30,
924,
273,
306,
701,
12,
1132,
25887,
1327,
618,
12,
1132,
13,
486,
316,
261,
9038,
559,
16,
987,
559,
4672,
1002,
3580,
2932,
974,
460,
618,
555,
30,
738,
87,
6,
738,
618,
12,
1132,
3719,
9623,
273,
365,
18,
30747,
12,
1336,
13,
468,
1034,
1008,
924,
2
] |
def displayChangedMenuState(self): self.mouseOverSelectingItem.Check(self.display.useMouseOverSelecting()) self.showRegionNamesMenuItem.Check(self.display.showRegionNames()) self.showNeuronNamesMenuItem.Check(self.display.showNeuronNames()) self.labelsFloatOnTopMenuItem.Check(self.display.labelsFloatOnTop()) self.useGhostsMenuItem.Check(self.display.useGhosts()) self.resetViewMenuItem.Enable(self.display.viewDimensions == 3) self.zoomToFitMenuItem.Enable(self.display.viewDimensions == 2) self.zoomToSelectionMenuItem.Enable(self.display.viewDimensions == 2 and any(self.display.selection())) self.GetToolBar().ToggleTool(self._view2DId, self.display.viewDimensions == 2) self.GetToolBar().ToggleTool(self._view3DId, self.display.viewDimensions == 3)
|
def toolBar(self): toolBar = wx.ToolBar(self) toolBar.AddCheckLabelTool(self.viewIn2DMenuItem.GetId(), gettext('2D View'), self.loadBitmap("View2D.png")) self.Bind(wx.EVT_TOOL, self.display.onViewIn2D, id = self.viewIn2DMenuItem.GetId()) toolBar.AddCheckLabelTool(self.viewIn3DMenuItem.GetId(), gettext('3D View'), self.loadBitmap("View3D.png")) self.Bind(wx.EVT_TOOL, self.display.onViewIn3D, id = self.viewIn3DMenuItem.GetId()) toolBar.AddSeparator() toolBar.AddLabelTool(self.zoomToFitMenuItem.GetId(), gettext('Zoom To Fit'), self.loadBitmap("ZoomToFit.png")) toolBar.AddLabelTool(self.zoomToSelectionMenuItem.GetId(), gettext('Zoom To Selection'), self.loadBitmap("ZoomToSelection.png")) toolBar.AddLabelTool(self.zoomInMenuItem.GetId(), gettext('Zoom In'), self.loadBitmap("ZoomIn.png")) toolBar.AddLabelTool(self.zoomOutMenuItem.GetId(), gettext('Zoom Out'), self.loadBitmap("ZoomOut.png")) toolBar.Realize() return toolBar def onUpdateUI(self, event): eventId = event.GetId() if eventId == self.mouseOverSelectingItem.GetId(): event.Check(self.display.useMouseOverSelecting()) elif eventId == self.showRegionNamesMenuItem.GetId(): event.Check(self.display.showRegionNames()) elif eventId == self.showNeuronNamesMenuItem.GetId(): event.Check(self.display.showNeuronNames()) elif eventId == self.labelsFloatOnTopMenuItem.GetId(): event.Check(self.display.labelsFloatOnTop()) elif eventId == self.useGhostsMenuItem.GetId(): event.Check(self.display.useGhosts()) elif eventId == self.viewIn2DMenuItem.GetId(): event.Check(self.display.viewDimensions == 2) elif eventId == self.viewIn3DMenuItem.GetId(): event.Check(self.display.viewDimensions == 3) elif eventId == self.resetViewMenuItem.GetId(): event.Enable(self.display.viewDimensions == 3) elif eventId == self.zoomToFitMenuItem.GetId(): event.Enable(self.display.viewDimensions == 2) elif eventId == self.zoomToSelectionMenuItem.GetId(): event.Enable(self.display.viewDimensions == 2 and any(self.display.selection()))
|
def displayChangedMenuState(self): self.mouseOverSelectingItem.Check(self.display.useMouseOverSelecting()) self.showRegionNamesMenuItem.Check(self.display.showRegionNames()) self.showNeuronNamesMenuItem.Check(self.display.showNeuronNames()) self.labelsFloatOnTopMenuItem.Check(self.display.labelsFloatOnTop()) self.useGhostsMenuItem.Check(self.display.useGhosts()) self.resetViewMenuItem.Enable(self.display.viewDimensions == 3) self.zoomToFitMenuItem.Enable(self.display.viewDimensions == 2) self.zoomToSelectionMenuItem.Enable(self.display.viewDimensions == 2 and any(self.display.selection())) self.GetToolBar().ToggleTool(self._view2DId, self.display.viewDimensions == 2) self.GetToolBar().ToggleTool(self._view3DId, self.display.viewDimensions == 3)
|
41c8baefbb8245f0a407ec793bbafee6a34bb0e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/41c8baefbb8245f0a407ec793bbafee6a34bb0e1/NeuroptikonFrame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5226,
5190,
12,
2890,
4672,
5226,
5190,
273,
7075,
18,
6364,
5190,
12,
2890,
13,
5226,
5190,
18,
986,
1564,
2224,
6364,
12,
2890,
18,
1945,
382,
22,
40,
12958,
18,
967,
548,
9334,
24972,
2668,
22,
40,
4441,
19899,
365,
18,
945,
12224,
2932,
1767,
22,
40,
18,
6446,
6,
3719,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
26263,
16,
365,
18,
5417,
18,
265,
1767,
382,
22,
40,
16,
612,
273,
365,
18,
1945,
382,
22,
40,
12958,
18,
967,
548,
10756,
5226,
5190,
18,
986,
1564,
2224,
6364,
12,
2890,
18,
1945,
382,
23,
40,
12958,
18,
967,
548,
9334,
24972,
2668,
23,
40,
4441,
19899,
365,
18,
945,
12224,
2932,
1767,
23,
40,
18,
6446,
6,
3719,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
26263,
16,
365,
18,
5417,
18,
265,
1767,
382,
23,
40,
16,
612,
273,
365,
18,
1945,
382,
23,
40,
12958,
18,
967,
548,
10756,
5226,
5190,
18,
986,
6581,
1435,
5226,
5190,
18,
986,
2224,
6364,
12,
2890,
18,
14932,
774,
14219,
12958,
18,
967,
548,
9334,
24972,
2668,
11497,
2974,
30504,
19899,
365,
18,
945,
12224,
2932,
11497,
774,
14219,
18,
6446,
6,
3719,
5226,
5190,
18,
986,
2224,
6364,
12,
2890,
18,
14932,
774,
6233,
12958,
18,
967,
548,
9334,
24972,
2668,
11497,
2974,
12977,
19899,
365,
18,
945,
12224,
2932,
11497,
774,
6233,
18,
6446,
6,
3719,
5226,
5190,
18,
986,
2224,
6364,
12,
2890,
18,
14932,
382,
12958,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5226,
5190,
12,
2890,
4672,
5226,
5190,
273,
7075,
18,
6364,
5190,
12,
2890,
13,
5226,
5190,
18,
986,
1564,
2224,
6364,
12,
2890,
18,
1945,
382,
22,
40,
12958,
18,
967,
548,
9334,
24972,
2668,
22,
40,
4441,
19899,
365,
18,
945,
12224,
2932,
1767,
22,
40,
18,
6446,
6,
3719,
365,
18,
3357,
12,
27226,
18,
24427,
56,
67,
26263,
16,
365,
18,
5417,
18,
265,
1767,
382,
22,
40,
16,
612,
273,
365,
18,
1945,
382,
22,
40,
12958,
18,
967,
548,
10756,
5226,
5190,
18,
986,
1564,
2224,
6364,
12,
2890,
18,
1945,
382,
23,
40,
12958,
18,
967,
548,
9334,
24972,
2668,
23,
40,
4441,
19899,
365,
18,
945,
12224,
2932,
1767,
23,
2
] |
uri=uri._reduri self._parser=Redland.librdf_new_parser(_world._world, name, mime_type, uri)
|
ruri=uri._reduri else: ruri=None self._parser=Redland.librdf_new_parser(_world._world, name, mime_type, ruri)
|
def __init__(self, name="rdfxml", mime_type="application/rdf+xml", uri=None): """Create an RDF Parser (constructor).
|
fd7c031031ec0ac08c4a9519bf32ff0ab61e9369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/fd7c031031ec0ac08c4a9519bf32ff0ab61e9369/RDF.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
1546,
19299,
2902,
3113,
4892,
67,
723,
1546,
3685,
19,
19299,
15,
2902,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
1546,
19299,
2902,
3113,
4892,
67,
723,
1546,
3685,
19,
19299,
15,
2902,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
test_capi1()
|
def test_capi1(): try: _testcapi.raise_exception(BadException, 1) except TypeError, err: exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "test_capi1" assert co.co_filename.endswith('test_exceptions.py') else: print "Expected exception"
|
aa3dc456583aaffcccc16da82bb68669264880b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/aa3dc456583aaffcccc16da82bb68669264880b4/test_exceptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
2425,
21,
13332,
775,
30,
389,
3813,
71,
2425,
18,
11628,
67,
4064,
12,
6434,
503,
16,
404,
13,
1335,
3580,
16,
393,
30,
3533,
16,
393,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1825,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
710,
1815,
1825,
18,
2894,
67,
529,
422,
315,
3813,
67,
71,
2425,
21,
6,
1815,
1825,
18,
2894,
67,
3459,
18,
5839,
1918,
2668,
3813,
67,
11855,
18,
2074,
6134,
469,
30,
1172,
315,
6861,
1520,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
2425,
21,
13332,
775,
30,
389,
3813,
71,
2425,
18,
11628,
67,
4064,
12,
6434,
503,
16,
404,
13,
1335,
3580,
16,
393,
30,
3533,
16,
393,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1825,
273,
8739,
18,
18587,
67,
3789,
18,
74,
67,
710,
1815,
1825,
18,
2894,
67,
529,
422,
315,
3813,
67,
71,
2425,
21,
6,
1815,
1825,
18,
2894,
67,
3459,
18,
5839,
1918,
2668,
3813,
67,
11855,
18,
2074,
6134,
469,
30,
1172,
315,
6861,
1520,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
filler="a:b:c:"
|
filler = "a:b:c:"
|
def untranslate(trans, prepend = 1): filler="a:b:c:" if prepend == 1: context = "%s%s" % (filler,trans) else: context = trans (rc, raw) = selinux.selinux_trans_to_raw_context(context) if rc != 0: return trans if prepend: raw = raw[len(filler):] if raw == "": return trans else: return raw
|
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
13929,
12,
2338,
16,
8254,
273,
404,
4672,
28187,
273,
315,
69,
30,
70,
30,
71,
2773,
309,
8254,
422,
404,
30,
819,
273,
2213,
87,
9,
87,
6,
738,
261,
5935,
264,
16,
2338,
13,
469,
30,
819,
273,
906,
225,
261,
1310,
16,
1831,
13,
273,
357,
9534,
18,
1786,
9534,
67,
2338,
67,
869,
67,
1899,
67,
2472,
12,
2472,
13,
309,
4519,
480,
374,
30,
327,
906,
309,
8254,
30,
1831,
273,
1831,
63,
1897,
12,
5935,
264,
4672,
65,
309,
1831,
422,
1408,
30,
327,
906,
469,
30,
327,
1831,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1831,
13,
273,
357,
9534,
18,
1786,
9534,
67,
2338,
67,
869,
67,
1899,
67,
2472,
12,
2472,
13,
309,
4519,
480,
374,
30,
327,
906,
309,
8254,
30,
1831,
273,
1831,
63,
1897,
12,
5935,
264,
4672,
65,
309,
1831,
422,
1408,
30,
327,
906,
469,
30,
327,
1831,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cmd = 'DELETE FROM %s WHERE JobID in (%s)' % ( table, jobIDString )
|
cmd = 'DELETE FROM %s WHERE JobID in (%s)' % ( table, jobIDString )
|
def removeJobFromDB(self, jobIDs): """Remove job from DB
|
80754a3f17531def7cbc50d246e9e547c954723a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/80754a3f17531def7cbc50d246e9e547c954723a/JobDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2278,
1265,
2290,
12,
2890,
16,
1719,
5103,
4672,
3536,
3288,
1719,
628,
2383,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
30,
1652,
1206,
2278,
1265,
2290,
12,
2890,
16,
1719,
5103,
4672,
3536,
3288,
1719,
628,
2383,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def substr(str,x1,x2):
|
def substr(s, x1, x2):
|
def substr(str,x1,x2): raise DeprecatedIDCError, "substr() is deprecated. Use python string operations instead."
|
4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2373,
12,
87,
16,
619,
21,
16,
619,
22,
4672,
1002,
9336,
734,
39,
668,
16,
315,
10706,
1435,
353,
6849,
18,
2672,
5790,
533,
5295,
3560,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2373,
12,
87,
16,
619,
21,
16,
619,
22,
4672,
1002,
9336,
734,
39,
668,
16,
315,
10706,
1435,
353,
6849,
18,
2672,
5790,
533,
5295,
3560,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
alephsysnos = get_fieldvalues(recID, "909C0o")
|
alephsysnos = get_fieldvalues(recID, "970__a")
|
def print_record(recID, format='hb', ot='', decompress=zlib.decompress): "Prints record 'recID' formatted accoding to 'format'." out = "" # sanity check: if not record_exists(recID): return out # print record opening tags, if needed: if format == "marcxml" or format == "oai_dc": out += " <record>\n" out += " <header>\n" for id in get_fieldvalues(recID,oaiidfield): out += " <identifier>%s</identifier>\n" % id out += " <datestamp>%s</datestamp>\n" % get_modification_date(recID) out += " </header>\n" out += " <metadata>\n" if format.startswith("xm") or format == "marcxml": # look for detailed format existence: query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query, None, 1) if res: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' is not formatted in 'format' -- they are not in "bibfmt" table; so fetch all the data from "bibXXx" tables: if format == "marcxml": out += """ <record xmlns="http://www.loc.gov/MARC21/slim">\n""" out += " <controlfield tag=\"001\">%d</controlfield>\n" % int(recID) elif format.startswith("xm"): out += """ <record>\n""" out += " <controlfield tag=\"001\">%d</controlfield>\n" % int(recID) for digit1 in range(0,10): for digit2 in range(0,10): bx = "bib%d%dx" % (digit1, digit2) bibx = "bibrec_bib%d%dx" % (digit1, digit2) query = "SELECT b.tag,b.value,bb.field_number FROM %s AS b, %s AS bb "\ "WHERE bb.id_bibrec='%s' AND b.id=bb.id_bibxxx AND b.tag LIKE '%s%%' "\ "ORDER BY bb.field_number, b.tag ASC" % (bx, bibx, recID, str(digit1)+str(digit2)) if dbg: out += "<br>Debug: " + query res = run_sql(query) field_number_old = -999 field_old = "" for row in res: field, value, field_number = row[0], row[1], row[2] ind1, ind2 = field[3], field[4] if ind1 == "_": ind1 = "" if ind2 == "_": ind2 = "" # print field tag if field_number != field_number_old or field[:-1] != field_old[:-1]: if format.startswith("xm") or format == "marcxml": fieldid = encode_for_xml(field[0:3]) if field_number_old != -999: out += """ </datafield>\n""" out += """ <datafield tag="%s" ind1="%s" ind2="%s">\n""" % (encode_for_xml(field[0:3]), encode_for_xml(ind1), encode_for_xml(ind2)) field_number_old = field_number field_old = field # print subfield value if format.startswith("xm") or format == "marcxml": value = encode_for_xml(value) out += """ <subfield code="%s">%s</subfield>\n""" % (encode_for_xml(field[-1:]), value) # all fields/subfields printed in this run, so close the tag: if (format.startswith("xm") or format == "marcxml") and field_number_old != -999: out += """ </datafield>\n""" # we are at the end of printing the record: if format.startswith("xm") or format == "marcxml": out += " </record>\n" elif format == "xd" or format == "oai_dc": # XML Dublin Core format, possibly OAI -- select only some bibXXx fields: out += """ <dc xmlns="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/elements/1.1/ http://www.openarchives.org/OAI/1.1/dc.xsd">\n""" for f in get_fieldvalues(recID, "041__a"): out += " <language>%s</language>\n" % f for f in get_fieldvalues(recID, "100__a"): out += " <creator>%s</creator>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "700__a"): out += " <creator>%s</creator>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "245__a"): out += " <title>%s</title>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "65017a"): out += " <subject>%s</subject>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "8564_u"): out += " <identifier>%s</identifier>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "520__a"): out += " <description>%s</description>\n" % encode_for_xml(f) out += " <date>%s</date>\n" % get_creation_date(recID) out += " </dc>\n" elif str(format[0:3]).isdigit(): # user has asked to print some fields only if format == "001": out += "<!--%s-begin-->%s<!--%s-end-->\n" % (format, recID, format) else: vals = get_fieldvalues(recID, format) for val in vals: out += "<!--%s-begin-->%s<!--%s-end-->\n" % (format, val, format) elif format.startswith('t'): ## user directly asked for some tags to be displayed only out += get_fieldvalues_alephseq_like(recID, ot) elif format == "hm": out += "<pre>" + get_fieldvalues_alephseq_like(recID, ot) + "</pre>" elif format.startswith("h") and ot: ## user directly asked for some tags to be displayed only out += "<pre>" + get_fieldvalues_alephseq_like(recID, ot) + "</pre>" elif format == "hd": # HTML detailed format # look for detailed format existence: query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query, None, 1) if res: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' is not formatted in 'format', so either call BibFormat on the fly or use default format # second, see if we are calling BibFormat on the fly: if cfg_call_bibformat: out += call_bibformat(recID) else: # okay, need to construct a simple "Detailed record" format of our own: out += "<p> " # secondly, title: titles = get_fieldvalues(recID, "245__a") for title in titles: out += "<p><p><center><big><strong>%s</strong></big></center>" % title # thirdly, authors: authors = get_fieldvalues(recID, "100__a") + get_fieldvalues(recID, "700__a") if authors: out += "<p><p><center>" for author in authors: out += """<a href="%s/search.py?p=%s&f=author">%s</a> ;""" % (weburl, urllib.quote(author), author) out += "</center>" # fourthly, date of creation: dates = get_fieldvalues(recID, "260__c") for date in dates: out += "<p><center><small>%s</small></center>" % date # fifthly, abstract: abstracts = get_fieldvalues(recID, "520__a") for abstract in abstracts: out += """<p style="margin-left: 15%%; width: 70%%"> <small><strong>Abstract:</strong> %s</small></p>""" % abstract # fifthly bis, keywords: keywords = get_fieldvalues(recID, "6531_a") if len(keywords): out += """<p style="margin-left: 15%; width: 70%"> <small><strong>Keyword(s):</strong></small>""" for keyword in keywords: out += """<small><a href="%s/search.py?p=%s&f=keyword">%s</a> ;</small> """ % (weburl, urllib.quote(keyword), keyword) # fifthly bis bis, published in: prs_p = get_fieldvalues(recID, "909C4p") prs_v = get_fieldvalues(recID, "909C4v") prs_y = get_fieldvalues(recID, "909C4y") prs_n = get_fieldvalues(recID, "909C4n") prs_c = get_fieldvalues(recID, "909C4c") for idx in range(0,len(prs_p)): out += """<p style="margin-left: 15%%; width: 70%%"> <small><strong>Publ. in:</strong> %s""" % prs_p[idx] if prs_v and prs_v[idx]: out += """<strong>%s</strong>""" % prs_v[idx] if prs_y and prs_y[idx]: out += """(%s)""" % prs_y[idx] if prs_n and prs_n[idx]: out += """, no.%s""" % prs_n[idx] if prs_c and prs_c[idx]: out += """, p.%s""" % prs_c[idx] out += """.</small>""" # sixthly, fulltext link: urls_z = get_fieldvalues(recID, "8564_z") urls_u = get_fieldvalues(recID, "8564_u") for idx in range(0,len(urls_u)): link_text = "URL" if urls_z[idx]: link_text = urls_z[idx] out += """<p style="margin-left: 15%%; width: 70%%"> <small><strong>%s:</strong> <a href="%s">%s</a></small>""" % (link_text, urls_u[idx], urls_u[idx]) # print some white space at the end: out += "<p><p>" elif format == "hb-fly": # HTML brief called on the fly; suitable for testing brief formats out += call_bibformat(recID, "BRIEF_HTML") out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?id=%s">Detailed record</a></span>""" \ % (weburl, recID) elif format == "hd-ejournalsite": # HTML brief called on the fly; suitable for testing brief formats out += call_bibformat(recID, "EJOURNALSITE") out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?id=%s">Detailed record</a></span>""" \ % (weburl, recID) else: # HTML brief format by default query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query) if res: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' does not exist in format 'format', so print some default format: # firstly, title: titles = get_fieldvalues(recID, "245__a") for title in titles: out += "<strong>%s</strong> " % title # secondly, authors: authors = get_fieldvalues(recID, "100__a") + get_fieldvalues(recID, "700__a") if authors: out += " / " for i in range (0,cfg_author_et_al_threshold): if i < len(authors): out += """<a href="%s/search.py?p=%s&f=author">%s</a> ;""" % (weburl, urllib.quote(authors[i]), authors[i]) if len(authors) > cfg_author_et_al_threshold: out += " <em>et al.</em>" # thirdly, date of creation: dates = get_fieldvalues(recID, "260__c") for date in dates: out += " %s." % date # thirdly bis, report numbers: rns = get_fieldvalues(recID, "037__a") for rn in rns: out += """ <small class="quicknote">[%s]</small>""" % rn rns = get_fieldvalues(recID, "088__a") for rn in rns: out += """ <small class="quicknote">[%s]</small>""" % rn # fourthly, beginning of abstract: abstracts = get_fieldvalues(recID, "520__a") for abstract in abstracts: out += "<br><small>%s [...]</small>" % abstract[:1+string.find(abstract, '.')] # fifthly, fulltext link: urls_z = get_fieldvalues(recID, "8564_z") urls_u = get_fieldvalues(recID, "8564_u") for idx in range(0,len(urls_u)): out += """<br><small class="note"><a class="note" href="%s">%s</a></small>""" % (urls_u[idx], urls_u[idx]) # at the end of HTML mode, print the "Detailed record" functionality: if cfg_use_aleph_sysnos: alephsysnos = get_fieldvalues(recID, "909C0o") if len(alephsysnos)>0: alephsysno = alephsysnos[0] out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?sysnb=%s">Detailed record</a></span>""" \ % (weburl, alephsysno) else: out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?id=%s">Detailed record</a></span>""" \ % (weburl, recID) else: out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?id=%s">Detailed record</a></span>""" \ % (weburl, recID) # ...and the "Mark record" functionality: #out += """<span class="moreinfo"> - <input name="recid" type="checkbox" value="%s"> Mark record</span>""" % recID # print record closing tags, if needed: if format == "marcxml" or format == "oai_dc": out += " </metadata>\n" out += " </record>\n" return out
|
f8885ff5b8b672e89581fb5ee226eb8e5bf90872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/f8885ff5b8b672e89581fb5ee226eb8e5bf90872/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
315,
15402,
1409,
296,
3927,
734,
11,
4955,
4078,
4751,
358,
296,
2139,
14550,
596,
273,
1408,
225,
468,
16267,
866,
30,
309,
486,
1409,
67,
1808,
12,
3927,
734,
4672,
327,
596,
225,
468,
1172,
1409,
10890,
2342,
16,
309,
3577,
30,
309,
740,
422,
315,
3684,
71,
2902,
6,
578,
740,
422,
315,
83,
10658,
67,
7201,
6877,
596,
1011,
315,
225,
411,
3366,
5333,
82,
6,
596,
1011,
315,
282,
411,
3374,
5333,
82,
6,
364,
612,
316,
336,
67,
1518,
2372,
12,
3927,
734,
16,
83,
10658,
350,
1518,
4672,
596,
1011,
315,
565,
411,
5644,
9822,
87,
1757,
5644,
5333,
82,
6,
738,
612,
596,
1011,
315,
565,
411,
3404,
1822,
9822,
87,
1757,
3404,
1822,
5333,
82,
6,
738,
336,
67,
31064,
67,
712,
12,
3927,
734,
13,
596,
1011,
315,
282,
7765,
3374,
5333,
82,
6,
596,
1011,
315,
282,
411,
4165,
5333,
82,
6,
225,
309,
740,
18,
17514,
1918,
2932,
92,
81,
7923,
578,
740,
422,
315,
3684,
71,
2902,
6877,
468,
2324,
364,
6864,
740,
15782,
30,
843,
273,
315,
4803,
460,
4571,
25581,
8666,
4852,
612,
67,
70,
495,
3927,
28713,
87,
11,
4116,
740,
28713,
87,
4970,
738,
261,
3927,
734,
16,
740,
13,
400,
273,
1086,
67,
4669,
12,
2271,
16,
599,
16,
404,
13,
309,
400,
30,
468,
1409,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
315,
15402,
1409,
296,
3927,
734,
11,
4955,
4078,
4751,
358,
296,
2139,
14550,
596,
273,
1408,
225,
468,
16267,
866,
30,
309,
486,
1409,
67,
1808,
12,
3927,
734,
4672,
327,
596,
225,
468,
1172,
1409,
10890,
2342,
16,
309,
3577,
30,
309,
740,
422,
315,
3684,
71,
2902,
6,
578,
740,
422,
315,
83,
10658,
67,
7201,
6877,
596,
1011,
315,
225,
411,
3366,
5333,
82,
6,
596,
1011,
315,
282,
411,
3374,
5333,
82,
6,
364,
612,
316,
336,
67,
1518,
2372,
12,
3927,
734,
16,
83,
10658,
350,
1518,
4672,
596,
2
] |
v = [x for x in v if v != 1]
|
v = [x for x in v if x != 1]
|
def invariants(self): """ Return elementary invariants of this abelian group, by which we mean a nondecreasing (immutable) sequence of integers $n_i$, $1 \leq i \leq k$, with $n_i$ dividing $n_{i+1}$, and such that this group is abstractly isomorphic to $\ZZ/n_1\ZZ \times\cdots\times \ZZ/n_k\ZZ.$
|
8d0551894c264fac468d199853e2f0add7c8b944 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8d0551894c264fac468d199853e2f0add7c8b944/finite_subgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
15886,
12,
2890,
4672,
3536,
2000,
930,
814,
316,
15886,
434,
333,
1223,
292,
2779,
1041,
16,
635,
1492,
732,
3722,
279,
1661,
323,
1793,
11730,
261,
381,
5146,
13,
3102,
434,
12321,
271,
82,
67,
77,
8,
16,
271,
21,
521,
298,
85,
277,
521,
298,
85,
417,
8,
16,
598,
271,
82,
67,
77,
8,
3739,
10415,
271,
82,
14147,
77,
15,
21,
22496,
16,
471,
4123,
716,
333,
1041,
353,
8770,
715,
353,
362,
18435,
358,
271,
64,
27096,
19,
82,
67,
21,
64,
27096,
521,
8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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
15886,
12,
2890,
4672,
3536,
2000,
930,
814,
316,
15886,
434,
333,
1223,
292,
2779,
1041,
16,
635,
1492,
732,
3722,
279,
1661,
323,
1793,
11730,
261,
381,
5146,
13,
3102,
434,
12321,
271,
82,
67,
77,
8,
16,
271,
21,
521,
298,
85,
277,
521,
298,
85,
417,
8,
16,
598,
271,
82,
67,
77,
8,
3739,
10415,
271,
82,
14147,
77,
15,
21,
22496,
16,
471,
4123,
716,
333,
1041,
353,
8770,
715,
353,
362,
18435,
358,
271,
64,
27096,
19,
82,
67,
21,
64,
27096,
521,
8293,
64,
4315,
6968,
64,
8293,
521,
27096,
19,
82,
67,
79,
64,
27096,
10806,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
server = RPCClient('Stager/Stager',useCertificates=useCerts)
|
server = RPCClient('Stager/Stager',useCertificates=self.useCerts)
|
def getJobsForRetry(self,retry,site): try: server = RPCClient('Stager/Stager',useCertificates=useCerts) result = server.getJobsForRetry(retry,site) return result except Exception, x: errorStr = "StagerDBClient.getJobsForRetry failed" gLogger.exception(errorStr,lException=x) return S_ERROR(errorStr+": "+str(x))
|
3ed5597134718830480f7f1b611dd7039dcffb7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/3ed5597134718830480f7f1b611dd7039dcffb7b/StagerClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
7276,
1290,
7539,
12,
2890,
16,
9620,
16,
4256,
4672,
775,
30,
1438,
273,
8295,
1227,
2668,
510,
6817,
19,
510,
6817,
2187,
1202,
14133,
33,
2890,
18,
1202,
16273,
13,
563,
273,
1438,
18,
588,
7276,
1290,
7539,
12,
9620,
16,
4256,
13,
327,
563,
1335,
1185,
16,
619,
30,
555,
1585,
273,
315,
510,
6817,
2290,
1227,
18,
588,
7276,
1290,
7539,
2535,
6,
314,
3328,
18,
4064,
12,
1636,
1585,
16,
80,
503,
33,
92,
13,
327,
348,
67,
3589,
12,
1636,
1585,
15,
6877,
13773,
701,
12,
92,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
7276,
1290,
7539,
12,
2890,
16,
9620,
16,
4256,
4672,
775,
30,
1438,
273,
8295,
1227,
2668,
510,
6817,
19,
510,
6817,
2187,
1202,
14133,
33,
2890,
18,
1202,
16273,
13,
563,
273,
1438,
18,
588,
7276,
1290,
7539,
12,
9620,
16,
4256,
13,
327,
563,
1335,
1185,
16,
619,
30,
555,
1585,
273,
315,
510,
6817,
2290,
1227,
18,
588,
7276,
1290,
7539,
2535,
6,
314,
3328,
18,
4064,
12,
1636,
1585,
16,
80,
503,
33,
92,
13,
327,
348,
67,
3589,
12,
1636,
1585,
15,
6877,
13773,
701,
12,
92,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
found_start_id = False
|
def main(args): ''' Main loop. ''' site = wikipedia.getSite(u'commons', u'commons') wikipedia.setSite(site) start_id=0 found_start_id = False conn = None cursor = None (conn, cursor) = connectDatabase() conn2 = None cursor2 = None (conn2, cursor2) = connectDatabase2('commonswiki-p.db.toolserver.org', u'u_multichill_commons_categories_p') if(len(args) >1): if len(args) > 2: start_id=args[2] sourcedir = args[0] destinationdir = args[1] if os.path.isdir(sourcedir) and os.path.isdir(destinationdir): #print sourcedir for subdir in os.listdir(sourcedir): #print subdir if os.path.isdir(sourcedir + subdir): #print subdir for sourcefilename in glob.glob(sourcedir + subdir + "/*.jpg"): duplicates = findDuplicateImages(sourcefilename) if duplicates: wikipedia.output(u'Found duplicate image at %s' % duplicates.pop()) else: #Get the file id fileId = getFileId(sourcefilename) print str(fileId) #Get metadata metadata = getMetadata(fileId, cursor) #Check if we got metadata if metadata: #Get description description = getDescription(metadata) # The hard part, find suitable categories categories = getCategories(metadata, cursor, cursor2) #print categories description = description + categories print description #Get destinationfilename destinationFilename = getTitle(metadata) #Copy file to destination dir shutil.copy(sourcefilename, destinationdir + destinationFilename + '.jpg') #And save the description as well outputDescriptionFile(destinationdir + destinationFilename + '.txt', description) #Save it
|
d40ae98e89fc2145baa4083e2e5bf5cef18c6eba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7426/d40ae98e89fc2145baa4083e2e5bf5cef18c6eba/batch_generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
9163,
12740,
2798,
18,
9163,
2834,
273,
21137,
18,
588,
4956,
12,
89,
11,
6054,
87,
2187,
582,
11,
6054,
87,
6134,
21137,
18,
542,
4956,
12,
4256,
13,
225,
787,
67,
350,
33,
20,
225,
1487,
273,
599,
3347,
273,
599,
261,
4646,
16,
3347,
13,
273,
3077,
4254,
1435,
225,
1487,
22,
273,
599,
3347,
22,
273,
599,
261,
4646,
22,
16,
3347,
22,
13,
273,
3077,
4254,
22,
2668,
6054,
5328,
6169,
17,
84,
18,
1966,
18,
6738,
3567,
18,
3341,
2187,
582,
11,
89,
67,
5421,
1354,
737,
67,
6054,
87,
67,
8995,
67,
84,
6134,
225,
309,
12,
1897,
12,
1968,
13,
405,
21,
4672,
309,
562,
12,
1968,
13,
405,
576,
30,
787,
67,
350,
33,
1968,
63,
22,
65,
1084,
1214,
273,
833,
63,
20,
65,
2929,
1214,
273,
833,
63,
21,
65,
309,
1140,
18,
803,
18,
291,
1214,
12,
3168,
1214,
13,
471,
1140,
18,
803,
18,
291,
1214,
12,
10590,
1214,
4672,
468,
1188,
1084,
1214,
364,
16921,
316,
1140,
18,
1098,
1214,
12,
3168,
1214,
4672,
468,
1188,
16921,
309,
1140,
18,
803,
18,
291,
1214,
12,
3168,
1214,
397,
16921,
4672,
468,
1188,
16921,
364,
1084,
3459,
316,
4715,
18,
10581,
12,
3168,
1214,
397,
16921,
397,
2206,
11146,
14362,
6,
4672,
11211,
273,
1104,
11826,
8946,
12,
3168,
3459,
13,
309,
11211,
30,
21137,
18,
2844,
12,
89,
11,
2043,
6751,
1316,
622,
738,
87,
11,
738,
11211,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
9163,
12740,
2798,
18,
9163,
2834,
273,
21137,
18,
588,
4956,
12,
89,
11,
6054,
87,
2187,
582,
11,
6054,
87,
6134,
21137,
18,
542,
4956,
12,
4256,
13,
225,
787,
67,
350,
33,
20,
225,
1487,
273,
599,
3347,
273,
599,
261,
4646,
16,
3347,
13,
273,
3077,
4254,
1435,
225,
1487,
22,
273,
599,
3347,
22,
273,
599,
261,
4646,
22,
16,
3347,
22,
13,
273,
3077,
4254,
22,
2668,
6054,
5328,
6169,
17,
84,
18,
1966,
18,
6738,
3567,
18,
3341,
2187,
582,
11,
89,
67,
5421,
1354,
737,
67,
6054,
87,
67,
8995,
67,
84,
6134,
225,
309,
12,
1897,
12,
1968,
13,
405,
21,
4672,
309,
562,
12,
1968,
2
] |
|
requirements += " && %s " % archrequirement
|
if requirements != "": requirements += " && " requirements += " %s " % archrequirement
|
def createJDL(self, cladfilename,jobType,UserJDLRequirementsFile): """ _createJDL_ create the scheduler JDL combining the user specified bit of the JDL """
|
32ae346f16f84a2feb453c3fbfed800e78518c15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/32ae346f16f84a2feb453c3fbfed800e78518c15/GLiteBulkSubmitter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
46,
8914,
12,
2890,
16,
927,
361,
3459,
16,
4688,
559,
16,
1299,
46,
8914,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
46,
8914,
12,
2890,
16,
927,
361,
3459,
16,
4688,
559,
16,
1299,
46,
8914,
15465,
812,
4672,
3536,
389,
2640,
46,
8914,
67,
225,
752,
326,
8129,
804,
8914,
29189,
326,
729,
1269,
2831,
434,
326,
804,
8914,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if pymax(self.pk) * dr > self.maxstep: dr /= (pymax(self.pk) * dr / self.maxstep)
|
if abs(pymax(self.pk) * dr) > self.maxstep: dr /= abs((pymax(self.pk) * dr) / self.maxstep)
|
def determine_step(self, stp): dr = stp - self.old_stp if pymax(self.pk) * dr > self.maxstep: dr /= (pymax(self.pk) * dr / self.maxstep) stp = self.old_stp + dr return stp
|
641f60dd96106011e01aa0fa742d73c4ded7f0ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/641f60dd96106011e01aa0fa742d73c4ded7f0ab/linesearch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
4119,
12,
2890,
16,
384,
84,
4672,
5081,
273,
384,
84,
300,
365,
18,
1673,
67,
20355,
309,
2417,
12,
2074,
1896,
12,
2890,
18,
5465,
13,
380,
5081,
13,
405,
365,
18,
1896,
4119,
30,
5081,
9531,
2417,
12443,
2074,
1896,
12,
2890,
18,
5465,
13,
380,
5081,
13,
342,
365,
18,
1896,
4119,
13,
384,
84,
273,
365,
18,
1673,
67,
20355,
397,
5081,
327,
384,
84,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
4119,
12,
2890,
16,
384,
84,
4672,
5081,
273,
384,
84,
300,
365,
18,
1673,
67,
20355,
309,
2417,
12,
2074,
1896,
12,
2890,
18,
5465,
13,
380,
5081,
13,
405,
365,
18,
1896,
4119,
30,
5081,
9531,
2417,
12443,
2074,
1896,
12,
2890,
18,
5465,
13,
380,
5081,
13,
342,
365,
18,
1896,
4119,
13,
384,
84,
273,
365,
18,
1673,
67,
20355,
397,
5081,
327,
384,
84,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.