rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
cPickle.dump(self.__backgroundDict__, file(home_dir()+"/"+os.path.basename(pickleLocale),'w')) | cPickle.dump(self.__backgroundDict__,file(pickleLocale,'w')) | def createDQbackground(self,ifoEpochList=list(),pickleLocale=None): """ Two inputs a list of tuples (ifo,epochname) for each instrument. Also a place to save the potential pickle to for quick access later. """ if type(ifoEpochList) != type(list()): raise Exception, \ "Invalid input argument ifoEpochList,%s type(%s)"... | 6dd8d677924d136a0f3b5fb060f859178f7cc82c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6dd8d677924d136a0f3b5fb060f859178f7cc82c/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
40,
53,
9342,
12,
2890,
16,
20299,
14638,
682,
33,
1098,
9334,
20847,
3916,
33,
7036,
4672,
3536,
16896,
4540,
279,
666,
434,
10384,
261,
20299,
16,
12015,
529,
13,
364,
1517,
10353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
40,
53,
9342,
12,
2890,
16,
20299,
14638,
682,
33,
1098,
9334,
20847,
3916,
33,
7036,
4672,
3536,
16896,
4540,
279,
666,
434,
10384,
261,
20299,
16,
12015,
529,
13,
364,
1517,
10353... |
def onTIMER(self, name, length, channel, **data): if data.has_key("target"): if data.has_key("message"): target = data["target"] message = data["message"] self.bot.ircPRIVMSG(target, message) | def onTIMER(self, target, message): self.bot.ircPRIVMSG(target, message) | def onTIMER(self, name, length, channel, **data): if data.has_key("target"): if data.has_key("message"): target = data["target"] message = data["message"] self.bot.ircPRIVMSG(target, message) | a2ac2c41d63fda32886d3671cd099960c7380fa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3020/a2ac2c41d63fda32886d3671cd099960c7380fa9/timers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
56,
31582,
12,
2890,
16,
508,
16,
769,
16,
1904,
16,
2826,
892,
4672,
309,
501,
18,
5332,
67,
856,
2932,
3299,
6,
4672,
309,
501,
18,
5332,
67,
856,
2932,
2150,
6,
4672,
1018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
56,
31582,
12,
2890,
16,
508,
16,
769,
16,
1904,
16,
2826,
892,
4672,
309,
501,
18,
5332,
67,
856,
2932,
3299,
6,
4672,
309,
501,
18,
5332,
67,
856,
2932,
2150,
6,
4672,
1018,
... |
import popen2 | def snapshot(videofile, imagefile=None, pos=None, update=True, popup=None): """ make a snapshot of the videofile at position pos to imagefile """ import config import misc import Image import util import vfs import gui if not imagefile: imagefile = vfs.getoverlay(videofile + '.raw') if not update and os.path.isfile(i... | 887d46fef64848b677f8cc04ad4f3eed05213e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/887d46fef64848b677f8cc04ad4f3eed05213e87/videothumb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4439,
12,
9115,
768,
16,
1316,
768,
33,
7036,
16,
949,
33,
7036,
16,
1089,
33,
5510,
16,
10431,
33,
7036,
4672,
3536,
1221,
279,
4439,
434,
326,
6191,
768,
622,
1754,
949,
358,
1316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4439,
12,
9115,
768,
16,
1316,
768,
33,
7036,
16,
949,
33,
7036,
16,
1089,
33,
5510,
16,
10431,
33,
7036,
4672,
3536,
1221,
279,
4439,
434,
326,
6191,
768,
622,
1754,
949,
358,
1316,
... | |
if (n=='C-1'): chi_atoms.append(residue_prev['C'].get_vector()) | if residue_prev and n[-2:]=='-1': chi_atoms.append(residue_prev[n[:-2]].get_vector()) | def calc_chi(residue, residue_prev, residue_dict): """ Calculates Values for CHI using the predefined list of CHI angles in the CHI_MAP. CHI_MAP contains the list of all peptides and the atoms that make up their different chi values. This function will process the values known to exist, it will also skip chi values i... | b9d98e063fb8505ac680ecc5e3aeda66f87cd19d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/b9d98e063fb8505ac680ecc5e3aeda66f87cd19d/ProcessPDBTask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
24010,
12,
23388,
16,
14765,
67,
10001,
16,
14765,
67,
1576,
4672,
3536,
26128,
6876,
364,
6469,
45,
1450,
326,
19555,
666,
434,
6469,
45,
15479,
316,
326,
6469,
45,
67,
8352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
67,
24010,
12,
23388,
16,
14765,
67,
10001,
16,
14765,
67,
1576,
4672,
3536,
26128,
6876,
364,
6469,
45,
1450,
326,
19555,
666,
434,
6469,
45,
15479,
316,
326,
6469,
45,
67,
8352,
... |
if version > 1: | if int(version) > 1: | def purge(self): """Phisically Remove all the previous version of the given bibdoc""" version = self.get_latest_version() if version > 1: for file in self.docfiles: if file.get_version() < version: try: os.remove(file.get_full_path()) except Exception, e: register_exception() Md5Folder(self.basedir).update() self.touch... | d48d96c94d0728a117020e54ce2f3ef27fffab97 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/d48d96c94d0728a117020e54ce2f3ef27fffab97/bibdocfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
2890,
4672,
3536,
3731,
291,
6478,
3581,
777,
326,
2416,
1177,
434,
326,
864,
25581,
2434,
8395,
1177,
273,
365,
18,
588,
67,
13550,
67,
1589,
1435,
309,
509,
12,
1589,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
2890,
4672,
3536,
3731,
291,
6478,
3581,
777,
326,
2416,
1177,
434,
326,
864,
25581,
2434,
8395,
1177,
273,
365,
18,
588,
67,
13550,
67,
1589,
1435,
309,
509,
12,
1589,
13,
... |
self._arch_allowed = set(archlist) | self._arch_allowed.update(archlist) | def excludeArchs(self, archlist): """excludes incompatible arches - archlist is a list of compat arches""" self._arch_allowed = set(archlist) sarchlist = map(lambda x: "'%s'" % x , archlist) arch_query = ",".join(sarchlist) | cb3a7655e627dd0a40249a2597c26241d580a081 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/cb3a7655e627dd0a40249a2597c26241d580a081/sqlitesack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12269,
87,
12,
2890,
16,
6637,
1098,
4672,
3536,
338,
8993,
24430,
6637,
281,
300,
6637,
1098,
353,
279,
666,
434,
4796,
6637,
281,
8395,
225,
365,
6315,
991,
67,
8151,
18,
2725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4433,
12269,
87,
12,
2890,
16,
6637,
1098,
4672,
3536,
338,
8993,
24430,
6637,
281,
300,
6637,
1098,
353,
279,
666,
434,
4796,
6637,
281,
8395,
225,
365,
6315,
991,
67,
8151,
18,
2725,
... |
startup_pipe.write(struct.pack('@H', listen_port)) | startup_pipe.write("READY") | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr... | a7bc29120dcca64c5720dc638813d6637f390450 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a7bc29120dcca64c5720dc638813d6637f390450/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... |
def new(wl=64,arg=None): | def new(arg=None,wl=64,): | def new(wl=64,arg=None): """Return a new RadioGatun hash object wl = wordlength (in bits) of the RadioGatun hash method between 1 and 64 (default = 64) arg = if present, the method call update(arg) is made EXAMPLES: (testvectors from: http://radiogatun.noekeon.org/) ========== >>> import pyradiogatun radiogatun[64... | 7b516f8fe1f3a2988cacd3343c2fa51aae031fd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/7b516f8fe1f3a2988cacd3343c2fa51aae031fd3/pyradiogatun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
3175,
33,
7036,
16,
21504,
33,
1105,
16,
4672,
3536,
990,
279,
394,
31552,
43,
270,
318,
1651,
733,
225,
19564,
225,
273,
2076,
2469,
261,
267,
4125,
13,
434,
326,
31552,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
3175,
33,
7036,
16,
21504,
33,
1105,
16,
4672,
3536,
990,
279,
394,
31552,
43,
270,
318,
1651,
733,
225,
19564,
225,
273,
2076,
2469,
261,
267,
4125,
13,
434,
326,
31552,
43,
... |
macros.append('TARGET_CPU_HAS_%s' % form_macro(isa)) | macros.append('TARGET_CPU_HAS_%s' % (form_macro(isa))) | def form_macro(cpu_name): return cpu_name.upper().replace('.', '').replace('-', '_') | 7ef48592feb043f9333ee1c61fe1949d955590d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9556/7ef48592feb043f9333ee1c61fe1949d955590d3/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
26448,
12,
11447,
67,
529,
4672,
327,
8326,
67,
529,
18,
5797,
7675,
2079,
2668,
1093,
16,
875,
2934,
2079,
2668,
17,
2187,
4427,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
67,
26448,
12,
11447,
67,
529,
4672,
327,
8326,
67,
529,
18,
5797,
7675,
2079,
2668,
1093,
16,
875,
2934,
2079,
2668,
17,
2187,
4427,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
config.setup_registry(request_factory='abc') | factory = object() config.setup_registry(request_factory=factory) | def test_setup_registry_request_factory(self): from repoze.bfg.registry import Registry from repoze.bfg.interfaces import IRequestFactory reg = Registry() config = self._makeOne(reg) config.setup_registry(request_factory='abc') utility = reg.getUtility(IRequestFactory) self.assertEqual(utility, 'abc') | b474b5af1069c24384343766c8bfb6768a8a9520 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/b474b5af1069c24384343766c8bfb6768a8a9520/test_configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8401,
67,
9893,
67,
2293,
67,
6848,
12,
2890,
4672,
628,
3538,
8489,
18,
70,
2137,
18,
9893,
1930,
5438,
628,
3538,
8489,
18,
70,
2137,
18,
15898,
1930,
467,
691,
1733,
960,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8401,
67,
9893,
67,
2293,
67,
6848,
12,
2890,
4672,
628,
3538,
8489,
18,
70,
2137,
18,
9893,
1930,
5438,
628,
3538,
8489,
18,
70,
2137,
18,
15898,
1930,
467,
691,
1733,
960,
... |
if stdin == None and stdout == None and stderr == None: | if stdin is None and stdout is None and stderr is None: | def _get_handles(self, stdin, stdout, stderr): """Construct and return tupel with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin == None and stdout == None and stderr == None: return (None, None, None, None, None, None) | 95702de0f98da1d3b802ca9a49a105d914f43a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/95702de0f98da1d3b802ca9a49a105d914f43a51/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... |
if startupinfo == None: startupinfo = STARTUPINFO() if not None in (p2cread, c2pwrite, errwrite): startupinfo.dwFlags |= STARTF_USESTDHANDLES startupinfo.hStdInput = p2cread startupinfo.hStdOutput = c2pwrite startupinfo.hStdError = errwrite | def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (MS Windows version)""" | f2d233eb6b810df3dfec8a89a4a620dc228d3a22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f2d233eb6b810df3dfec8a89a4a620dc228d3a22/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... | |
create_results_log(results, logdir, missing) | create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir="]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.a... | ed1ee6edcef108d19d14203d66a5b954531dd12f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed1ee6edcef108d19d14203d66a5b954531dd12f/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... |
if lowarg == ')': assert parens > 0, 'Uneven parentheses' ; query.append(')') ; human.append('(') ; parens -= 1 | if lowarg == ')': assert parens > 0, 'Uneven parentheses' ; query.append(')') ; human.append(')') ; parens -= 1 | def parse(self, expression): ''' Rewrites an expression like 'net 1.2.3.4/5 and not vlan 4' to the appropriate SQL. ''' if expression == '': return None, 'everything' | 8c56c5e790805e3c64b4367bcc19d34ebb0bc38f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5357/8c56c5e790805e3c64b4367bcc19d34ebb0bc38f/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
2652,
4672,
9163,
534,
359,
24047,
392,
2652,
3007,
296,
2758,
404,
18,
22,
18,
23,
18,
24,
19,
25,
471,
486,
11954,
1059,
11,
358,
326,
5505,
3063,
18,
9163,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
2652,
4672,
9163,
534,
359,
24047,
392,
2652,
3007,
296,
2758,
404,
18,
22,
18,
23,
18,
24,
19,
25,
471,
486,
11954,
1059,
11,
358,
326,
5505,
3063,
18,
9163,
309... |
from DIRAC.Interfaces.API.Dirac import Dirac diracAPI = Dirac() | def __submitJob(self,prodJob): """Wrapper to submit job to WMS. """ from DIRAC.Interfaces.API.Dirac import Dirac #to force the WMS Client to pick up the current proxy diracAPI = Dirac() self.log.verbose('Attempting to submit job to WMS') submitted = diracAPI.submit(prodJob) if not submitted['OK']: self.log.warn('Proble... | bd0a471fc817bd0f7df2c138b678b72b045dbf9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/bd0a471fc817bd0f7df2c138b678b72b045dbf9c/DiracProduction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9297,
2278,
12,
2890,
16,
17672,
2278,
4672,
3536,
3611,
358,
4879,
1719,
358,
678,
3537,
18,
3536,
628,
18544,
2226,
18,
10273,
18,
2557,
18,
14521,
8836,
1930,
12508,
8836,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9297,
2278,
12,
2890,
16,
17672,
2278,
4672,
3536,
3611,
358,
4879,
1719,
358,
678,
3537,
18,
3536,
628,
18544,
2226,
18,
10273,
18,
2557,
18,
14521,
8836,
1930,
12508,
8836,
468,
... | |
str = self._dom_to_html(epytext.summary(descr), container).strip() | summary = epytext.summary(descr) str = self._dom_to_html(summary, container).strip() | def _summary(self, doc, container): """ @return: The HTML code for the summary description of the object documented by C{doc}. A summary description is the first sentence of the C{doc}'s 'description' field. If the C{doc} has no 'description' field, but does have a 'return' field, then the summary is taken from the r... | 79d8050c8b12a31f01c464e8cc1a0087f0a9ce76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/79d8050c8b12a31f01c464e8cc1a0087f0a9ce76/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7687,
12,
2890,
16,
997,
16,
1478,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
4916,
2477,
434,
326,
733,
23051,
635,
385,
95,
2434,
5496,
225,
432,
4916,
2477,
353,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7687,
12,
2890,
16,
997,
16,
1478,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
4916,
2477,
434,
326,
733,
23051,
635,
385,
95,
2434,
5496,
225,
432,
4916,
2477,
353,
326... |
self.donebutton.set_tooltip_text(GnomeConfig.MARK_UNDONE_TOOLTIP) | self.donebutton.set_tooltip_text( GnomeConfig.MARK_UNDONE_TOOLTIP) | def taskdone_cursor_changed(self, selection=None): #We unselect all in the active task view #Only if something is selected in the closed task list #And we change the status of the Done/dismiss button self.donebutton.set_icon_name("gtg-task-done") self.dismissbutton.set_icon_name("gtg-task-dismiss") if selection.count_s... | fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
8734,
67,
9216,
67,
6703,
12,
2890,
16,
4421,
33,
7036,
4672,
468,
3218,
640,
4025,
777,
316,
326,
2695,
1562,
1476,
468,
3386,
309,
5943,
353,
3170,
316,
326,
4375,
1562,
666,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1562,
8734,
67,
9216,
67,
6703,
12,
2890,
16,
4421,
33,
7036,
4672,
468,
3218,
640,
4025,
777,
316,
326,
2695,
1562,
1476,
468,
3386,
309,
5943,
353,
3170,
316,
326,
4375,
1562,
666,
4... |
self.guideOnBtn.setEnable(guideCmdOK and not isExecOrGuiding) self.applyBtn.setEnable(isGuiding and isCurrIm and guideCmdOK and areParamsModified) | self.guideOnBtn.setEnable(showCurrIm and guideCmdOK and not isExecOrGuiding) self.applyBtn.setEnable(showCurrIm and isGuiding and isCurrIm and guideCmdOK and areParamsModified) | def enableCmdButtons(self, wdg=None): """Set enable of command buttons. """ isImage = (self.dispImObj != None) isCurrIm = isImage and not self.nextImWdg.getEnable() isSel = (self.dispImObj != None) and (self.dispImObj.selDataColor != None) isGuiding = self.isGuiding() isExec = (self.doingCmd != None) isExecOrGuiding = ... | 484da39f9f78050a0c3ecbfa1b6b24bec3b0bb09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/484da39f9f78050a0c3ecbfa1b6b24bec3b0bb09/GuideWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
5931,
14388,
12,
2890,
16,
14452,
75,
33,
7036,
4672,
3536,
694,
4237,
434,
1296,
9502,
18,
3536,
353,
2040,
273,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
353,
20143,
1170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4237,
5931,
14388,
12,
2890,
16,
14452,
75,
33,
7036,
4672,
3536,
694,
4237,
434,
1296,
9502,
18,
3536,
353,
2040,
273,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
353,
20143,
1170,
... |
sum((account_analytic_line.unit_amount * pt.list_price) \ | COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("""select account_analytic_line.account_id as account_id, \ sum((account_analytic_line.unit_amount * pt.list_price) \... | 7bdb0009b6979becdbaa1f5e28e549e35f8b82f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7bdb0009b6979becdbaa1f5e28e549e35f8b82f9/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5353,
67,
5787,
10129,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
400,
22,
273,
2618,
3258,
22,
273,
365,
18,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5353,
67,
5787,
10129,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
400,
22,
273,
2618,
3258,
22,
273,
365,
18,
30... |
params, method = xmlrpclib.loads(data) | def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data. | d5d8a78cd81f8fed88448d7b2e9e6e10fe5496b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d5d8a78cd81f8fed88448d7b2e9e6e10fe5496b9/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
18,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
18,
2,
-100,
-100,
... | |
return defer.succeed(self._url) | return defer.succeed(self._redirectURI) | def memoize(url): self._url = url return url # Caller expects deferred to fire with URL | 22aed7f4b6c1330302452d610966d27b7ce50418 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11494/22aed7f4b6c1330302452d610966d27b7ce50418/cred.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27820,
12,
718,
4672,
365,
6315,
718,
273,
880,
327,
880,
468,
20646,
10999,
7045,
358,
4452,
598,
1976,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27820,
12,
718,
4672,
365,
6315,
718,
273,
880,
327,
880,
468,
20646,
10999,
7045,
358,
4452,
598,
1976,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.cfg.xapian_index_history and \ | if not self.request.cfg.xapian_index_history and \ | def run(self): """ Perform search and return results object """ start = time.time() if self.request.cfg.xapian_search: hits = self._xapianSearch() else: hits = self._moinSearch() # important - filter deleted pages or pages the user may not read! if not self.filtered: hits = self._filter(hits) | 2033eade20c1cffd6f5af4a0553dd9eab8a7021f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/2033eade20c1cffd6f5af4a0553dd9eab8a7021f/builtin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
11217,
1623,
471,
327,
1686,
733,
3536,
787,
273,
813,
18,
957,
1435,
309,
365,
18,
2293,
18,
7066,
18,
92,
2425,
304,
67,
3072,
30,
11076,
273,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
3536,
11217,
1623,
471,
327,
1686,
733,
3536,
787,
273,
813,
18,
957,
1435,
309,
365,
18,
2293,
18,
7066,
18,
92,
2425,
304,
67,
3072,
30,
11076,
273,
365,
6315,
... |
tool_path = os.path.join(getLocalPath() , 'tools') sys.path = [tool_path] + sys.path | def getLocalPath(): """ Return the absolute path of this package """ return os.path.dirname(__file__) | c6118951fa4e3b9a7e8d33b2a9b5074cdd427304 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6794/c6118951fa4e3b9a7e8d33b2a9b5074cdd427304/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6993,
743,
13332,
3536,
2000,
326,
4967,
589,
434,
333,
2181,
3536,
327,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6993,
743,
13332,
3536,
2000,
326,
4967,
589,
434,
333,
2181,
3536,
327,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return succeed(None) | retval = succeed(None) | def shutdown(self): if self.shutting_down: return self.shutting_down = True for timer in self.cleanup_timers.itervalues(): timer.cancel() if len(self.relays) == 0: return succeed(None) else: for prot in self.relays.itervalues(): prot.transport.loseConnection() self.defer = Deferred() return self.defer | 8c257a0a88ca34fb3653dabd74049c64a6d210c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/8c257a0a88ca34fb3653dabd74049c64a6d210c9/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
309,
365,
18,
674,
25387,
67,
2378,
30,
327,
365,
18,
674,
25387,
67,
2378,
273,
1053,
364,
5441,
316,
365,
18,
16732,
67,
8584,
414,
18,
2165,
2372,
13332,
5441,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5731,
12,
2890,
4672,
309,
365,
18,
674,
25387,
67,
2378,
30,
327,
365,
18,
674,
25387,
67,
2378,
273,
1053,
364,
5441,
316,
365,
18,
16732,
67,
8584,
414,
18,
2165,
2372,
13332,
5441,... |
import rpy | try: import rpy except: err = "Error: Package rpy could not be imported!\n" + \ "(We should switch to scipy polyfit, anyway!)" appendTextview(self.textviewStdErr, err) return | def showWadati(self): """ Shows a Wadati diagram plotting P time in (truncated) Julian seconds against S-P time for every station and doing a linear regression using rpy. An estimate of Vp/Vs is given by the slope + 1. """ import rpy pTimes = [] spTimes = [] stations = [] for i in range(len(self.dicts)): if self.dicts[... | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
59,
361,
270,
77,
12,
2890,
4672,
3536,
9674,
87,
279,
678,
361,
270,
77,
19750,
20947,
453,
813,
316,
261,
23558,
690,
13,
30294,
3974,
5314,
348,
17,
52,
813,
364,
3614,
13282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
59,
361,
270,
77,
12,
2890,
4672,
3536,
9674,
87,
279,
678,
361,
270,
77,
19750,
20947,
453,
813,
316,
261,
23558,
690,
13,
30294,
3974,
5314,
348,
17,
52,
813,
364,
3614,
13282,... |
def test_user_without_realm(self): | def test_user_domain(self): | def test_user_without_realm(self): """ Test a user defined without a realm Ex. group admin rajith """ aclf = ACLFile() aclf.write('group admin bob\n') aclf.write('acl deny admin bind exchange\n') aclf.write('acl allow all all') aclf.close() result = self.reload_acl() if (result.text.find("Username 'bob' must contain a... | c61027ebdd99803eb64328b91de238b230633022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/198/c61027ebdd99803eb64328b91de238b230633022/acl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1355,
67,
4308,
12,
2890,
4672,
3536,
7766,
279,
729,
2553,
2887,
279,
11319,
1312,
18,
1041,
3981,
767,
78,
483,
3536,
7895,
74,
273,
10098,
812,
1435,
7895,
74,
18,
2626,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1355,
67,
4308,
12,
2890,
4672,
3536,
7766,
279,
729,
2553,
2887,
279,
11319,
1312,
18,
1041,
3981,
767,
78,
483,
3536,
7895,
74,
273,
10098,
812,
1435,
7895,
74,
18,
2626,
2... |
frame[2] = str(frame[2]) | frame[1] = str(frame[1]) | def _read_forever(self): buffer = "" while True: data = self.sock.recv(1024) if not data: break; buffer += data while self.delimiter in buffer: raw_frame, buffer = buffer.split(self.delimiter, 1) try: frame = json.loads(raw_frame) except: self.logger.warn("Error parsing frame: " + repr(raw_frame), exc_info=True) # TODO... | ab651ab0fee33baf3151b019e69f0f32a0d1f5e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13219/ab651ab0fee33baf3151b019e69f0f32a0d1f5e5/rtjp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
1405,
502,
12,
2890,
4672,
1613,
273,
1408,
1323,
1053,
30,
501,
273,
365,
18,
15031,
18,
18334,
12,
2163,
3247,
13,
309,
486,
501,
30,
898,
31,
1613,
1011,
501,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
67,
1405,
502,
12,
2890,
4672,
1613,
273,
1408,
1323,
1053,
30,
501,
273,
365,
18,
15031,
18,
18334,
12,
2163,
3247,
13,
309,
486,
501,
30,
898,
31,
1613,
1011,
501,
1323,
... |
are ``(M, K)`` and ``(K, N)``, resp., where ``K = min(M, N)``. | are ``(K, M)`` and ``(N, K)``, resp., where ``K = min(M, N)``. | def svd_device(a, a_dtype, a_shape, full_matrices=1, compute_uv=1): """ Singular Value Decomposition. Factorizes the matrix `a` into two unitary matrices, ``U`` and ``Vh``, and a 1-dimensional array of singular values, ``s`` (real, non-negative), such that ``a == U S Vh``, where ``S`` is the diagonal matrix ``np.diag(... | 7fc4e451024ef5d36885b07be6a15417c4ae54c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/7fc4e451024ef5d36885b07be6a15417c4ae54c3/cula.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25656,
67,
5964,
12,
69,
16,
279,
67,
8972,
16,
279,
67,
4867,
16,
1983,
67,
7373,
12660,
33,
21,
16,
3671,
67,
16303,
33,
21,
4672,
3536,
348,
17830,
1445,
26824,
3276,
18,
225,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25656,
67,
5964,
12,
69,
16,
279,
67,
8972,
16,
279,
67,
4867,
16,
1983,
67,
7373,
12660,
33,
21,
16,
3671,
67,
16303,
33,
21,
4672,
3536,
348,
17830,
1445,
26824,
3276,
18,
225,
264... |
return string.split(buf, '\n') | lines = string.split(buf, '\n') for i in range(len(lines)-1): lines[i] = lines[i] + '\n' if lines and not lines[-1]: del lines[-1] return lines | def readlines(self): buf = self.read() return string.split(buf, '\n') | 9ab21625d5371548e12837f8991a49baf227b4d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9ab21625d5371548e12837f8991a49baf227b4d5/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17546,
12,
2890,
4672,
1681,
273,
365,
18,
896,
1435,
327,
533,
18,
4939,
12,
4385,
16,
2337,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17546,
12,
2890,
4672,
1681,
273,
365,
18,
896,
1435,
327,
533,
18,
4939,
12,
4385,
16,
2337,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
or wx.Platform == '__WXMSW__': | or wx.Platform in ['__WXMSW__', '__WXGTK__']: | def DispatchToControl(self, evt): """Catches events that need to be passed to the current text control for processing. @param evt: Event fired that called this handler @type evt: wxMenuEvent | b5a5028faebf0fa5985eb369d26f8704012064a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/b5a5028faebf0fa5985eb369d26f8704012064a5/ed_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
774,
3367,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
2641,
716,
1608,
358,
506,
2275,
358,
326,
783,
977,
3325,
364,
4929,
18,
632,
891,
6324,
30,
2587,
15950,
716,
2566,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
774,
3367,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
2641,
716,
1608,
358,
506,
2275,
358,
326,
783,
977,
3325,
364,
4929,
18,
632,
891,
6324,
30,
2587,
15950,
716,
2566,
333,
... |
return self._getCachedInfo()['bio']['published'] | return self._getCachedInfo('bio', 'published') | def getBioPublishedDate(self): """Returns the date on which the artist's biography was published. """ return self._getCachedInfo()['bio']['published'] | ec1304614ea5bc838c2f5bb83444fc59ac9c26d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/ec1304614ea5bc838c2f5bb83444fc59ac9c26d8/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
1594,
16451,
1626,
12,
2890,
4672,
3536,
1356,
326,
1509,
603,
1492,
326,
15469,
1807,
10054,
15669,
1703,
9487,
18,
3536,
225,
327,
365,
6315,
588,
9839,
966,
2668,
21010,
2187,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
1594,
16451,
1626,
12,
2890,
4672,
3536,
1356,
326,
1509,
603,
1492,
326,
15469,
1807,
10054,
15669,
1703,
9487,
18,
3536,
225,
327,
365,
6315,
588,
9839,
966,
2668,
21010,
2187,
296... |
rc = sys.gettotalrefcount() | rc_before = sys.gettotalrefcount() | def run_the_test(): imp.reload(the_module) | aa0477f8d2a71571d1f0a10c0a57547bc568dd41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/aa0477f8d2a71571d1f0a10c0a57547bc568dd41/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5787,
67,
3813,
13332,
1646,
18,
17517,
12,
5787,
67,
2978,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5787,
67,
3813,
13332,
1646,
18,
17517,
12,
5787,
67,
2978,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
rev_date = "$Date: 2004/03/01 13:54:10 $"[7:-2] | rev_date = "$Date: 2004/03/24 08:39:06 $"[7:-2] | def getGRUFVersion(self,): """ getGRUFVersion(self,) => Return human-readable GRUF version as a string. """ rev_date = "$Date: 2004/03/01 13:54:10 $"[7:-2] return "%s / Revised %s" % (version__, rev_date) | d797b0bda0d6e1cca57e60c0525706b89f0e8fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/d797b0bda0d6e1cca57e60c0525706b89f0e8fcb/GroupUserFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6997,
57,
42,
1444,
12,
2890,
16,
4672,
3536,
336,
6997,
57,
42,
1444,
12,
2890,
16,
13,
516,
2000,
8672,
17,
11018,
15228,
57,
42,
1177,
487,
279,
533,
18,
3536,
5588,
67,
712,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6997,
57,
42,
1444,
12,
2890,
16,
4672,
3536,
336,
6997,
57,
42,
1444,
12,
2890,
16,
13,
516,
2000,
8672,
17,
11018,
15228,
57,
42,
1177,
487,
279,
533,
18,
3536,
5588,
67,
712,... |
OPTIONS = [{'wideBuild': True}] | OPTIONS = [{'wideBuild': False}, {'wideBuild': True}] | def removeMySQL(databaseUrls): return [url for url in databaseUrls if not url.startswith('mysql://')] | e8178f9cde5e6cf38fb27545ff38e41c9ae489ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/e8178f9cde5e6cf38fb27545ff38e41c9ae489ed/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
28723,
12,
6231,
10509,
4672,
327,
306,
718,
364,
880,
316,
2063,
10509,
309,
486,
880,
18,
17514,
1918,
2668,
12527,
2207,
6134,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
28723,
12,
6231,
10509,
4672,
327,
306,
718,
364,
880,
316,
2063,
10509,
309,
486,
880,
18,
17514,
1918,
2668,
12527,
2207,
6134,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.__checking.config(text="Checking "+url) | self.__checking.config(text="Checking "+self.format_url(url)) | def dosomething(self): if self.__busy: return self.__busy = 1 if self.todo: l = self.__todo.selectedindices() if l: i = l[0] else: i = 0 self.__todo.list.select_set(i) self.__todo.list.yview(i) url = self.__todo.items[i] self.__checking.config(text="Checking "+url) self.__parent.update() self.dopage(url) else: self.sto... | f58d8dfa0f8cbb6fa682c04f5685b4d6a2011915 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f58d8dfa0f8cbb6fa682c04f5685b4d6a2011915/wcgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16153,
14311,
12,
2890,
4672,
309,
365,
16186,
9274,
93,
30,
327,
365,
16186,
9274,
93,
273,
404,
309,
365,
18,
9012,
30,
328,
273,
365,
16186,
9012,
18,
8109,
6836,
1435,
309,
328,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16153,
14311,
12,
2890,
4672,
309,
365,
16186,
9274,
93,
30,
327,
365,
16186,
9274,
93,
273,
404,
309,
365,
18,
9012,
30,
328,
273,
365,
16186,
9012,
18,
8109,
6836,
1435,
309,
328,
30... |
next.clicked = next_page | next._callback_add('clicked', next_page) | def render_page(i): global pageMods if len(pages)<=i: destroy() return True else: (submodname, classname) = pages[i].split('.',1) module = __import__('shr_settings_modules.' + submodname, globals(), locals(), classname) ModClass = module.__getattribute__(classname) pageMod = ModClass(win, bus, True) try: pageMods[i] ... | 02fc6b28a6f67533365a86c8d63d73ae0eb480db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11427/02fc6b28a6f67533365a86c8d63d73ae0eb480db/shr-wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
2433,
12,
77,
4672,
2552,
1363,
1739,
87,
309,
562,
12,
7267,
13,
32,
33,
77,
30,
5546,
1435,
327,
1053,
469,
30,
261,
1717,
1711,
529,
16,
7479,
13,
273,
4689,
63,
77,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2433,
12,
77,
4672,
2552,
1363,
1739,
87,
309,
562,
12,
7267,
13,
32,
33,
77,
30,
5546,
1435,
327,
1053,
469,
30,
261,
1717,
1711,
529,
16,
7479,
13,
273,
4689,
63,
77,
8... |
if len(t) > 0 and not t[0].isspace(): | if len(t) > 0 and not t[0].isspace() and not t[:3] == '"""': | def do_POST(self): global current_log, fulltext_log ctype, pdict = cgi.parse_header(self.headers.getheader('content-type')) length = int(self.headers.getheader('content-length')) if ctype == 'multipart/form-data': self.body = cgi.parse_multipart(self.rfile, pdict) elif ctype == 'application/x-www-form-urlencoded': qs =... | 8e6712a81e278ed26bfab93285db919697eebfcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/8e6712a81e278ed26bfab93285db919697eebfcb/server1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
783,
67,
1330,
16,
1983,
955,
67,
1330,
11920,
16,
293,
1576,
273,
276,
10052,
18,
2670,
67,
3374,
12,
2890,
18,
2485,
18,
75,
546,
18105,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
783,
67,
1330,
16,
1983,
955,
67,
1330,
11920,
16,
293,
1576,
273,
276,
10052,
18,
2670,
67,
3374,
12,
2890,
18,
2485,
18,
75,
546,
18105,
2668,
... |
k = find_token(document.body, '\\begin_inset Float', i + 1, j) | k = find_token(document.body, '\\begin_inset Float ', i + 1, j) | def revert_subfig(document): " Revert subfloats. " i = 0 while 1: i = find_token(document.body, '\\begin_inset Float', i) if i == -1: return while 1: j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (float).") i = i + 1 continue # look for embedded floa... | 98b51ebfbcacadec8c19002d2e3088b12bc67c95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/98b51ebfbcacadec8c19002d2e3088b12bc67c95/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1717,
470,
12,
5457,
4672,
315,
868,
1097,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
267,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15226,
67,
1717,
470,
12,
5457,
4672,
315,
868,
1097,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
267,
54... |
specified, use the global default""" | specified, use the global default """ | def __init__(self, name, logger=None): """__init__(self, string, Logger=None) Create a new instance of the Notifier class with a given name and an optional Logger class for piping output to. If no logger specified, use the global default""" self.__name = name | f04fa19eef5f5f80a5d3943b1a21e09f24f88a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f04fa19eef5f5f80a5d3943b1a21e09f24f88a0c/Notifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1194,
33,
7036,
4672,
3536,
972,
2738,
972,
12,
2890,
16,
533,
16,
4242,
33,
7036,
13,
1788,
279,
394,
791,
434,
326,
2288,
1251,
667,
598,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1194,
33,
7036,
4672,
3536,
972,
2738,
972,
12,
2890,
16,
533,
16,
4242,
33,
7036,
13,
1788,
279,
394,
791,
434,
326,
2288,
1251,
667,
598,
27... |
if rcvd: return True else: return False | if rcvd: self.log.debug('checkToken(%s): True' % token) return True else: self.log.debug('checkToken(%s): False' % token) return False | def checkToken(self, token): self.log.debug('checkToken(): invoked') self.log.info('checkToken(): token=%s' % token) sent = self.send("Tc%s" % token) | 61286f9f46c45daa56443d043c7ba669d6ac6edc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8578/61286f9f46c45daa56443d043c7ba669d6ac6edc/cashier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1345,
12,
2890,
16,
1147,
4672,
365,
18,
1330,
18,
4148,
2668,
1893,
1345,
13332,
8187,
6134,
365,
18,
1330,
18,
1376,
2668,
1893,
1345,
13332,
1147,
5095,
87,
11,
738,
1147,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1345,
12,
2890,
16,
1147,
4672,
365,
18,
1330,
18,
4148,
2668,
1893,
1345,
13332,
8187,
6134,
365,
18,
1330,
18,
1376,
2668,
1893,
1345,
13332,
1147,
5095,
87,
11,
738,
1147,
13,
... |
value=abs(flex.mean(a-b))/abs(flex.mean(a)), limit=0.0005) | value=flex.max(flex.abs((a-b))), limit=0.1) assert is_above_limit( value=flex.min(flex.abs((a-b))), limit=0.001) | def exercise_structure(): cs1 = crystal.symmetry((10, 20, 30, 90, 90, 90), "P 1") sp1 = crystal.special_position_settings(cs1) scatterers1 = flex.xray_scatterer(( xray.scatterer("o", (0.5, 0, 0)), xray.scatterer("c", (0, 0, 0)))) xs1 = xray.structure(sp1, scatterers1) cs2 = crystal.symmetry((10, 20, 30, 90, 90, 90), "P... | 2849da59e7c11abeadfcd3f9772f001ca49c74f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/2849da59e7c11abeadfcd3f9772f001ca49c74f9/tst_xray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
7627,
13332,
2873,
21,
273,
4422,
31365,
18,
8117,
18042,
12443,
2163,
16,
4200,
16,
5196,
16,
8566,
16,
8566,
16,
8566,
3631,
315,
52,
404,
7923,
1694,
21,
273,
4422,
31365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24165,
67,
7627,
13332,
2873,
21,
273,
4422,
31365,
18,
8117,
18042,
12443,
2163,
16,
4200,
16,
5196,
16,
8566,
16,
8566,
16,
8566,
3631,
315,
52,
404,
7923,
1694,
21,
273,
4422,
31365,
... |
Note that you have explicitly define variables and pass | However, preparsing can be turned off. sage: sage_eval('2^3', preparse=False) 1 Note that you can explicitly define variables and pass | def sage_eval(source, locals={}): r""" Obtain a \SAGE object from the input string by evaluate it using SAGE. This means calling eval after preparsing and with globals equal to everything included in the scope of \code{from sage.all import *}.). If the object has an _sage_ method it is called and the value is returne... | 2f0e7348b50190ddc5e750f77707eccf93720818 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/2f0e7348b50190ddc5e750f77707eccf93720818/sage_eval.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
8622,
12,
3168,
16,
8985,
12938,
4672,
436,
8395,
24850,
279,
521,
55,
2833,
733,
628,
326,
810,
533,
635,
5956,
518,
1450,
348,
2833,
18,
225,
1220,
4696,
4440,
5302,
18... |
except: | except: | def spawn(mystring,debug=0,fd_pipes=None): """ apparently, os.system mucks up return values, so this code should fix that. Taken from portage.py - thanks to carpaski@gentoo.org """ print "Running command \""+mystring+"\"" myargs=[] mycommand = "/bin/bash" if debug: myargs=["bash","-x","-c",mystring] else: myargs=["bas... | a29253564ae8f756168fd1670be5a4857f2d02d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/a29253564ae8f756168fd1670be5a4857f2d02d5/catalyst_support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
12,
4811,
1080,
16,
4148,
33,
20,
16,
8313,
67,
16104,
281,
33,
7036,
4672,
3536,
29614,
715,
16,
1140,
18,
4299,
4129,
363,
87,
731,
327,
924,
16,
1427,
333,
981,
1410,
2917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
12,
4811,
1080,
16,
4148,
33,
20,
16,
8313,
67,
16104,
281,
33,
7036,
4672,
3536,
29614,
715,
16,
1140,
18,
4299,
4129,
363,
87,
731,
327,
924,
16,
1427,
333,
981,
1410,
2917,
... |
def __init__(self, job, dag, database, xml, p_node=[], replace=False, extract=False): | def __init__(self, job, dag, database, xml, id, p_node=[], replace=False, extract=False): | def __init__(self, job, dag, database, xml, p_node=[], replace=False, extract=False): | fa84b2dcea9c56113a7d87c49ee290301ff67aba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fa84b2dcea9c56113a7d87c49ee290301ff67aba/highmass_post_process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
16,
22940,
16,
2063,
16,
2025,
16,
293,
67,
2159,
22850,
6487,
1453,
33,
8381,
16,
2608,
33,
8381,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1719,
16,
22940,
16,
2063,
16,
2025,
16,
293,
67,
2159,
22850,
6487,
1453,
33,
8381,
16,
2608,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
defFormat = "%.1f", | defFormat = "%0.1f", | def createStdWdg(self): """Create the standard widgets. """ sr = self.sr self.starPosWdgSet = [] for ii in range(2): letter = ("X", "Y")[ii] wdgLabel = "Star Pos %s" % (letter,) starPosWdg = RO.Wdg.FloatEntry( master = sr.master, minValue = 0, maxValue = 5000, helpText = "Star %s position on full frame" % (letter,), he... | bdc20e03649e5a498573c69cad551b250ac0bc28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6236/bdc20e03649e5a498573c69cad551b250ac0bc28/BaseFocusScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10436,
59,
72,
75,
12,
2890,
4672,
3536,
1684,
326,
4529,
10965,
18,
3536,
9133,
273,
365,
18,
11254,
365,
18,
10983,
1616,
59,
72,
75,
694,
273,
5378,
364,
6072,
316,
1048,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10436,
59,
72,
75,
12,
2890,
4672,
3536,
1684,
326,
4529,
10965,
18,
3536,
9133,
273,
365,
18,
11254,
365,
18,
10983,
1616,
59,
72,
75,
694,
273,
5378,
364,
6072,
316,
1048,
12,
... |
self.targetCombo.clear() | def fillClassCombo(self): if not self.data: return domain = self.data.domain self.targetCombo.clear() for v in domain.classVar.values: self.targetCombo.insertItem(str(v)) if self.targetClass<len(domain.classVar.values): self.targetCombo.setCurrentItem(self.targetClass) else: self.targetCombo.setCurrentItem(0) self.tar... | ae83bc8e1038df87b0fe497ddb634614447ce035 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/ae83bc8e1038df87b0fe497ddb634614447ce035/OWDiscretize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
797,
16156,
12,
2890,
4672,
309,
486,
365,
18,
892,
30,
327,
225,
2461,
273,
365,
18,
892,
18,
4308,
364,
331,
316,
2461,
18,
1106,
1537,
18,
2372,
30,
365,
18,
3299,
16156,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
797,
16156,
12,
2890,
4672,
309,
486,
365,
18,
892,
30,
327,
225,
2461,
273,
365,
18,
892,
18,
4308,
364,
331,
316,
2461,
18,
1106,
1537,
18,
2372,
30,
365,
18,
3299,
16156,
18... | |
def __eq__(self, other): return self._set == other def __ne__(self, other): return self._set != other def _test(): red = Set() assert `red` == "Set([])", "Empty set: %s" % `red` green = Set((0,)) assert `green` == "Set([0])", "Unit set: %s" % `green` blue = Set([0, 1, 2]) assert blue._repr(True) == "Set([0,... | def __hash__(self): if self._hashcode is None: self._hashcode = self._set._compute_hash() return self._hashcode | 18952fe218a31e2eef50fe38038baad8fa07c355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/18952fe218a31e2eef50fe38038baad8fa07c355/sets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
309,
365,
6315,
2816,
710,
353,
599,
30,
365,
6315,
2816,
710,
273,
365,
6315,
542,
6315,
9200,
67,
2816,
1435,
327,
365,
6315,
2816,
710,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
309,
365,
6315,
2816,
710,
353,
599,
30,
365,
6315,
2816,
710,
273,
365,
6315,
542,
6315,
9200,
67,
2816,
1435,
327,
365,
6315,
2816,
710,
2,
-100,
-10... | |
'ArrayType' : 'array' | def to_list(item): if item is None: return [] return list(item) | b78fe0f34d9147a9b0c280e958fe37d4f8aca056 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/b78fe0f34d9147a9b0c280e958fe37d4f8aca056/robottypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1098,
12,
1726,
4672,
309,
761,
353,
599,
30,
327,
5378,
327,
666,
12,
1726,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1098,
12,
1726,
4672,
309,
761,
353,
599,
30,
327,
5378,
327,
666,
12,
1726,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
return matrix_field.Matrix_field | return matrix_field_dense.Matrix_field_dense | def _get_matrix_class(self): K = self.base_ring() if self.is_dense(): if isinstance(K, rational_field.RationalField): return matrix_rational_dense.Matrix_rational_dense if isinstance(K, finite_field.FiniteField_prime_modn) and K.characteristic() <= matrix_modn_dense.MAX_MODULUS: return matrix_modn_dense.Matrix_modn_den... | e18bb2cce14bddb2662739f64c7243556958df26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/e18bb2cce14bddb2662739f64c7243556958df26/matrix_space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5667,
67,
1106,
12,
2890,
4672,
1475,
273,
365,
18,
1969,
67,
8022,
1435,
309,
365,
18,
291,
67,
25942,
13332,
309,
1549,
12,
47,
16,
436,
8371,
67,
1518,
18,
54,
8371,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5667,
67,
1106,
12,
2890,
4672,
1475,
273,
365,
18,
1969,
67,
8022,
1435,
309,
365,
18,
291,
67,
25942,
13332,
309,
1549,
12,
47,
16,
436,
8371,
67,
1518,
18,
54,
8371,... |
inputs, outputs, errors = select.select([], self.child_out_fd, [], | inputs, outputs, errors = select.select(self.child_out_fd, [], [], | def poll(self, block): if block and self.debug: print "** waiting for a child to finish **" if block: inputs, outputs, errors = select.select([], self.child_out_fd, []) else: inputs, outputs, errors = select.select([], self.child_out_fd, [], self.timeout) if not outputs: if self.debug: print "\tno file descriptor is re... | cca7769d1c8f553d026fb80fef74e4ac2bed403c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/cca7769d1c8f553d026fb80fef74e4ac2bed403c/symmetric_multi_processing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
12,
2890,
16,
1203,
4672,
309,
1203,
471,
365,
18,
4148,
30,
1172,
28078,
7336,
364,
279,
1151,
358,
4076,
2826,
6,
309,
1203,
30,
4540,
16,
6729,
16,
1334,
273,
2027,
18,
4025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7672,
12,
2890,
16,
1203,
4672,
309,
1203,
471,
365,
18,
4148,
30,
1172,
28078,
7336,
364,
279,
1151,
358,
4076,
2826,
6,
309,
1203,
30,
4540,
16,
6729,
16,
1334,
273,
2027,
18,
4025,
... |
>>> with PdbTestInput(['step','x', 'continue']): | >>> with PdbTestInput(['step','x', 'continue']): | def test_pdb_run_with_code_object(): """Testing run and runeval with code object as a first argument. >>> with PdbTestInput(['step','x', 'continue']): ... pdb_invoke('run', compile('x=1', '<string>', 'exec')) > <string>(1)<module>() (Pdb) step --Return-- > <string>(1)<module>()->None (Pdb) x 1 (Pdb) continue >>> ... | 4b5b541701b1212739b07742bb32024daf0c33e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/4b5b541701b1212739b07742bb32024daf0c33e0/test_pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17414,
67,
2681,
67,
1918,
67,
710,
67,
1612,
13332,
3536,
22218,
1086,
471,
1086,
8622,
598,
981,
733,
487,
279,
1122,
1237,
18,
225,
4080,
598,
453,
1966,
4709,
1210,
12,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17414,
67,
2681,
67,
1918,
67,
710,
67,
1612,
13332,
3536,
22218,
1086,
471,
1086,
8622,
598,
981,
733,
487,
279,
1122,
1237,
18,
225,
4080,
598,
453,
1966,
4709,
1210,
12,
3... |
if not is_unavailable_exception(e): self.assertTrue(e.headers.get("X-exception") is None) self.assertTrue(e.headers.get("X-traceback") is None) | self.assertTrue(e.headers.get("X-exception") is None) self.assertTrue(e.headers.get("X-traceback") is None) | def test_fail_no_info(self): # use the broken message class SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.MessageClass = FailingMessageClass | 04000b10e0285335543140e4ee28912351b863dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/04000b10e0285335543140e4ee28912351b863dd/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6870,
67,
2135,
67,
1376,
12,
2890,
4672,
468,
999,
326,
12933,
883,
667,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
28773,
18,
1079,
797,
273,
8911,
310,
1079,
797,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6870,
67,
2135,
67,
1376,
12,
2890,
4672,
468,
999,
326,
12933,
883,
667,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
28773,
18,
1079,
797,
273,
8911,
310,
1079,
797,
2,
-1... |
value[field] = field_value | if self._columns[field]._type in ('many2one', 'one2one'): obj = self.pool.get(self._columns[field]._obj) if not obj.search(cr, uid, [('id', '=', field_value)]): continue if self._columns[field]._type in ('one2many', 'many2many'): obj = self.pool.get(self._columns[field]._obj) obj_ids = obj.search(cr, uid, [('id', 'in',... | def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context)) | 36b95ea77932c42d9940f3534e42b4fe24e69965 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/36b95ea77932c42d9940f3534e42b4fe24e69965/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... |
trait = self.traits().get(name) if not trait: trait = self._instance_traits().get(name) | if self._cached_traits_ is None: self._cached_traits_ = self.traits() self._cached_traits_.update(self._instance_traits()) trait = self._cached_traits_.get(name) | def get_trait ( self, name, copy = False ): """Returns the trait indicated by name, or None if not found. No recursive search is performed if name contains dots. This is a replacement for the trait() method on HasTraits objects, because that method can return traits that shouldn't exist. """ trait = self.traits().get... | d72186d4ec3812cfe9e26caa3268224cbd984829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/d72186d4ec3812cfe9e26caa3268224cbd984829/container.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
22513,
261,
365,
16,
508,
16,
1610,
273,
1083,
262,
30,
3536,
1356,
326,
13517,
17710,
635,
508,
16,
578,
599,
309,
486,
1392,
18,
225,
2631,
5904,
1623,
353,
9591,
309,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
22513,
261,
365,
16,
508,
16,
1610,
273,
1083,
262,
30,
3536,
1356,
326,
13517,
17710,
635,
508,
16,
578,
599,
309,
486,
1392,
18,
225,
2631,
5904,
1623,
353,
9591,
309,
508,
... |
elif left_score < rigt_score : | elif left_score < rigt_score: | def update(self, index, left_score, rigt_score, valid) : count += 1 | ab984dfcf4152172bb5c41c3da2fe1f6a428492f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/ab984dfcf4152172bb5c41c3da2fe1f6a428492f/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
770,
16,
2002,
67,
6355,
16,
436,
360,
88,
67,
6355,
16,
923,
13,
294,
1056,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
770,
16,
2002,
67,
6355,
16,
436,
360,
88,
67,
6355,
16,
923,
13,
294,
1056,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
errors_set = set(errors) for attribute in errno.__dict__.iterkeys(): if attribute.isupper(): self.assert_(attribute in errors_set, "%s is an unexpected error value" % attribute) | for error_code in std_c_errors: self.assert_(hasattr(errno, error_code), "errno is missing %s" % error_code) | def test_for_improper_attributes(self): # No unexpected attributes should be on the module. errors_set = set(errors) for attribute in errno.__dict__.iterkeys(): if attribute.isupper(): self.assert_(attribute in errors_set, "%s is an unexpected error value" % attribute) | 16ad086ad4ee3d7d50faa718c62090e0fa7fd9ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/16ad086ad4ee3d7d50faa718c62090e0fa7fd9ea/test_errno.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
67,
381,
22754,
67,
4350,
12,
2890,
4672,
468,
2631,
9733,
1677,
1410,
506,
603,
326,
1605,
18,
1334,
67,
542,
273,
444,
12,
4324,
13,
364,
1566,
316,
8402,
16186,
1576... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
67,
381,
22754,
67,
4350,
12,
2890,
4672,
468,
2631,
9733,
1677,
1410,
506,
603,
326,
1605,
18,
1334,
67,
542,
273,
444,
12,
4324,
13,
364,
1566,
316,
8402,
16186,
1576... |
print classobj, "object %d deleted" % object[object.primary_key] | print classobj(self.api).__class__.__name__, "object %s deleted" % object[object.class_key] | def sync(objects, peer_objects, classobj): """ Synchronizes two dictionaries of objects. objects should be a dictionary of local objects keyed on their foreign identifiers. peer_objects should be a dictionary of foreign objects keyed on their local (i.e., foreign to us) identifiers. Returns a final dictionary of local ... | 0f6b5cac3ad4dd3221a7d0a3106d3f0ace9f892f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7598/0f6b5cac3ad4dd3221a7d0a3106d3f0ace9f892f/RefreshPeer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
6911,
16,
4261,
67,
6911,
16,
667,
2603,
4672,
3536,
26535,
3128,
2795,
16176,
434,
2184,
18,
2184,
1410,
506,
279,
3880,
434,
1191,
2184,
17408,
603,
3675,
5523,
9863,
18,
426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3792,
12,
6911,
16,
4261,
67,
6911,
16,
667,
2603,
4672,
3536,
26535,
3128,
2795,
16176,
434,
2184,
18,
2184,
1410,
506,
279,
3880,
434,
1191,
2184,
17408,
603,
3675,
5523,
9863,
18,
426... |
host = argss[1] self.host = host self.prompt = '%s >' % self.host def __getSoftwareComponents(self): componentDict = {} client = SystemAdministratorClient(self.host) result = client.getSoftwareComponents() if not result['OK']: print "ERROR:",result['Message'] return componentDict rDict = result['Value'] for compType... | host = argss[0] self.host = host self.prompt = '%s >' % self.host else: print "Unknown option:", option def do_show( self, args ): | def do_set(self,args): """ Set the host to be managed usage: set host <hostname> """ argss = args.split() option = argss[0] if option == 'host': host = argss[1] self.host = host self.prompt = '%s >' % self.host | b68208f4ea74e3c61aead9e641ff73054212c46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b68208f4ea74e3c61aead9e641ff73054212c46c/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
542,
12,
2890,
16,
1968,
4672,
3536,
1000,
326,
1479,
358,
506,
7016,
225,
4084,
30,
225,
444,
1479,
411,
10358,
34,
3536,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
542,
12,
2890,
16,
1968,
4672,
3536,
1000,
326,
1479,
358,
506,
7016,
225,
4084,
30,
225,
444,
1479,
411,
10358,
34,
3536,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
... |
Of course, if 'use_statcache' is true, this mechanism is defeated, and the cache will never grow stale. | def cmp(f1, f2, shallow=1, use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return val... | 8eb4044f7e42af1134a6a98e52201df0a8aaa01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8eb4044f7e42af1134a6a98e52201df0a8aaa01f/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
12,
74,
21,
16,
284,
22,
16,
18501,
33,
21,
16,
999,
67,
5642,
2493,
33,
20,
4672,
3536,
8583,
2795,
1390,
18,
225,
13599,
30,
225,
284,
21,
1493,
5783,
585,
508,
225,
284,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
12,
74,
21,
16,
284,
22,
16,
18501,
33,
21,
16,
999,
67,
5642,
2493,
33,
20,
4672,
3536,
8583,
2795,
1390,
18,
225,
13599,
30,
225,
284,
21,
1493,
5783,
585,
508,
225,
284,
2... | |
WHERE bskREC.id_bskBASKET=%(bskid)i AND | WHERE bskREC.id_bskBASKET=%(bskid)s AND | def get_basket_record(bskid, recid, format='hb'): """get record recid in basket bskid """ if recid < 0: rec_table = 'bskEXTREC' format_table = 'bskEXTFMT' id_field = 'id_bskEXTREC' sign = '-' else: rec_table = 'bibrec' format_table = 'bibfmt' id_field = 'id_bibrec' sign = '' query = """ SELECT DATE_FORMAT(record.creati... | 7a37a9f9254cd71f247c81990326e764c960bb66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/7a37a9f9254cd71f247c81990326e764c960bb66/webbasket_dblayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26219,
67,
3366,
12,
2038,
79,
350,
16,
1950,
350,
16,
740,
2218,
76,
70,
11,
4672,
3536,
588,
1409,
1950,
350,
316,
12886,
7081,
79,
350,
3536,
309,
1950,
350,
411,
374,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26219,
67,
3366,
12,
2038,
79,
350,
16,
1950,
350,
16,
740,
2218,
76,
70,
11,
4672,
3536,
588,
1409,
1950,
350,
316,
12886,
7081,
79,
350,
3536,
309,
1950,
350,
411,
374,
30... |
if 'host' in db_prop['params']: host = db_prop['params']['host'] | if 'host' in db_params: host = db_params['host'] | def backup(self, dest_file): try: from subprocess import Popen, PIPE except ImportError: raise TracError('Python >= 2.4 or the subprocess module ' 'is required for pre-upgrade backup support') db_url = self.env.config.get('trac', 'database') scheme, db_prop = _parse_db_str(db_url) db_prop.setdefault('params', {}) db_na... | fab0ccb8534541073068be9d138fab935fee08c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/fab0ccb8534541073068be9d138fab935fee08c8/postgres_backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
12,
2890,
16,
1570,
67,
768,
4672,
775,
30,
628,
6652,
1930,
14339,
16,
11716,
1335,
11308,
30,
1002,
2197,
71,
668,
2668,
15774,
1545,
576,
18,
24,
578,
326,
6652,
1605,
296,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5114,
12,
2890,
16,
1570,
67,
768,
4672,
775,
30,
628,
6652,
1930,
14339,
16,
11716,
1335,
11308,
30,
1002,
2197,
71,
668,
2668,
15774,
1545,
576,
18,
24,
578,
326,
6652,
1605,
296,
29... |
def update_search_path(self, search_paths): | def update_search_path(self, search_path): | def update_search_path(self, search_paths): self.loader.search_path = search_path | 85edde0ce42f0383e73cc6cb3f67d385d163f2f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/998/85edde0ce42f0383e73cc6cb3f67d385d163f2f6/templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3072,
67,
803,
12,
2890,
16,
1623,
67,
803,
4672,
365,
18,
6714,
18,
3072,
67,
803,
273,
1623,
67,
803,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3072,
67,
803,
12,
2890,
16,
1623,
67,
803,
4672,
365,
18,
6714,
18,
3072,
67,
803,
273,
1623,
67,
803,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logger.log("Added vsys attribute %s for %s"%(k,slice) | logger.log("Added vsys attribute %s for %s")%(k,slice) | def write_privs(cur_privs,privs): for slice in privs.keys(): variables = privs[slice] slice_dir = os.path.join(VSYS_PRIV_DIR,slice) if (not os.path.exists(slice_dir)): os.mkdir(slice_dir) # Add values that do not exist for k in variables.keys(): v = variables[k] if (cur_privs.has_key(slice) and cur_privs[slice].has_ke... | 7ddc4ea23e469de146e358557b4db303207a1b01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6995/7ddc4ea23e469de146e358557b4db303207a1b01/vsys_privs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
11365,
87,
12,
1397,
67,
11365,
87,
16,
11365,
87,
4672,
364,
2788,
316,
6015,
87,
18,
2452,
13332,
3152,
273,
6015,
87,
63,
6665,
65,
2788,
67,
1214,
273,
1140,
18,
803,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
11365,
87,
12,
1397,
67,
11365,
87,
16,
11365,
87,
4672,
364,
2788,
316,
6015,
87,
18,
2452,
13332,
3152,
273,
6015,
87,
63,
6665,
65,
2788,
67,
1214,
273,
1140,
18,
803,
1... |
Type to use in computing the means. For arrays of integer type the | Type to use in computing the mean. For arrays of integer type the | def mean(a, axis=None, dtype=None, out=None): """Compute the mean along the specified axis. Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis. The dtype returned for integer type arrays is float Parameters ---------- a : {array_like... | 5fc40c054140b8f43eb2838f892367ca05bcf302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/5fc40c054140b8f43eb2838f892367ca05bcf302/fromnumeric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3722,
12,
69,
16,
2654,
33,
7036,
16,
3182,
33,
7036,
16,
596,
33,
7036,
4672,
3536,
7018,
326,
3722,
7563,
326,
1269,
2654,
18,
225,
2860,
326,
8164,
434,
326,
526,
2186,
18,
225,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3722,
12,
69,
16,
2654,
33,
7036,
16,
3182,
33,
7036,
16,
596,
33,
7036,
4672,
3536,
7018,
326,
3722,
7563,
326,
1269,
2654,
18,
225,
2860,
326,
8164,
434,
326,
526,
2186,
18,
225,
1... |
self.filter = config | self.validator = LibraryValidator(config) | def __init__(self, repoDir, config=None): self.dir = os.path.abspath(repoDir) self.filter = config manifests = self.scanRepository() self.libraries = self.getLibraries(manifests) | 07d17d89801ed3ff9a94b2c9ec545eeae202386f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/07d17d89801ed3ff9a94b2c9ec545eeae202386f/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3538,
1621,
16,
642,
33,
7036,
4672,
365,
18,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
7422,
1621,
13,
365,
18,
7357,
273,
18694,
5126,
12,
1425,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3538,
1621,
16,
642,
33,
7036,
4672,
365,
18,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
7422,
1621,
13,
365,
18,
7357,
273,
18694,
5126,
12,
1425,
1... |
self.invariant = 1 | self.invariant = rl_config.invariant | def __init__(self): self.invariant = 1 self.title = "untitled" self.author = "anonymous" self.subject = "unspecified" #now = time.localtime(time.time()) #self.datestr = '%04d%02d%02d%02d%02d%02d' % tuple(now[0:6]) | 41d4075503c6010e6924de60875e7de884690c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/41d4075503c6010e6924de60875e7de884690c53/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
267,
8688,
273,
11618,
67,
1425,
18,
267,
8688,
365,
18,
2649,
273,
315,
10032,
305,
1259,
6,
365,
18,
4161,
273,
315,
19070,
6,
365,
18,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
267,
8688,
273,
11618,
67,
1425,
18,
267,
8688,
365,
18,
2649,
273,
315,
10032,
305,
1259,
6,
365,
18,
4161,
273,
315,
19070,
6,
365,
18,
78... |
self.EnsureVisible(self.GetTopItem() + self.GetCountPerPage()) self._auto_scroll_timer.Start() | index = min(self.GetTopItem() + self.GetCountPerPage(), count - 1) self.EnsureVisible(index) self._auto_scroll_timer.Start() | def OnAutoScrollTimer(self, evt): """Timer event handler to scroll the list in the requested direction. """ #print "_auto_scroll = %d, timer = %s" % (self._auto_scroll, self._auto_scroll_timer is not None) if self._auto_scroll == 0: # clean up timer resource self._auto_scroll_timer = None else: if self._auto_scroll_ind... | 70e7c2d1448988c3a21ad5411741a4253183f41b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/70e7c2d1448988c3a21ad5411741a4253183f41b/dropscroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4965,
6806,
6777,
12,
2890,
16,
6324,
4672,
3536,
6777,
871,
1838,
358,
5532,
326,
666,
316,
326,
3764,
4068,
18,
3536,
468,
1188,
4192,
6079,
67,
12033,
273,
738,
72,
16,
5441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4965,
6806,
6777,
12,
2890,
16,
6324,
4672,
3536,
6777,
871,
1838,
358,
5532,
326,
666,
316,
326,
3764,
4068,
18,
3536,
468,
1188,
4192,
6079,
67,
12033,
273,
738,
72,
16,
5441,
... |
return self.is_64bit() and self.is_PentiumIV() | return self.is_Intel() \ and (self.info[0]['cpu family'] == '6' \ or self.info[0]['cpu family'] == '15' ) \ and self.has_sse3() \ and re.match(r'.*?\blm\b',self.info[0]['flags']) is not None | def _is_Nocona(self): return self.is_64bit() and self.is_PentiumIV() | fd1cbdfd4f32834e813391e546dbc31fb51287d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/fd1cbdfd4f32834e813391e546dbc31fb51287d9/cpuinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
50,
16550,
69,
12,
2890,
4672,
327,
365,
18,
291,
67,
1105,
3682,
1435,
471,
365,
18,
291,
67,
52,
319,
5077,
8188,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
50,
16550,
69,
12,
2890,
4672,
327,
365,
18,
291,
67,
1105,
3682,
1435,
471,
365,
18,
291,
67,
52,
319,
5077,
8188,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def keyReleaseEvent(self,event): | def keyReleaseEvent(self, event): | def keyReleaseEvent(self,event): pass ## thing.keyReleaseEvent(event) | 55ac4fdc2a170bd52fcbe417587721669a976b6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/55ac4fdc2a170bd52fcbe417587721669a976b6f/test_animation_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
7391,
1133,
12,
2890,
16,
871,
4672,
1342,
7541,
7757,
18,
856,
7391,
1133,
12,
2575,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
7391,
1133,
12,
2890,
16,
871,
4672,
1342,
7541,
7757,
18,
856,
7391,
1133,
12,
2575,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
result[recid] += 1 citation_list[recid].append(rec_id) | result[thisrecid] += 1 citation_list[thisrecid].append(rec_id) | def ref_analyzer(citation_informations, initialresult, initial_citationlist, initial_referencelist,config, updated_rec_list ): """Analyze the citation informations and calculate the citation weight and cited by list dictionary. """ function = "" try: function = config.get("rank_method", "function") except: register_exc... | bde6d6e8d4476d09e1e3f005f664e6fc5a8680fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/bde6d6e8d4476d09e1e3f005f664e6fc5a8680fd/bibrank_citation_indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
67,
13647,
12,
71,
8773,
67,
267,
687,
1012,
16,
2172,
2088,
16,
2172,
67,
71,
8773,
1098,
16,
2172,
67,
266,
586,
1331,
5449,
16,
1425,
16,
3526,
67,
3927,
67,
1098,
262,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
67,
13647,
12,
71,
8773,
67,
267,
687,
1012,
16,
2172,
2088,
16,
2172,
67,
71,
8773,
1098,
16,
2172,
67,
266,
586,
1331,
5449,
16,
1425,
16,
3526,
67,
3927,
67,
1098,
262,
30,
... |
elif value == "True": | elif value == True: | def attribute(self, name, value): if value == "False": return self.__subsystem.attribute(name, str("false")) elif value == "True": return self.__subsystem.attribute(name, str("true")) else: return self.__subsystem.attribute(name, str(value)) | d0465bd1aa63f0bef2f48ab7443861a137991e35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11657/d0465bd1aa63f0bef2f48ab7443861a137991e35/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
4672,
309,
460,
422,
315,
8381,
6877,
327,
365,
16186,
1717,
4299,
18,
4589,
12,
529,
16,
609,
2932,
5743,
6,
3719,
1327,
460,
422,
1053,
30,
327,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
4672,
309,
460,
422,
315,
8381,
6877,
327,
365,
16186,
1717,
4299,
18,
4589,
12,
529,
16,
609,
2932,
5743,
6,
3719,
1327,
460,
422,
1053,
30,
327,
3... |
return page['revisions'][0]['*'] | return revisions[0]['*'] | def getRawArticle(self, title, revision=None): if not title: return None | f185ac71316210bf1588f6b5c8f0f8b686acc917 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/f185ac71316210bf1588f6b5c8f0f8b686acc917/mwapidb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
309,
486,
2077,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
309,
486,
2077,
30,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print "%s: version %d is too old, need >= %s"%(d, | print "%s: version %r is too old, need >= %r"%(d, | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 50fd9b8f3c386c93a1d3894eb41791d351147efb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/50fd9b8f3c386c93a1d3894eb41791d351147efb/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(flags) | self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(lflags) | def processmessagesflags(self, operation, uidlist, flags): if len(uidlist) > 101: # Hack for those IMAP ervers with a limited line length self.processmessagesflags(operation, uidlist[:100], flags) self.processmessagesflags(operation, uidlist[100:], flags) return imapobj = self.imapserver.acquireconnection() try: # Mak... | 08a579657a465c97feb4601c7e9d4e815289591d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5335/08a579657a465c97feb4601c7e9d4e815289591d/IMAP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
6833,
7133,
12,
2890,
16,
1674,
16,
4555,
1098,
16,
2943,
4672,
309,
562,
12,
1911,
1098,
13,
405,
13822,
30,
468,
670,
484,
364,
5348,
6246,
2203,
6445,
2496,
598,
279,
13594,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
6833,
7133,
12,
2890,
16,
1674,
16,
4555,
1098,
16,
2943,
4672,
309,
562,
12,
1911,
1098,
13,
405,
13822,
30,
468,
670,
484,
364,
5348,
6246,
2203,
6445,
2496,
598,
279,
13594,
9... |
assert(isinstance(fd, (SSL.ConnectionType)), | assert isinstance(fd, (SSL.ConnectionType)), \ | def __init__(self, fd): super(GreenSSL, self).__init__(fd) assert(isinstance(fd, (SSL.ConnectionType)), "GreenSSL can only be constructed with an "\ "OpenSSL Connection object") self.sock = self | c197938ff28cfc9a18ccd026ed1642297e7e02e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/c197938ff28cfc9a18ccd026ed1642297e7e02e1/greenio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5194,
4672,
2240,
12,
21453,
6745,
16,
365,
2934,
972,
2738,
972,
12,
8313,
13,
1815,
1549,
12,
8313,
16,
261,
6745,
18,
1952,
559,
13,
3631,
521,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5194,
4672,
2240,
12,
21453,
6745,
16,
365,
2934,
972,
2738,
972,
12,
8313,
13,
1815,
1549,
12,
8313,
16,
261,
6745,
18,
1952,
559,
13,
3631,
521,
315,
... |
if not os.path.exists(CACHEDIR): os.makedirs(CACHEDIR) | def run(): parser = optparse.OptionParser(usage = "usage: %prog [options]") parser.add_option("--version", dest="printversion", action="store_true", help="Display the version information for this program") (options, args) = parser.parse_args() if options.printversion != None: print get_version() return if not os.pat... | b0be527ef6a1f029d19420ceb0333083835e95bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/b0be527ef6a1f029d19420ceb0333083835e95bd/crawler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
413,
1589,
3113,
1570,
1546,
1188,
1589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
413,
1589,
3113,
1570,
1546,
1188,
1589... | |
if self._show_both and self._show_private: str += '../' | if self._show_private: str += '../' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<table class="navbar" border="0" width="100%"' str += ' cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">\n' str += ' <tr>\n' str += ' <td width="100%">\n' str += ' <ta... | b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
train(h, g, False, force, trainnew) | train(h, g, False, force, trainnew, removetrained) | def main(): """Main program; parse options and go.""" global loud try: opts, args = getopt.getopt(sys.argv[1:], 'hfqnd:D:g:s:') except getopt.error, msg: usage(2, msg) if not opts: usage(2, "No options given") pck = None usedb = None force = False trainnew = False good = [] spam = [] for opt, arg in opts: if opt ==... | 0927af8f2c4fb18ef58c0b4fef71b468f866dfb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0927af8f2c4fb18ef58c0b4fef71b468f866dfb6/mboxtrain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
225,
2552,
437,
1100,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
225,
2552,
437,
1100,
225,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,... |
self.case = self.sensor(case, self.hotstack) | if isinstance (case,types.StringType): self.cpu = self.sensor(case, '@', self.hotstack) else: self.cpu = self.sensor(case[0], case[1], self.hotstack) | def __init__(self, cpu='temp3', case='temp2' , ram='MemTotal'): IdleBarPlugin.__init__(self) import re self.hotstack = 0 self.case = None self.cpu = self.sensor(cpu, self.hotstack) if case: self.case = self.sensor(case, self.hotstack) | d4bead8f4304ca81687cb0fe137a4c581dbf6103 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d4bead8f4304ca81687cb0fe137a4c581dbf6103/idlebar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8326,
2218,
5814,
23,
2187,
648,
2218,
5814,
22,
11,
269,
24975,
2218,
3545,
5269,
11,
4672,
28156,
5190,
3773,
16186,
2738,
972,
12,
2890,
13,
225,
1930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8326,
2218,
5814,
23,
2187,
648,
2218,
5814,
22,
11,
269,
24975,
2218,
3545,
5269,
11,
4672,
28156,
5190,
3773,
16186,
2738,
972,
12,
2890,
13,
225,
1930,
... |
"""Return a sorted copy of `seq`""" | """Return a sorted copy of `seq`.""" | def sorted(seq): """Return a sorted copy of `seq`""" newseq = seq[:] newseq.sort() return newseq | da660f25d47961c2f86ed3793ea7182dde6086e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/da660f25d47961c2f86ed3793ea7182dde6086e2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3115,
12,
5436,
4672,
3536,
990,
279,
3115,
1610,
434,
1375,
5436,
68,
12123,
394,
5436,
273,
3833,
10531,
65,
394,
5436,
18,
3804,
1435,
327,
394,
5436,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
3115,
12,
5436,
4672,
3536,
990,
279,
3115,
1610,
434,
1375,
5436,
68,
12123,
394,
5436,
273,
3833,
10531,
65,
394,
5436,
18,
3804,
1435,
327,
394,
5436,
2,
-100,
-100,
-100,
-100,
-100,... |
gLogger.info("RemovalAgent.execute: Successfully removed %s at %s in %s seconds." % (pfn,diracSE,res['Value']['Successful'][pfn])) oRequest.setSubRequestFileAttributeValue(ind,'removal',pfnToLfn[pfn],'Status','Done') | gLogger.info( "RemovalAgent.execute: Successfully removed %s at %s in %s seconds." % ( pfn, diracSE, res['Value']['Successful'][pfn] ) ) oRequest.setSubRequestFileAttributeValue( ind, 'removal', pfnToLfn[pfn], 'Status', 'Done' ) | def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('removal') if not res['OK']: gLogger.info("RemovalAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']:... | 639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
314,
7187,
18,
1289,
3882,
12,
315,
10795,
3113,
404,
262,
400,
273,
365,
18,
691,
2290,
1227,
18,
5... |
CopyTree(PREFIX+'/python', 'thirdparty/win-python') CopyFile(PREFIX+"/", "doc/LICENSE") CopyFile(PREFIX+"/", "doc/ReleaseNotes") CopyAllFiles(PREFIX+"/plugins/", "pandatool/src/scripts/", ".mel") CopyAllFiles(PREFIX+"/plugins/", "pandatool/src/scripts/", ".ms") if (OMIT.count("PYTHON")==0): CopyTree(PREFIX+'/P... | CopyTree('built/Pmw', 'thirdparty/Pmw') CopyTree('built/epydoc', 'thirdparty/epydoc') CopyTree('built/SceneEditor', 'SceneEditor') ConditionalWriteFile('built/include/ctl3d.h', '/* dummy file to make MAX happy */') | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
raise LogicError('Expected ElementDeclaration or AttributeDeclaration: got %s' % (declaration_type,)) | raise pyxb.LogicError('Expected ElementDeclaration or AttributeDeclaration: got %s' % (declaration_type,)) | def targetNamespaceForNode (self, dom_node, declaration_type): """Determine the target namespace for a local attribute or element declaration. | 2bc6c31fab397439db250b3987e744dbfeb9775f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/2bc6c31fab397439db250b3987e744dbfeb9775f/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
3402,
31058,
261,
2890,
16,
4092,
67,
2159,
16,
8266,
67,
723,
4672,
3536,
8519,
326,
1018,
1981,
364,
279,
1191,
1566,
578,
930,
8266,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
3402,
31058,
261,
2890,
16,
4092,
67,
2159,
16,
8266,
67,
723,
4672,
3536,
8519,
326,
1018,
1981,
364,
279,
1191,
1566,
578,
930,
8266,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
util.set_link(dst, l) if not l: util.set_exec(dst, x) | util.set_flags(dst, flags) | def updatedir(ui, repo, patches): '''Update dirstate after patch application according to metadata''' if not patches: return copies = [] removes = {} cfiles = patches.keys() cwd = repo.getcwd() if cwd: cfiles = [util.pathto(repo.root, cwd, f) for f in patches.keys()] for f in patches: ctype, gp = patches[f] if ctype ==... | 454084279199e0267188652cda93cf7eb6046f6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/454084279199e0267188652cda93cf7eb6046f6d/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... |
directories = self.__addDirs(transID,transDirectories,directories) | directories = self.__addDirs( transID, transDirectories, directories ) | def getTransformationDirectories(self,transID): """ Get the directories for the supplied transformation from the transformation system """ directories = [] if 'TransformationDB' in self.directoryLocations: res = self.transClient.getTransformationParameters(transID,['OutputDirectories']) if not res['OK']: gLogger.error(... | c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
13071,
12,
2890,
16,
2338,
734,
4672,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
13071,
12,
2890,
16,
2338,
734,
4672,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
... |
"'BW.RJOB..EH*,BW.RMOA..EH*'") | "'BW.RJOB..EH*,BW.RMOA..EH*'", default='BW.RJOB..EH*,BW.RMOA..EH*') | def main(): usage = "USAGE: %prog -t <datetime> -d <duration> -i <channelids>" parser = OptionParser(usage) parser.add_option("-t", "--time", dest="time", help="Starttime of seismogram to retrieve. It takes a " "string which UTCDateTime can convert. " "E.g. '2010-01-10T05:00:00'") parser.add_option("-d", "--duration", ... | 10ae757404ff2282ac1bcebbe93e927fe2e3a2f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/10ae757404ff2282ac1bcebbe93e927fe2e3a2f7/pickingGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
315,
29550,
30,
738,
14654,
300,
88,
411,
6585,
34,
300,
72,
411,
8760,
34,
300,
77,
411,
4327,
2232,
2984,
2082,
273,
18862,
12,
9167,
13,
2082,
18,
1289,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
315,
29550,
30,
738,
14654,
300,
88,
411,
6585,
34,
300,
72,
411,
8760,
34,
300,
77,
411,
4327,
2232,
2984,
2082,
273,
18862,
12,
9167,
13,
2082,
18,
1289,
67,
... |
self.vboxlayout1.addWidget(self.splitter) | self.vboxlayout2.addWidget(self.splitter) | def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" ")) | 63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... |
def new_backup_notify(server, nonce, xo_serial): try: auth = sha.sha(nonce + xo_serial) ret = urllib.urlopen(server + '/new/%s' % xo_serial).read() except IOError, e: if e[1] == 403: raise BackupError(server) | def new_backup_notify(server, nonce, xo_serial): try: auth = sha.sha(nonce + xo_serial) # TODO: add auth header ret = urllib.urlopen(server + '/new/%s' % xo_serial).read() except IOError, e: if e[1] == 403: # Auth not accepted. Shouldn't normally happen. raise BackupError(server) | 7ccf9331a585948e64c58234f9e6f35ddf9013d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/7ccf9331a585948e64c58234f9e6f35ddf9013d0/ds_backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
9572,
67,
12336,
12,
3567,
16,
7448,
16,
619,
83,
67,
8818,
4672,
775,
30,
1357,
273,
6056,
18,
7819,
12,
12824,
397,
619,
83,
67,
8818,
13,
468,
2660,
30,
527,
1357,
1446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
9572,
67,
12336,
12,
3567,
16,
7448,
16,
619,
83,
67,
8818,
4672,
775,
30,
1357,
273,
6056,
18,
7819,
12,
12824,
397,
619,
83,
67,
8818,
13,
468,
2660,
30,
527,
1357,
1446,
... | |
>>> first = itertools.takewhile( itools.LessThanNConsecutiveBlanks( 2 ), sampleData ) | >>> first = itertools.takewhile( LessThanNConsecutiveBlanks( 2 ), sampleData ) | def __call__( self, arg ): self.count += not arg if self.count > self.limit: raise ValueError, "Should not call this object anymore." return self.count < self.limit | 6d45df677efee32c2b562fa180aa20618e2d77b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1110/6d45df677efee32c2b562fa180aa20618e2d77b3/itools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
365,
16,
1501,
262,
30,
365,
18,
1883,
1011,
486,
1501,
309,
365,
18,
1883,
405,
365,
18,
3595,
30,
1002,
2068,
16,
315,
14309,
486,
745,
333,
733,
16828,
1199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
365,
16,
1501,
262,
30,
365,
18,
1883,
1011,
486,
1501,
309,
365,
18,
1883,
405,
365,
18,
3595,
30,
1002,
2068,
16,
315,
14309,
486,
745,
333,
733,
16828,
1199,
... |
result = process(final, map(get_strnum, nums), show_approx=True) | result = process(final, map(get_strnum, nums), show_approx=options.verbose) | def _main(args0): """Process options and arguments""" import optparse usage = "usage: cifras.py number1 ... numberN final\n " + __doc__.strip() parser = optparse.OptionParser(usage) parser.add_option('-t', '--test', dest='test', default=False, action="store_true", help='Run unittests') options, args = parser.parse_a... | 4220721aa84a0373a268a3c9ae8943a3d0bc920c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4835/4220721aa84a0373a268a3c9ae8943a3d0bc920c/cifras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
1968,
20,
4672,
3536,
2227,
702,
471,
1775,
8395,
1930,
2153,
2670,
4084,
273,
315,
9167,
30,
276,
430,
21636,
18,
2074,
1300,
21,
1372,
1300,
50,
727,
64,
82,
565,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
20,
4672,
3536,
2227,
702,
471,
1775,
8395,
1930,
2153,
2670,
4084,
273,
315,
9167,
30,
276,
430,
21636,
18,
2074,
1300,
21,
1372,
1300,
50,
727,
64,
82,
565,
315,... |
"benchmarks": rows, "builders": [builderInfo(b) for b in builders] | "builders": [builderInfo(b) for b in builders], "rows": rows, | def compute(self, num): benchmarks, builders = benchmark_list() # Build empty grid, to be filled in. rows = [{"name": bm, "builds": [{"url": ""} for b in builders]} for bm in benchmarks] | 407356aa69c95431d242566af29fc9f201ed96df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5761/407356aa69c95431d242566af29fc9f201ed96df/gobuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
818,
4672,
14128,
87,
16,
19916,
273,
14128,
67,
1098,
1435,
225,
468,
3998,
1008,
3068,
16,
358,
506,
6300,
316,
18,
2595,
273,
306,
16711,
529,
6877,
18829,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
818,
4672,
14128,
87,
16,
19916,
273,
14128,
67,
1098,
1435,
225,
468,
3998,
1008,
3068,
16,
358,
506,
6300,
316,
18,
2595,
273,
306,
16711,
529,
6877,
18829,
16,
3... |
if value is not None: | if value is not None and 'content' not in already_processed: | def buildAttributes(self, node, attrs, already_processed): value = attrs.get('datatype') if value is not None: already_processed.append('datatype') self.datatype = value value = attrs.get('content') if value is not None: already_processed.append('content') self.content = value value = attrs.get('property') if value is ... | 10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2498,
12,
2890,
16,
756,
16,
3422,
16,
1818,
67,
11005,
4672,
460,
273,
3422,
18,
588,
2668,
21540,
6134,
309,
460,
353,
486,
599,
471,
296,
1745,
11,
486,
316,
1818,
67,
11005,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
2498,
12,
2890,
16,
756,
16,
3422,
16,
1818,
67,
11005,
4672,
460,
273,
3422,
18,
588,
2668,
21540,
6134,
309,
460,
353,
486,
599,
471,
296,
1745,
11,
486,
316,
1818,
67,
11005,
... |
for key in 'MAIL', 'LOGNAME', 'USER': | for key in 'MAILDIR', 'MAIL', 'LOGNAME', 'USER': | def _test(): import time import sys import string import os args = sys.argv[1:] if not args: for key in 'MAIL', 'LOGNAME', 'USER': if os.environ.has_key(key): mbox = os.environ[key] break else: print "$MAIL, $LOGNAME nor $USER set -- who are you?" return else: mbox = args[0] if mbox[:1] == '+': mbox = os.environ['HOME... | d5a2ad2a58ecb501d954435050657a744cf298de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d5a2ad2a58ecb501d954435050657a744cf298de/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,... |
setattr(Vector, '__i' + opname[2:], binary_op) | def rbinary_op(self, other): if isinstance(other, SEQUENCETYPES): if len(self) != len(other): raise VectorSizeError return Vector([op(o,x) for (x,o) in izip(self,other)]) else: return Vector([op(other,x) for x in self]) | 154052effb58001a23ecf231a2028c2318059cc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/966/154052effb58001a23ecf231a2028c2318059cc4/vector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7138,
2101,
67,
556,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
27118,
10564,
4672,
309,
562,
12,
2890,
13,
480,
562,
12,
3011,
4672,
1002,
5589,
1225,
668,
327,
5589,
3816,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7138,
2101,
67,
556,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
27118,
10564,
4672,
309,
562,
12,
2890,
13,
480,
562,
12,
3011,
4672,
1002,
5589,
1225,
668,
327,
5589,
3816,
55... | |
self.p_position, self.p_duration, format = self.player.query_position() | self.p_position, self.p_duration = self.player.query_position() | def update_scale_cb(self): self.p_position, self.p_duration, format = self.player.query_position() if self.p_position != gst.CLOCK_TIME_NONE: value = self.p_position * 100.0 / self.p_duration self.adjustment.set_value(value) | 44a2c63fc61cf58709b11218c34305c5382a655e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1020/44a2c63fc61cf58709b11218c34305c5382a655e/play.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5864,
67,
7358,
12,
2890,
4672,
365,
18,
84,
67,
3276,
16,
365,
18,
84,
67,
8760,
273,
365,
18,
14872,
18,
2271,
67,
3276,
1435,
309,
365,
18,
84,
67,
3276,
480,
314,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5864,
67,
7358,
12,
2890,
4672,
365,
18,
84,
67,
3276,
16,
365,
18,
84,
67,
8760,
273,
365,
18,
14872,
18,
2271,
67,
3276,
1435,
309,
365,
18,
84,
67,
3276,
480,
314,
334... |
self.fp = open(self.filename, self.mode) | self.fp = open(self.filename, self.mode, self.bufsize) | def setUp(self): self.filename = tempfile.mktemp() self.write_fp = open(self.filename, self.write_mode) self.write_fp.write(self.data) self.write_fp.flush() self.fp = open(self.filename, self.mode) | 428cfac3766f814efa8d1a93cbd53f6c4274de60 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/428cfac3766f814efa8d1a93cbd53f6c4274de60/test_file_newlines.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
3459,
273,
13275,
18,
24816,
5814,
1435,
365,
18,
2626,
67,
7944,
273,
1696,
12,
2890,
18,
3459,
16,
365,
18,
2626,
67,
3188,
13,
365,
18,
2626,
67,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
12,
2890,
4672,
365,
18,
3459,
273,
13275,
18,
24816,
5814,
1435,
365,
18,
2626,
67,
7944,
273,
1696,
12,
2890,
18,
3459,
16,
365,
18,
2626,
67,
3188,
13,
365,
18,
2626,
67,
7... |
tmp = node.getAttribute('causes-havoc') | tmp = interface.getAttribute('tp:implement-service') if tmp == "no": return tmp = interface.getAttribute('tp:causes-havoc') | def do_node(self, node): node_name = node.getAttribute('name').replace('/', '') node_name_mixed = self.node_name_mixed = node_name.replace('_', '') node_name_lc = self.node_name_lc = node_name.lower() node_name_uc = self.node_name_uc = node_name.upper() | 9d858fa3a08d430a93b7c3b97aceb72452f556ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8150/9d858fa3a08d430a93b7c3b97aceb72452f556ac/glib-ginterface-gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2159,
12,
2890,
16,
756,
4672,
756,
67,
529,
273,
756,
18,
588,
1499,
2668,
529,
16063,
2079,
2668,
19,
2187,
28707,
756,
67,
529,
67,
19562,
273,
365,
18,
2159,
67,
529,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2159,
12,
2890,
16,
756,
4672,
756,
67,
529,
273,
756,
18,
588,
1499,
2668,
529,
16063,
2079,
2668,
19,
2187,
28707,
756,
67,
529,
67,
19562,
273,
365,
18,
2159,
67,
529,
67... |
if len(sys.argv) == 2: try: selectedDemo = self.treeMap[sys.argv[1]] except: selectedDemo = None | self.LoadDemo(self.overviewText) self.loaded = True if len(sys.argv) > 1: arg = sys.argv[1] if arg.endswith('.py'): arg = arg[:-3] selectedDemo = self.treeMap.get(arg, None) | def SplitterOnSize(evt): splitter = evt.GetEventObject() sz = splitter.GetSize() splitter.SetSashPosition(sz.height - 120, False) evt.Skip() | 08ecc92023f15aaa5695a616f9712c980650c7c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/08ecc92023f15aaa5695a616f9712c980650c7c7/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5385,
387,
1398,
1225,
12,
73,
11734,
4672,
21553,
273,
6324,
18,
967,
1133,
921,
1435,
11262,
273,
21553,
18,
967,
1225,
1435,
21553,
18,
694,
55,
961,
2555,
12,
24575,
18,
4210,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5385,
387,
1398,
1225,
12,
73,
11734,
4672,
21553,
273,
6324,
18,
967,
1133,
921,
1435,
11262,
273,
21553,
18,
967,
1225,
1435,
21553,
18,
694,
55,
961,
2555,
12,
24575,
18,
4210,
300,
... |
log.error("unable to load recipe file %s: %s", state.getRecipeFileName(), str(e)) | log.error("unable to load recipe file %s: %s", recipeFile, str(e)) | def _getRecipeVersion(recipeFile): # load the recipe; we need this to figure out what version we're building try: loader = recipe.RecipeLoader(recipeFile) except recipe.RecipeFileError, e: log.error("unable to load recipe file %s: %s", state.getRecipeFileName(), str(e)) return None if not loader: log.error("unable to ... | 18bdc25d02a2eea37f32c147762711c71a104788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/18bdc25d02a2eea37f32c147762711c71a104788/checkin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
5650,
3151,
1444,
12,
3927,
3151,
812,
4672,
468,
1262,
326,
16100,
31,
732,
1608,
333,
358,
7837,
596,
4121,
1177,
732,
4565,
10504,
775,
30,
4088,
273,
16100,
18,
5650,
3151,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
5650,
3151,
1444,
12,
3927,
3151,
812,
4672,
468,
1262,
326,
16100,
31,
732,
1608,
333,
358,
7837,
596,
4121,
1177,
732,
4565,
10504,
775,
30,
4088,
273,
16100,
18,
5650,
3151,... |
e = storeconsumer(elvin_url, elvin_scope) | e = storeconsumer(options.elvin_url, options.elvin_scope) | def main(): usage_short = "[-hvd] [-e elvin_url] [-s elvin_scope] [-l logfile] -c elvinrrd.cf" usage = "usage: %s %s" % (sys.argv[0], usage_short) if len(sys.argv) <= 1: print usage sys.exit(1) # Parse command-line arguments parser = optparse.OptionParser(usage=usage, version=None) parser.add_option('-v', '--verbose'... | 3498f273c562e918c2caf6ab2eababc3dafb6ceb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/3498f273c562e918c2caf6ab2eababc3dafb6ceb/elvinrrd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
67,
6620,
273,
5158,
17,
76,
16115,
65,
23059,
73,
415,
21529,
67,
718,
65,
23059,
87,
415,
21529,
67,
4887,
65,
23059,
80,
15204,
65,
300,
71,
415,
21529,
523,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
67,
6620,
273,
5158,
17,
76,
16115,
65,
23059,
73,
415,
21529,
67,
718,
65,
23059,
87,
415,
21529,
67,
4887,
65,
23059,
80,
15204,
65,
300,
71,
415,
21529,
523,
72,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.