rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.msg_LATEST = version.StrictVersion(urllib2.urlopen('http://traduisons.googlecode.com/svn/trunk/LATEST-IS').read().strip()) | url = 'http://traduisons.googlecode.com/svn/trunk/LATEST-IS' ver = urllib2.urlopen(url).read().strip() self.msg_LATEST = version.StrictVersion(ver) | def is_latest(self): '''Phone home to check if we are up to date.''' try: self.msg_LATEST except AttributeError: self.msg_LATEST = version.StrictVersion(urllib2.urlopen('http://traduisons.googlecode.com/svn/trunk/LATEST-IS').read().strip()) return msg_VERSION >= self.msg_LATEST | 882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
13550,
12,
2890,
4672,
9163,
9451,
6382,
358,
866,
309,
732,
854,
731,
358,
1509,
1093,
6309,
775,
30,
365,
18,
3576,
67,
10512,
882,
1335,
6394,
30,
880,
273,
296,
2505,
2207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
13550,
12,
2890,
4672,
9163,
9451,
6382,
358,
866,
309,
732,
854,
731,
358,
1509,
1093,
6309,
775,
30,
365,
18,
3576,
67,
10512,
882,
1335,
6394,
30,
880,
273,
296,
2505,
2207... |
buffer += self._applyReplacement('splashscreen %s\n' % self.splashscreen) | if self.splashscreen: buffer += self._applyReplacement('splashscreen %s\n' % self.splashscreen) | def write(self): """ write the client menu """ # takes global items, one by one | 72428b8f17ac1a08eb43039c74d2924570b83bcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/72428b8f17ac1a08eb43039c74d2924570b83bcd/menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
4672,
3536,
1045,
326,
1004,
3824,
3536,
468,
5530,
2552,
1516,
16,
1245,
635,
1245,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
4672,
3536,
1045,
326,
1004,
3824,
3536,
468,
5530,
2552,
1516,
16,
1245,
635,
1245,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
eip,efl,_ = current.split(" ", 2) for c in [eip,efl]: | eip,efl,_,cpl,_ = current.split(" ", 4) for c in [eip,efl,cpl]: | def load_env(env_file): regs = {} # GP registers for i in range(2): current = env_file.readline().strip().split() for c in current: var,val = c.split('=') regs[var] = UInt(int(val, 16)) # EIP and EFLAGS current = env_file.readline().strip() eip,efl,_ = current.split(" ", 2) for c in [eip,efl]: var,val = c.split('=') re... | e53496d7950b7052631b07471f2680dea8042738 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/e53496d7950b7052631b07471f2680dea8042738/newmicrodo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3074,
12,
3074,
67,
768,
4672,
17518,
273,
2618,
468,
4948,
10285,
364,
277,
316,
1048,
12,
22,
4672,
783,
273,
1550,
67,
768,
18,
896,
1369,
7675,
6406,
7675,
4939,
1435,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3074,
12,
3074,
67,
768,
4672,
17518,
273,
2618,
468,
4948,
10285,
364,
277,
316,
1048,
12,
22,
4672,
783,
273,
1550,
67,
768,
18,
896,
1369,
7675,
6406,
7675,
4939,
1435,
36... |
if uri.scheme not in ('http', 'https'): | if uri.scheme not in ('http', 'https', ''): | def __new__(cls, value): obj = str.__new__(cls, value) uri = urlparse.urlparse(obj) | 630b179e6f86ce0747a38c2fbdfbd864e259334c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/630b179e6f86ce0747a38c2fbdfbd864e259334c/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
1081,
273,
609,
16186,
2704,
972,
12,
6429,
16,
460,
13,
2003,
273,
15185,
18,
718,
2670,
12,
2603,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
1081,
273,
609,
16186,
2704,
972,
12,
6429,
16,
460,
13,
2003,
273,
15185,
18,
718,
2670,
12,
2603,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
tmpfp.write('--- a/%s\n' % p.path) | while not line.startswith('--- a/'): tmpfp.write(line) line = pf.readline() pfline += 1 tmpfp.write('--- a/%s\n' % p.path) | def dogitpatch(patchname, gitpatches, cwd=None): """Preprocess git patch so that vanilla patch can handle it""" pf = file(patchname) pfline = 1 fd, patchname = tempfile.mkstemp(prefix='hg-patch-') tmpfp = os.fdopen(fd, 'w') try: for i in range(len(gitpatches)): p = gitpatches[i] if not p.copymod: continue copyfile(p... | 13b19aa85f8698c99c928c81b5592c352d772e5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/13b19aa85f8698c99c928c81b5592c352d772e5c/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
717,
305,
2272,
12,
2272,
529,
16,
5071,
30278,
16,
7239,
33,
7036,
4672,
3536,
1386,
2567,
5071,
4729,
1427,
716,
331,
26476,
4729,
848,
1640,
518,
8395,
10811,
273,
585,
12,
2272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
302,
717,
305,
2272,
12,
2272,
529,
16,
5071,
30278,
16,
7239,
33,
7036,
4672,
3536,
1386,
2567,
5071,
4729,
1427,
716,
331,
26476,
4729,
848,
1640,
518,
8395,
10811,
273,
585,
12,
2272,... |
unmaskedArr = self.dataArr.astype(float) | unmaskedArr = numpy.array(self.dataArr.astype(float).flat) | def showArr(self, arr, mask=None): """Specify an array to display. If the arr is None then the display is cleared. The data is initially scaled from minimum to maximum. Inputs: - arr: an array of data - mask: an optional bitmask (note that the meaning of the bitplanes must be specified when creating this object) """ s... | dd181c104eec15c454c40eaf6d6124d7da7fdc8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6353/dd181c104eec15c454c40eaf6d6124d7da7fdc8a/GrayImageDispWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
5715,
12,
2890,
16,
2454,
16,
3066,
33,
7036,
4672,
3536,
19302,
392,
526,
358,
2562,
18,
971,
326,
2454,
353,
599,
1508,
326,
2562,
353,
16054,
18,
1021,
501,
353,
22458,
12304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
5715,
12,
2890,
16,
2454,
16,
3066,
33,
7036,
4672,
3536,
19302,
392,
526,
358,
2562,
18,
971,
326,
2454,
353,
599,
1508,
326,
2562,
353,
16054,
18,
1021,
501,
353,
22458,
12304,
... |
self.selected_files = [qstring_to_unicode(q) for q in self.selected_files] dynamic[self.dialog_name] = os.path.dirname(self.selected_files[0]) | self.selected_files = [unicode(q) for q in self.selected_files] saved_loc = self.selected_files[0] if os.path.isfile(saved_loc): saved_loc = os.path.dirname(saved_loc) dynamic[self.dialog_name] = saved_loc | def __init__(self, title='Choose Files', filters=[], add_all_files_filter=True, parent=None, modal = True, name = '', mode = QFileDialog.ExistingFiles, ): QObject.__init__(self) initialize_file_icon_provider() ftext = '' if filters: for filter in filters: text, extensions = filter extensions = ['*.'+i if not i.startswi... | 8293226c5f1e10318d08ca891da4f8560a0f851a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/8293226c5f1e10318d08ca891da4f8560a0f851a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
2218,
24529,
6471,
2187,
3415,
22850,
6487,
527,
67,
454,
67,
2354,
67,
2188,
33,
5510,
16,
982,
33,
7036,
16,
13010,
273,
1053,
16,
508,
273,
1022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2077,
2218,
24529,
6471,
2187,
3415,
22850,
6487,
527,
67,
454,
67,
2354,
67,
2188,
33,
5510,
16,
982,
33,
7036,
16,
13010,
273,
1053,
16,
508,
273,
1022... |
trans={'':'e','':'e','':'a','':'e', '':'i','':'i','':'a','':'a'} | trans={'':'e', '':'e', '':'a', '':'e', '':'i', '':'i', '':'a', '':'a'} | def _get_dta_lines(self,cr,uid,data,context): pool = pooler.get_pool(cr.dbname) res= {} user = pool.get('res.users').browse(cr,uid,[uid])[0] company= user.company_id if company.partner_id.bank_ids: bank = company.partner_id.bank_ids[0] res.update({'bank':bank.bank_name,'bank_code':bank.bank_code or ''}) # 'city':'',... | 4c3a2d00ca17c55a544ac874841a13a8fc16e64b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/4c3a2d00ca17c55a544ac874841a13a8fc16e64b/dta_wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
72,
2351,
67,
3548,
12,
2890,
16,
3353,
16,
1911,
16,
892,
16,
2472,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
225,
400,
33,
2618,
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,
389,
588,
67,
72,
2351,
67,
3548,
12,
2890,
16,
3353,
16,
1911,
16,
892,
16,
2472,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
225,
400,
33,
2618,
225,
... |
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(RGBColorPtr, QdRGB_Convert); | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(RGBColor, QdRGB_Convert); | #ifdef USE_TOOLBOX_OBJECT_GLUE | 0c995756b3ec0968fddd7352e81742549827a87f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0c995756b3ec0968fddd7352e81742549827a87f/qdsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
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,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
targetDir = os.path.join(demobrowserDir, demoVersion, "demo", libraryName) | targetDir = os.path.join(demoBrowser, demoVersion, "demo", libraryName) | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem... | c325c3134575404d867a5452a6f71564b021240c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c325c3134575404d867a5452a6f71564b021240c/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
4353,
812,
12,
2890,
16,
5313,
461,
16,
1177,
461,
16,
5437,
461,
16,
21477,
1444,
1546,
3510,
3113,
9626,
947,
3358,
1621,
33,
7036,
4672,
309,
486,
9626,
947,
3358,
1621,
30,
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,
1610,
4353,
812,
12,
2890,
16,
5313,
461,
16,
1177,
461,
16,
5437,
461,
16,
21477,
1444,
1546,
3510,
3113,
9626,
947,
3358,
1621,
33,
7036,
4672,
309,
486,
9626,
947,
3358,
1621,
30,
9... |
def _processForm(self, data=1, metadata=None): request = self.REQUEST | def _processForm(self, data=1, metadata=None, REQUEST=None): request = REQUEST or self.REQUEST | def _processForm(self, data=1, metadata=None): request = self.REQUEST form = request.form fieldset = form.get('fieldset', None) schema = self.Schema() schemata = self.Schemata() fields = [] | 9bc695fd402c715ffe8882821fdf6d56301d76ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/9bc695fd402c715ffe8882821fdf6d56301d76ae/BaseObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
1204,
12,
2890,
16,
501,
33,
21,
16,
1982,
33,
7036,
16,
12492,
33,
7036,
4672,
590,
273,
12492,
578,
365,
18,
5519,
646,
273,
590,
18,
687,
16885,
273,
646,
18,
588,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
1204,
12,
2890,
16,
501,
33,
21,
16,
1982,
33,
7036,
16,
12492,
33,
7036,
4672,
590,
273,
12492,
578,
365,
18,
5519,
646,
273,
590,
18,
687,
16885,
273,
646,
18,
588,
2668... |
sage: [ p for p in Permutations(['c','a','t'])] [['c', 'a', 't'], ['c', 't', 'a'], ['a', 'c', 't'], ['a', 't', 'c'], ['t', 'c', 'a'], ['t', 'a', 'c']] | def iterator(self): """ Algorithm based on: http://marknelson.us/2002/03/01/next-permutation/ | 7deb701e9a6075463e5ca916d2674a8b483a8b79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7deb701e9a6075463e5ca916d2674a8b483a8b79/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
3536,
15067,
2511,
603,
30,
1062,
2207,
3355,
3084,
816,
18,
407,
19,
6976,
22,
19,
4630,
19,
1611,
19,
4285,
17,
12160,
9245,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
3536,
15067,
2511,
603,
30,
1062,
2207,
3355,
3084,
816,
18,
407,
19,
6976,
22,
19,
4630,
19,
1611,
19,
4285,
17,
12160,
9245,
19,
2,
-100,
-100,
-100,
-100,
-100... | |
f.write('<li><a href="%s">%s</a>\n' % (linkname, displayname)) | f.write('<li><a href="%s">%s</a>\n' % (urllib.quote(linkname), cgi.escape(displayname))) | def list_directory(self, path): """Helper to produce a directory listing (absent index.html). | 00a21b4757a7b48c138c3bd31ed1af6d75442074 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/00a21b4757a7b48c138c3bd31ed1af6d75442074/SimpleHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
5149,
12,
2890,
16,
589,
4672,
3536,
2276,
358,
11402,
279,
1867,
11591,
261,
5113,
319,
770,
18,
2620,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
666,
67,
5149,
12,
2890,
16,
589,
4672,
3536,
2276,
358,
11402,
279,
1867,
11591,
261,
5113,
319,
770,
18,
2620,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if arg[0] in table._columns: if arg[1] in ('like', 'ilike'): qu1.append('("%s".%s %s %s OR "%s".%s %s %s)' % \ (table._table, arg[0], arg[1], '%s', table._table, arg[0], arg[1], '%s')) elif arg[1] in ('not like', 'not ilike'): qu1.append('("%s".%s %s %s AND "%s".%s %s %s)' % \ (table._table, arg[0], arg[1], '%s', table... | if arg[1] in ('like', 'ilike'): qu1.append('("%s".%s %s %s OR "%s".%s %s %s)' % \ (table._table, arg[0], arg[1], '%s', table._table, arg[0], arg[1], '%s')) elif arg[1] in ('not like', 'not ilike'): qu1.append('("%s".%s %s %s AND "%s".%s %s %s)' % \ (table._table, arg[0], arg[1], '%s', table._table, arg[0], arg[1], '%s'... | def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent) | 68ca60ecd96e7b09f38d0fe5c78adf0e5327ceda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/68ca60ecd96e7b09f38d0fe5c78adf0e5327ceda/modelsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... |
print >> f, ' CPU_OP_RD_TMP,' | print >> f, ' CPU_OP_RD_TMP_NODEBUG,' | def generateOpcode(f, opNum, opName_): print >> f, ' // 0x%02X: %s' % (opNum, opName_) cnt = 0 opName = opName_[:3].lower() if opName_.__len__() > 3: operand = opName_[4:].lower() else: operand = '' writeInstructions = ['inc', 'dec', 'asl', 'lsr', 'rol', 'ror', 'rla', 'rra', 'slo', 'sre', 'sta'] if operand == '#nn':... | adbe4e5dde6c2d7941cf645452b089fd9c95f4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/132/adbe4e5dde6c2d7941cf645452b089fd9c95f4c0/opcodtbl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
22808,
12,
74,
16,
1061,
2578,
16,
1061,
461,
67,
4672,
1172,
1671,
284,
16,
296,
565,
368,
374,
92,
9,
3103,
60,
30,
738,
87,
11,
738,
261,
556,
2578,
16,
1061,
461,
67,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
22808,
12,
74,
16,
1061,
2578,
16,
1061,
461,
67,
4672,
1172,
1671,
284,
16,
296,
565,
368,
374,
92,
9,
3103,
60,
30,
738,
87,
11,
738,
261,
556,
2578,
16,
1061,
461,
67,
13,... |
dump += "HTML DUMP:\n\n %s" % pyfile.plugin.html | dump += "HTML DUMP:\n\n %s" % pformat(pyfile.plugin.html) | def run(self): """run method""" | 67802003c5b5b4a3661b0f4805ba8e49a5893bbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/67802003c5b5b4a3661b0f4805ba8e49a5893bbf/PluginThread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
2681,
707,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
2681,
707,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
a = self.articles[title] | a = self.articles[norm(title)] | def getURL(self, title, revision=None): try: a = self.articles[title] except KeyError: return None return a['url'] | f043320e646c4f2d323c7b9284ef98b6ee76ecda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/f043320e646c4f2d323c7b9284ef98b6ee76ecda/test_zipcreator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
775,
30,
279,
273,
365,
18,
16462,
63,
7959,
12,
2649,
25887,
1335,
4999,
30,
327,
599,
327,
279,
3292,
718,
3546,
225,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
775,
30,
279,
273,
365,
18,
16462,
63,
7959,
12,
2649,
25887,
1335,
4999,
30,
327,
599,
327,
279,
3292,
718,
3546,
225,
2,
-100,
... |
log.debug('Job flow %s (%s) idle for %s' % (jf.jobflowid, jf.name, idle_time)) if idle_time > timedelta(hours=options.max_hours_idle): to_terminate.append( (jf.jobflowid, jf.name, idle_time)) | log.debug('Job flow %s (%s) idle for %s' % (jf.jobflowid, jf.name, idle_time)) if idle_time > timedelta(hours=options.max_hours_idle): to_terminate.append( (jf.jobflowid, jf.name, idle_time)) | def main(): option_parser = make_option_parser() options, args = option_parser.parse_args() if args: option_parser.error('takes no arguments') # set up logging if not options.quiet: log_to_stream(name='mrjob', debug=options.verbose) emr_conn = EMRJobRunner(conf_path=options.conf_path).make_emr_conn() log.info( 'get... | 9d65274350c3ca98dd2bba37139fa3578017faf5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/9d65274350c3ca98dd2bba37139fa3578017faf5/terminate_idle_job_flows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
88,
... |
d_min=2., | d_min=3., | def print_structure_factors(SgInfo, adp=0, d_min=2., grid_resolution_factor = 1./3): elements = ("N", "C", "C", "O", "N", "C", "C", "O") xtal = debug_utils.random_structure( SgInfo, elements, volume_per_atom=50., min_distance=1.5, general_positions_only=0, anisotropic_displacement_parameters=adp) if (0): assert SgInfo.... | 94a2c1f8c4ebbad46242101310116b05b009f4a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/94a2c1f8c4ebbad46242101310116b05b009f4a8/dbg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7627,
67,
22108,
12,
55,
75,
966,
16,
1261,
84,
33,
20,
16,
302,
67,
1154,
33,
23,
12990,
3068,
67,
19182,
67,
6812,
273,
404,
18,
19,
23,
4672,
2186,
273,
7566,
50,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7627,
67,
22108,
12,
55,
75,
966,
16,
1261,
84,
33,
20,
16,
302,
67,
1154,
33,
23,
12990,
3068,
67,
19182,
67,
6812,
273,
404,
18,
19,
23,
4672,
2186,
273,
7566,
50,
3113... |
modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" | modifyStretchActionText = \ "<u><b>Stretch</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
if isContainer or notDeadEnd: objRef = ContainerRef(Indirection(evalStr='.__dict__'), curObjRef) | if hasLength or notDeadEnd: objRef = ContainerRef(Indirection(evalStr='.__dict__'), parentObjRef) | def run(self): try: while True: # yield up here instead of at the end, since we skip back to the # top of the while loop from various points yield None #import pdb;pdb.set_trace() curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef try: for result in self._curObjRef.getContainer(): yield None c... | 2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
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,
1086,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
468,
2824,
731,
2674,
3560,
434,
622,
326,
679,
16,
3241,
732,
2488,
1473,
358,
326,
468,
1760,
434,
326,
1323,
2798,
628,
11191,
3143,
2... |
"""roll back the last transaction in this repository Roll back the last transaction in this repository, restoring the project to its state prior to the transaction. | """roll back the last transaction This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing any dirstate changes since that time. | def rollback(ui, repo): """roll back the last transaction in this repository Roll back the last transaction in this repository, restoring the project to its state prior to the transaction. Transactions are used to encapsulate the effects of all commands that create new changesets or propagate existing changesets into... | ab8fe059bfb3f0c32dc2a95665040656950f40d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ab8fe059bfb3f0c32dc2a95665040656950f40d9/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8006,
12,
4881,
16,
3538,
4672,
3536,
2693,
1473,
326,
1142,
2492,
225,
1220,
1296,
1410,
506,
1399,
598,
7671,
18,
6149,
353,
1338,
1245,
1801,
434,
8006,
16,
471,
1915,
353,
1158,
4031... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8006,
12,
4881,
16,
3538,
4672,
3536,
2693,
1473,
326,
1142,
2492,
225,
1220,
1296,
1410,
506,
1399,
598,
7671,
18,
6149,
353,
1338,
1245,
1801,
434,
8006,
16,
471,
1915,
353,
1158,
4031... |
self._console.error("Unable to get image info from file: %s" % imgpath) sys.exit(1) | raise RuntimeError, "Unable to get image info from file: %s" % imgpath | def processCombinedImg(data, meta_fname, cimguri, cimgshorturi, cimgfmt): assert cimgfmt.lib, cimgfmt.type # read meta file mfile = open(meta_fname) imgDict = simplejson.loads(mfile.read()) mfile.close() for mimg, mimgs in imgDict.iteritems(): # sort of like this: mimg : [width, height, type, combinedUri, off-x, off-y]... | f091ad523d23e2495476c80e0939b102b6d54921 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/f091ad523d23e2495476c80e0939b102b6d54921/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
27994,
12804,
12,
892,
16,
2191,
67,
12749,
16,
276,
6081,
1650,
16,
276,
381,
564,
15571,
1650,
16,
276,
6081,
8666,
4672,
1815,
276,
6081,
8666,
18,
2941,
16,
276,
6081,
8666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27994,
12804,
12,
892,
16,
2191,
67,
12749,
16,
276,
6081,
1650,
16,
276,
381,
564,
15571,
1650,
16,
276,
6081,
8666,
4672,
1815,
276,
6081,
8666,
18,
2941,
16,
276,
6081,
8666,
... |
if not styles_built: | if renpy.game.init_phase: | def rebuild(): global style_pending global styles_built if not styles_built: return styles_pending = [ j for i in style_parts.values() for j in i.values() ] styles_built = False for i in styles_pending: i.cache = None build_styles() | 5c7ff1c97bdb9c9269d31606b8443de8f863d095 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10962/5c7ff1c97bdb9c9269d31606b8443de8f863d095/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13419,
13332,
2552,
2154,
67,
9561,
2552,
5687,
67,
12406,
225,
309,
1654,
2074,
18,
13957,
18,
2738,
67,
13961,
30,
327,
225,
5687,
67,
9561,
273,
306,
525,
364,
277,
316,
2154,
67,
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,
13419,
13332,
2552,
2154,
67,
9561,
2552,
5687,
67,
12406,
225,
309,
1654,
2074,
18,
13957,
18,
2738,
67,
13961,
30,
327,
225,
5687,
67,
9561,
273,
306,
525,
364,
277,
316,
2154,
67,
6... |
session.shutdown() | proc.spawn_greenlet(session.shutdown) | def close(self): self.stop_accept_incoming() for session in self.sessions[:]: session.shutdown() self.remove_session(session) | 96e7bf1f2a16cd1dda4f207a657c29b934672074 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/96e7bf1f2a16cd1dda4f207a657c29b934672074/sip_im_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
5681,
67,
9436,
67,
31033,
1435,
364,
1339,
316,
365,
18,
16794,
10531,
14542,
5418,
18,
1752,
9533,
67,
11571,
1810,
12,
3184,
18,
15132,
13,
365,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
5681,
67,
9436,
67,
31033,
1435,
364,
1339,
316,
365,
18,
16794,
10531,
14542,
5418,
18,
1752,
9533,
67,
11571,
1810,
12,
3184,
18,
15132,
13,
365,
18,
4... |
raise wikipedia.Error("APIs seems down. No templates found with them but actually there are templates used in the image's page!") | licenses_TEST = regex_are_licenses.findall(self.imageCheckText) if not self.licenses_found and licenses_TEST: raise wikipedia.Error("APIs seems down. No templates found with them but actually there are templates used in the image's page!") | def smartDetection(self): """ The bot instead of checking if there's a simple template in the image's description, checks also if that template is a license or something else. In this sense this type of check is smart. """ self.seems_ok = False self.license_found = None self.whiteTemplatesFound = False regex_find_licen... | 9e84f94128c1504af0c4f9f6af7c256988a263f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/9e84f94128c1504af0c4f9f6af7c256988a263f2/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13706,
10214,
12,
2890,
4672,
3536,
1021,
2512,
3560,
434,
6728,
309,
1915,
1807,
279,
4143,
1542,
316,
326,
1316,
1807,
2477,
16,
4271,
2546,
309,
716,
1542,
353,
279,
8630,
578,
5943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13706,
10214,
12,
2890,
4672,
3536,
1021,
2512,
3560,
434,
6728,
309,
1915,
1807,
279,
4143,
1542,
316,
326,
1316,
1807,
2477,
16,
4271,
2546,
309,
716,
1542,
353,
279,
8630,
578,
5943,
... |
if self.player is not None: | if self.player_ready(): | def notify_update(self): if self.player is not None: elapsed = self.player.get_elapsed_playback_time() total = self.player.get_total_playback_time() self.emit('playback-did-progress', elapsed, total) | f0d01c479f324391cde98ab8f911b3487a86b526 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/f0d01c479f324391cde98ab8f911b3487a86b526/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
2725,
12,
2890,
4672,
309,
365,
18,
14872,
67,
1672,
13332,
9613,
273,
365,
18,
14872,
18,
588,
67,
26201,
67,
1601,
823,
67,
957,
1435,
2078,
273,
365,
18,
14872,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5066,
67,
2725,
12,
2890,
4672,
309,
365,
18,
14872,
67,
1672,
13332,
9613,
273,
365,
18,
14872,
18,
588,
67,
26201,
67,
1601,
823,
67,
957,
1435,
2078,
273,
365,
18,
14872,
18,
588,
... |
output += write_outcome(res) | output = write_outcome(res) | def perform_switchfmtscore(colID, type, id_1, id_2, ln=cdslang): """Switch the score of id_1 and id_2 in the table type. colID - the current collection id_1/id_2 - the id's to change the score for. type - like "format" """ output = "" fmt_dict = dict(get_def_name('', "format")) res = switch_score(colID, id_1, id_2, ty... | c5d22f234c23761853b08fc69fb580220e8d231e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c5d22f234c23761853b08fc69fb580220e8d231e/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
9610,
8666,
6355,
12,
1293,
734,
16,
618,
16,
612,
67,
21,
16,
612,
67,
22,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
10200,
326,
4462,
434,
612,
67,
21,
471,
612,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
9610,
8666,
6355,
12,
1293,
734,
16,
618,
16,
612,
67,
21,
16,
612,
67,
22,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
10200,
326,
4462,
434,
612,
67,
21,
471,
612,
67,
2... |
file_end = len(t) | file_end = len(t.decode(d.character_encoding)) | def set_dict(self, d): buffer = self.text_view.get_buffer() if d: title_start = 0 t = '%s %s\n' % (d.title, d.version) title_end = title_start + len(t) | 24aa963eef8545d16b7bb923c97b08314a863895 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/24aa963eef8545d16b7bb923c97b08314a863895/dictinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1576,
12,
2890,
16,
302,
4672,
1613,
273,
365,
18,
955,
67,
1945,
18,
588,
67,
4106,
1435,
225,
309,
302,
30,
2077,
67,
1937,
273,
374,
268,
273,
1995,
87,
738,
87,
64,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
1576,
12,
2890,
16,
302,
4672,
1613,
273,
365,
18,
955,
67,
1945,
18,
588,
67,
4106,
1435,
225,
309,
302,
30,
2077,
67,
1937,
273,
374,
268,
273,
1995,
87,
738,
87,
64,
82... |
sage: plot(E, 1, 4, rgbcolor=hue(0.7)) | sage: plot(E, rgbcolor=hue(0.7)) | def _plot_(self, xmin=None, xmax=None, **args): """ Draw a graph of this elliptic curve. | af9b84a112bf2b00ce5877fe9aadd2524c456f25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/af9b84a112bf2b00ce5877fe9aadd2524c456f25/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
67,
12,
2890,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
2826,
1968,
4672,
3536,
10184,
279,
2667,
434,
333,
415,
549,
21507,
8882,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
4032,
67,
12,
2890,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
2826,
1968,
4672,
3536,
10184,
279,
2667,
434,
333,
415,
549,
21507,
8882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-... |
self.repos = [] | self.resolvers = [] | def runCommand(self): for repo in self.repos: del repo self.repos = [] if len(self.erase_list) > 0: self.config.printInfo(0, "Warning: Following packages will be automatically removed:\n") for pkg in self.erase_list: self.config.printInfo(0, "\t%s\n" % pkg.getNEVRA()) if self.confirm: choice = raw_input("Is this ok [y/... | 279d36aa25c592d76d29f036d6cdc32a8b9bf535 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/279d36aa25c592d76d29f036d6cdc32a8b9bf535/yum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31933,
12,
2890,
4672,
364,
3538,
316,
365,
18,
15564,
30,
1464,
3538,
365,
18,
7818,
2496,
273,
5378,
309,
562,
12,
2890,
18,
264,
448,
67,
1098,
13,
405,
374,
30,
365,
18,
1425,
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,
31933,
12,
2890,
4672,
364,
3538,
316,
365,
18,
15564,
30,
1464,
3538,
365,
18,
7818,
2496,
273,
5378,
309,
562,
12,
2890,
18,
264,
448,
67,
1098,
13,
405,
374,
30,
365,
18,
1425,
18... |
metavar=" IMG",help="summary plot file name" | metavar=" IMG",help="summary plot file name") | def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile,imgFile,page): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-r... | 2777fa11ff2b663565d2e7ea7027336106a2f2ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/2777fa11ff2b663565d2e7ea7027336106a2f2ae/plotsnrchisq_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
812,
16,
6081,
812,
16,
2433,
4672,
225,
3597,
85,
7614,
273,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
812,
16,
6081,
812,
16,
2433,
4672,
225,
3597,
85,
7614,
273,
374... |
dc.DrawLineXY(*coords) | dc.DrawLine(*coords) | def OnMotion(self, event): if event.Dragging() and not self.mode == "Drag": dc = wx.ClientDC(self) dc.BeginDrawing() dc.SetPen(wx.Pen(wx.BLUE, 3)) coords = ((self.x, self.y), event.GetPosition()) self.curLine.append(coords) dc.DrawLineXY(*coords) self.x, self.y = event.GetPositionTuple() dc.EndDrawing() | 0dfb2393ddd200cb698351dbd44590898590d8c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0dfb2393ddd200cb698351dbd44590898590d8c1/CustomDragAndDrop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
29360,
12,
2890,
16,
871,
4672,
309,
871,
18,
11728,
1998,
1435,
471,
486,
365,
18,
3188,
422,
315,
11728,
6877,
6744,
273,
7075,
18,
1227,
5528,
12,
2890,
13,
6744,
18,
8149,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
29360,
12,
2890,
16,
871,
4672,
309,
871,
18,
11728,
1998,
1435,
471,
486,
365,
18,
3188,
422,
315,
11728,
6877,
6744,
273,
7075,
18,
1227,
5528,
12,
2890,
13,
6744,
18,
8149,
26... |
self.reads = pipe.read self.writes = pipe.write | try: self.reads = pipe.read self.writes = pipe.write except AttributeError: self.reads = pipe.recv self.writes = pipe.send | def __init__(self, pipe, leash=None): fd = self._fd = pipe.fileno() if leash: self.__leash = leash # fd source object, leashed here to stop gc self._poll_in, self._poll_out = epoll(), epoll() self._poll_in.register(fd, EPOLLIN | EPOLLERR | EPOLLHUP) self._poll_out.register(fd, EPOLLOUT | EPOLLERR | EPOLLHUP) self.close... | 487542494589ee4f4c27b3e6eed87e04a39a5c58 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11594/487542494589ee4f4c27b3e6eed87e04a39a5c58/aexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6010,
16,
884,
961,
33,
7036,
4672,
5194,
273,
365,
6315,
8313,
273,
6010,
18,
7540,
5764,
1435,
309,
884,
961,
30,
365,
16186,
298,
961,
273,
884,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6010,
16,
884,
961,
33,
7036,
4672,
5194,
273,
365,
6315,
8313,
273,
6010,
18,
7540,
5764,
1435,
309,
884,
961,
30,
365,
16186,
298,
961,
273,
884,
961,
... |
notes = "detail counts class/type methods and attrs") | descr = "types/classes", granddescr = "of all types/classes methods+attrs" ) | def cls_delta_rep(): reps = cls_delta_cache.values() cls_rep = Report('Types/Classes', fname="types-index", notes = "detail counts class/type methods and attrs") def navig(): return html.p(mods_report.link(None), "|",html.span('Types/Classes',**{'class': 'title'})) cls_rep.navig = navig reps.sort(lambda rep1,rep2: ... | ff0d2b538803dd460f5457f2817d7dd8bbd96981 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ff0d2b538803dd460f5457f2817d7dd8bbd96981/delta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2028,
67,
9878,
67,
14462,
13332,
283,
1121,
273,
2028,
67,
9878,
67,
2493,
18,
2372,
1435,
2028,
67,
14462,
273,
8706,
2668,
2016,
19,
4818,
2187,
5299,
1546,
2352,
17,
1615,
3113,
1842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2028,
67,
9878,
67,
14462,
13332,
283,
1121,
273,
2028,
67,
9878,
67,
2493,
18,
2372,
1435,
2028,
67,
14462,
273,
8706,
2668,
2016,
19,
4818,
2187,
5299,
1546,
2352,
17,
1615,
3113,
1842... |
messageName = "%10.10d" % time.time() | messageName = "%10.10d" % long(time.time()) | def onRetr(self, command, args, response): """Adds the judgement header based on the raw headers and body of the message.""" # Use '\n\r?\n' to detect the end of the headers in case of # broken emails that don't use the proper line separators. if re.search(r'\n\r?\n', response): # Break off the first line, which will b... | b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7055,
86,
12,
2890,
16,
1296,
16,
833,
16,
766,
4672,
3536,
3655,
326,
525,
1100,
75,
820,
1446,
2511,
603,
326,
1831,
1607,
471,
1417,
434,
326,
883,
12123,
468,
2672,
2337,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7055,
86,
12,
2890,
16,
1296,
16,
833,
16,
766,
4672,
3536,
3655,
326,
525,
1100,
75,
820,
1446,
2511,
603,
326,
1831,
1607,
471,
1417,
434,
326,
883,
12123,
468,
2672,
2337,
82,
... |
print self.W[:,:self.rank].shape, Numeric.transpose(self.V/self.S).shape | def __init__(self, internal_coordinates, molecule, job): JacobianAnalysis.__init__(self, internal_coordinates, molecule) self.job = job self.energy = job.energy self.energy_error = job.energy_accuracy | c4644ee677cd884f0d782be832b7878b32785285 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/c4644ee677cd884f0d782be832b7878b32785285/jacobian.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2713,
67,
16941,
16,
13661,
16,
1719,
4672,
804,
1077,
26968,
9418,
16186,
2738,
972,
12,
2890,
16,
2713,
67,
16941,
16,
13661,
13,
365,
18,
4688,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2713,
67,
16941,
16,
13661,
16,
1719,
4672,
804,
1077,
26968,
9418,
16186,
2738,
972,
12,
2890,
16,
2713,
67,
16941,
16,
13661,
13,
365,
18,
4688,
273,
1... | |
(abb.ababb.aababb.a) | (abb, ababb, aababb, a) | def lyndon_factorization(self): r""" Returns the Lyndon factorization of self. The *Lyndon factorization* of a finite word `w` is the unique factorization of `w` as a non-increasing product of Lyndon words, i.e., `w = l_1\cdots l_n` where each `l_i` is a Lyndon word and `l_1\geq \cdots \geq l_n`. See for instance [1].... | b0ba0fe22bb130cc7503f5abe181d318f232b48e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b0ba0fe22bb130cc7503f5abe181d318f232b48e/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
... |
return reverse('core:external_image', args=[self.slug]) | return reverse('external_media:image', args=[self.slug]) | def get_absolute_url(self): return reverse('core:external_image', args=[self.slug]) | 807cb99301c28c8863da5670b660e9ce2ea701a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/807cb99301c28c8863da5670b660e9ce2ea701a0/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
4219,
2668,
3644,
30,
9375,
67,
2730,
2187,
833,
22850,
2890,
18,
6436,
5717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
4219,
2668,
3644,
30,
9375,
67,
2730,
2187,
833,
22850,
2890,
18,
6436,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return (os.path.join(d,'__dummy.f'),os.path.join(d,'__dummy.o')) | return (dummy_name+'.f',dummy_name+'.o') | def dummy_fortran_files(self): import tempfile d = tempfile.gettempdir() dummy_name = os.path.join(d,'__dummy.f') dummy = open(dummy_name,'w') dummy.write(" subroutine dummy()\n end\n") dummy.close() return (os.path.join(d,'__dummy.f'),os.path.join(d,'__dummy.o')) | 18f6cc54d9a0fe3dd53474858e6dc2fcefb0e657 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/18f6cc54d9a0fe3dd53474858e6dc2fcefb0e657/build_flib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9609,
67,
1884,
13171,
67,
2354,
12,
2890,
4672,
1930,
13275,
302,
273,
13275,
18,
588,
5814,
1214,
1435,
9609,
67,
529,
273,
1140,
18,
803,
18,
5701,
12,
72,
11189,
972,
21050,
18,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9609,
67,
1884,
13171,
67,
2354,
12,
2890,
4672,
1930,
13275,
302,
273,
13275,
18,
588,
5814,
1214,
1435,
9609,
67,
529,
273,
1140,
18,
803,
18,
5701,
12,
72,
11189,
972,
21050,
18,
74... |
key = m.group(2) ele = parser.getContentHandler().dev.interrupts[key] if 1: if len(ele.description.data) > 0: newh.write("/* " + ele.description.data + " */\n") newh.write(" create_tabs(ele.sig_name.data) + "_VECTOR(" + key + ")\n") for x in ele.alt_name.data: newh.write(" create_tabs(x) + "_VECTOR(" + key + ")\n\n") ... | if firstidx == 0: firstidx = idx key = m.group(4) ele = parseddev.interrupts[key] lastidx = idx if idx > 0 and lines[idx - 1].find(ele.description.data) >= 0: if idx - 1 < firstidx: firstidx = idx - 1 if re.match('^$', lines[idx + 1]): lastidx = idx + 1 del lines[firstidx:lastidx] keys = parseddev.interrupts.k... | def create_tabs (string): "Create a number of tabs according to the length of string" x = '' lim = (32 - len(string) + 7) / 8 if lim <= 0: lim = 1 for i in range(0, lim): x += "\t" return x | ed449a906113028b067d078325c31da4f4598e79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4046/ed449a906113028b067d078325c31da4f4598e79/patch-headers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
16056,
261,
1080,
4672,
315,
1684,
279,
1300,
434,
10920,
4888,
358,
326,
769,
434,
533,
6,
619,
273,
875,
20167,
273,
261,
1578,
300,
562,
12,
1080,
13,
397,
2371,
13,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
16056,
261,
1080,
4672,
315,
1684,
279,
1300,
434,
10920,
4888,
358,
326,
769,
434,
533,
6,
619,
273,
875,
20167,
273,
261,
1578,
300,
562,
12,
1080,
13,
397,
2371,
13,
342,
... |
'[0123456789]*', cacheSize=20) | '[0123456789\-]*', cacheSize=20) | def ensureDir(dirname): try: os.mkdir(dirname) except OSError, e: if e.errno != errno.EEXIST: raise | 315dc912110106db01c29f6360e4f6c6e66103e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/315dc912110106db01c29f6360e4f6c6e66103e9/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
1621,
12,
12287,
4672,
775,
30,
1140,
18,
26686,
12,
12287,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
1621,
12,
12287,
4672,
775,
30,
1140,
18,
26686,
12,
12287,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
2,
-100,
-100,
-100,
-100,
-100... |
def hex_str(self, M, type="matrix"): | def hex_str(self, M, typ="matrix"): | def hex_str(self, M, type="matrix"): r""" Return a hex string for the provided AES state array/matrix. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
12,
2890,
16,
490,
16,
3815,
1546,
5667,
6,
4672,
436,
8395,
2000,
279,
3827,
533,
364,
326,
2112,
15986,
919,
526,
19,
5667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
12,
2890,
16,
490,
16,
3815,
1546,
5667,
6,
4672,
436,
8395,
2000,
279,
3827,
533,
364,
326,
2112,
15986,
919,
526,
19,
5667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.write(data[self.bufsize-buflen:]) | self.write(data[slice:]) | def write(self, data): buflen = len(self.buf) datalen = len(data) if datalen + buflen < self.bufsize: self.buf += data elif buflen: self.buf += data[:self.bufsize-buflen] self.do_write(self.buf) self.buf = "" self.write(data[self.bufsize-buflen:]) else: self.do_write(data) | dab135b47519f140658f56b0ba7f3535d7ba710e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/dab135b47519f140658f56b0ba7f3535d7ba710e/streamio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
1681,
1897,
273,
562,
12,
2890,
18,
4385,
13,
18462,
275,
273,
562,
12,
892,
13,
309,
18462,
275,
397,
1681,
1897,
411,
365,
18,
4385,
1467,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
1681,
1897,
273,
562,
12,
2890,
18,
4385,
13,
18462,
275,
273,
562,
12,
892,
13,
309,
18462,
275,
397,
1681,
1897,
411,
365,
18,
4385,
1467,
30,
365,
1... |
self.aoresults[spin][i] = Numeric.divide(tempcoeffs, scale) | tempvec = tempcoeffs/scale self.aoresults[spin][i] = Numeric.divide(tempcoeffs, scale).astype("f") | def calculate(self, indices=None, fupdate=0.05): """Perform a C^2 population analysis given the results of a parser""" if not self.parser.parsed: self.parser.parse() | fe020ebac18a2890eeaee68afbbc5eec07f21575 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/fe020ebac18a2890eeaee68afbbc5eec07f21575/cspa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
12,
2890,
16,
4295,
33,
7036,
16,
284,
2725,
33,
20,
18,
6260,
4672,
3536,
4990,
279,
385,
66,
22,
11209,
6285,
864,
326,
1686,
434,
279,
2082,
8395,
225,
309,
486,
365,
18,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
12,
2890,
16,
4295,
33,
7036,
16,
284,
2725,
33,
20,
18,
6260,
4672,
3536,
4990,
279,
385,
66,
22,
11209,
6285,
864,
326,
1686,
434,
279,
2082,
8395,
225,
309,
486,
365,
18,
42... |
if (suffix==".obj"): wobj.append("built/tmp/"+x[:-4]+".o") elif (suffix==".dll"): wobj.append("built/lib/"+x[:-4]+".so") elif (suffix==".lib"): wobj.append("built/lib/"+x[:-4]+".a") | if (suffix==".obj"): wobj.append(PREFIX+"/tmp/"+x[:-4]+".o") elif (suffix==".dll"): wobj.append(PREFIX+"/lib/"+x[:-4]+".so") elif (suffix==".lib"): wobj.append(PREFIX+"/lib/"+x[:-4]+".a") | def CompileLink(dll=0, obj=[], opts=[], xdep=[]): if (dll==0): sys.exit("Syntax error in CompileLink directive"); if (COMPILER=="MSVC7"): ALLTARGETS.append("built/bin/"+dll) dll = "built/bin/"+dll lib = "built/lib/"+dll[:-4]+".lib" wobj = [] for x in obj: suffix = x[-4:] if (suffix==".obj"): wobj.append("built/tmp/"... | aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
2098,
12,
27670,
33,
20,
16,
1081,
22850,
6487,
1500,
22850,
6487,
619,
15037,
33,
8526,
4672,
309,
261,
27670,
631,
20,
4672,
2589,
18,
8593,
2932,
8070,
555,
316,
16143,
2098,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
2098,
12,
27670,
33,
20,
16,
1081,
22850,
6487,
1500,
22850,
6487,
619,
15037,
33,
8526,
4672,
309,
261,
27670,
631,
20,
4672,
2589,
18,
8593,
2932,
8070,
555,
316,
16143,
2098,
8... |
ids_dept = obj_dept.search(cr, uid, [('member_ids', 'in', [user_id])], context=context) | emp_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', user_id)]) cr.execute('SELECT emp.department_id FROM hr_employee AS emp JOIN resource_resource AS res ON res.id = emp.resource_id \ WHERE res.user_id = %s AND emp.department_id IS NOT NULL', (user_id,)) ids_dept = [x[0] for x in cr.fetchall()] | def _parent_compute(self, cr, uid, ids, name, args, context=None): if context is None: context = {} result = {} obj_dept = self.pool.get('hr.department') for user_id in ids: ids_dept = obj_dept.search(cr, uid, [('member_ids', 'in', [user_id])], context=context) parent_ids = [] if ids_dept: data_dept = obj_dept.read(cr,... | 096ec13381cfb6869abdf9d9e6d69469c89d8678 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/096ec13381cfb6869abdf9d9e6d69469c89d8678/hr_department.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2938,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
563,
273,
2618,
1081,
67,
323,
337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
67,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
563,
273,
2618,
1081,
67,
323,
337,
... |
'--scriptFile=%s' % item ] | '--scriptFile=%s' % item, ] | def runScriptPerfTests(options, testlist, largeData=False, repeat=1, logger=log): """ Run script performance tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runScriptPerfTests(options, ['foobar']) /.../release/RunChandler --catch=tests --profileD... | 134ce2a6ff32b988db479ade6fcf70a08aac23f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/134ce2a6ff32b988db479ade6fcf70a08aac23f5/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
22016,
14650,
12,
2116,
16,
1842,
1098,
16,
7876,
751,
33,
8381,
16,
7666,
33,
21,
16,
1194,
33,
1330,
4672,
3536,
1939,
2728,
9239,
7434,
18,
225,
4080,
702,
273,
1109,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
22016,
14650,
12,
2116,
16,
1842,
1098,
16,
7876,
751,
33,
8381,
16,
7666,
33,
21,
16,
1194,
33,
1330,
4672,
3536,
1939,
2728,
9239,
7434,
18,
225,
4080,
702,
273,
1109,
13... |
str += ' <dd>' str += self._dom_to_html(var.descr(), container)+'<br>\n' | str += self._dom_to_html(var.descr(), container) | def _var_details(self, variables, container, heading='Variable Details'): """ @return: The HTML code for a variable details table. This is used by L{_module_to_html} to describe the variables in a module; and by L{_class_to_html} to describe instance variables and class variables. @rtype: C{string} """ variables = sel... | 280983880ff5a8346a938beda9b5acec8aff5049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/280983880ff5a8346a938beda9b5acec8aff5049/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
1014,
18,
225,
1220,
353,
1399,
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,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
1014,
18,
225,
1220,
353,
1399,
6... |
sage: from sage.server.notebook.user import User sage: user = User('bob', 'Aisfa!!', 'bob@pizzaisyummy.net', 'admin') sage: user.get_email() 'bob@pizzaisyummy.net' sage: user.set_email('bob@ilovepizza.gov') sage: user.get_email() 'bob@ilovepizza.gov' | EXAMPLES: sage: from sage.server.notebook.user import User sage: user = User('bob', 'Aisfa!!', 'bob@sagemath.net', 'admin') sage: user.get_email() 'bob@sagemath.net' sage: user.set_email('bob@gmail.gov') sage: user.get_email() 'bob@gmail.gov' | def set_email(self, email): """ sage: from sage.server.notebook.user import User sage: user = User('bob', 'Aisfa!!', 'bob@pizzaisyummy.net', 'admin') sage: user.get_email() 'bob@pizzaisyummy.net' sage: user.set_email('bob@ilovepizza.gov') sage: user.get_email() 'bob@ilovepizza.gov' """ self.__email = email | 9a525f672123ece3b2c48fd0c7a816b2c7b90e97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9a525f672123ece3b2c48fd0c7a816b2c7b90e97/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3652,
12,
2890,
16,
2699,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
3567,
18,
24422,
18,
1355,
1930,
2177,
272,
410,
30,
729,
273,
2177,
2668,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
3652,
12,
2890,
16,
2699,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
3567,
18,
24422,
18,
1355,
1930,
2177,
272,
410,
30,
729,
273,
2177,
2668,
70,
... |
return self.cu_search_catalog([NAAYAGLOSSARY_ELEMENT_METATYPE], names) | return [brain.id for brain in self.cu_get_codes_by_name([NAAYAGLOSSARY_ELEMENT_METATYPE], names)] | def getObjectCodes(self, names=[], REQUEST=None): """ get object codes """ return self.cu_search_catalog([NAAYAGLOSSARY_ELEMENT_METATYPE], names) | af6a2913bf110de9aab2128048ceefa215122f26 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/af6a2913bf110de9aab2128048ceefa215122f26/NyGlossary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6455,
6295,
12,
2890,
16,
1257,
22850,
6487,
12492,
33,
7036,
4672,
3536,
336,
733,
6198,
3536,
327,
365,
18,
6319,
67,
3072,
67,
7199,
3816,
11277,
5255,
1781,
1502,
1260,
6043,
67,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6455,
6295,
12,
2890,
16,
1257,
22850,
6487,
12492,
33,
7036,
4672,
3536,
336,
733,
6198,
3536,
327,
365,
18,
6319,
67,
3072,
67,
7199,
3816,
11277,
5255,
1781,
1502,
1260,
6043,
67,
109... |
def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True, cluster2=False): | def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True): | def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True, cluster2=False): """Create and return a cluster ready for use""" cluster = Cluster(self, count, args, expect=expect, wait=wait, cluster2=cluster2) return cluster | c74103f6c4dcedbe7807c70b819b1eea2a59bdcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/c74103f6c4dcedbe7807c70b819b1eea2a59bdcb/brokertest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2855,
12,
2890,
16,
1056,
33,
20,
16,
833,
22850,
6487,
4489,
33,
2294,
1423,
1268,
67,
29358,
16,
2529,
33,
5510,
4672,
3536,
1684,
471,
327,
279,
2855,
5695,
364,
999,
8395,
2855,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2855,
12,
2890,
16,
1056,
33,
20,
16,
833,
22850,
6487,
4489,
33,
2294,
1423,
1268,
67,
29358,
16,
2529,
33,
5510,
4672,
3536,
1684,
471,
327,
279,
2855,
5695,
364,
999,
8395,
2855,
27... |
PsynthLabelString = 'Psynth: %+.3f' % self.dicts[self.stPt]['Pres'] | PsynthLabelString = 'Psynth: %+.3fs' % self.dicts[self.stPt]['Pres'] | def drawPsynthLabel(self): if not self.dicts[self.stPt].has_key('Psynth'): return PsynthLabelString = 'Psynth: %+.3f' % self.dicts[self.stPt]['Pres'] self.PsynthLabel = self.axs[0].text(self.dicts[self.stPt]['Psynth'], 1 - 0.08 * len(self.axs), ' ' + PsynthLabelString, transform = self.trans[0], color=self.dictPhaseCo... | 89f13f20f9e5ad98546f716ab5fb05ecf3e10095 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/89f13f20f9e5ad98546f716ab5fb05ecf3e10095/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
52,
11982,
451,
2224,
12,
2890,
4672,
309,
486,
365,
18,
16287,
63,
2890,
18,
334,
16484,
8009,
5332,
67,
856,
2668,
52,
11982,
451,
11,
4672,
327,
453,
11982,
451,
2224,
780,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
52,
11982,
451,
2224,
12,
2890,
4672,
309,
486,
365,
18,
16287,
63,
2890,
18,
334,
16484,
8009,
5332,
67,
856,
2668,
52,
11982,
451,
11,
4672,
327,
453,
11982,
451,
2224,
780,
27... |
if dleft == -1: | elif dleft == -1: | def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s... | 53eda69a273ff961302db254e02309f04cc11291 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/53eda69a273ff961302db254e02309f04cc11291/tasktree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
588,
67,
1132,
12,
2890,
16,
1027,
1734,
16,
1057,
4672,
756,
273,
365,
18,
3413,
18,
588,
67,
2159,
67,
1884,
67,
492,
1734,
12,
492,
1734,
13,
309,
486,
756,
30,
327,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
588,
67,
1132,
12,
2890,
16,
1027,
1734,
16,
1057,
4672,
756,
273,
365,
18,
3413,
18,
588,
67,
2159,
67,
1884,
67,
492,
1734,
12,
492,
1734,
13,
309,
486,
756,
30,
327,
59... |
F.write(line) | F.write(line+'\n') | def _eval_line_using_file(self, line, tmp): F = open(tmp, 'w') F.write(line) F.close() s = self._eval_line(self._read_in_file_command(tmp), allow_use_file=False) return self._post_process_from_file(s) | 3fff99a3b536c6ef8afb0e403e3376bd622c8c9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/3fff99a3b536c6ef8afb0e403e3376bd622c8c9d/expect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
67,
1369,
67,
9940,
67,
768,
12,
2890,
16,
980,
16,
1853,
4672,
478,
273,
1696,
12,
5645,
16,
296,
91,
6134,
478,
18,
2626,
12,
1369,
6797,
64,
82,
6134,
478,
18,
4412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8622,
67,
1369,
67,
9940,
67,
768,
12,
2890,
16,
980,
16,
1853,
4672,
478,
273,
1696,
12,
5645,
16,
296,
91,
6134,
478,
18,
2626,
12,
1369,
6797,
64,
82,
6134,
478,
18,
4412,
... |
print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url) | pass if text: return ':doc:`%s <%s>`' % (text,url) else: return ':doc:`%s`' % url def convertToRst_I(s,l,t): import random i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() if url.startswith("http://"): pass elif url.find(ns12)>-1: url = internalLink(url) ur... | def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url) | 11b85c52f7ad6cdd11fa20b560124b5af4df648c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/11b85c52f7ad6cdd11fa20b560124b5af4df648c/wiki2rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
54,
334,
67,
37,
12,
87,
16,
80,
16,
88,
4672,
775,
30,
880,
16,
955,
33,
88,
63,
20,
8009,
4939,
2932,
96,
7923,
1335,
2068,
30,
468,
11628,
2884,
19593,
503,
12,
87,
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,
8137,
54,
334,
67,
37,
12,
87,
16,
80,
16,
88,
4672,
775,
30,
880,
16,
955,
33,
88,
63,
20,
8009,
4939,
2932,
96,
7923,
1335,
2068,
30,
468,
11628,
2884,
19593,
503,
12,
87,
16,
... |
choose_dialog.set_has_separator(False) choose_dialog.set_default(choosebutton) choose_dialog.set_resizable(False) | self.choose_dialog.set_has_separator(False) self.choose_dialog.set_default(choosebutton) self.choose_dialog.set_resizable(False) | def on_choose_image(self, widget): if self.remote_from_infowindow: choose_dialog = gtk.Dialog(_("Choose Cover Art"), self.infowindow, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) else: choose_dialog = gtk.Dialog(_("Choose Cover Art"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT))... | cae3642a8c6d4c5471174bbb1562b9f599b2c3fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/cae3642a8c6d4c5471174bbb1562b9f599b2c3fb/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
25777,
67,
2730,
12,
2890,
16,
3604,
4672,
309,
365,
18,
7222,
67,
2080,
67,
10625,
543,
1700,
30,
9876,
67,
12730,
273,
22718,
18,
6353,
24899,
2932,
24529,
23293,
9042,
6,
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,
603,
67,
25777,
67,
2730,
12,
2890,
16,
3604,
4672,
309,
365,
18,
7222,
67,
2080,
67,
10625,
543,
1700,
30,
9876,
67,
12730,
273,
22718,
18,
6353,
24899,
2932,
24529,
23293,
9042,
6,
3... |
self.add_module(self._module_entry.get()) | modules = [self._module_entry.get()] if glob.has_magic(modules[0]): modules = glob.glob(modules[0]) for name in modules: self.add_module(name, check=1) | def _entry_module(self, *e): self.add_module(self._module_entry.get()) self._module_entry.delete(0, 'end') | 19275515c1011eb2ed1be810d73cf19c849a3b63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/19275515c1011eb2ed1be810d73cf19c849a3b63/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4099,
67,
2978,
12,
2890,
16,
380,
73,
4672,
4381,
273,
306,
2890,
6315,
2978,
67,
4099,
18,
588,
1435,
65,
309,
4715,
18,
5332,
67,
11179,
12,
6400,
63,
20,
65,
4672,
4381,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4099,
67,
2978,
12,
2890,
16,
380,
73,
4672,
4381,
273,
306,
2890,
6315,
2978,
67,
4099,
18,
588,
1435,
65,
309,
4715,
18,
5332,
67,
11179,
12,
6400,
63,
20,
65,
4672,
4381,
273... |
subject = email_form['subject'].value | subject = email_form['subject'].value | def post(self, *args): " Webpy method receives inputs from uri " errors = [] email_form = self.email_form() if email_form.validates(): product = email_form['product'].value versions = tuple([x.strip() for x in email_form['versions'].value.split(',')]) signature = email_form['signature'].value subject = email_f... | f649f21c359868e44df4971d63fa6fb48b7bbd49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/f649f21c359868e44df4971d63fa6fb48b7bbd49/emailCampaignCreate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
16,
380,
1968,
4672,
315,
2999,
2074,
707,
17024,
4540,
628,
2003,
315,
1334,
273,
5378,
2699,
67,
687,
273,
365,
18,
3652,
67,
687,
1435,
309,
2699,
67,
687,
18,
877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
12,
2890,
16,
380,
1968,
4672,
315,
2999,
2074,
707,
17024,
4540,
628,
2003,
315,
1334,
273,
5378,
2699,
67,
687,
273,
365,
18,
3652,
67,
687,
1435,
309,
2699,
67,
687,
18,
877,
... |
pos = max(0, min(self.selected_pos-1, len(self.choices)-1)) self.select(self.choices[pos]) | if self.choices: pos = max(0, min(self.selected_pos-1, len(self.choices)-1)) self.select(self.choices[pos]) else: self.select(None) | def set_items(self, items, refresh=True): """ Set/replace the items in this menu. If refresh is True, the menu stack will be refreshed and redrawn. """ # delete ref to menu for old choices for c in self.choices: c.menu = None | b7b18a600de1f5f5dd6f1af73cd1ce92ecab92ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/b7b18a600de1f5f5dd6f1af73cd1ce92ecab92ae/menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3319,
12,
2890,
16,
1516,
16,
4460,
33,
5510,
4672,
3536,
1000,
19,
2079,
326,
1516,
316,
333,
3824,
18,
971,
4460,
353,
1053,
16,
326,
3824,
2110,
903,
506,
27880,
471,
16540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
3319,
12,
2890,
16,
1516,
16,
4460,
33,
5510,
4672,
3536,
1000,
19,
2079,
326,
1516,
316,
333,
3824,
18,
971,
4460,
353,
1053,
16,
326,
3824,
2110,
903,
506,
27880,
471,
16540... |
setattr(TestCase, "test_%s_%d_%s" % (testName,index+1,treeName), | testFunc.__name__ = "test_%s_%d_%s" % (testName,index+1,treeName) setattr(TestCase, testFunc.__name__, | def testFunc(self, innerHTML=innerHTML, input=input, expected=expected, errors=errors, treeCls=treeCls): return self.runParserTest(innerHTML, input, expected, errors, treeCls) | d5aaaacca5fd0c25879de76c700b81edc0e1b8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/d5aaaacca5fd0c25879de76c700b81edc0e1b8b7/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2622,
12,
2890,
16,
14129,
33,
7872,
4870,
16,
810,
33,
2630,
16,
2665,
33,
3825,
16,
1334,
33,
4324,
16,
2151,
20822,
33,
3413,
20822,
4672,
327,
365,
18,
2681,
2678,
4709,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2622,
12,
2890,
16,
14129,
33,
7872,
4870,
16,
810,
33,
2630,
16,
2665,
33,
3825,
16,
1334,
33,
4324,
16,
2151,
20822,
33,
3413,
20822,
4672,
327,
365,
18,
2681,
2678,
4709,
12,
... |
(_("All Files"), '*.*')) | (_("All Files"), '*')) | def convertForKdialog(filetypes): '''This function converts filetypes tuple into string in kdialog format ''' result='' for filetype in filetypes: descr=filetype[0] extentions=filetype[1] for extention in extentions: result+=extention+' ' result+='|'+descr+' \n' return result | d31737597fbb730493701692500d5ead9854f190 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/d31737597fbb730493701692500d5ead9854f190/dialogmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
1290,
47,
12730,
12,
7540,
15180,
4672,
9163,
2503,
445,
7759,
661,
15180,
3193,
1368,
533,
316,
417,
12730,
740,
9163,
563,
2218,
11,
364,
18902,
316,
661,
15180,
30,
18426,
33,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
1290,
47,
12730,
12,
7540,
15180,
4672,
9163,
2503,
445,
7759,
661,
15180,
3193,
1368,
533,
316,
417,
12730,
740,
9163,
563,
2218,
11,
364,
18902,
316,
661,
15180,
30,
18426,
33,
7... |
'labeled_adjacency_matrix' -- a square SAGE matrix M, with M[i][j] equal to the label of the single edge \{i,j\} | 'weighted_adjacency_matrix' -- a square SAGE matrix M, with M[i][j] equal to the weight of the single edge \{i,j\} | def show(self, pos=None, layout=None, vertex_labels=True,\ edge_labels=False, vertex_size=200, graph_border=False,\ vertex_colors=None, edge_colors=None, partition=None,\ scaling_term=0.05, talk=False, iterations=50,\ color_by_label=False, heights=None, **kwds): """ Shows the (di)graph. | 928e3f8dd0a83c7962a3f00f910838348623d97d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/928e3f8dd0a83c7962a3f00f910838348623d97d/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
17211,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
1721... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
17211,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
1721... |
self["list"].handleKey(config.key["nextElement"]) | self["list"].handleKey(KEY_RIGHT) | def right(self): self["list"].handleKey(config.key["nextElement"]) | 51b1571e9e31d9f7ab1055f562a397a9bfa427ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/51b1571e9e31d9f7ab1055f562a397a9bfa427ab/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2145,
12,
2890,
4672,
365,
9614,
1098,
6,
8009,
4110,
653,
12,
1425,
18,
856,
9614,
4285,
1046,
6,
5717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2145,
12,
2890,
4672,
365,
9614,
1098,
6,
8009,
4110,
653,
12,
1425,
18,
856,
9614,
4285,
1046,
6,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.UIManager.get_widget('/Popup').popup(None, None, None, event.button, event.time) return True def button_released(self, widget, event): | self.UIManager.get_widget('/Popup').popup(None, None, None, event.button, event.time) return True def button_released(self, widget, event): | def button_pressed(self, widget, event): if self.image_loaded == True: # Changes the cursor to the 'resize' cursor, like GIMP, on a middle click: | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
10906,
12,
2890,
16,
3604,
16,
871,
4672,
309,
365,
18,
2730,
67,
4230,
422,
1053,
30,
468,
17776,
326,
3347,
358,
326,
296,
15169,
11,
3347,
16,
3007,
611,
9883,
16,
603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3568,
67,
10906,
12,
2890,
16,
3604,
16,
871,
4672,
309,
365,
18,
2730,
67,
4230,
422,
1053,
30,
468,
17776,
326,
3347,
358,
326,
296,
15169,
11,
3347,
16,
3007,
611,
9883,
16,
603,
... |
self.vbox.set_spacing(12) | self.vbox.set_spacing(6) | def __init__(self, parent, files): gtk.Dialog.__init__(self, _("Deleting files"), parent) self.set_border_width(6) self.vbox.set_spacing(12) self.action_area.set_border_width(0) self.set_resizable(False) # This is the GNOME trash can for at least some versions. # The FreeDesktop spec is complicated and I'm not sure it'... | 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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1390,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
389,
2932,
20433,
1390,
6,
3631,
982,
13,
365,
18,
542,
67,
8815,
67,
2819,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1390,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
389,
2932,
20433,
1390,
6,
3631,
982,
13,
365,
18,
542,
67,
8815,
67,
2819,
12,
2... |
debug(" bad port %s (not numeric)", p) | _debug(" bad port %s (not numeric)", p) | def set_ok_port(self, cookie, request): if cookie.port_specified: req_port = request_port(request) if req_port is None: req_port = "80" else: req_port = str(req_port) for p in cookie.port.split(","): try: int(p) except ValueError: debug(" bad port %s (not numeric)", p) return False if p == req_port: break else: debug... | 7fde00696ae6c872310a407df8b8923ab907f247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7fde00696ae6c872310a407df8b8923ab907f247/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
655,
12,
2890,
16,
3878,
16,
590,
4672,
309,
3878,
18,
655,
67,
13827,
30,
1111,
67,
655,
273,
590,
67,
655,
12,
2293,
13,
309,
1111,
67,
655,
353,
599,
30,
1111,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
601,
67,
655,
12,
2890,
16,
3878,
16,
590,
4672,
309,
3878,
18,
655,
67,
13827,
30,
1111,
67,
655,
273,
590,
67,
655,
12,
2293,
13,
309,
1111,
67,
655,
353,
599,
30,
1111,... |
r"""kukit.kssp.string=kukit.tk.mkParser('string',{"'": 'this.emitAndReturn(new kukit.kssp.quote(this.src))',"\\":'new kukit.kssp.backslashed(this.src, kukit.kssp.backslash)'});kukit.kssp.string.prototype.process=function(){this.txt='';for(var i=1;i<this.result.length-1;i++){this.txt+=this.result[i].txt}};kukit.kssp.str... | r"""kukit.kssp.string=kukit.tk.mkParser('string',{"'":'this.emitAndReturn(new kukit.kssp.quote(this.src))',"\\":'new kukit.kssp.backslashed(this.src, kukit.kssp.backslash)'});kukit.kssp.string.prototype.process=function(){this.txt='';for(var i=1;i<this.result.length-1;i++){this.txt+=this.result[i].txt}};kukit.kssp.stri... | def css_packer_callback(option, opt_str, value, parser, *args, **kwargs): if parser.values.javascript: raise OptionValueError("only one packer can be used at once") parser.values.css = True | 0c3187017d6fd4d06e3c98232d540c58c26108cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12274/0c3187017d6fd4d06e3c98232d540c58c26108cd/packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
67,
2920,
264,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
2082,
18,
2372,
18,
11242,
30,
1002,
2698,
23610,
2932,
3700,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
67,
2920,
264,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
2082,
18,
2372,
18,
11242,
30,
1002,
2698,
23610,
2932,
3700,
... |
print 'Unregistering from /diagnostics' | def __del__(self): print 'Unregistering from /diagnostics' self._subscriber.unregister() | 1f1a9ff9aebec2bc8939c320d8b309b4a4fa4366 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10233/1f1a9ff9aebec2bc8939c320d8b309b4a4fa4366/monitor_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
6315,
26410,
18,
318,
4861,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1001,
3771,
972,
12,
2890,
4672,
365,
6315,
26410,
18,
318,
4861,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def area(): global afterArea afterArea = True def divide(): global afterDivider afterDivider = True | def area(): global afterArea afterArea = True | 809b2aa209cf431ffec2d7e934ed5129951f3d3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/809b2aa209cf431ffec2d7e934ed5129951f3d3c/compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5091,
13332,
2552,
1839,
5484,
1839,
5484,
273,
1053,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
5091,
13332,
2552,
1839,
5484,
1839,
5484,
273,
1053,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
text = escape(reference.astext().encode('utf-8')) | text = escape(reference.astext()) | def build_contents(self, node, level=0): sections = [] i = len(node) - 1 while i >= 0 and isinstance(node[i], nodes.section): sections.append(node[i]) i -= 1 sections.reverse() toc = [] for section in sections: try: reference = nodes.reference('', '', refid=section['ids'][0], *section[0]) except IndexError: continue re... | a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
3980,
12,
2890,
16,
756,
16,
1801,
33,
20,
4672,
7178,
273,
5378,
277,
273,
562,
12,
2159,
13,
300,
404,
1323,
277,
1545,
374,
471,
1549,
12,
2159,
63,
77,
6487,
2199,
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,
1361,
67,
3980,
12,
2890,
16,
756,
16,
1801,
33,
20,
4672,
7178,
273,
5378,
277,
273,
562,
12,
2159,
13,
300,
404,
1323,
277,
1545,
374,
471,
1549,
12,
2159,
63,
77,
6487,
2199,
18,
... |
print 'source', `base_tcl` | def readprofile(self, baseName, className): """Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if such a file exists in the home directory.""" import os if os.environ.has_key('HOME'): home = os.environ['HOME'] else: home = os.curdir ... | 0eeeda212ad5efb21a284a930583043fde4d6a11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0eeeda212ad5efb21a284a930583043fde4d6a11/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
5040,
12,
2890,
16,
16162,
16,
2658,
4672,
3536,
3061,
445,
18,
2597,
6838,
10250,
1985,
18,
88,
830,
471,
7383,
1985,
18,
88,
830,
1368,
326,
399,
830,
5294,
11599,
471,
4097,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
5040,
12,
2890,
16,
16162,
16,
2658,
4672,
3536,
3061,
445,
18,
2597,
6838,
10250,
1985,
18,
88,
830,
471,
7383,
1985,
18,
88,
830,
1368,
326,
399,
830,
5294,
11599,
471,
4097,
11... | |
threshold_event_strings = [ 'unha', 'unhd', 'unla', 'unld', | threshold_event_strings = [ 'urha', 'urhd', 'urla', 'urld', | def threshold_str_to_full(s): i = threshold_strings.index(s) return threshold_full_strings[i] | 0e8f7115de513b9ddef5db6b3913a6d5b8f57658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/0e8f7115de513b9ddef5db6b3913a6d5b8f57658/_sensor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5573,
67,
701,
67,
869,
67,
2854,
12,
87,
4672,
277,
273,
5573,
67,
10219,
18,
1615,
12,
87,
13,
327,
5573,
67,
2854,
67,
10219,
63,
77,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5573,
67,
701,
67,
869,
67,
2854,
12,
87,
4672,
277,
273,
5573,
67,
10219,
18,
1615,
12,
87,
13,
327,
5573,
67,
2854,
67,
10219,
63,
77,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return ['"%s"' % t._table for t in set(self.__tables.values()+[self.__main_table])] | return ['"%s"' % t._table for t in self.__all_tables] | def get_tables(self): return ['"%s"' % t._table for t in set(self.__tables.values()+[self.__main_table])] | 4bd5550e21ac7f767660d721d5bdcfa3a970e7e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4bd5550e21ac7f767660d721d5bdcfa3a970e7e2/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9373,
12,
2890,
4672,
327,
306,
4970,
9,
87,
5187,
738,
268,
6315,
2121,
364,
268,
316,
444,
12,
2890,
16186,
9373,
18,
2372,
1435,
15,
63,
2890,
16186,
5254,
67,
2121,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
9373,
12,
2890,
4672,
327,
306,
4970,
9,
87,
5187,
738,
268,
6315,
2121,
364,
268,
316,
444,
12,
2890,
16186,
9373,
18,
2372,
1435,
15,
63,
2890,
16186,
5254,
67,
2121,
5717,
... |
ilen = (pkt[TCP].dataofs << 2) - 20 | ilen = (pkt.payload.dataofs << 2) - 20 | def packet2p0f(pkt): while pkt.haslayer(IP) and pkt.haslayer(TCP): pkt = pkt.getlayer(IP) if isinstance(pkt.payload, TCP): break pkt = pkt.payload if not isinstance(pkt, IP) or not isinstance(pkt.payload, TCP): raise TypeError("Not a TCP/IP packet") if pkt.payload.flags & 0x13 != 0x02: #S,!A,!F raise TypeError("Not a ... | bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984/p0f.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
... |
else: host_info[s[0].strip()] = s[1].strip() host_info['cpus'] = cpus uptime = open('/proc/uptime', 'r').readline().split(' ') host_info['uptime'] = uptime[0] meminfo = open('/proc/meminfo', 'r').readlines() for line in meminfo: s = line.split(':') if s != ['\n']: | def get_host_info(self, platform): host_info = {} host_info['os'] = platform if platform in ('linux', 'linux2', 'cygwin'): cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in line: cpus += 1 s = line.split(':') if s != ['\n']: if s[0] == 'MemTotal': mem_total = int(int(s[1].s... | bdf1c67bcb516d33c4c93a6137b212de82e7b445 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bdf1c67bcb516d33c4c93a6137b212de82e7b445/hostinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... | |
self["ButtonGreentext"].setText(_("Restart test")) self["ButtonYellow_Check"].setPixmapNum(1) self["ButtonGreen_Check"].setPixmapNum(0) | self["key_green"].setText(_("Restart test")) self["key_yellow"].setText("") | def KeyYellow(self): self.nextstep = 0 self["shortcutsgreen_restart"].setEnabled(True) self["shortcutsgreen"].setEnabled(False) self["shortcutsyellow"].setEnabled(False) self["ButtonGreentext"].setText(_("Restart test")) self["ButtonYellow_Check"].setPixmapNum(1) self["ButtonGreen_Check"].setPixmapNum(0) self.steptimer... | 18dcac668d46858377cc8c1ac55fc72fa62ecc0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/18dcac668d46858377cc8c1ac55fc72fa62ecc0e/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1929,
61,
11394,
12,
2890,
4672,
365,
18,
4285,
4119,
273,
374,
365,
9614,
24744,
1055,
2842,
67,
19164,
6,
8009,
542,
1526,
12,
5510,
13,
365,
9614,
24744,
1055,
2842,
6,
8009,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1929,
61,
11394,
12,
2890,
4672,
365,
18,
4285,
4119,
273,
374,
365,
9614,
24744,
1055,
2842,
67,
19164,
6,
8009,
542,
1526,
12,
5510,
13,
365,
9614,
24744,
1055,
2842,
6,
8009,
542,
1... |
"""call each action for this event.""" for action in self.jobs[name][event]: self.logger.info("%s: %s (%s)" % (event, name, action)) | """call each action for this event.""" for action in self.jobs[name][event]: self.logger.info("%s: %s (%s)" % (event, name, action)) | def _fireEvent(self, event, name): | 1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2550/1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1/Trigger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12179,
1133,
12,
2890,
16,
871,
16,
508,
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,
... | [
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,
389,
12179,
1133,
12,
2890,
16,
871,
16,
508,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
anims_save = relative_animations_part_clear(part_name) sigs_save = relative_signals_part_clear(part_name) | def relative_signals_part_clear(part_name): sigs = [] | 07279b7630cca5ffd7b57cb5c594328b0ba54d56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/07279b7630cca5ffd7b57cb5c594328b0ba54d56/parts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3632,
67,
29659,
67,
2680,
67,
8507,
12,
2680,
67,
529,
4672,
3553,
87,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
3632,
67,
29659,
67,
2680,
67,
8507,
12,
2680,
67,
529,
4672,
3553,
87,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
memmove(p, p2, p + len - p2) s = land_realloc(s, len + p2 - p + 1) | memmove(p, p2, len - (p2 - s) + 1) s = land_realloc(s, len - (p2 - p) + 1) | char *def land_utf8_realloc_remove(char *s, int pos): int len = strlen(s) char *p = s for int i = 0 while i < pos with i++: land_utf8_char(&p) char *p2 = p land_utf8_char(&p2) memmove(p, p2, p + len - p2) s = land_realloc(s, len + p2 - p + 1) return s | 348a826538b3ab5aedb3ea82408ea4534f6348bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/930/348a826538b3ab5aedb3ea82408ea4534f6348bd/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1149,
380,
536,
19193,
67,
3158,
28,
67,
7688,
1829,
67,
4479,
12,
3001,
380,
87,
16,
509,
949,
4672,
509,
562,
273,
3203,
12,
87,
13,
1149,
380,
84,
273,
272,
364,
509,
277,
273,
374,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
380,
536,
19193,
67,
3158,
28,
67,
7688,
1829,
67,
4479,
12,
3001,
380,
87,
16,
509,
949,
4672,
509,
562,
273,
3203,
12,
87,
13,
1149,
380,
84,
273,
272,
364,
509,
277,
273,
374,
1... |
os.path.join("bin", "pylal_plot_inspiral_skymap"), os.path.join("bin", "plotskypoints"), os.path.join("bin", "upper_limit_results"), os.path.join("bin", "pylal_expose"), os.path.join("bin", "ligolw_cbc_dbsimplify"), os.path.join("bin", "ligolw_cbc_dbaddinj"), os.path.join("bin", "ligolw_cbc_printlc"), os.path.join("bin... | os.path.join("bin", "pylal_plot_inspiral_skymap"), os.path.join("bin", "plotskypoints"), os.path.join("bin", "upper_limit_results"), os.path.join("bin", "pylal_expose"), os.path.join("bin", "ligolw_cbc_dbsimplify"), os.path.join("bin", "ligolw_cbc_dbaddinj"), os.path.join("bin", "ligolw_cbc_printlc"), os.path.join("bin... | def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass | bcb90cae6607140da1a5438dff867e4a1731aa08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/bcb90cae6607140da1a5438dff867e4a1731aa08/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1206,
326,
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
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,
1086,
12,
2890,
4672,
468,
1206,
326,
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
18,
... |
font = font.toPyObject() | font = QFont(font) | def linkRect(self, option, index): style = self.parent().style() text = self.displayText(index.data(Qt.DisplayRole), QLocale.system()) textRect = style.subElementRect(QStyle.SE_ItemViewItemText, option) margin = style.pixelMetric(QStyle.PM_FocusFrameHMargin, option) + 1 textRect = textRect.adjusted(margin, 0, -margin, ... | 427013ff8cf0a31f84fa02b8a2ee5faabee23a73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/427013ff8cf0a31f84fa02b8a2ee5faabee23a73/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
6120,
12,
2890,
16,
1456,
16,
770,
4672,
2154,
273,
365,
18,
2938,
7675,
4060,
1435,
977,
273,
365,
18,
5417,
1528,
12,
1615,
18,
892,
12,
23310,
18,
4236,
2996,
3631,
2238,
3916... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1692,
6120,
12,
2890,
16,
1456,
16,
770,
4672,
2154,
273,
365,
18,
2938,
7675,
4060,
1435,
977,
273,
365,
18,
5417,
1528,
12,
1615,
18,
892,
12,
23310,
18,
4236,
2996,
3631,
2238,
3916... |
def listDriveLetters (self): self.view.listDriveLetters () | def clearScreen (self): self.view.clearScreen () | 5f003fa66305ac8935c5608a773efc5e9baee6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/5f003fa66305ac8935c5608a773efc5e9baee6db/candy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
7956,
261,
2890,
4672,
365,
18,
1945,
18,
8507,
7956,
1832,
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,
2424,
7956,
261,
2890,
4672,
365,
18,
1945,
18,
8507,
7956,
1832,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def checkPermissionAddSections(self, context): """ Check for adding sections permission in the given context. """ return context.checkPermission('Naaya - Add Naaya Report Section objects') | def checkPermissionAddSections(self, context): """ Check for adding sections permission in the given context. """ return context.checkPermission('Naaya - Add Naaya Report Section objects') | ed453ec474d0ab916e717b5030b2017ba8c77981 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/ed453ec474d0ab916e717b5030b2017ba8c77981/NyReportChapter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25300,
986,
15965,
12,
2890,
16,
819,
4672,
3536,
2073,
364,
6534,
7178,
4132,
316,
326,
864,
819,
18,
3536,
327,
819,
18,
1893,
5041,
2668,
24101,
528,
69,
300,
1436,
16350,
528,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25300,
986,
15965,
12,
2890,
16,
819,
4672,
3536,
2073,
364,
6534,
7178,
4132,
316,
326,
864,
819,
18,
3536,
327,
819,
18,
1893,
5041,
2668,
24101,
528,
69,
300,
1436,
16350,
528,
69,
... | |
""" Return the integer part (seconds) of a LIGOTimeGPS as an int. Example use: int(LIGOTimeGPS(100.5)) """ | """ Return the integer part (seconds) of a LIGOTimeGPS as an int. Example use: int(LIGOTimeGPS(100.5)) """ | def __int__(self): | b064bbbb4a6f3f9453fbf35a7c03643a8a94bd52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/b064bbbb4a6f3f9453fbf35a7c03643a8a94bd52/lal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
474,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
474,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.color = color | self.acolor = color | def __init__(self, *color): super(ColorLayer, self).__init__() self.batch = pyglet.graphics.Batch() self.color = color | 753f720d3e05a435e3eeb85a18bc00745988241a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/753f720d3e05a435e3eeb85a18bc00745988241a/util_layers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
3266,
4672,
2240,
12,
2957,
4576,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
5303,
273,
2395,
75,
1810,
18,
31586,
18,
4497,
1435,
365,
18,
1077,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
3266,
4672,
2240,
12,
2957,
4576,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
5303,
273,
2395,
75,
1810,
18,
31586,
18,
4497,
1435,
365,
18,
1077,... |
log.debug( "NOTICE: GTFS feed has no file %s.txt, cannot load\n"%tablename ) | print( "NOTICE: GTFS feed has no file %s.txt, cannot load\n"%tablename ) | create_table( c, tablename, table_def ) | 5cb3ca89a5d953aecb773f70f7f2f38a1f5a8b85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10974/5cb3ca89a5d953aecb773f70f7f2f38a1f5a8b85/gtfsdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
752,
67,
2121,
12,
276,
16,
19096,
16,
1014,
67,
536,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
752,
67,
2121,
12,
276,
16,
19096,
16,
1014,
67,
536,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for d in self.depends: d.post(builder) | def post(self, builder): for d in self.depends: d.post(builder) self.makeproject(builder) for envname in builder.env['BUILD_VARIANTS']: env = builder.all_envs[envname] options = coptions() task = self.gentask(builder, env, envname, 'cobjects', options) return self | ec9f8798694887a6c8975db7bbd776db1587362d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/ec9f8798694887a6c8975db7bbd776db1587362d/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
16,
2089,
4672,
365,
18,
6540,
4406,
12,
9574,
13,
364,
1550,
529,
316,
2089,
18,
3074,
3292,
20215,
67,
29744,
6856,
55,
3546,
30,
1550,
273,
2089,
18,
454,
67,
30339,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
12,
2890,
16,
2089,
4672,
365,
18,
6540,
4406,
12,
9574,
13,
364,
1550,
529,
316,
2089,
18,
3074,
3292,
20215,
67,
29744,
6856,
55,
3546,
30,
1550,
273,
2089,
18,
454,
67,
30339,... | |
details_rows.append((_('Web page'), _('permalink'), 'visit_webpage')) | if self.data.permalink: details_rows.append((_('Web page'), _('permalink'), 'visit_webpage')) | def pack_info(self, layout): vbox = cellpack.VBox(3) alignment = cellpack.Alignment(cellpack.pad(vbox, right=10), xalign=0.0, min_width=180) | 2b0c00e81742dbf9517b9a7afe91f822ea6e5205 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/2b0c00e81742dbf9517b9a7afe91f822ea6e5205/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
67,
1376,
12,
2890,
16,
3511,
4672,
331,
2147,
273,
2484,
2920,
18,
58,
3514,
12,
23,
13,
8710,
273,
2484,
2920,
18,
11535,
12,
3855,
2920,
18,
6982,
12,
90,
2147,
16,
2145,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
67,
1376,
12,
2890,
16,
3511,
4672,
331,
2147,
273,
2484,
2920,
18,
58,
3514,
12,
23,
13,
8710,
273,
2484,
2920,
18,
11535,
12,
3855,
2920,
18,
6982,
12,
90,
2147,
16,
2145,
33... |
from trac.web import chrome print chrome.__file__ | def suite(): return unittest.makeSuite(ChromeTestCase, 'test') | 27096567803726e379d16b4e3068b026d556205b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/27096567803726e379d16b4e3068b026d556205b/chrome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
327,
2836,
3813,
18,
6540,
13587,
12,
28548,
4709,
2449,
16,
296,
3813,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11371,
13332,
327,
2836,
3813,
18,
6540,
13587,
12,
28548,
4709,
2449,
16,
296,
3813,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
j = os.path.join include_files.append(j(j(os.path.dirname(__file__), "module"), "genexterns.c")) | add = include_files.append add(path_join(os.path.dirname(__file__), "module", "genexterns.c")) | def predeclarefn(c_name, llname): function_names.append(llname) assert llname[0] == "%" llname = llname[1:] assert '\n' not in llname ccode.append('#define\t%s\t%s\n' % (c_name, llname)) | 2b89cf189b5460367685f86cbfd7cadf2557d44a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/2b89cf189b5460367685f86cbfd7cadf2557d44a/externs2ll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
29554,
4293,
12,
71,
67,
529,
16,
6579,
529,
4672,
445,
67,
1973,
18,
6923,
12,
2906,
529,
13,
1815,
6579,
529,
63,
20,
65,
422,
20880,
6579,
529,
273,
6579,
529,
63,
21,
26894,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
29554,
4293,
12,
71,
67,
529,
16,
6579,
529,
4672,
445,
67,
1973,
18,
6923,
12,
2906,
529,
13,
1815,
6579,
529,
63,
20,
65,
422,
20880,
6579,
529,
273,
6579,
529,
63,
21,
26894,... |
if abs(Charge1) < abs(Charge2): Charge = Charge1 pH = pH1 | while pH2 - pH1 > 0.0001 and Charge!=0.0: pH = (pH1 + pH2) / 2.0 Charge = self._chargeR(pH, pos_pKs, neg_pKs) if Charge > 0.0: pH1 = pH Charge1 = Charge | def pi(self): pos_pKs = dict(positive_pKs) neg_pKs = dict(negative_pKs) nterm = self.sequence[0] cterm = self.sequence[-1] if nterm in pKnterminal.keys(): pos_pKs['Nterm'] = pKnterminal[nterm] if cterm in pKcterminal.keys(): neg_pKs['Cterm'] = pKcterminal[cterm] | 440b37b8c1f04cc79daacc1f5875506a33dc8654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/440b37b8c1f04cc79daacc1f5875506a33dc8654/IsoelectricPoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4790,
12,
2890,
4672,
949,
67,
84,
47,
87,
273,
2065,
12,
21094,
67,
84,
47,
87,
13,
4251,
67,
84,
47,
87,
273,
2065,
12,
13258,
67,
84,
47,
87,
13,
290,
6408,
273,
365,
18,
6178... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4790,
12,
2890,
4672,
949,
67,
84,
47,
87,
273,
2065,
12,
21094,
67,
84,
47,
87,
13,
4251,
67,
84,
47,
87,
273,
2065,
12,
13258,
67,
84,
47,
87,
13,
290,
6408,
273,
365,
18,
6178... |
max_dist = 2000 min_mass = 1 max_mass = 99 min_mtotal = 25 max_mtotal = 100 mass_bins = 11 dist_bins = 50 | def parse_command_line(): parser = OptionParser(version = "%prog CVS $Id$", usage = "%prog [options] [file ...]", description = "%prog computes mass/mass upperlimit") parser.add_option("-i", "--instruments", metavar = "name[,name,...]", help = "Set the list of instruments. Required. Example \"H1,H2,L1\"") parser.add_... | cc0a02e6eb29bd193897bea985536726977a3e46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cc0a02e6eb29bd193897bea985536726977a3e46/hm_upperlimit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
... | |
req.write(line + util.CRLF) | req.write(util.rstrip(line, '\r') + util.CRLF) | def render_diff(self, req, repos, chgset, diff_options): """Raw Unified Diff version""" req.send_response(200) req.send_header('Content-Type', 'text/plain;charset=utf-8') req.send_header('Content-Disposition', 'filename=Changeset%s.diff' % req.args.get('rev')) req.end_headers() | 4f50366564088c46211ef2b4976dbe451babcd0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/4f50366564088c46211ef2b4976dbe451babcd0d/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
5413,
12,
2890,
16,
1111,
16,
13686,
16,
462,
75,
542,
16,
3122,
67,
2116,
4672,
3536,
4809,
1351,
939,
13008,
1177,
8395,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
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,
1743,
67,
5413,
12,
2890,
16,
1111,
16,
13686,
16,
462,
75,
542,
16,
3122,
67,
2116,
4672,
3536,
4809,
1351,
939,
13008,
1177,
8395,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
18,
... |
elif (first_glyph=="pbase"): | elif (first_glyph=="pbase" or first_glyph == "p2base"): | def write_pes(i, first_glyph, shape, liquescentia='nothing'): glyphname=name(i, 0, 0, shape, liquescentia) begin_glyph(glyphname) # the difference of width of the two shapes, that will change a thing or two... if (first_glyph=="qbase"): width_difference=width_quilisma-width_high_pes elif (first_glyph=="pbase"): width_d... | c89b3bb8d0947e303724f61d69db9a11f9ae6f48 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/c89b3bb8d0947e303724f61d69db9a11f9ae6f48/squarize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
23033,
12,
77,
16,
1122,
67,
19426,
16,
2179,
16,
4501,
372,
742,
319,
1155,
2218,
30874,
11,
4672,
9440,
529,
33,
529,
12,
77,
16,
374,
16,
374,
16,
2179,
16,
4501,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
23033,
12,
77,
16,
1122,
67,
19426,
16,
2179,
16,
4501,
372,
742,
319,
1155,
2218,
30874,
11,
4672,
9440,
529,
33,
529,
12,
77,
16,
374,
16,
374,
16,
2179,
16,
4501,
372,
... |
def test_build_component (self): r = Router() r.logger = MockLogger() component = r.build_component("rapidsms.tests.%s.MockApp", {"type":"harness", "title":"test app"}) self.assertEquals(type(component), MockApp, "component has right type") self.assertEquals(component.name, "test app", "component has right title") self... | def test_build_component(self): | def test_build_component (self): r = Router() r.logger = MockLogger() component = r.build_component("rapidsms.tests.%s.MockApp", {"type":"harness", "title":"test app"}) self.assertEquals(type(component), MockApp, "component has right type") self.assertEquals(component.name, "test app", "component has right title") self... | 6f2ec4fdcdd8a62e199dbf17ca2eced9200c0b82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/6f2ec4fdcdd8a62e199dbf17ca2eced9200c0b82/test_router.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3510,
67,
4652,
261,
2890,
4672,
436,
273,
9703,
1435,
436,
18,
4901,
273,
7867,
3328,
1435,
1794,
273,
436,
18,
3510,
67,
4652,
2932,
1266,
2232,
959,
18,
16341,
7866,
87,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3510,
67,
4652,
261,
2890,
4672,
436,
273,
9703,
1435,
436,
18,
4901,
273,
7867,
3328,
1435,
1794,
273,
436,
18,
3510,
67,
4652,
2932,
1266,
2232,
959,
18,
16341,
7866,
87,
1... |
self.cur.execute("update BillCategory set active = 0, balance = :balance where id = :id", {'id':item['category'], 'balance':str(balance)}) | self.cur.execute("update BillCategory set active = 0, balance = :balance where id = :id", {'id':item['category'], 'balance':mf(balance)}) | def _update_category_balance(self, item): "Update the category balance from the item amount" if int(item['type']) == 1: table = "ExpenseCategory" elif int(item['type']) == 2: table = "BillCategory" elif int(item['type']) == 3: table = "SavingCategory" category_select = "select * from %s where id = :id;" % (table) categ... | c1b405e7b76ee374ecb1e3fca3072ef6e0007414 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/c1b405e7b76ee374ecb1e3fca3072ef6e0007414/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
4743,
67,
12296,
12,
2890,
16,
761,
4672,
315,
1891,
326,
3150,
11013,
628,
326,
761,
3844,
6,
309,
509,
12,
1726,
3292,
723,
19486,
422,
404,
30,
1014,
273,
315,
424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
4743,
67,
12296,
12,
2890,
16,
761,
4672,
315,
1891,
326,
3150,
11013,
628,
326,
761,
3844,
6,
309,
509,
12,
1726,
3292,
723,
19486,
422,
404,
30,
1014,
273,
315,
424,
... |
aMSNCocoaNSApplication.sharedApplication() | aMSNCocoaNSApplication.sharedApplication() | def processEvents(self, timeout=100): # Get the next event from the queue. if timeout < 0: eventTimeout = NSDate.distantPast() elif timeout == 0: eventTimeout = NSDate.distantFuture() else: eventTimeout = NSDate.dateWithTimeIntervalSinceNow_(float(timeout/1000.0)) # NSAnyEventMask = 0xffffffff - http://osdir.com/ml/py... | c25365e30fd35f750c0a9494ad1f12a77e3ea9ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/c25365e30fd35f750c0a9494ad1f12a77e3ea9ea/main_loop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3783,
12,
2890,
16,
2021,
33,
6625,
4672,
468,
968,
326,
1024,
871,
628,
326,
2389,
18,
309,
2021,
411,
374,
30,
871,
2694,
273,
11472,
1626,
18,
4413,
970,
52,
689,
1435,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
12,
2890,
16,
2021,
33,
6625,
4672,
468,
968,
326,
1024,
871,
628,
326,
2389,
18,
309,
2021,
411,
374,
30,
871,
2694,
273,
11472,
1626,
18,
4413,
970,
52,
689,
1435,
1327,
... |
parm.modulation = 1 | parm.modulation = 1 | def tune(self, transponder): print "tuning to transponder with data", transponder parm = eDVBFrontendParametersSatellite() parm.frequency = transponder[0] * 1000 parm.symbol_rate = transponder[1] * 1000 parm.polarisation = transponder[2] parm.fec = transponder[3] parm.inversion = transponder[4] parm.orbital_position = ... | 51b1571e9e31d9f7ab1055f562a397a9bfa427ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/51b1571e9e31d9f7ab1055f562a397a9bfa427ab/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
7556,
12,
2890,
16,
906,
17707,
4672,
1172,
315,
88,
13036,
358,
906,
17707,
598,
501,
3113,
906,
17707,
19924,
273,
425,
30199,
38,
21905,
2402,
15163,
19345,
1435,
19924,
18,
14092,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7556,
12,
2890,
16,
906,
17707,
4672,
1172,
315,
88,
13036,
358,
906,
17707,
598,
501,
3113,
906,
17707,
19924,
273,
425,
30199,
38,
21905,
2402,
15163,
19345,
1435,
19924,
18,
14092,... |
while True: | while 1: | def vonmisesvariate(self, mu, kappa): """Circular data distribution. | fdaed79a0919ce05f40e1059b1d87de120ba03fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fdaed79a0919ce05f40e1059b1d87de120ba03fc/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
265,
81,
6141,
1401,
3840,
12,
2890,
16,
4129,
16,
23125,
4672,
3536,
25858,
501,
7006,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
265,
81,
6141,
1401,
3840,
12,
2890,
16,
4129,
16,
23125,
4672,
3536,
25858,
501,
7006,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.