rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
txt = INSTALLER_DEB_FILE[1:].replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV).replace("ARCH",ARCH).replace("PV",PYTHONV.replace("python", "")) | txt = INSTALLER_DEB_FILE[1:].replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV).replace("ARCH",ARCH).replace("PV",PV) | def MakeInstallerLinux(): import compileall PYTHONV=SDK["PYTHONVERSION"] if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") if (os.path.exists("/usr/bin/rpmbuild")): oscmd("rm -rf `rpm -E '%_target_cpu'`") if (os.path.exists("/usr/bin/dpkg-deb")): oscmd("rm -rf `dpkg --print-architecture`") oscmd("mkdir -p linuxroot/usr/bin") oscmd("mkdir -p linuxroot/usr/include") oscmd("mkdir -p linuxroot/usr/share/panda3d") oscmd("mkdir -p linuxroot/usr/share/panda3d/direct") oscmd("mkdir -p linuxroot/usr/lib/panda3d") oscmd("mkdir -p linuxroot/usr/lib/"+PYTHONV+"/lib-dynload") oscmd("mkdir -p linuxroot/usr/lib/"+PYTHONV+"/site-packages") oscmd("mkdir -p linuxroot/etc/ld.so.conf.d") WriteFile("linuxroot/usr/share/panda3d/direct/__init__.py", "") oscmd("sed -e 's@model-cache-@# model-cache-@' -e 's@$THIS_PRC_DIR/[.][.]@/usr/share/panda3d@' < "+GetOutputDir()+"/etc/Config.prc > linuxroot/etc/Config.prc") oscmd("cp "+GetOutputDir()+"/etc/Confauto.prc linuxroot/etc/Confauto.prc") oscmd("cp --recursive "+GetOutputDir()+"/include linuxroot/usr/include/panda3d") oscmd("cp --recursive direct/src/* linuxroot/usr/share/panda3d/direct") oscmd("cp --recursive "+GetOutputDir()+"/pandac linuxroot/usr/share/panda3d/pandac") oscmd("cp --recursive "+GetOutputDir()+"/models linuxroot/usr/share/panda3d/models") if os.path.isdir("samples"): oscmd("cp --recursive samples linuxroot/usr/share/panda3d/samples") if os.path.isdir(GetOutputDir()+"/Pmw"): oscmd("cp --recursive "+GetOutputDir()+"/Pmw linuxroot/usr/share/panda3d/Pmw") if os.path.isdir(GetOutputDir()+"/plugins"): oscmd("cp --recursive "+GetOutputDir()+"/plugins linuxroot/usr/share/panda3d/plugins") oscmd("cp doc/LICENSE linuxroot/usr/share/panda3d/LICENSE") oscmd("cp doc/LICENSE linuxroot/usr/include/panda3d/LICENSE") oscmd("cp doc/ReleaseNotes linuxroot/usr/share/panda3d/ReleaseNotes") oscmd("echo '/usr/lib/panda3d' > linuxroot/etc/ld.so.conf.d/panda3d.conf") oscmd("echo '/usr/share/panda3d' > linuxroot/usr/lib/"+PYTHONV+"/site-packages/panda3d.pth") oscmd("echo '/usr/lib/panda3d' >> linuxroot/usr/lib/"+PYTHONV+"/site-packages/panda3d.pth") oscmd("cp "+GetOutputDir()+"/bin/* linuxroot/usr/bin/") for base in os.listdir(GetOutputDir()+"/lib"): oscmd("cp "+GetOutputDir()+"/lib/"+base+" linuxroot/usr/lib/panda3d/"+base) for base in os.listdir("linuxroot/usr/share/panda3d/direct"): if ((base != "extensions") and (base != "extensions_native")): compileall.compile_dir("linuxroot/usr/share/panda3d/direct/"+base) compileall.compile_dir("linuxroot/usr/share/panda3d/Pmw") DeleteCVS("linuxroot") oscmd("chmod -R 555 linuxroot/usr/share/panda3d") if (os.path.exists("/usr/bin/rpmbuild") and not os.path.exists("/usr/bin/dpkg-deb")): oscmd("rm -rf linuxroot/DEBIAN") oscmd("rpm -E '%_target_cpu' > "+GetOutputDir()+"/tmp/architecture.txt") ARCH=ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() pandasource = os.path.abspath(os.getcwd()) txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV) WriteFile("panda3d.spec", txt) oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec") oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .") if (os.path.exists("/usr/bin/dpkg-deb")): oscmd("dpkg --print-architecture > "+GetOutputDir()+"/tmp/architecture.txt") ARCH=ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() txt = INSTALLER_DEB_FILE[1:].replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV).replace("ARCH",ARCH).replace("PV",PYTHONV.replace("python", "")) oscmd("mkdir -p linuxroot/DEBIAN") oscmd("cd linuxroot ; (find usr -type f -exec md5sum {} \;) > DEBIAN/md5sums") oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums") WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n") WriteFile("linuxroot/DEBIAN/control",txt) WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n") oscmd("chmod 755 linuxroot/DEBIAN/postinst") oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm") oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_"+ARCH+".deb") oscmd("chmod -R 755 linuxroot") if not(os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")): exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!") | 1cee87c07dc1b8760246d75942a03c7bdbf4aeae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/1cee87c07dc1b8760246d75942a03c7bdbf4aeae/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
18678,
19475,
13332,
1930,
4074,
454,
12191,
20131,
58,
33,
22625,
9614,
16235,
20131,
5757,
11929,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20132,
3085,
6,
3719,
30,
31476,
1264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
18678,
19475,
13332,
1930,
4074,
454,
12191,
20131,
58,
33,
22625,
9614,
16235,
20131,
5757,
11929,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20132,
3085,
6,
3719,
30,
31476,
1264... |
backend_list = ['spam','double spam','triple spam','quadruple spam'] debug_cat_t = ('header',language['debugging']) | backend_list = [] debug_cat_t = ('header', language['debugging']) | def __init__(self,body,pos,ui,dbus=None): global daemon, wireless, wired | 4fa245b79a41a22da17ae3febbf053c5dd751a5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/4fa245b79a41a22da17ae3febbf053c5dd751a5f/prefs_curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3432,
16,
917,
16,
4881,
16,
1966,
407,
33,
7036,
4672,
2552,
8131,
16,
6636,
2656,
16,
341,
2921,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
3432,
16,
917,
16,
4881,
16,
1966,
407,
33,
7036,
4672,
2552,
8131,
16,
6636,
2656,
16,
341,
2921,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
_translation = RoundupNullTranslations() | _translation = null_translation_class() | def get_translation(language=None, domain=DOMAIN): """Return Translation object for given language and domain""" if language: _languages = [language] else: # use OS environment _languages = None # except for english ("en") language, add english fallback if available if language == "en": _fallback = None else: try: _fallback = translation(domain=domain, languages=["en"], class_=RoundupTranslations) except IOError: # no .mo files found _fallback = None # get the translation try: _translation = translation(domain=domain, languages=_languages, class_=RoundupTranslations) except IOError: _translation = None # see what's found if _translation and _fallback: _translation.add_fallback(_fallback) elif _fallback: _translation = _fallback elif not _translation: _translation = RoundupNullTranslations() return _translation | f273e5051ed346960e0a84c1f1aa4ac3b3142d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f273e5051ed346960e0a84c1f1aa4ac3b3142d19/i18n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10173,
12,
4923,
33,
7036,
16,
2461,
33,
18192,
4672,
3536,
990,
17427,
733,
364,
864,
2653,
471,
2461,
8395,
309,
2653,
30,
389,
14045,
273,
306,
4923,
65,
469,
30,
468,
999,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
12,
4923,
33,
7036,
16,
2461,
33,
18192,
4672,
3536,
990,
17427,
733,
364,
864,
2653,
471,
2461,
8395,
309,
2653,
30,
389,
14045,
273,
306,
4923,
65,
469,
30,
468,
999,... |
return SelectEditor(parent,node,**kwargs) | lineedit = None if node.templatenode.hasAttribute('editable'): lineedit = editorclass(parent,node,**kwargs) assert lineedit==None or isinstance(lineedit,QtGui.QLineEdit), 'Editor class must derive from QLineEdit.' return SelectEditor(parent,node,lineedit=lineedit,**kwargs) | def createEditor(node,parent=None,selectwithradio=False,**kwargs): """Returns an editor for the specified TypedStore node, as child of the supplied parent QWidget. """ assert isinstance(node,xmlstore.Node), 'First argument to createEditor must be of type node.' assert parent==None or isinstance(parent,QtGui.QWidget), 'If a parent is supplied to createEditor, it must derive from QWidget.' editorclass = getEditors().get(node.getValueType(),None) assert editorclass!=None, 'No editor available for node of type "%s".' % node.getValueType() if issubclass(editorclass,AbstractSelectEditor) or not node.templatenode.hasAttribute('hasoptions'): return editorclass(parent,node,**kwargs) else: if selectwithradio: return SelectEditorRadio(parent,node,**kwargs) else: return SelectEditor(parent,node,**kwargs) | 1175067b857f59fb960128341deca2948af2ca20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/1175067b857f59fb960128341deca2948af2ca20/gui_qt4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6946,
12,
2159,
16,
2938,
33,
7036,
16,
4025,
1918,
17006,
33,
8381,
16,
636,
4333,
4672,
3536,
1356,
392,
4858,
364,
326,
1269,
13833,
2257,
756,
16,
487,
1151,
434,
326,
4580,
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,
752,
6946,
12,
2159,
16,
2938,
33,
7036,
16,
4025,
1918,
17006,
33,
8381,
16,
636,
4333,
4672,
3536,
1356,
392,
4858,
364,
326,
1269,
13833,
2257,
756,
16,
487,
1151,
434,
326,
4580,
9... |
def __del__(self): self.wait() | def __del__(self): self.wait() | 5be5ea0a42c7a511b293ecabfd5f833194bd15fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/5be5ea0a42c7a511b293ecabfd5f833194bd15fe/importer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
7048,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
7048,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"] | "hp:b:rxecD", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr", "debug"] | def usage(): sys.stderr.write("""USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, default = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -e, --echo: enable local echo (default off) -c, --cr: disable LF -> CR+LF translation | 2058d5aea957c9249e4292871e7759f180cd05dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/2058d5aea957c9249e4292871e7759f180cd05dc/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... |
jspec.transformation = '%s/runGen-00-00-01' % Client.baseURLSUB | jspec.transformation = '%s/runGen-00-00-02' % Client.baseURLSUB | def prepare(self,app,appsubconfig,appmasterconfig,jobmasterconfig): '''prepare the subjob specific configuration''' | 0de971d1c818d2bef860a39a93ed9cf131d99767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/0de971d1c818d2bef860a39a93ed9cf131d99767/ExecutablePandaRTHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
2910,
16,
11411,
373,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
9163,
9366,
326,
720,
4688,
2923,
1664,
26418,
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,
0,
0,
0,
0,
0,
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,
2911,
12,
2890,
16,
2910,
16,
11411,
373,
1425,
16,
2910,
7525,
1425,
16,
4688,
7525,
1425,
4672,
9163,
9366,
326,
720,
4688,
2923,
1664,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not i % 1000: | if not i % 10000: | def list_iterator(self, lst): i = 0 for x in lst: yield x i += 1 if not i % 1000: msg("%d entries reduced" % i) msg("Reduce done: %d entries reduced in total" % i) | 9b9e294a8c73f3ff7e553aa13e4aee896beb00cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/373/9b9e294a8c73f3ff7e553aa13e4aee896beb00cd/disco_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
9838,
12,
2890,
16,
9441,
4672,
277,
273,
374,
364,
619,
316,
9441,
30,
2824,
619,
277,
1011,
404,
309,
486,
277,
738,
12619,
30,
1234,
27188,
72,
3222,
13162,
6,
738,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
9838,
12,
2890,
16,
9441,
4672,
277,
273,
374,
364,
619,
316,
9441,
30,
2824,
619,
277,
1011,
404,
309,
486,
277,
738,
12619,
30,
1234,
27188,
72,
3222,
13162,
6,
738,
277,
... |
ORDER BY COALESCE(priority.value,'')='',CAST(priority.value AS int),t.id""") | ORDER BY COALESCE(priority.value,'')='',""" + EXPECTED_VAL + """,t.id""") | def test_all_ordered_by_priority(self): query = Query(self.env) # priority is default order sql, args = query.get_sql() self.assertEqualSQL(sql, | ab72d93ad7c7e07c5207b5749d7a7a056be11463 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/ab72d93ad7c7e07c5207b5749d7a7a056be11463/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
454,
67,
9885,
67,
1637,
67,
8457,
12,
2890,
4672,
843,
273,
2770,
12,
2890,
18,
3074,
13,
468,
4394,
353,
805,
1353,
1847,
16,
833,
273,
843,
18,
588,
67,
4669,
1435,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
454,
67,
9885,
67,
1637,
67,
8457,
12,
2890,
4672,
843,
273,
2770,
12,
2890,
18,
3074,
13,
468,
4394,
353,
805,
1353,
1847,
16,
833,
273,
843,
18,
588,
67,
4669,
1435,
365,... |
def update( self, env ): | def update(self, env): | def update( self, env ): """ Update the environment with specific flags """ | 673dc1809b97d0e00c5d3cd27ab262e3c03ce32b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6794/673dc1809b97d0e00c5d3cd27ab262e3c03ce32b/egglib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
1550,
4672,
3536,
2315,
326,
3330,
598,
2923,
2943,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1089,
12,
2890,
16,
1550,
4672,
3536,
2315,
326,
3330,
598,
2923,
2943,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
val=evt.GetSelection()+1 getSynth().voice=val getSynth().rate=self.oldRate getSynth().pitch=self.oldPitch config.conf["speech"][getSynth().name]["voice"]=val | getSynth().voice=evt.GetSelection()+1 rate=getSynth().rate self.rateSlider.SetValue(rate) pitch=getSynth().pitch self.pitchSlider.SetValue(pitch) volume=getSynth().volume self.volumeSlider.SetValue(volume) | def onVoiceChange(self,evt): val=evt.GetSelection()+1 getSynth().voice=val getSynth().rate=self.oldRate getSynth().pitch=self.oldPitch config.conf["speech"][getSynth().name]["voice"]=val | b670d693246a684fec02acc72945aee58aa471d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/b670d693246a684fec02acc72945aee58aa471d5/settingsDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
14572,
3043,
12,
2890,
16,
73,
11734,
4672,
1244,
33,
73,
11734,
18,
967,
6233,
1435,
15,
21,
1322,
878,
451,
7675,
25993,
33,
1125,
1322,
878,
451,
7675,
5141,
33,
2890,
18,
1673... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14572,
3043,
12,
2890,
16,
73,
11734,
4672,
1244,
33,
73,
11734,
18,
967,
6233,
1435,
15,
21,
1322,
878,
451,
7675,
25993,
33,
1125,
1322,
878,
451,
7675,
5141,
33,
2890,
18,
1673... |
return name | return to_unicode(name) | def _pwd_ui_username(self, uid, limit=None): # loginuid is set to -1 on init. if uid is None or uid == 0xFFFFFFFF: loginid = _("<unset>") name = _("System") + " " + loginid if limit is not None and len(name) > limit: name = loginid return name | 5ed28957b426248d58b30772110f888e6b2c3a1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/5ed28957b426248d58b30772110f888e6b2c3a1b/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
27487,
67,
4881,
67,
5053,
12,
2890,
16,
4555,
16,
1800,
33,
7036,
4672,
468,
3925,
1911,
353,
444,
358,
300,
21,
603,
1208,
18,
309,
4555,
353,
599,
578,
4555,
422,
374,
28949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27487,
67,
4881,
67,
5053,
12,
2890,
16,
4555,
16,
1800,
33,
7036,
4672,
468,
3925,
1911,
353,
444,
358,
300,
21,
603,
1208,
18,
309,
4555,
353,
599,
578,
4555,
422,
374,
28949,
... |
tx.setXPos(m) tx._textOut(string.join(words),1) | setXPos(tx,m) tx._textOut(join(words),1) setXPos(tx,-m) | def _centerDrawParaLine( tx, offset, extraspace, words, last=0): m = offset + 0.5 * extraspace tx.setXPos(m) tx._textOut(string.join(words),1) | 8f8ad2094f390b0f1bc05d368540a202a73fdeef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8f8ad2094f390b0f1bc05d368540a202a73fdeef/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5693,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
312,
273,
1384,
397,
374,
18,
25,
380,
11875,
909,
23733,
1616,
12,
978,
16,
81,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5693,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
312,
273,
1384,
397,
374,
18,
25,
380,
11875,
909,
23733,
1616,
12,
978,
16,
81,
1... |
if req.method == 'POST' and 'owner' in req.args and \ | if req.method == 'POST' and 'field_owner' in req.args and \ | def process_newticket_request(self, req): req.perm.require('TICKET_CREATE') data = {} db = self.env.get_db_cnx() | e6b13b9e91cb2080d2d4f953f790fe3cac7ecc34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/e6b13b9e91cb2080d2d4f953f790fe3cac7ecc34/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2704,
16282,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
9344,
6134,
501,
273,
2618,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2704,
16282,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
9344,
6134,
501,
273,
2618,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966... |
m_tseries = initial_state.time_series(timesteps, 1) | m_tseries = initial_state.time_series(timesteps, timesteps - 1) | def knockout_concentration_matrix(knockout_network, ref_conc_matrix, timesteps) : """compute a matrix of expression values obtained from single gene | 7b4d404d385acdff7ab344cb466eda00cb52b547 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1770/7b4d404d385acdff7ab344cb466eda00cb52b547/transdisrupt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15516,
975,
659,
67,
11504,
8230,
367,
67,
5667,
12,
21112,
975,
659,
67,
5185,
16,
1278,
67,
11504,
67,
5667,
16,
17145,
13058,
13,
294,
3536,
9200,
279,
3148,
434,
2652,
924,
12700,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15516,
975,
659,
67,
11504,
8230,
367,
67,
5667,
12,
21112,
975,
659,
67,
5185,
16,
1278,
67,
11504,
67,
5667,
16,
17145,
13058,
13,
294,
3536,
9200,
279,
3148,
434,
2652,
924,
12700,
... |
import string | def runtest(self): import string for prog in 'distcc', 'distccd': out, err = self.runcmd("%s --version" % prog) assert out[-1] == '\n' out = out[:-1] line1,line2,trash = string.split(out, '\n', 2) self.assert_re_match(r'^%s [\w.-]+ [.\w-]+$' % prog, line1) self.assert_re_match(r'^[ \t]+\(protocol.*\) \(default port 3632\)$' , line2) | c113ba17e90da226b1e0b4c65576f800ab939f6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/c113ba17e90da226b1e0b4c65576f800ab939f6a/testdistcc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
364,
11243,
316,
296,
4413,
952,
2187,
296,
4413,
952,
72,
4278,
596,
16,
393,
273,
365,
18,
86,
551,
1264,
27188,
87,
1493,
1589,
6,
738,
11243,
13,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
12,
2890,
4672,
364,
11243,
316,
296,
4413,
952,
2187,
296,
4413,
952,
72,
4278,
596,
16,
393,
273,
365,
18,
86,
551,
1264,
27188,
87,
1493,
1589,
6,
738,
11243,
13,
1815,
... | |
raise AssertionError, "'...%s......' % u'abc' failed to raise an exception" | print "*** formatting failed ...%s......' % u'abc' failed to raise an exception" | test('capwords', u'abc\t def \nghi', u'Abc Def Ghi') | 846257382602e1579b041073ae469bf990873b04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/846257382602e1579b041073ae469bf990873b04/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1842,
2668,
5909,
3753,
2187,
582,
11,
18947,
64,
88,
282,
1652,
225,
521,
3368,
12266,
2187,
582,
11,
5895,
71,
10922,
611,
12266,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
2668,
5909,
3753,
2187,
582,
11,
18947,
64,
88,
282,
1652,
225,
521,
3368,
12266,
2187,
582,
11,
5895,
71,
10922,
611,
12266,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
NSApp.sendAction_to_from_("performMiniaturize:", None, sender) | NSApp().sendAction_to_from_("performMiniaturize:", None, sender) | def handleMenuItem_(self, sender): if self.action == "HideMiro": NSApp.hide_(None) | 1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde/osxmenus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12958,
67,
12,
2890,
16,
5793,
4672,
309,
365,
18,
1128,
422,
315,
15690,
49,
11373,
6877,
11472,
3371,
18,
11248,
67,
12,
7036,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12958,
67,
12,
2890,
16,
5793,
4672,
309,
365,
18,
1128,
422,
315,
15690,
49,
11373,
6877,
11472,
3371,
18,
11248,
67,
12,
7036,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logger.setLevel(logging.WARNING) | logger.setLevel(logging.INFO) | def initLogging(options): global logger if logger is None: # Make PROFILEDIR available within the logging config file logging.PROFILEDIR = options.profileDir logConfFile = options.logging if os.path.isfile(logConfFile): # Replacing the standard fileConfig with our own, below # logging.config.fileConfig(options.logging) fileConfig(options.logging) else: # Log config file doesn't exist #logging.basicConfig(level=logging.WARNING, # format='%(asctime)s %(name)s %(levelname)s: %(message)s', # filename=os.path.join(options.profileDir, 'chandler.log'), # filemode='a') logger = logging.getLogger() fileHandler = logging.handlers.RotatingFileHandler(os.path.join(options.profileDir, 'chandler.log'), 'a', 1000000, 2) fileFormatter = logging.Formatter('%(asctime)s %(name)s %(levelname)s: %(message)s') fileHandler.setFormatter(fileFormatter) logger.addHandler(fileHandler) logger.setLevel(logging.WARNING) logger = logging.getLogger(__name__) # If there is a logging FileHandler writing to a chandler.log, # then put twisted.log next to it. Otherwise send twisted output # to twisted.log in the profile directory twistedLogDir = options.profileDir try: rootLogger = logging.getLogger() for handler in rootLogger.handlers: if isinstance(handler, logging.RotatingFileHandler): if handler.baseFilename.endswith('chandler.log'): # We found the chandler.log handler. Let's put # twisted.log here next to it chandlerLogDir = os.path.dirname(handler.baseFilename) twistedLogDir = chandlerLogDir break except: pass # Just stick with profileDir import twisted.python.log import twisted.python.logfile twistedlog = twisted.python.logfile.LogFile("twisted.log", twistedLogDir) twisted.python.log.startLogging(twistedlog, 0) logger.warning("Twisted logging output to %s folder" % twistedLogDir) | b14ff5434aff73807913a17a1c4cbda93f000dc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b14ff5434aff73807913a17a1c4cbda93f000dc5/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7735,
12,
2116,
4672,
2552,
1194,
225,
309,
1194,
353,
599,
30,
468,
4344,
4629,
3776,
4537,
2319,
3470,
326,
2907,
642,
585,
2907,
18,
22462,
4537,
273,
702,
18,
5040,
1621,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7735,
12,
2116,
4672,
2552,
1194,
225,
309,
1194,
353,
599,
30,
468,
4344,
4629,
3776,
4537,
2319,
3470,
326,
2907,
642,
585,
2907,
18,
22462,
4537,
273,
702,
18,
5040,
1621,
225,
... |
with mock_contextmanager_generator(): | with mock: | def foo(): counter = 0 while True: counter += 1 with mock_contextmanager_generator(): counter += 10 return counter counter += 100 # Not reached | afdd86b7b62a10436d30c234429c23b9e539a372 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/afdd86b7b62a10436d30c234429c23b9e539a372/test_with.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8431,
13332,
3895,
273,
374,
1323,
1053,
30,
3895,
1011,
404,
598,
5416,
30,
3895,
1011,
1728,
327,
3895,
3895,
1011,
2130,
468,
2288,
8675,
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,
8431,
13332,
3895,
273,
374,
1323,
1053,
30,
3895,
1011,
404,
598,
5416,
30,
3895,
1011,
1728,
327,
3895,
3895,
1011,
2130,
468,
2288,
8675,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if p_name == "hostlist" and value == "all": | if p_name == "hostlist" and p_value == "all": | def contents(self): # fencing resource if self.cts_cib: return self.cts_cib | b9e65cbbd732cd81ad5c5bd6a13a13b41fa530e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/b9e65cbbd732cd81ad5c5bd6a13a13b41fa530e6/CIB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2939,
12,
2890,
4672,
468,
284,
15495,
1058,
309,
365,
18,
299,
87,
67,
71,
495,
30,
327,
365,
18,
299,
87,
67,
71,
495,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2939,
12,
2890,
4672,
468,
284,
15495,
1058,
309,
365,
18,
299,
87,
67,
71,
495,
30,
327,
365,
18,
299,
87,
67,
71,
495,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
osd._deletefromcache(self.filename) | osd.bitmapcache.__delitem__(self.filename) | def eventhandler(self, event): | 82305d6658bbf2261c5e116ee58f57fc46b8633b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/82305d6658bbf2261c5e116ee58f57fc46b8633b/viewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
fids = self.core.get_files() | fids = self.sm.get_files() | def event_links(self, args): fids = self.core.get_files() if len(fids) == 0: return ["INFO: No links."] lines = [] for fid in fids: info = self.core.get_file_info(fid) lines.append('LINK #%d: %s [%s]' % (fid, info["filename"], info["status_type"])) return lines | f6597059303316c4ff1c6e04602082b1c3184c14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/f6597059303316c4ff1c6e04602082b1c3184c14/IRCInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
7135,
12,
2890,
16,
833,
4672,
284,
2232,
273,
365,
18,
4808,
18,
588,
67,
2354,
1435,
309,
562,
12,
74,
2232,
13,
422,
374,
30,
327,
8247,
5923,
30,
2631,
4716,
1199,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
67,
7135,
12,
2890,
16,
833,
4672,
284,
2232,
273,
365,
18,
4808,
18,
588,
67,
2354,
1435,
309,
562,
12,
74,
2232,
13,
422,
374,
30,
327,
8247,
5923,
30,
2631,
4716,
1199,
65,
... |
inc.tu = Parser().parse(open(path).read(), path, Parser.current.includedirs) | inc.tu = Parser().parse(open(path).read(), path, Parser.current.includedirs, Parser.current.errout) | def p_ProtocolIncludeStmt(p): """ProtocolIncludeStmt : INCLUDE PROTOCOL STRING""" loc = locFromTok(p, 1) Parser.current.loc = loc inc = ProtocolInclude(loc, p[3]) path = Parser.current.resolveIncludePath(inc.file) if path is None: raise ParseError(loc, "can't locate protocol include file `%s'"% ( inc.file)) inc.tu = Parser().parse(open(path).read(), path, Parser.current.includedirs) p[0] = inc | 3699a4fd2471c0a402eea3ca9c768c23892d76f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/3699a4fd2471c0a402eea3ca9c768c23892d76f1/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
5752,
8752,
8952,
12,
84,
4672,
3536,
5752,
8752,
8952,
294,
28062,
24245,
9469,
8395,
1515,
273,
1515,
1265,
20477,
12,
84,
16,
404,
13,
6783,
18,
2972,
18,
1829,
273,
1515,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
67,
5752,
8752,
8952,
12,
84,
4672,
3536,
5752,
8752,
8952,
294,
28062,
24245,
9469,
8395,
1515,
273,
1515,
1265,
20477,
12,
84,
16,
404,
13,
6783,
18,
2972,
18,
1829,
273,
1515,
... |
updateSQL = "UPDATE `ntf_Notifications` SET Read=1 WHERE User=%s" % user | updateSQL = "UPDATE `ntf_Notifications` SET Seen=1 WHERE User=%s" % user | def markNotificationsAsRead( self, user, msgIds = False ): if user not in CS.getAllUsers(): return S_ERROR( "%s is an unknown user" % user ) result = self._escapeString( user ) if not result[ 'OK' ]: return result user = result[ 'Value' ] updateSQL = "UPDATE `ntf_Notifications` SET Read=1 WHERE User=%s" % user escapedIDs = [] if msgIds: for id in msgIds: result = self._escapeString( str( id ) ) if not result[ 'OK' ]: return result escapedIDs.append( result[ 'Value' ] ) updateSQL = "%s AND Id in ( %s ) " % ( delSQL, ",".join( escapedIDs ) ) return self._update( updateSQL ) | b1f7dec49230c2137cb53ea5f79a0addfc014261 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/b1f7dec49230c2137cb53ea5f79a0addfc014261/NotificationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
14111,
1463,
1994,
12,
365,
16,
729,
16,
1234,
2673,
273,
1083,
262,
30,
309,
729,
486,
316,
6761,
18,
588,
1595,
6588,
13332,
327,
348,
67,
3589,
12,
2213,
87,
353,
392,
5917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2267,
14111,
1463,
1994,
12,
365,
16,
729,
16,
1234,
2673,
273,
1083,
262,
30,
309,
729,
486,
316,
6761,
18,
588,
1595,
6588,
13332,
327,
348,
67,
3589,
12,
2213,
87,
353,
392,
5917,
... |
raise xml.dom.NamespaceErr("illegal use of prefix without namespaces") | raise xml.dom.NamespaceErr( "illegal use of prefix without namespaces") element = doc.createElementNS(namespaceURI, qualifiedName) doc.appendChild(element) | def createDocument(self, namespaceURI, qualifiedName, doctype): if doctype and doctype.parentNode is not None: raise xml.dom.WrongDocumentErr("doctype object owned by another DOM tree") doc = Document() if doctype is None: doctype = self.createDocumentType(qualifiedName, None, None) if qualifiedName: prefix, localname = _nssplit(qualifiedName) if prefix == "xml" \ and namespaceURI != "http://www.w3.org/XML/1998/namespace": raise xml.dom.NamespaceErr("illegal use of 'xml' prefix") if prefix and not namespaceURI: raise xml.dom.NamespaceErr("illegal use of prefix without namespaces") doctype.parentNode = doc doc.doctype = doctype doc.implementation = self return doc | 9e1fe1ec675386a4be12471a8b785a385d326316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9e1fe1ec675386a4be12471a8b785a385d326316/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27569,
12,
2890,
16,
19421,
16,
24133,
16,
24909,
4672,
309,
24909,
471,
24909,
18,
2938,
907,
353,
486,
599,
30,
1002,
2025,
18,
9859,
18,
13634,
2519,
2524,
2932,
2896,
12387,
733,
161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27569,
12,
2890,
16,
19421,
16,
24133,
16,
24909,
4672,
309,
24909,
471,
24909,
18,
2938,
907,
353,
486,
599,
30,
1002,
2025,
18,
9859,
18,
13634,
2519,
2524,
2932,
2896,
12387,
733,
161... |
self['entryProcessVarRefTotal'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefPositive'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefZero'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefNegative'].set_property( 'xalign', 0.5 ) | self['entryProcessVarRefTotal'].set_property( 'xalign', 1 ) self['entryProcessVarRefPositive'].set_property( 'xalign', 1 ) self['entryProcessVarRefZero'].set_property( 'xalign', 1 ) self['entryProcessVarRefNegative'].set_property( 'xalign', 1 ) | def openWindow( self ): #self.openWindow() OsogoPluginWindow.openWindow(self) # add handers self.addHandlers( { 'on_checkViewAll_toggled' : self.updateViewAllProperties } ) | 04edfb35a037d21e3341c3726966e4db72dcb216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/04edfb35a037d21e3341c3726966e4db72dcb216/PropertyWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
3829,
12,
365,
262,
30,
468,
2890,
18,
3190,
3829,
1435,
31799,
717,
83,
3773,
3829,
18,
3190,
3829,
12,
2890,
13,
225,
468,
527,
948,
414,
365,
18,
1289,
6919,
12,
288,
296,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
3829,
12,
365,
262,
30,
468,
2890,
18,
3190,
3829,
1435,
31799,
717,
83,
3773,
3829,
18,
3190,
3829,
12,
2890,
13,
225,
468,
527,
948,
414,
365,
18,
1289,
6919,
12,
288,
296,
2... |
queue.send(self, value, exc) | Queue.send(self, value, exc) | def send(self, value=None, exc=None): if exc is not None or not self.has_error(): queue.send(self, value, exc) | 51f9cee438f7498269c63a69121e9cf8b16b7d62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/51f9cee438f7498269c63a69121e9cf8b16b7d62/protocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
460,
33,
7036,
16,
3533,
33,
7036,
4672,
309,
3533,
353,
486,
599,
578,
486,
365,
18,
5332,
67,
1636,
13332,
2389,
18,
4661,
12,
2890,
16,
460,
16,
3533,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
460,
33,
7036,
16,
3533,
33,
7036,
4672,
309,
3533,
353,
486,
599,
578,
486,
365,
18,
5332,
67,
1636,
13332,
2389,
18,
4661,
12,
2890,
16,
460,
16,
3533,
13,
2,
... |
if ((not self._show_private) and var.uid().is_private()): continue | def _extract_term_index(self): """ @return: Two dictionaries: - the first maps keys to terms - the second maks keys to lists of links @rtype: C{dictionary} """ terms = {} links = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and uid.is_private(): continue if uid.is_function(): link = Link(uid.name(), uid.module()) elif uid.is_method(): link = Link(uid.name(), uid.cls()) else: link = Link(uid.name(), uid) | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
16896,
16176,
30,
300,
326,
1122,
7565,
1311,
358,
6548,
300,
326,
2205,
29796,
87,
1311,
358,
6035,
434,
4716,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
6408,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
16896,
16176,
30,
300,
326,
1122,
7565,
1311,
358,
6548,
300,
326,
2205,
29796,
87,
1311,
358,
6035,
434,
4716,
632,
... | |
c = self.rawq[self.irawq] | c = self.rawq[self.irawq:self.irawq+1] | def rawq_getchar(self): """Get next char from raw queue. | 3de7fb86fc9e053955dae144b4fe6e080f5a4d81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3de7fb86fc9e053955dae144b4fe6e080f5a4d81/telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
85,
67,
588,
3001,
12,
2890,
4672,
3536,
967,
1024,
1149,
628,
1831,
2389,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
85,
67,
588,
3001,
12,
2890,
4672,
3536,
967,
1024,
1149,
628,
1831,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
""" | """ | def fl_create_generic_button(objclass, type, x, y, w, h, label): """ fl_create_generic_button(objclass, type, x, y, w, h, label) -> object """ retval = _fl_create_generic_button(objclass, type, x, y, w, h, label) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
13540,
67,
5391,
12,
2603,
1106,
16,
618,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
13540,
67,
5391,
12,
2603,
1106,
16,
618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
2640,
67,
13540,
67,
5391,
12,
2603,
1106,
16,
618,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
13540,
67,
5391,
12,
2603,
1106,
16,
618,
... |
param = range(nb_arc) self.kv= [ param[ 0 ] ]*degree step = (param[-1]-param[0]) / float(((nb_arc-2)*degree+1)) for i in range((nb_arc-2)*degree+2): self.kv.append( param[0]+i*step ) self.kv.extend( [param[ -1 ]]*degree ) | param = map(float,range(nb_arc+1)) self.kv= [ param[ 0 ] ]*(degree+1) step = (param[-1]-param[0]) / float(nb_arc) for i in range(1,nb_arc): self.kv.extend([param[0]+i*step]*degree) self.kv.extend( [param[ -1 ]]*(degree+1) ) | def bezier_kv(self, is_linear=False): """ Compute a nurbs knot vector from Bezier control points. bezier_kv(linear=False) -> knot_vector | 730af3f1e883a661b5d7f77d1c5afa2da8bb2268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/799/730af3f1e883a661b5d7f77d1c5afa2da8bb2268/cspline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29368,
67,
18152,
12,
2890,
16,
353,
67,
12379,
33,
8381,
4672,
3536,
8155,
279,
290,
295,
2038,
22278,
3806,
628,
4823,
18377,
3325,
3143,
18,
29368,
67,
18152,
12,
12379,
33,
8381,
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,
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,
29368,
67,
18152,
12,
2890,
16,
353,
67,
12379,
33,
8381,
4672,
3536,
8155,
279,
290,
295,
2038,
22278,
3806,
628,
4823,
18377,
3325,
3143,
18,
29368,
67,
18152,
12,
12379,
33,
8381,
13,... |
def add_install(self, widget, data=None): | def add_install(self, widget=None, data=None): | def add_install(self, widget, data=None): repos_tree = self.gld.get_widget("treeview") page = self._get_selected_page(repos_tree) | 8d887e6509e2d71a2f13e91bd822bc9a5fc668ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2654/8d887e6509e2d71a2f13e91bd822bc9a5fc668ca/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5425,
12,
2890,
16,
3604,
33,
7036,
16,
501,
33,
7036,
4672,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
3413,
1945,
7923,
1363,
273,
365,
6315,
588,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5425,
12,
2890,
16,
3604,
33,
7036,
16,
501,
33,
7036,
4672,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
3413,
1945,
7923,
1363,
273,
365,
6315,
588,
6... |
if abs(tz_offset) > 12: | if abs(tz_offset) >= 11: | def tz_validate(self, tz_string): """validate the time zone offset string | f9afbead5f39e69361c4cf9fa30b466e3d3397ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10749/f9afbead5f39e69361c4cf9fa30b466e3d3397ef/bottime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6016,
67,
5662,
12,
2890,
16,
6016,
67,
1080,
4672,
3536,
5662,
326,
813,
4157,
1384,
533,
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,
6016,
67,
5662,
12,
2890,
16,
6016,
67,
1080,
4672,
3536,
5662,
326,
813,
4157,
1384,
533,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
func(*args, **kwargs) | return func(*args, **kwargs) | def retry(func, *args, **kwargs): retry = 5 while True: try: func(*args, **kwargs) except (appscript.CommandError, AttributeError), error: print error print "Safari not ready, retrying in 3 seconds..." time.sleep(3) retry -= 1 if not retry: self.close() raise RuntimeError("Could not run appscript in Safari") | 2f94f8e352b1d317bcaef6739bd2e956c4b250fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10655/2f94f8e352b1d317bcaef6739bd2e956c4b250fb/safari.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
12,
644,
16,
380,
1968,
16,
2826,
4333,
4672,
3300,
273,
1381,
1323,
1053,
30,
775,
30,
327,
1326,
30857,
1968,
16,
2826,
4333,
13,
1335,
261,
2910,
4263,
18,
2189,
668,
16,
6394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3300,
12,
644,
16,
380,
1968,
16,
2826,
4333,
4672,
3300,
273,
1381,
1323,
1053,
30,
775,
30,
327,
1326,
30857,
1968,
16,
2826,
4333,
13,
1335,
261,
2910,
4263,
18,
2189,
668,
16,
6394... |
try: | message_date = self["Date"] if message_date is not None: | def extractTime(self): # When we create a new copy of a message, we need to specify # a timestamp for the message. If the message has a date header # we use that. Otherwise, we use the current time. try: return imaplib.Time2Internaldate(\ time.mktime(parsedate(self["Date"]))) except KeyError: return imaplib.Time2Internaldate(time.time()) | 03b549987a287a60e30e06a4030e3bdb2145257a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/03b549987a287a60e30e06a4030e3bdb2145257a/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
950,
12,
2890,
4672,
468,
5203,
732,
752,
279,
394,
1610,
434,
279,
883,
16,
732,
1608,
358,
4800,
468,
279,
2858,
364,
326,
883,
18,
225,
971,
326,
883,
711,
279,
1509,
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,
2608,
950,
12,
2890,
4672,
468,
5203,
732,
752,
279,
394,
1610,
434,
279,
883,
16,
732,
1608,
358,
4800,
468,
279,
2858,
364,
326,
883,
18,
225,
971,
326,
883,
711,
279,
1509,
1446,
... |
r.d = lambda x: aux_d(x, asfarray(other)) if not self.is_oovar: | r.d = lambda x: aux_d(x, other) if not self.is_oovar and other.size == 1: | def f(x, y): if x.size != 1 and y.size != 1 and x.size != y.size: raise FuncDesignerException('for oofun multiplications a*b should be size(a)=size(b) or size(a)=1 or size(b)=1') return x*y | bc3cbc09e2fa2633a863a5ddbd306d3917ead965 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/bc3cbc09e2fa2633a863a5ddbd306d3917ead965/ooFun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
16,
677,
4672,
309,
619,
18,
1467,
480,
404,
471,
677,
18,
1467,
480,
404,
471,
619,
18,
1467,
480,
677,
18,
1467,
30,
1002,
6165,
15478,
264,
503,
2668,
1884,
320,
792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
16,
677,
4672,
309,
619,
18,
1467,
480,
404,
471,
677,
18,
1467,
480,
404,
471,
619,
18,
1467,
480,
677,
18,
1467,
30,
1002,
6165,
15478,
264,
503,
2668,
1884,
320,
792,... |
if self.isFinished and not wasFinished: | if self.isFinished() and not wasFinished: | def updateStatus(cls, data): self = _getDownloader (dlid=data['dlid']) # print data if self is not None: if self.status == data: return wasFinished = self.isFinished() self.status = data # Store the time the download finished if self.isFinished and not wasFinished: for item in self.itemList: item.onDownloadFinished() self.signalChange() | b0e2a82918e95c5ebd6403c71ebbedf38bee1453 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b0e2a82918e95c5ebd6403c71ebbedf38bee1453/downloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1482,
12,
6429,
16,
501,
4672,
365,
273,
389,
588,
4164,
6714,
261,
5761,
350,
33,
892,
3292,
5761,
350,
19486,
468,
1172,
501,
309,
365,
353,
486,
599,
30,
309,
365,
18,
2327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1482,
12,
6429,
16,
501,
4672,
365,
273,
389,
588,
4164,
6714,
261,
5761,
350,
33,
892,
3292,
5761,
350,
19486,
468,
1172,
501,
309,
365,
353,
486,
599,
30,
309,
365,
18,
2327,
... |
print str(time.localtime(self.begin).tm_wday) while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.end < now)): print time.strftime("%c", time.localtime(self.begin)) print time.strftime("%c", time.localtime(self.end)) self.begin += 86400 self.end += 86400 | def processRepeated(self): print "ProcessRepeated" print time.strftime("%c", time.localtime(self.begin)) print time.strftime("%c", time.localtime(self.end)) if (self.repeated != 0): now = int(time.time()) + 1 day = [] flags = self.repeated for x in range(0, 7): if (flags & 1 == 1): day.append(0) print "Day: " + str(x) else: day.append(1) flags = flags >> 1 | 18fe904a07ad9fd15d53f80361e35b481507f2be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/18fe904a07ad9fd15d53f80361e35b481507f2be/timer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
20730,
12,
2890,
4672,
1172,
315,
2227,
20730,
6,
1172,
813,
18,
701,
9982,
27188,
71,
3113,
813,
18,
3729,
957,
12,
2890,
18,
10086,
3719,
1172,
813,
18,
701,
9982,
27188,
71,
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,
1207,
20730,
12,
2890,
4672,
1172,
315,
2227,
20730,
6,
1172,
813,
18,
701,
9982,
27188,
71,
3113,
813,
18,
3729,
957,
12,
2890,
18,
10086,
3719,
1172,
813,
18,
701,
9982,
27188,
71,
3... | |
if allow_rule_identities is not None and str(watcher) in allow_rule_identities: allow_rule_identities.remove(str(watcher)) if len(allow_rule_identities) == 0: prules.remove(allow_rule) if block_rule_identities is not None and str(watcher) in block_rule_identities: block_rule_identities.remove(str(watcher)) if len(block_rule_identities) == 0: prules.remove(block_rule) if polite_block_rule_identities is not None and str(watcher) in polite_block_rule_identities: polite_block_rule_identities.remove(str(watcher)) if len(polite_block_rule_identities) == 0: prules.remove(polite_block_rule) | if allowed: if allow_rule_identities is not None and str(watcher) in allow_rule_identities: allow_rule_identities.remove(str(watcher)) if len(allow_rule_identities) == 0: prules.remove(allow_rule) if blocked: if block_rule_identities is not None and str(watcher) in block_rule_identities: block_rule_identities.remove(str(watcher)) if len(block_rule_identities) == 0: prules.remove(block_rule) if pblocked: if polite_block_rule_identities is not None and str(watcher) in polite_block_rule_identities: polite_block_rule_identities.remove(str(watcher)) if len(polite_block_rule_identities) == 0: prules.remove(polite_block_rule) | def remove_watcher(watcher): global prules, prules_etag, allow_rule_identities, block_rule_identities, polite_block_rule_identities for i in xrange(3): if prules is None: get_prules() if prules is not None: if allow_rule_identities is not None and str(watcher) in allow_rule_identities: allow_rule_identities.remove(str(watcher)) if len(allow_rule_identities) == 0: prules.remove(allow_rule) if block_rule_identities is not None and str(watcher) in block_rule_identities: block_rule_identities.remove(str(watcher)) if len(block_rule_identities) == 0: prules.remove(block_rule) if polite_block_rule_identities is not None and str(watcher) in polite_block_rule_identities: polite_block_rule_identities.remove(str(watcher)) if len(polite_block_rule_identities) == 0: prules.remove(polite_block_rule) try: res = xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag, headers={'Content-Type': 'application/auth-policy+xml'}) except HTTPError, e: print "Cannot PUT 'pres-rules' document: %s" % str(e) prules = None else: prules_etag = res.etag if show_xml: print "Presence rules document:" print prules.toxml(pretty_print=True) print "Watcher %s has been removed from the rules" % watcher break sleep(0.1) else: print "Could not politely block authorization of watcher %s" % watcher | 8a57cd4193e769754b0f25bf2428f9f5a372aed3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/8a57cd4193e769754b0f25bf2428f9f5a372aed3/xcap_pres_rules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
23894,
12,
23894,
4672,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
16,
2952,
1137,
67,
2629,
67,
5345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
67,
23894,
12,
23894,
4672,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
16,
2952,
1137,
67,
2629,
67,
5345,... |
print 'could not find address range %s in known set' % (ip,) | print 'adding address range %s' % (ip,) | def add_missing_address(addr_set): for ip in addr_set: lo=str(ip.min) hi=str(ip.max) if cert.address_range.filter(lo=lo, hi=hi).count() == 0: # ensure that this range wasn't previously seen from another of our parents for v in models.AddressRange.objects.filter(lo=lo, hi=hi): # determine if this resource is delegated from another parent as well if v.from_cert.filter(parent__in=conf.parents.all()).count(): cert.address_range.add(v) break else: if verbose: print 'could not find address range %s in known set' % (ip,) cert.address_range.create(lo=lo, hi=hi) cert.save() | 966e1a015aea7e4c038aebb18c31f0e21a0b160b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/119/966e1a015aea7e4c038aebb18c31f0e21a0b160b/list_resources.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7337,
67,
2867,
12,
4793,
67,
542,
4672,
364,
2359,
316,
3091,
67,
542,
30,
437,
33,
701,
12,
625,
18,
1154,
13,
10118,
33,
701,
12,
625,
18,
1896,
13,
309,
3320,
18,
2867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7337,
67,
2867,
12,
4793,
67,
542,
4672,
364,
2359,
316,
3091,
67,
542,
30,
437,
33,
701,
12,
625,
18,
1154,
13,
10118,
33,
701,
12,
625,
18,
1896,
13,
309,
3320,
18,
2867... |
logger.notifyChannel("db", netsvc.LOG_ERROR, "unable to find object %r" % (model,)) | logger.notifyChannel("db", netsvc.LOG_ERROR, "Unable to find object %r" % (model,)) | def encode(s): if isinstance(s, unicode): return s.encode('utf8') return s | a5d33505a8864949d73ad8200be86d5b291a4033 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a5d33505a8864949d73ad8200be86d5b291a4033/translate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
87,
4672,
309,
1549,
12,
87,
16,
5252,
4672,
327,
272,
18,
3015,
2668,
3158,
28,
6134,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
87,
4672,
309,
1549,
12,
87,
16,
5252,
4672,
327,
272,
18,
3015,
2668,
3158,
28,
6134,
327,
272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
id = '' | id = b'' | def statparse(self, resp): """Internal: parse the response of a STAT, NEXT or LAST command.""" if resp[:2] != '22': raise NNTPReplyError(resp) words = resp.split() nr = 0 id = '' n = len(words) if n > 1: nr = words[1] if n > 2: id = words[2] return resp, nr, id | eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
2670,
12,
2890,
16,
1718,
4672,
3536,
3061,
30,
1109,
326,
766,
434,
279,
2347,
789,
16,
19252,
578,
15612,
1296,
12123,
309,
1718,
10531,
22,
65,
480,
296,
3787,
4278,
1002,
423,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
610,
2670,
12,
2890,
16,
1718,
4672,
3536,
3061,
30,
1109,
326,
766,
434,
279,
2347,
789,
16,
19252,
578,
15612,
1296,
12123,
309,
1718,
10531,
22,
65,
480,
296,
3787,
4278,
1002,
423,
... |
html.write("<tr><td><table><tr class=groupheader>") | html.write("<tr><td><table class=groupheader><tr class=groupheader>") | def render_tiled(data, view, group_columns, group_painters, painters, _ignore_num_columns): columns, rows = data html.write("<table class=\"services tiled\">\n") last_group = None group_open = False for row in rows: # Show group header if len(group_painters) > 0: this_group = [ row[c] for c in group_columns ] if this_group != last_group: # paint group header if group_open: html.write("</td></tr>\n") html.write("<tr><td><table><tr class=groupheader>") painted = False for p in group_painters: if painted: html.write("<td>,</td>") painted = paint(p, row) html.write('</tr></table></td></tr>' '<tr><td class=tiles>\n') group_open = True last_group = this_group # background color of tile according to item state state = row.get("service_state", -1) if state == -1: hbc = row.get("host_has_been_checked", 1) if hbc: state = row.get("host_state", 0) sclass = "hhstate%d" % state else: state = "hhstatep" else: hbc = row.get("service_has_been_checked", 1) if hbc: sclass = "sstate%d" % state else: sclass = "sstatep" if not group_open: html.write("<tr><td class=tiles>") group_open = True html.write('<div class="tile %s"><table>' % sclass) # We need at least five painters. empty_painter = { "paint" : (lambda row: ("", "")) } if len(painters) < 5: painters = painters + ([ (empty_painter, None) ] * (5 - len(painters))) rendered = [ ("", prepare_paint(p, row)[1]) for p in painters ] html.write("<tr><td class=\"tl %s\">%s</td><td class=\"tr %s\">%s</td></tr>\n" % \ (rendered[1][0], rendered[1][1], rendered[2][0], rendered[2][1])) html.write("<tr><td colspan=2 class=\"center %s\">%s</td></tr>\n" % \ (rendered[0][0], rendered[0][1])) for css, cont in rendered[5:]: html.write("<tr><td colspan=2 class=\"cont %s\">%s</td></tr>\n" % \ (css, cont)) html.write("<tr><td class=\"bl %s\">%s</td><td class=\"br %s\">%s</td></tr>\n" % \ (rendered[3][0], rendered[3][1], rendered[4][0], rendered[4][1])) html.write("</table></div>\n") if group_open: html.write("</td></tr>\n") html.write("</table>\n") | 3dfd88b43b22622fc4a7c3db075063fdccb9a04d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/3dfd88b43b22622fc4a7c3db075063fdccb9a04d/layouts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
88,
1411,
12,
892,
16,
1476,
16,
1041,
67,
5112,
16,
1041,
67,
84,
530,
5432,
16,
293,
530,
5432,
16,
389,
6185,
67,
2107,
67,
5112,
4672,
2168,
16,
2595,
273,
501,
1729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
88,
1411,
12,
892,
16,
1476,
16,
1041,
67,
5112,
16,
1041,
67,
84,
530,
5432,
16,
293,
530,
5432,
16,
389,
6185,
67,
2107,
67,
5112,
4672,
2168,
16,
2595,
273,
501,
1729,
... |
if show_files: | if show_files and req.perm.has_permission('BROWSER_VIEW'): | def get_timeline_events(self, req, start, stop, filters): if 'changeset' in filters: format = req.args.get('format') wiki_format = self.wiki_format_messages show_files = self.timeline_show_files db = self.env.get_db_cnx() repos = self.env.get_repository(req.authname) for chgset in repos.get_changesets(start, stop): message = chgset.message or '--' if wiki_format: shortlog = wiki_to_oneliner(message, self.env, db, shorten=True) else: shortlog = shorten_line(message) | 6085bd3871cf0f3a79f49c47b4fe251fca360ae5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/6085bd3871cf0f3a79f49c47b4fe251fca360ae5/changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26237,
67,
5989,
12,
2890,
16,
1111,
16,
787,
16,
2132,
16,
3415,
4672,
309,
296,
6329,
278,
11,
316,
3415,
30,
740,
273,
1111,
18,
1968,
18,
588,
2668,
2139,
6134,
9050,
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,
336,
67,
26237,
67,
5989,
12,
2890,
16,
1111,
16,
787,
16,
2132,
16,
3415,
4672,
309,
296,
6329,
278,
11,
316,
3415,
30,
740,
273,
1111,
18,
1968,
18,
588,
2668,
2139,
6134,
9050,
67... |
for hdr, tup, idx in self._search(name=name, arch=arch, epoch=epoch, version=ver, release=rel): | for hdr, tup, idx in self._search(name=name, arch=arch, epoch=epoch, ver=ver, rel=rel): | def returnTupleByKeyword(self, name=None, arch=None, epoch=None, ver=None, rel=None): warnings.warn('returnTuplebyKeyword() will go away in a future version of Yum.\n', DeprecationWarning, stacklevel=2) | 4253cd0b70fb9cd48d2b0b3e78395f41ea733730 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/4253cd0b70fb9cd48d2b0b3e78395f41ea733730/rpmsack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
9038,
858,
8736,
12,
2890,
16,
508,
33,
7036,
16,
6637,
33,
7036,
16,
7632,
33,
7036,
16,
1924,
33,
7036,
16,
1279,
33,
7036,
4672,
5599,
18,
8935,
2668,
2463,
9038,
1637,
8736,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
327,
9038,
858,
8736,
12,
2890,
16,
508,
33,
7036,
16,
6637,
33,
7036,
16,
7632,
33,
7036,
16,
1924,
33,
7036,
16,
1279,
33,
7036,
4672,
5599,
18,
8935,
2668,
2463,
9038,
1637,
8736,
... |
if S[-1]=='': del S[-1] | if S==[]: S = [''] | def _getFragWords(frags): ''' given a Parafrag list return a list of fragwords [[size, (f00,w00), ..., (f0n,w0n)],....,[size, (fm0,wm0), ..., (f0n,wmn)]] each pair f,w represents a style and some string each sublist represents a word ''' R = [] W = [] n = 0 for f in frags: text = f.text #del f.text # we can't do this until we sort out splitting # of paragraphs if text!='': S = split(text) if S[-1]=='': del S[-1] if W!=[] and text[0] in whitespace: W.insert(0,n) R.append(W) W = [] n = 0 for w in S[:-1]: W.append((f,w)) n = n + stringWidth(w, f.fontName, f.fontSize) W.insert(0,n) R.append(W) W = [] n = 0 w = S[-1] W.append((f,w)) n = n + stringWidth(w, f.fontName, f.fontSize) if text[-1] in whitespace: W.insert(0,n) R.append(W) W = [] n = 0 elif hasattr(f,'cbDefn'): W.append((f,'')) if W!=[]: W.insert(0,n) R.append(W) return R | bacf9da3f34fcc980069662749fea10714080f99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/bacf9da3f34fcc980069662749fea10714080f99/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
19509,
7363,
12,
28193,
4672,
9163,
864,
279,
2280,
1727,
2458,
666,
327,
279,
666,
434,
10111,
3753,
12167,
1467,
16,
261,
74,
713,
16,
91,
713,
3631,
1372,
16,
261,
74,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19509,
7363,
12,
28193,
4672,
9163,
864,
279,
2280,
1727,
2458,
666,
327,
279,
666,
434,
10111,
3753,
12167,
1467,
16,
261,
74,
713,
16,
91,
713,
3631,
1372,
16,
261,
74,
20,... |
gLogger.info("ReplicationScheduler._execute: Contacting RequestDB for suitable requests.") res = self.RequestDB.getRequest('transfer') | res = self.TransferDB.getChannelQueues() | def execute(self): """ The main agent execution method """ | c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853/ReplicationScheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def setdesc(self,desc): obj.description=desc def forgetit(self): pass | def setdesc(desc, obj=obj): obj.description = desc def forgetit(): pass | def setdesc(self,desc): obj.description=desc | 81140ac7c9a559e240f2fcc140f2dbe0f200fc0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/81140ac7c9a559e240f2fcc140f2dbe0f200fc0e/player.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
5569,
12,
2890,
16,
5569,
4672,
1081,
18,
3384,
33,
5569,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
5569,
12,
2890,
16,
5569,
4672,
1081,
18,
3384,
33,
5569,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
utils.enforce_schema(context, interface) | def __init__(self, context, request): | fc58bf208260cbf6512a8d6d8aa2831dfe1f0ff1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6273/fc58bf208260cbf6512a8d6d8aa2831dfe1f0ff1/edit_profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
qltk.ErrorMessage(self.prop.window, _("Invalid date"), | qltk.ErrorMessage(self.prop, _("Invalid date"), | def add_tag(self, *args): add = AddTagDialog(self.prop.window, self.songinfo.can_change()) | 44deb3636adb3eb180d1cc44ce811a1cb782bb80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/44deb3636adb3eb180d1cc44ce811a1cb782bb80/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2692,
12,
2890,
16,
380,
1968,
4672,
527,
273,
1436,
1805,
6353,
12,
2890,
18,
5986,
18,
5668,
16,
365,
18,
816,
75,
1376,
18,
4169,
67,
3427,
10756,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
2692,
12,
2890,
16,
380,
1968,
4672,
527,
273,
1436,
1805,
6353,
12,
2890,
18,
5986,
18,
5668,
16,
365,
18,
816,
75,
1376,
18,
4169,
67,
3427,
10756,
2,
-100,
-100,
-100,
-1... |
new_fyear = pool.get('account.fiscalyear').browse(cr, uid, data['form']['fy2_id']) start_jp = new_fyear.start_journal_period_id | def _data_save(self, cr, uid, data, context): if not data['form']['sure']: raise wizard.except_wizard(_('UserError'), _('Closing of fiscal year canceled, please check the box !')) pool = pooler.get_pool(cr.dbname) fy_id = data['form']['fy_id'] if data['form']['report_new']: periods_fy2 = pool.get('account.fiscalyear').browse(cr, uid, data['form']['fy2_id']).period_ids if not periods_fy2: raise wizard.except_wizard(_('UserError'), _('There are no periods defined on New Fiscal Year.')) period=periods_fy2[0] new_fyear = pool.get('account.fiscalyear').browse(cr, uid, data['form']['fy2_id']) start_jp = new_fyear.start_journal_period_id if not start_jp: raise wizard.except_wizard(_('UserError'), _('The new fiscal year should have a journal for new entries define on it')) new_journal = start_jp.journal_id if not new_journal.default_credit_account_id or not new_journal.default_debit_account_id: raise wizard.except_wizard(_('UserError'), _('The journal must have default credit and debit account')) if not new_journal.centralisation: raise wizard.except_wizard(_('UserError'), _('The journal must have centralised counterpart')) query_line = pool.get('account.move.line')._query_get(cr, uid, obj='account_move_line', context={'fiscalyear': fy_id}) cr.execute('select id from account_account WHERE active') ids = map(lambda x: x[0], cr.fetchall()) for account in pool.get('account.account').browse(cr, uid, ids, context={'fiscalyear': fy_id}): accnt_type_data = account.user_type if not accnt_type_data: continue if accnt_type_data.close_method=='none' or account.type == 'view': continue if accnt_type_data.close_method=='balance': if abs(account.balance)>0.0001: pool.get('account.move.line').create(cr, uid, { 'debit': account.balance>0 and account.balance, 'credit': account.balance<0 and -account.balance, 'name': data['form']['report_name'], 'date': period.date_start, 'journal_id': new_journal.id, 'period_id': period.id, 'account_id': account.id }, {'journal_id': new_journal.id, 'period_id':period.id}) if accnt_type_data.close_method=='unreconciled': offset = 0 limit = 100 while True: cr.execute('SELECT id, name, quantity, debit, credit, account_id, ref, ' \ 'amount_currency, currency_id, blocked, partner_id, ' \ 'date_maturity, date_created ' \ 'FROM account_move_line ' \ 'WHERE account_id = %s ' \ 'AND ' + query_line + ' ' \ 'AND reconcile_id is NULL ' \ 'ORDER BY id ' \ 'LIMIT %s OFFSET %s', (account.id, limit, offset)) result = cr.dictfetchall() if not result: break for move in result: parent_id = move['id'] move.pop('id') move.update({ 'date': period.date_start, 'journal_id': new_journal.id, 'period_id': period.id, 'parent_move_lines':[(6,0,[parent_id])] }) pool.get('account.move.line').create(cr, uid, move, { 'journal_id': new_journal.id, 'period_id': period.id, }) offset += limit if accnt_type_data.close_method=='detail': offset = 0 limit = 100 while True: cr.execute('SELECT id, name, quantity, debit, credit, account_id, ref, ' \ 'amount_currency, currency_id, blocked, partner_id, ' \ 'date_maturity, date_created ' \ 'FROM account_move_line ' \ 'WHERE account_id = %s ' \ 'AND ' + query_line + ' ' \ 'ORDER BY id ' \ 'LIMIT %s OFFSET %s', (account.id,fy_id, limit, offset)) result = cr.dictfetchall() if not result: break for move in result: parent_id = move['id'] move.pop('id') move.update({ 'date': period.date_start, 'journal_id': new_journal.id, 'period_id': period.id, 'parent_move_lines':[(6,0,[parent_id])] }) pool.get('account.move.line').create(cr, uid, move) offset += limit cr.execute('UPDATE account_journal_period ' \ 'SET state = %s ' \ 'WHERE period_id IN (SELECT id FROM account_period WHERE fiscalyear_id = %s)', ('done',fy_id)) cr.execute('UPDATE account_period SET state = %s ' \ 'WHERE fiscalyear_id = %s', ('done',fy_id)) cr.execute('UPDATE account_fiscalyear ' \ 'SET state = %s, end_journal_period_id = %s' \ 'WHERE id = %s', ('done',start_jp.id,fy_id)) return {} | 69e276222efb679980aa01a53fef92f7ea18a045 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/69e276222efb679980aa01a53fef92f7ea18a045/wizard_fiscalyear_close.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
892,
67,
5688,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
309,
486,
501,
3292,
687,
21712,
2055,
3546,
30,
1002,
24204,
18,
14137,
67,
31837,
24899,
2668,
1299,
668,
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,
389,
892,
67,
5688,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
309,
486,
501,
3292,
687,
21712,
2055,
3546,
30,
1002,
24204,
18,
14137,
67,
31837,
24899,
2668,
1299,
668,
19... | |
if (ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z') or (ch >= '0' and ch <= '9') or ch == '$' or ch == '_'): | if (ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z') or (ch >= '0' and ch <= '9') or ch == '$' or ch == '_': | def lexIdent(self, ch): token = self.token input = self.source while True: ch = input[self.cursor += 1] if (ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z') or (ch >= '0' and ch <= '9') or ch == '$' or ch == '_'): break # Put the non-word character back. self.cursor-- | 69e8778c27d77f24618658a38a02e46717afadf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/69e8778c27d77f24618658a38a02e46717afadf7/Tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5275,
6106,
12,
2890,
16,
462,
4672,
1147,
273,
365,
18,
2316,
810,
273,
365,
18,
3168,
225,
1323,
1053,
30,
462,
273,
810,
63,
2890,
18,
9216,
1011,
404,
65,
225,
309,
261,
343,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5275,
6106,
12,
2890,
16,
462,
4672,
1147,
273,
365,
18,
2316,
810,
273,
365,
18,
3168,
225,
1323,
1053,
30,
462,
273,
810,
63,
2890,
18,
9216,
1011,
404,
65,
225,
309,
261,
343,
154... |
myplot.axes.append(myplot.thisFigure.add_subplot(subplotstring+str(i+1),title=titlestrings[i],xlabel=xstring,ylabel=ystrings[i])) s="myplot.axes[%d].%s(data[%d][0],data[%d][1],'ro-')" % (i,plotcommand,i,i) print s | leftcorner=0.2 width=0.6 bottom=(0.2+float(i))*axisfactor top=0.6*axisfactor font={'fontname':'Times','fontsize':fontsize+2} myplot.axes.append(myplot.thisFigure.add_axes([leftcorner,bottom,width,top],title=titlestrings[i],xlabel=xstring,ylabel=ystrings[i])) s="myplot.axes[%d].%s(data[%d][0],data[%d][1]" % (i,plotcommand,i,i) s=s+addstr+')' | def ReturnPlotObject(data,plotcommand='plot',titlestring='',xstring='',ystring=''): #Input: data [[xseries1,yseries1],[xseries2,yseries2],...] (float,int, whatever) #plotcommand = matplotlib's plot command (default 'plot', could #also be 'loglog' etc), titlestring=plot title, xstring=x-axis label, ystring=y-axis label. #Outputs a container object, corresponding to a matplotlib plot. This can be displayed #in various ways, eg. on a TkInter canvas: #myplot.canvas=FigureCanvasTkAgg(myplot.thisFigure,master=plotbody) #myplot.canvas.show() #plotbody.pack() #where plotbody is a Frame object. Nplots=len(data) ystrings=ystring.split(':') if len(ystrings)<Nplots: for i in range(0,Nplots-1): ystrings.append(ystrings[0]) titlestrings=titlestring.split(':') if len(titlestrings)<Nplots: for i in range(0,Nplots-1): titlestrings.append(titlestrings[0]) subplotstring=str(Nplots)+'1' myplot=Myplot() myplot.thisFigure=Figure(figsize=(5,4),dpi=100) myplot.axes=[] for i in range(Nplots): myplot.axes.append(myplot.thisFigure.add_subplot(subplotstring+str(i+1),title=titlestrings[i],xlabel=xstring,ylabel=ystrings[i])) s="myplot.axes[%d].%s(data[%d][0],data[%d][1],'ro-')" % (i,plotcommand,i,i) print s eval(s) myplot.thisFigure.subplots_adjust(hspace=0.5) return myplot | c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553/visuals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2000,
11532,
921,
12,
892,
16,
4032,
3076,
2218,
4032,
2187,
17643,
371,
2218,
2187,
92,
1080,
2218,
2187,
93,
1080,
2218,
11,
4672,
225,
468,
1210,
30,
501,
12167,
92,
10222,
21,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2000,
11532,
921,
12,
892,
16,
4032,
3076,
2218,
4032,
2187,
17643,
371,
2218,
2187,
92,
1080,
2218,
2187,
93,
1080,
2218,
11,
4672,
225,
468,
1210,
30,
501,
12167,
92,
10222,
21,
16,
... |
msg = QString(msg).append(QString("\n")).append(e.info) | e.msg = QString(e.msg).append(QString("\n")).append(e.info) | def messagebox_errors(self, e): # Kludgy... if e.info: msg = QString(msg).append(QString("\n")).append(e.info) QMessageBox.critical(None, self.trUtf8("Mnemosyne"), msg, self.trUtf8("&OK"), "", "", 0, -1) | ff63285f472effa25ff261896593df77e5142242 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1240/ff63285f472effa25ff261896593df77e5142242/message_boxes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
2147,
67,
4324,
12,
2890,
16,
425,
4672,
225,
468,
1475,
80,
1100,
7797,
2777,
565,
309,
425,
18,
1376,
30,
425,
18,
3576,
273,
2238,
780,
12,
73,
18,
3576,
2934,
6923,
12,
53,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
2147,
67,
4324,
12,
2890,
16,
425,
4672,
225,
468,
1475,
80,
1100,
7797,
2777,
565,
309,
425,
18,
1376,
30,
425,
18,
3576,
273,
2238,
780,
12,
73,
18,
3576,
2934,
6923,
12,
53,
... |
_dll.dc1394_format7_get_roi.argtypes = [ POINTER(camera_t), video_mode_t, color_coding_t,\ POINTER(c_int32), POINTER(c_int32), POINTER(c_int32),\ POINTER(c_int32), POINTER(c_int32) ] | _dll.dc1394_format7_get_roi.argtypes = [ POINTER(camera_t), video_mode_t, POINTER(color_coding_t), POINTER(c_int32), POINTER(c_int32), POINTER(c_int32), POINTER(c_int32), POINTER(c_int32) ] | def _errcheck( rtype, func, arg ): """This function checks for the errortypes declared by the error_t above. Use it for functions with restype=error_t to receive correct error messages from the library. """ if rtype != 0: e = DC1394Error() e.function = func e.arguments = arg e.errval = rtype raise e return rtype | e9b4af039eda280c57fd80e8e8ca93fbb10dad13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6169/e9b4af039eda280c57fd80e8e8ca93fbb10dad13/_dc1394core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
370,
1893,
12,
9328,
16,
1326,
16,
1501,
262,
30,
3536,
2503,
445,
4271,
364,
326,
393,
499,
989,
7886,
635,
326,
555,
67,
88,
5721,
18,
2672,
518,
364,
4186,
598,
3127,
388,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
370,
1893,
12,
9328,
16,
1326,
16,
1501,
262,
30,
3536,
2503,
445,
4271,
364,
326,
393,
499,
989,
7886,
635,
326,
555,
67,
88,
5721,
18,
2672,
518,
364,
4186,
598,
3127,
388,
33... |
self.pi.reply('getabort') | self.pi.reply('getok') | def loseConnection(self): "Disconnect, and clean up" print "disconcert and die" if self.file is not None: if self.file.tell() == self.filesize: self.pi.reply('getok') else: self.pi.reply('getabort') self.file.close() self.file = None self.pi.queuedfile = None # just incase self.transport.loseConnection() | 07377cad2b39b3e3d459447a924d1bc82ce72f33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/07377cad2b39b3e3d459447a924d1bc82ce72f33/ftp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29612,
1952,
12,
2890,
4672,
315,
18895,
16,
471,
2721,
731,
6,
1172,
315,
2251,
591,
7593,
471,
10387,
6,
309,
365,
18,
768,
353,
486,
599,
30,
309,
365,
18,
768,
18,
88,
1165,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29612,
1952,
12,
2890,
4672,
315,
18895,
16,
471,
2721,
731,
6,
1172,
315,
2251,
591,
7593,
471,
10387,
6,
309,
365,
18,
768,
353,
486,
599,
30,
309,
365,
18,
768,
18,
88,
1165,
1435... |
this = apply(_quickfix.new_DeliveryType, args) | this = _quickfix.new_DeliveryType(*args) | def __init__(self, *args): this = apply(_quickfix.new_DeliveryType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8909,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8909,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... |
if options.password == None: | if password == None: | def main(): """Main program function: Grabs command-line arguments, starts up threads, and runs the program.""" # Grab command line arguments and the command to run (if any) usage = 'usage: %prog [options] "[command1]" "[command2]" ...' parser = OptionParser(usage=usage, version=__version__) parser.disable_interspersed_args() parser.add_option("-f", "--file", dest="hostfile", default=None, help="Location of the file containing the host list.", metavar="<file>") parser.add_option("-o", "--outfile", dest="outfile", default=None, help="Location of the file where the results will be saved.", metavar="<file>") parser.add_option("-a", "--authfile", dest="authfile", default=None, help="Location of the file containing the credentials to be used for connections (format is \"username:password\").", metavar="<file>") parser.add_option("-t", "--threads", dest="max_threads", default=10, type="int", help="Number of threads to spawn for simultaneous connection attempts [default: 10].", metavar="<int>") parser.add_option("-p", "--port", dest="port", default=22, help="The port to be used when connecting. Defaults to 22.", metavar="<port>") parser.add_option("-u", "--username", dest="username", default=os.getlogin(), help="The username to be used when connecting. Defaults to the currently logged-in user.", metavar="<username>") parser.add_option("-P", "--password", dest="password", default=None, help="The password to be used when connecting (not recommended--use an authfile unless the username and password are transient).", metavar="<password>") parser.add_option("-q", "--quiet", action="store_false", dest="verbose", default=True, help="Don't print status messages to stdout (only print errors).") parser.add_option("-c", "--copy-file", dest="copy_file", default=None, help="Location of the file to copy to and optionally execute (-x) on hosts.", metavar="<file>") parser.add_option("-D", "--dest", dest="destination", default="/tmp/", help="Path where the file should be copied on the remote host (default: /tmp/).", metavar="<path>") parser.add_option("-x", "--execute", action="store_true", dest="execute", default=False, help="Execute the copied file (just like executing a given command).") parser.add_option("-r", "--remove", action="store_true", dest="remove", default=False, help="Remove (clean up) the SFTP'd file after execution.") parser.add_option("-T", "--timeout", dest="timeout", default=30, help="Timeout (in seconds) before giving up on an SSH connection (default: 30)", metavar="<seconds>") parser.add_option("-s", "--sudo", action="store_true", dest="sudo", default=False, help="Use sudo to execute the command (default: as root).") parser.add_option("-U", "--sudouser", dest="run_as", default="root", help="Run the command (via sudo) as this user.", metavar="<username>") (options, args) = parser.parse_args() # Check to make sure we were passed at least one command line argument try: sys.argv[1] except: print "\nError: At a minimum you must supply an input hostfile (-f)" parser.print_help() sys.exit(2) commands = False return_code = 0 ## Assume anything passed to us beyond the command line switches are commands to be executed if len(args) > 0: commands = args # Assign the options to more readable variables username = options.username password = options.password local_filepath = options.copy_file remote_filepath = options.destination execute = options.execute remove = options.remove sudo = options.sudo max_threads = options.max_threads timeout = options.timeout run_as = options.run_as verbose = options.verbose outfile = options.outfile if options.hostfile == None: print "Error: You must supply a file (-f <file>) containing the host list to check." print "Use the -h option to see usage information." sys.exit(2) if options.outfile is None and options.verbose is False: print "Error: You have not specified any mechanism to output results." print "Please don't use quite mode (-q) without an output file (-o <file>)." sys.exit(2) if local_filepath is not None and commands is not False: print "Error: You can either run commands or execute a file. Not both." sys.exit(2) # Read in the host list to check hostlist = open(options.hostfile).read() if options.authfile is not None: credentials = open(options.authfile).readline() username, password = credentials.split(":") # Get the username and password to use when checking hosts if options.username == None: username = raw_input('Username: ') if options.password == None: password = getpass.getpass('Password: ') hostlist_list = [] try: # This wierd little sequence of loops allows us to hit control-C in the middle of program execution and get immediate results for host in hostlist.split("\n"): # Turn the hostlist into an actual list if host != "": hostlist_list.append(host) output_queue = sshpt(hostlist_list, username, password, max_threads, timeout, commands, local_filepath, remote_filepath, execute, remove, sudo, run_as, verbose, outfile) output_queue.join() # Just to be safe we wait for the OutputThread to finish before moving on except KeyboardInterrupt: print 'caught KeyboardInterrupt, exiting...' return_code = 1 # Return code should be 1 if the user issues a SIGINT (control-C) # Clean up stopSSHQueue() stopOutputThread() sys.exit(return_code) except Exception, detail: print 'caught Exception...' print detail return_code = 2 # Clean up stopSSHQueue() stopOutputThread() sys.exit(return_code) | 9dcf45d52655c12822f7ce8a6a37a0b29f203372 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11566/9dcf45d52655c12822f7ce8a6a37a0b29f203372/sshpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
445,
30,
225,
10812,
2038,
1296,
17,
1369,
1775,
16,
2542,
731,
7403,
16,
471,
7597,
326,
5402,
12123,
225,
468,
17150,
1296,
980,
1775,
471,
326,
1296,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
445,
30,
225,
10812,
2038,
1296,
17,
1369,
1775,
16,
2542,
731,
7403,
16,
471,
7597,
326,
5402,
12123,
225,
468,
17150,
1296,
980,
1775,
471,
326,
1296,
35... |
sender = mail.GetSender() | sender = mail.get_sender() | def ProcessPasswordCmd(self, args, cmd, mail): if len(args) not in [0,2]: self.AddError(_("Usage: password [<oldpw> <newpw>]")) return sender = mail.GetSender() if len(args) == 0: # Mail user's password to user user = self.FindUser(sender) if user and self.passwords.has_key(user): password = self.passwords[user] self.AddToResponse(_("You are subscribed as %(user)s,\n" " with password: %(password)s"), trunc=0) else: self.AddError(_("Found no password for %(sender)s"), trunc=0) return # Try to change password | fd50f6ba3c52ce475f91f07aef2835cffeada335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fd50f6ba3c52ce475f91f07aef2835cffeada335/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
3913,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
309,
562,
12,
1968,
13,
486,
316,
306,
20,
16,
22,
14542,
365,
18,
986,
668,
24899,
2932,
5357,
30,
2201,
306,
32,
1673... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4389,
3913,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
309,
562,
12,
1968,
13,
486,
316,
306,
20,
16,
22,
14542,
365,
18,
986,
668,
24899,
2932,
5357,
30,
2201,
306,
32,
1673... |
self.fill("yield") | self.write("(") self.write("yield") | def _Yield(self, t): self.fill("yield") if t.value: self.write(" (") self.dispatch(t.value) self.write(")") | 370480032ecec8ec7718f276ca463670a69ead37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/370480032ecec8ec7718f276ca463670a69ead37/unparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16348,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
365,
18,
2626,
2932,
23604,
7923,
309,
268,
18,
1132,
30,
365,
18,
2626,
2932,
7566,
13,
365,
18,
10739,
12,
88,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16348,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
365,
18,
2626,
2932,
23604,
7923,
309,
268,
18,
1132,
30,
365,
18,
2626,
2932,
7566,
13,
365,
18,
10739,
12,
88,
1... |
okButton = (okMsg, gtk.STOCK_OK, gtk.RESPONSE_OK) | okButton = (okMsg, gtk.STOCK_OK, gtk.RESPONSE_YES) | def AskUser(self, plugin, conflict): msg = "" okMsg = "" cancelMsg = "" widgets = [] if conflict[0] == 'ConflictFeature': msg = _("Plugin <b>%(plugin_conflict)s</b> provides feature <b>%(feature)s</b> which is also "\ "provided by <b>%(plugin)s</b>") msg_dict = {'plugin_conflict': conflict[2][0].ShortDesc, 'feature': conflict[1], 'plugin': plugin.ShortDesc} | a0d0518f15833c94b8aed590689609046786c79b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7062/a0d0518f15833c94b8aed590689609046786c79b/Conflicts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25747,
1299,
12,
2890,
16,
1909,
16,
7546,
4672,
1234,
273,
1408,
1529,
3332,
273,
1408,
3755,
3332,
273,
1408,
10965,
273,
5378,
309,
7546,
63,
20,
65,
422,
296,
10732,
4595,
4278,
1234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25747,
1299,
12,
2890,
16,
1909,
16,
7546,
4672,
1234,
273,
1408,
1529,
3332,
273,
1408,
3755,
3332,
273,
1408,
10965,
273,
5378,
309,
7546,
63,
20,
65,
422,
296,
10732,
4595,
4278,
1234... |
userInfoDirName = userInfoDirName + now.strftime("%Y-%m-%d|%H:%M:%S") | userInfoDirName = userInfoDirName + now.strftime("%Y-%m-%d-%H:%M:%S") | def renameDataFiles(directory): | cffced03fa0448a9e7b82f550e370686bfa0b8e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/cffced03fa0448a9e7b82f550e370686bfa0b8e9/feedback_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
751,
2697,
12,
5149,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
751,
2697,
12,
5149,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
cur.last_ship+=1 return Unit() | self.cur.last_ship+=1 return VS.Unit() | def decideMode(): if (cur.this_unit.isNull()): SetModeZero() return cur.this_unit significant_unit = HaveWeSignificant() if (significant_unit.isNull()): un=VS.getUnit(cur.last_ship) if (un.isNull ()): SetModeZero() else: sd = cur.significant_distance if ((un.getSignificantDistance(cur.this_unit)<sd) and (un.isSignificant())): SetModeOne (un) return un cur.last_ship+=1 return Unit() else: #significant_unit is something.... lets see what it is cursys = VS.getSystemFile() if (cursys== cur.lastsys): dd = cur.detection_distance if (cur.this_unit.getSignificantDistance (significant_unit)>dd): SetModeZero () return VS.Unit() else: return significant_unit else: print "different" cur.lastsys=cursys SetModeZero() significant_unit.setNull () return significant_unit | 0196b99221f192e1640b9a18a3f627096af1b5a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/0196b99221f192e1640b9a18a3f627096af1b5a1/random_encounters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16288,
2309,
13332,
309,
261,
1397,
18,
2211,
67,
4873,
18,
291,
2041,
1435,
4672,
1000,
2309,
7170,
1435,
327,
662,
18,
2211,
67,
4873,
14177,
67,
4873,
273,
21940,
3218,
29822,
1435,
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,
16288,
2309,
13332,
309,
261,
1397,
18,
2211,
67,
4873,
18,
291,
2041,
1435,
4672,
1000,
2309,
7170,
1435,
327,
662,
18,
2211,
67,
4873,
14177,
67,
4873,
273,
21940,
3218,
29822,
1435,
3... |
'single_string': [ (r"'", String, " include('string'), ], | def word_callback(lexer, match): word = match.group() | 9c5ca917dfe1bfdbc163608e8673107dd92263fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6148/9c5ca917dfe1bfdbc163608e8673107dd92263fe/other.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
at, length = [int(c) for c in self.status['time'].split(':')] | at, _length = [int(c) for c in self.status['time'].split(':')] | def _seek_when_idle(self, direction): at, length = [int(c) for c in self.status['time'].split(':')] try: if direction == gtk.gdk.SCROLL_UP: seektime = int(self.status['time'].split(":")[0]) + 5 if seektime < 0: seektime = 0 elif direction == gtk.gdk.SCROLL_DOWN: seektime = int(self.status['time'].split(":")[0]) - 5 if seektime > mpdh.get(self.songinfo, 'time'): seektime = mpdh.get(self.songinfo, 'time') self.seek(int(self.status['song']), seektime) except: pass | a611157e0fc7d242d58df67886095dce4cc46388 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/a611157e0fc7d242d58df67886095dce4cc46388/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16508,
67,
13723,
67,
20390,
12,
2890,
16,
4068,
4672,
622,
16,
389,
2469,
273,
306,
474,
12,
71,
13,
364,
276,
316,
365,
18,
2327,
3292,
957,
29489,
4939,
2668,
2497,
25887,
775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16508,
67,
13723,
67,
20390,
12,
2890,
16,
4068,
4672,
622,
16,
389,
2469,
273,
306,
474,
12,
71,
13,
364,
276,
316,
365,
18,
2327,
3292,
957,
29489,
4939,
2668,
2497,
25887,
775,... |
FactoidName.values = relation(FactoidValue, uselist=True, primaryjoin=FactoidName.factoid_id==FactoidValue.factoid_id, foreign_keys=[FactoidValue.factoid_id]) FactoidValue.names = relation(FactoidName, uselist=True, primaryjoin=FactoidName.factoid_id==FactoidValue.factoid_id, foreign_keys=[FactoidName.factoid_id]) | FactoidName.values = relation(FactoidValue, uselist=True, primaryjoin=FactoidName.factoid_id==FactoidValue.factoid_id, foreign_keys=[FactoidValue.factoid_id], cascade='') FactoidValue.names = relation(FactoidName, uselist=True, primaryjoin=FactoidName.factoid_id==FactoidValue.factoid_id, foreign_keys=[FactoidName.factoid_id], cascade='') | def __repr__(self): return u'<FactoidValue %s %s>' % (self.factoid_id, self.value) | 9a726f2057fc75eb5ff00189befa3ca1a4b7d714 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/9a726f2057fc75eb5ff00189befa3ca1a4b7d714/factoid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
582,
11,
32,
9766,
839,
620,
738,
87,
738,
87,
1870,
738,
261,
2890,
18,
3493,
839,
67,
350,
16,
365,
18,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
582,
11,
32,
9766,
839,
620,
738,
87,
738,
87,
1870,
738,
261,
2890,
18,
3493,
839,
67,
350,
16,
365,
18,
1132,
13,
2,
-100,
-100,
-100,
-100,
... |
docstring = self.unindent_docstring(api_doc.docstring) | api_doc.docstring = self.unindent_docstring(api_doc.docstring) | def parse_docstring(self, api_doc): self.initialize_api_doc(api_doc) | eb248e582f99710fcfffa759181e110d858f0910 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/eb248e582f99710fcfffa759181e110d858f0910/docstringparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
24675,
12,
2890,
16,
1536,
67,
2434,
4672,
365,
18,
11160,
67,
2425,
67,
2434,
12,
2425,
67,
2434,
13,
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,
1652,
1109,
67,
24675,
12,
2890,
16,
1536,
67,
2434,
4672,
365,
18,
11160,
67,
2425,
67,
2434,
12,
2425,
67,
2434,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.fail_test(1) | self.fail_test(1, dump_stdio = 0) | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3510,
67,
4299,
12,
365,
16,
2870,
67,
1968,
2218,
2187,
16921,
2218,
2187,
3909,
273,
599,
16,
4514,
273,
10226,
1267,
273,
374,
16,
845,
273,
599,
16,
1342,
67,
6738,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3510,
67,
4299,
12,
365,
16,
2870,
67,
1968,
2218,
2187,
16921,
2218,
2187,
3909,
273,
599,
16,
4514,
273,
10226,
1267,
273,
374,
16,
845,
273,
599,
16,
1342,
67,
6738,
542,
... |
prefixes = {} | flags = {} | def __str__(self): fieldsep = " = " s = "" if self.name: s += "= %s\n" % self.name else: for id in self.identifier(): s += "= %s\n" % id for line in self.comment: s += "\t; %s\n" % line for key in sortfields(self.keys()): if key == "flags": value = list(self.flags) if len(value) == 0: continue value.sort() value = ", ".join(value) else: key, value = fix_fieldname(key), self[key] if value == None: value = "(none)" s += "\t%s\n" % fieldsep.join((key, value)) if len(self.flags) > 0: value = list(self.flags) value.sort() ## group by prefix prefixes = {} for i in value: p, v = i.split(":", 2) if ":" in i else (None, i) prefixes[p] = prefixes.get(p, []) + [v] unprinted = [] for p, v in prefixes.items(): if len(v) >= 3: v = ", ".join(v) s += "\t%s\n" % fieldsep.join(("flags:%s" % p, v)) else: unprinted.extend([("%s:%s" % (p,f) if p is not None else f) for f in v]) value = unprinted value = ", ".join(value) s += "\t%s\n" % fieldsep.join(("flags", value)) return s | c778e75b1091c4353bd2128d8a90f713a34ccb0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4609/c778e75b1091c4353bd2128d8a90f713a34ccb0a/accdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
652,
10814,
273,
315,
273,
315,
272,
273,
1408,
309,
365,
18,
529,
30,
272,
1011,
29199,
738,
87,
64,
82,
6,
738,
365,
18,
529,
469,
30,
364,
612,
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,
1001,
701,
972,
12,
2890,
4672,
652,
10814,
273,
315,
273,
315,
272,
273,
1408,
309,
365,
18,
529,
30,
272,
1011,
29199,
738,
87,
64,
82,
6,
738,
365,
18,
529,
469,
30,
364,
612,
3... |
class _test_vert_slicing(ScipyTestCase): | class _test_vert_slicing: | def check_get_horiz_slice(self): """Test for new slice functionality (EJS)""" B = asmatrix(arange(50.).reshape(5,10)) A = self.spmatrix(B) assert_array_equal(B[1,:], A[1,:].todense()) assert_array_equal(B[1,2:5], A[1,2:5].todense()) | 6629c0b7aeb5a52e13a6a827d4efca3e5b354615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/6629c0b7aeb5a52e13a6a827d4efca3e5b354615/test_sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
588,
67,
76,
5331,
67,
6665,
12,
2890,
4672,
3536,
4709,
364,
394,
2788,
14176,
261,
41,
6479,
15574,
605,
273,
487,
5667,
12,
297,
726,
12,
3361,
18,
2934,
1955,
1273,
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,
866,
67,
588,
67,
76,
5331,
67,
6665,
12,
2890,
4672,
3536,
4709,
364,
394,
2788,
14176,
261,
41,
6479,
15574,
605,
273,
487,
5667,
12,
297,
726,
12,
3361,
18,
2934,
1955,
1273,
12,
... |
msg = self._render_record(status_code, subdir, operation, status, epoch_time, optional_fields=optional_fields) | msg = self._render_record(status_code, subdir, operation, status, epoch_time, optional_fields=optional_fields) | def _record(self, status_code, subdir, operation, status='', epoch_time=None, optional_fields=None): """ Actual function for recording a single line into the status logs. Should never be called directly, only by job.record as this would bypass the console monitor logging. """ | de3b947fa13191b5aa3e650f64a2581f6921c95c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/de3b947fa13191b5aa3e650f64a2581f6921c95c/server_job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3366,
12,
2890,
16,
1267,
67,
710,
16,
16921,
16,
1674,
16,
1267,
2218,
2187,
7632,
67,
957,
33,
7036,
16,
3129,
67,
2821,
33,
7036,
4672,
3536,
23788,
445,
364,
14949,
279,
2202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3366,
12,
2890,
16,
1267,
67,
710,
16,
16921,
16,
1674,
16,
1267,
2218,
2187,
7632,
67,
957,
33,
7036,
16,
3129,
67,
2821,
33,
7036,
4672,
3536,
23788,
445,
364,
14949,
279,
2202,... |
fvalue, format = self.scale(data, w, h) value = fvalue.read() return value | fvalue, format = self.scale(value, w, h) data = fvalue.read() else: data = str(value.data) else: data = str(value.data) return data | def rescaleOriginal(self, value, **kwargs): """rescales the original image and sets the data | 809657aff1e48a9eb15209837cdae668475834bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/809657aff1e48a9eb15209837cdae668475834bc/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30323,
8176,
12,
2890,
16,
460,
16,
2826,
4333,
4672,
3536,
455,
21177,
326,
2282,
1316,
471,
1678,
326,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30323,
8176,
12,
2890,
16,
460,
16,
2826,
4333,
4672,
3536,
455,
21177,
326,
2282,
1316,
471,
1678,
326,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 606) else quickfix.StringField.__init__(self, 606, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4752,
26,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
4752,
26,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
97... |
def decode(cls, value): if not value: return None return int(value) | def to_unicode(cls, value): if value is None: return u'' return unicode(value) | def decode(cls, value): if not value: return None return int(value) | 8bbb2a3fb14f7652affdf75eb3a99e780e8e2232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8bbb2a3fb14f7652affdf75eb3a99e780e8e2232/IO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
460,
4672,
309,
486,
460,
30,
327,
599,
327,
509,
12,
1132,
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,
... | [
1,
1,
1,
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,
2495,
12,
6429,
16,
460,
4672,
309,
486,
460,
30,
327,
599,
327,
509,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
lallappsNewcorseNode = {} lallappsNewcorseNodeCombined = {} | lalappsNewcorseNode = {} lalappsNewcorseNodeCombined = {} | def grep_pieces_and_append(string, inname, outname, append_cache=None): expr = re.compile(string) new_list = filter(expr.search,open(inname).readlines()) new_list.sort() print len(new_list) outnames = [] try: os.mkdir(outname) except: pass # To make sure that includes slides and zero lag for i in range(len(new_list)): if not i % 10: outnames.append(outname+"/"+outname+"_"+str(i)) o = open(outnames[-1]+".cache", "w") if append_cache: o.write(''.join(append_cache)) print "grepping " + inname + " for " + string + " and sending it to " + outnames[-1] + ".cache" o.write(new_list[i]) o.write(new_list[i].replace('THINCA_SECOND','THINCA_SLIDE_SECOND')) return outnames | 0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
67,
31016,
67,
464,
67,
6923,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
3065,
273,
283,
18,
11100,
12,
1080,
13,
394,
67,
1098,
273,
1034,
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,
23366,
67,
31016,
67,
464,
67,
6923,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
3065,
273,
283,
18,
11100,
12,
1080,
13,
394,
67,
1098,
273,
1034,
12,
... |
if self.in_table and line[0:2] != '||': | if self.in_table and line.strip()[0:2] != '||': | def format(self, text, out, escape_newlines=False): self.out = out self._open_tags = [] self._list_stack = [] | b58e8423db09428b69520e30ab303fa460c5a405 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/b58e8423db09428b69520e30ab303fa460c5a405/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
977,
16,
596,
16,
4114,
67,
31276,
33,
8381,
4672,
365,
18,
659,
273,
596,
365,
6315,
3190,
67,
4156,
273,
5378,
365,
6315,
1098,
67,
3772,
273,
5378,
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,
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,
740,
12,
2890,
16,
977,
16,
596,
16,
4114,
67,
31276,
33,
8381,
4672,
365,
18,
659,
273,
596,
365,
6315,
3190,
67,
4156,
273,
5378,
365,
6315,
1098,
67,
3772,
273,
5378,
2,
-100,
-10... |
'testrunner.txt', | os.path.join('..', 'testrunner.txt'), | def tearDown(test): sys.path[:], sys.argv[:] = test.globs['saved-sys-info'][:2] gc.set_threshold(*test.globs['saved-sys-info'][3]) sys.modules.clear() sys.modules.update(test.globs['saved-sys-info'][2]) | f8a30d20635688010d9b6c3351bb0f4545bbb396 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4163/f8a30d20635688010d9b6c3351bb0f4545bbb396/test_testsetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
3813,
4672,
2589,
18,
803,
10531,
6487,
2589,
18,
19485,
10531,
65,
273,
1842,
18,
10581,
87,
3292,
14077,
17,
9499,
17,
1376,
3546,
10531,
22,
65,
8859,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
2091,
4164,
12,
3813,
4672,
2589,
18,
803,
10531,
6487,
2589,
18,
19485,
10531,
65,
273,
1842,
18,
10581,
87,
3292,
14077,
17,
9499,
17,
1376,
3546,
10531,
22,
65,
8859,
18,
542,
... |
if reduced.find("-") != -1: (v, r) = reduced.split("-", 1) return (v, r) | def get_running_kernel_version_release(ts): """This takes the output of uname and figures out the (version, release) tuple for the running kernel.""" ver = os.uname()[2] reduced = ver # FIXME this should probably get passed this list from somewhere in config # possibly from the kernelpkgnames option for s in ("bigmem", "enterprise", "smp", "hugemem", "PAE", "rt", "guest", "hypervisor", "xen0", "xenU", "xen", "debug", "PAE-debug"): if ver.endswith(s): reduced = ver.replace(s, "") if reduced.find("-") != -1: (v, r) = reduced.split("-", 1) return (v, r) # we've got nothing so far, so... we glob for the file that MIGHT have # this kernels and then look up the file in our rpmdb fns = glob.glob('/boot/vmlinuz*%s*' % ver) for fn in fns: mi = ts.dbMatch('basenames', fn) for h in mi: return (h['version'], h['release']) return (None, None) | c890eb8e6596bc0e7c94af5400cda064a19b034f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/c890eb8e6596bc0e7c94af5400cda064a19b034f/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8704,
67,
8111,
67,
1589,
67,
9340,
12,
3428,
4672,
3536,
2503,
5530,
326,
876,
434,
31444,
471,
4291,
1823,
596,
326,
261,
1589,
16,
3992,
13,
3193,
364,
326,
3549,
5536,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8704,
67,
8111,
67,
1589,
67,
9340,
12,
3428,
4672,
3536,
2503,
5530,
326,
876,
434,
31444,
471,
4291,
1823,
596,
326,
261,
1589,
16,
3992,
13,
3193,
364,
326,
3549,
5536,
121... | |
('wisbn', 'isbn'), ('wpublisher', 'publisher'), | ('wisbn', ['isbn_10', 'isbn_13']), ('wpublisher', 'publishers'), | def POST(self): i = web.input(wtitle='', wauthor='', wtopic='', wisbn='', wpublisher='', wdescription='', psort_order='', pfulltext='', ftokens=[], q='', ) results = [] qresults = web.storage(begin=0, total_results=0) facets = [] errortext = None | 68ce85c697d065a1f712ca5a13670a5844d9a571 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/68ce85c697d065a1f712ca5a13670a5844d9a571/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
4672,
277,
273,
3311,
18,
2630,
12,
91,
2649,
2218,
2187,
341,
4161,
2218,
2187,
341,
10476,
2218,
2187,
341,
291,
13392,
2218,
2187,
6357,
2394,
264,
2218,
2187,
341,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5485,
12,
2890,
4672,
277,
273,
3311,
18,
2630,
12,
91,
2649,
2218,
2187,
341,
4161,
2218,
2187,
341,
10476,
2218,
2187,
341,
291,
13392,
2218,
2187,
6357,
2394,
264,
2218,
2187,
341,
33... |
words = line.split() if len(words) == 2 and words[0] == "URL:": url = words[1] | if line.startswith("URL: "): url = line.split()[1] | def _GuessBase(self, required): """Returns the SVN base URL. | f1a1421aef0b4c5d48e921c69f1856ba8323c2d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/f1a1421aef0b4c5d48e921c69f1856ba8323c2d4/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15977,
2171,
12,
2890,
16,
1931,
4672,
3536,
1356,
326,
29537,
50,
1026,
1976,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15977,
2171,
12,
2890,
16,
1931,
4672,
3536,
1356,
326,
29537,
50,
1026,
1976,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
gv_sign = self._arg_imm_op(gv_arg, self.rgenop.genconst(31), _PPC.srawi) | gv_sign = self._arg_uimm_op(gv_arg, self.rgenop.genconst(31), _PPC.srawi) | def op_int_abs(self, gv_arg): gv_sign = self._arg_imm_op(gv_arg, self.rgenop.genconst(31), _PPC.srawi) gv_maybe_inverted = self._arg_arg_op(gv_arg, gv_sign, _PPC.xor) return self._arg_arg_op(gv_sign, gv_maybe_inverted, _PPC.subf) | 1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
474,
67,
5113,
12,
2890,
16,
11404,
67,
3175,
4672,
11404,
67,
2977,
273,
365,
6315,
3175,
67,
89,
381,
81,
67,
556,
12,
75,
90,
67,
3175,
16,
365,
18,
86,
4507,
556,
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,
1061,
67,
474,
67,
5113,
12,
2890,
16,
11404,
67,
3175,
4672,
11404,
67,
2977,
273,
365,
6315,
3175,
67,
89,
381,
81,
67,
556,
12,
75,
90,
67,
3175,
16,
365,
18,
86,
4507,
556,
18,... |
[2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7)] [ 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7) 3*5^3 + 5^4 + 5^6 + O(5^7)] | [2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9)] [ 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9) 5 + 4*5^2 + 4*5^3 + 2*5^4 + 4*5^5 + 5^6 + O(5^9)] | def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction. | 10343abd311261c6105e71597637890efa2ffedc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/10343abd311261c6105e71597637890efa2ffedc/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... |
def Analyze(self, check_sanity=False): if self._options.indirect: return ValgrindTool.GetAnalyzeResultsIndirect(self) return ThreadSanitizerBase.Analyze(self, check_sanity) | def __init__(self): ValgrindTool.__init__(self) ThreadSanitizerBase.__init__(self) | b91d8155e1de5888b96ea1b17ac5fce7d82773ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b91d8155e1de5888b96ea1b17ac5fce7d82773ca/valgrind_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
12747,
3197,
728,
6364,
16186,
2738,
972,
12,
2890,
13,
4884,
26131,
1824,
2171,
16186,
2738,
972,
12,
2890,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
12747,
3197,
728,
6364,
16186,
2738,
972,
12,
2890,
13,
4884,
26131,
1824,
2171,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self.client = self.user.createClient() | self.client = self.user.createClientWithCerts() | def testBlacklistAuthNOK(self): self.config["nuauth_tls_auth_by_cert"] = 0 self.config["session_authtype_blacklist_groups"] = "\"42\"" self.nuauth = Nuauth(self.config) | 43e708e0646709fc09702b0ecd4dc971eab58098 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10929/43e708e0646709fc09702b0ecd4dc971eab58098/test_session_authtype.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
25811,
1730,
50,
3141,
12,
2890,
4672,
365,
18,
1425,
9614,
13053,
1944,
67,
17116,
67,
1944,
67,
1637,
67,
7593,
11929,
273,
374,
365,
18,
1425,
9614,
3184,
67,
5854,
647,
388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25811,
1730,
50,
3141,
12,
2890,
4672,
365,
18,
1425,
9614,
13053,
1944,
67,
17116,
67,
1944,
67,
1637,
67,
7593,
11929,
273,
374,
365,
18,
1425,
9614,
3184,
67,
5854,
647,
388,
... |
self.connect(self.actionConnect, QtCore.SIGNAL("activated()"), | self.connect(self.actionConnect, QtCore.SIGNAL("triggered()"), | def __init__(self, q_app_gui, q_gui_app): self.q_app_gui = q_app_gui self.q_gui_app = q_gui_app | c57d21d0b753a6c05996e52db69f069235e93b26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8560/c57d21d0b753a6c05996e52db69f069235e93b26/gui_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1043,
67,
2910,
67,
20292,
16,
1043,
67,
20292,
67,
2910,
4672,
365,
18,
85,
67,
2910,
67,
20292,
273,
1043,
67,
2910,
67,
20292,
365,
18,
85,
67,
2029... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1043,
67,
2910,
67,
20292,
16,
1043,
67,
20292,
67,
2910,
4672,
365,
18,
85,
67,
2910,
67,
20292,
273,
1043,
67,
2910,
67,
20292,
365,
18,
85,
67,
2029... |
verify_operator(query_dict['dillhole'][1]) | verify_operator(query_dict['expression'][1]) | def __init__(self, database, query_dict=None): """ point out strings '"value"' """ if not isinstance(database, SQLDatabase): raise TypeError('%s is not a valid SQLDatabase'%database) self.__database__ = database self.__query_dict__ = query_dict # TODO: ERROR CHECKING: # 1. Confirm query_dict matches skeleton: # 2. confirm tblname is in database: # 3. confirm display_cols in tblname: # 4. confirm col (from dillhole is in tblname): # confirm operator: verify_operator(query_dict['dillhole'][1]) # make tuple: if self.__query_dict__ is not None: self.__param_tuple__ = (self.__query_dict__['dillhole'][2],) else: self.__param_tuple__ = None # make query string: if self.__query_dict__ is not None: self.__query_string__ = 'SELECT ' + self.__query_dict__['table_name'] + \ '.' + self.__query_dict__['display_cols'] + \ ' FROM ' + self.__query_dict__['table_name'] + \ ' WHERE ' + self.__query_dict__['table_name'] + '.' + \ self.__query_dict__['dillhole'][0] + ' ' + \ self.__query_dict__['dillhole'][1] + ' ?' else: self.__query_string__ = None | ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... |
return cmp(self._left._maxima_() , self._right._maxima_()) == 0 | raise ValueError, "unable to evaluate the predicate '%s'"%repr(self) | def __nonzero__(self): """ Return True if this equality is definitely true. Return False if it is false or the algorithm for testing equality is inconclusive. | 0074cd86c652dc4c38d0cbe45027ca0cd285f71a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0074cd86c652dc4c38d0cbe45027ca0cd285f71a/equations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
2890,
4672,
3536,
2000,
1053,
309,
333,
14958,
353,
2217,
25818,
638,
18,
225,
2000,
1083,
309,
518,
353,
629,
578,
326,
4886,
364,
7769,
14958,
353,
316,
591,
9173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
2890,
4672,
3536,
2000,
1053,
309,
333,
14958,
353,
2217,
25818,
638,
18,
225,
2000,
1083,
309,
518,
353,
629,
578,
326,
4886,
364,
7769,
14958,
353,
316,
591,
9173... |
types.append({'title': utility.title, 'id': name}) | if IResourceSubTypes.providedBy(utility): subTypeAdapter = utility else: subTypeAdapter = queryAdapter(utility, IResourceSubTypes, default=None) if subTypeAdapter != None: subTypeAdapter = subTypeAdapter() typeHeader = {'id':name, 'title':utility.title, 'clickable':False} types.append(typeHeader) for subtype in subTypeAdapter.types(): types.append({'id':name, 'title':subtype, 'clickable':True}) | def types(self): utilities = sorted(getUtilitiesFor(IResourceFactoryUtility)) types = [] for name, utility in utilities: types.append({'title': utility.title, 'id': name}) return types | 51d86cfed2c365ac741f8ac65a1a071f5df6043a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/51d86cfed2c365ac741f8ac65a1a071f5df6043a/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1953,
12,
2890,
4672,
22538,
273,
3115,
12,
588,
11864,
1290,
12,
45,
1420,
1733,
6497,
3719,
1953,
273,
5378,
364,
508,
16,
12788,
316,
22538,
30,
309,
467,
1420,
1676,
2016,
18,
29206,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1953,
12,
2890,
4672,
22538,
273,
3115,
12,
588,
11864,
1290,
12,
45,
1420,
1733,
6497,
3719,
1953,
273,
5378,
364,
508,
16,
12788,
316,
22538,
30,
309,
467,
1420,
1676,
2016,
18,
29206,... |
repos_tree = self.gld.get_widget("repos_tree") | def _refresh_repos_tree (self): expanded = self._pacs_tree_exp_check() repos_tree = self.gld.get_widget("repos_tree") repos_tree.set_model(self._make_repos_model()) repos_tree = self.gld.get_widget("repos_tree") for row in expanded: repos_tree.expand_row(row, False) return | c80c576a73d52ad1d3674b0183511ab6e15d8448 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/c80c576a73d52ad1d3674b0183511ab6e15d8448/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
67,
15564,
67,
3413,
261,
2890,
4672,
225,
8406,
273,
365,
6315,
84,
28965,
67,
3413,
67,
2749,
67,
1893,
1435,
225,
13686,
67,
3413,
18,
542,
67,
2284,
12,
2890,
6315,
6540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9144,
67,
15564,
67,
3413,
261,
2890,
4672,
225,
8406,
273,
365,
6315,
84,
28965,
67,
3413,
67,
2749,
67,
1893,
1435,
225,
13686,
67,
3413,
18,
542,
67,
2284,
12,
2890,
6315,
6540... | |
H = G._list_of_elements_in_H() | H = [ int(x) for x in G._list_of_elements_in_H() ] | def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate). | ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... |
for i in range ( int ( _res[0] ) ): tabkey += self.deparse ( _res[2+i] ) | for i in range ( int ( _res[1] ) ): tabkey += self.deparse ( _res[3+i] ) | def find_zi_code (self,zi): '''Check word freq and user_freq ''' zi = zi.decode('utf8') sqlstr = '''SELECT * FROM main.phrases WHERE phrase = ? ORDER BY mlen ASC; | 1c792bcb904df77c4873302e2042abca8eb19d94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/544/1c792bcb904df77c4873302e2042abca8eb19d94/tabsqlitedb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
94,
77,
67,
710,
261,
2890,
16,
94,
77,
4672,
9163,
1564,
2076,
7684,
471,
729,
67,
10212,
9163,
998,
77,
273,
998,
77,
18,
3922,
2668,
3158,
28,
6134,
19498,
273,
9163,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
94,
77,
67,
710,
261,
2890,
16,
94,
77,
4672,
9163,
1564,
2076,
7684,
471,
729,
67,
10212,
9163,
998,
77,
273,
998,
77,
18,
3922,
2668,
3158,
28,
6134,
19498,
273,
9163,
48... |
fontReencode.append('WinAnsiEncoding /%s /%s RE' % (fontName, fontName)) self.code.insert(1, string.join(fontReencode, self._sep)) | fontObj = getFont(fontName) if not fontObj._dynamicFont and fontObj.encName=='WinAnsiEncoding': C.append('WinAnsiEncoding /%s /%s RE' % (fontName, fontName)) if C: C.insert(0,PS_WinAnsiEncoding) self.code.insert(1, string.join(C, self._sep)) | def _t1_re_encode(self): if not self._fontsUsed: return # for each font used, reencode the vectors fontReencode = [PS_WinAnsiEncoding] for fontName in self._fontsUsed: fontReencode.append('WinAnsiEncoding /%s /%s RE' % (fontName, fontName)) self.code.insert(1, string.join(fontReencode, self._sep)) | 3854cba4d0308aa5d3e0ee27e734573d3ed2b24e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/3854cba4d0308aa5d3e0ee27e734573d3ed2b24e/renderPS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
88,
21,
67,
266,
67,
3015,
12,
2890,
4672,
309,
486,
365,
6315,
22052,
6668,
30,
327,
468,
364,
1517,
3512,
1399,
16,
283,
3015,
326,
10046,
3512,
426,
3015,
273,
306,
5857,
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,
88,
21,
67,
266,
67,
3015,
12,
2890,
4672,
309,
486,
365,
6315,
22052,
6668,
30,
327,
468,
364,
1517,
3512,
1399,
16,
283,
3015,
326,
10046,
3512,
426,
3015,
273,
306,
5857,
67,
... |
id = parent | option = parent | def get_tree(self, parent, child): """Retrieve an option for the tree view. The child may be None.""" id = parent if None != child: id = id + "." + child if not self.config.has_option('tree', id): return False return self.config.getboolean('tree', id) | 392feeb3d25aea6fbc3df3a165f808024bc54e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/392feeb3d25aea6fbc3df3a165f808024bc54e84/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3413,
12,
2890,
16,
982,
16,
1151,
4672,
3536,
5767,
392,
1456,
364,
326,
2151,
1476,
18,
225,
1021,
1151,
2026,
506,
599,
12123,
1456,
273,
982,
309,
599,
480,
1151,
30,
612,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3413,
12,
2890,
16,
982,
16,
1151,
4672,
3536,
5767,
392,
1456,
364,
326,
2151,
1476,
18,
225,
1021,
1151,
2026,
506,
599,
12123,
1456,
273,
982,
309,
599,
480,
1151,
30,
612,... |
str += dom_to_html(see, container) | str += dom_to_html(see, container) + ', ' | def _seealso(self, seealso, container): """ @return: The HTML code for a see-also field. """ if not seealso: return '' str = '<dl><dt><b>See also:</b>\n </dt><dd>' for see in seealso: str += dom_to_html(see, container) return str[:-2] + '</dd>\n</dl>\n\n' | 5468ca82a58df68bd0160c5589738a8ca3aa4f29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5468ca82a58df68bd0160c5589738a8ca3aa4f29/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5946,
31144,
12,
2890,
16,
2621,
31144,
16,
1478,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2621,
17,
31144,
652,
18,
3536,
309,
486,
2621,
31144,
30,
327,
875,
609,
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,
389,
5946,
31144,
12,
2890,
16,
2621,
31144,
16,
1478,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2621,
17,
31144,
652,
18,
3536,
309,
486,
2621,
31144,
30,
327,
875,
609,
2... |
if self.type == 'GLsizei' or self.type == 'GLsizeiptr': file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n") | pass def WriteClientSideValidationCode(self, file): """Writes the validation code for an argument.""" pass | def WriteValidationCode(self, file): """Writes the validation code for an argument.""" if self.type == 'GLsizei' or self.type == 'GLsizeiptr': file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n") | 8e2a5abe106158df74caad4c6fbd988d8d900b7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8e2a5abe106158df74caad4c6fbd988d8d900b7c/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
3379,
981,
364,
392,
1237,
12123,
309,
365,
18,
723,
422,
296,
11261,
1467,
77,
11,
578,
365,
18,
723,
422,
296,
11261,
1467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
3379,
981,
364,
392,
1237,
12123,
309,
365,
18,
723,
422,
296,
11261,
1467,
77,
11,
578,
365,
18,
723,
422,
296,
11261,
1467... |
color = QColorDialog.getColor(self.border_color, self, "ColorDialog") | color = QColorDialog.getColor(self.border_QColor, self, "ColorDialog") | def change_border_color(self): '''Slot method change border color.''' color = QColorDialog.getColor(self.border_color, self, "ColorDialog") | 520655b0839e9d192e34605d00ae60ec9bf13e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/520655b0839e9d192e34605d00ae60ec9bf13e2b/ESPWindowProp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
8815,
67,
3266,
12,
2890,
4672,
9163,
8764,
707,
2549,
5795,
2036,
1093,
6309,
2036,
273,
2238,
2957,
6353,
18,
588,
2957,
12,
2890,
18,
8815,
67,
3266,
16,
365,
16,
315,
295... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
8815,
67,
3266,
12,
2890,
4672,
9163,
8764,
707,
2549,
5795,
2036,
1093,
6309,
2036,
273,
2238,
2957,
6353,
18,
588,
2957,
12,
2890,
18,
8815,
67,
3266,
16,
365,
16,
315,
295... |
def assert_completion_in_result(self, name, kind, result, type=None): | def assert_completion_in_result(self, name, scope, result, type=None): | def assert_completion_in_result(self, name, kind, result, type=None): for proposal in result: if proposal.name == name: self.assertEqual(kind, proposal.kind, "proposal <%s> has wrong kind, expected " \ "%r, got %r" % (name, kind, proposal.kind)) if type is not None: self.assertEqual(type, proposal.type, "proposal <%s> has wrong type, expected " \ "%r, got %r" % (name, type, proposal.type)) return self.fail('completion <%s> not proposed' % name) | 6d539fe256ff5d47931d765fcb7729894783cbf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8286/6d539fe256ff5d47931d765fcb7729894783cbf0/codeassisttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
11469,
67,
267,
67,
2088,
12,
2890,
16,
508,
16,
2146,
16,
563,
16,
618,
33,
7036,
4672,
364,
14708,
316,
563,
30,
309,
14708,
18,
529,
422,
508,
30,
365,
18,
11231,
5812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1815,
67,
11469,
67,
267,
67,
2088,
12,
2890,
16,
508,
16,
2146,
16,
563,
16,
618,
33,
7036,
4672,
364,
14708,
316,
563,
30,
309,
14708,
18,
529,
422,
508,
30,
365,
18,
11231,
5812,
... |
print "cpu_spec", mems_spec | print "cpu_spec", cpu_spec | def __init__(self, name, job_size, job_pid, cpus = None, root = "", cleanup = 1): # Create a cpuset container and move job_pid into it # Allocate the list "cpus" of cpus to that container | 59d71aab0e852886d659a24bac6fb2e4756c0bb2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/59d71aab0e852886d659a24bac6fb2e4756c0bb2/cpuset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1719,
67,
1467,
16,
1719,
67,
6610,
16,
20620,
273,
599,
16,
1365,
273,
23453,
6686,
273,
404,
4672,
468,
1788,
279,
20620,
278,
1478,
471,
3635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1719,
67,
1467,
16,
1719,
67,
6610,
16,
20620,
273,
599,
16,
1365,
273,
23453,
6686,
273,
404,
4672,
468,
1788,
279,
20620,
278,
1478,
471,
3635... |
self.ImportSettings('Mozilla Firefox', False, ['ALL']) self.ImportSettings('Safari', False, ['ALL']) | self.ImportSettings('Mozilla Firefox', False, self._to_import) self.ImportSettings('Safari', False, self._to_import) | def testImportFromFirefoxAndSafari(self): """Verify importing from Firefox and then Safari.""" # This test is for Mac only. if not self.IsMac(): return | e2c6ef63f7a8f4b49b689099e92004ea27c268c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e2c6ef63f7a8f4b49b689099e92004ea27c268c0/imports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
1265,
9723,
13873,
1876,
55,
19328,
12,
2890,
4672,
3536,
8097,
25077,
628,
22950,
471,
1508,
26690,
12123,
468,
1220,
1842,
353,
364,
13217,
1338,
18,
309,
486,
365,
18,
2520,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
5010,
1265,
9723,
13873,
1876,
55,
19328,
12,
2890,
4672,
3536,
8097,
25077,
628,
22950,
471,
1508,
26690,
12123,
468,
1220,
1842,
353,
364,
13217,
1338,
18,
309,
486,
365,
18,
2520,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.