rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
sa.add(wikipedia.PageLink(wikipedia.mylang, (date.date_format[startmonth][wikipedia.mylang]) % day)) | sa.add(wikipedia.PageLink(wikipedia.mylang, (date.date_format[month][wikipedia.mylang]) % day)) | def ReadWarnfile(fn, sa): import re R=re.compile(r'WARNING: ([^\[]*):\[\[([^\[]+)\]\]([^\[]+)\[\[([^\[]+):([^\[]+)\]\]') f=open(fn) hints={} for line in f.readlines(): m=R.search(line) if m: #print "DBG>",line if m.group(1)==wikipedia.mylang: #print m.group(1), m.group(2), m.group(3), m.group(4), m.group(5) if not hint... | 8ffb9b713792c7bf26176954fe9e3b8ccfb783e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/8ffb9b713792c7bf26176954fe9e3b8ccfb783e0/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
3160,
768,
12,
4293,
16,
7864,
4672,
1930,
283,
534,
33,
266,
18,
11100,
12,
86,
11,
9511,
30,
261,
15441,
63,
5772,
4672,
64,
7438,
63,
19042,
63,
16004,
13944,
65,
19042,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
3160,
768,
12,
4293,
16,
7864,
4672,
1930,
283,
534,
33,
266,
18,
11100,
12,
86,
11,
9511,
30,
261,
15441,
63,
5772,
4672,
64,
7438,
63,
19042,
63,
16004,
13944,
65,
19042,
63,
... |
Returns NetworkX information about the graph or the given node. | Returns NetworkX information about the graph or the given vertex. | def networkx_info(self, vertex=None): """ Returns NetworkX information about the graph or the given node. | 139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
92,
67,
1376,
12,
2890,
16,
5253,
33,
7036,
4672,
3536,
2860,
5128,
60,
1779,
2973,
326,
2667,
578,
326,
864,
756,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
92,
67,
1376,
12,
2890,
16,
5253,
33,
7036,
4672,
3536,
2860,
5128,
60,
1779,
2973,
326,
2667,
578,
326,
864,
756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
os.mkdir(filesdir) | mkdir(filesdir) | def okBtnClicked(self): filesdir = getFilesDir() if not path.exists(filesdir): os.mkdir(filesdir) url = self.images[self.img_index] [u,img_name] = url.rsplit("/",1) [name,ext] = img_name.rsplit(".",1) #get a unique file name if path.exists(filesdir+"/"+name+"."+ext): c = 1 while path.exists(filesdir+"/"+name+"-"+str(c... | 604b58e43b0619d4b935f60336ef893de8f50831 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1692/604b58e43b0619d4b935f60336ef893de8f50831/google_images.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1529,
20541,
27633,
12,
2890,
4672,
1390,
1214,
273,
18262,
1621,
1435,
309,
486,
589,
18,
1808,
12,
2354,
1214,
4672,
6535,
12,
2354,
1214,
13,
880,
273,
365,
18,
7369,
63,
2890,
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,
1529,
20541,
27633,
12,
2890,
4672,
1390,
1214,
273,
18262,
1621,
1435,
309,
486,
589,
18,
1808,
12,
2354,
1214,
4672,
6535,
12,
2354,
1214,
13,
880,
273,
365,
18,
7369,
63,
2890,
18,
... |
company_contrib = 0 if line.company_contrib > line.total: company_contrib = line.total else: company_contrib = line.company_contrib | company_contrib = line.company_contrib | def verify_sheet(self, cr, uid, ids, context={}): move_pool = self.pool.get('account.move') movel_pool = self.pool.get('account.move.line') exp_pool = self.pool.get('hr.expense.expense') for slip in self.browse(cr,uid,ids): total_deduct = 0.0 line_ids = [] partner = False partner_id = False if not slip.employee_id.... | 9cefb7520803ded7f648633ccca30e623a0dd192 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9cefb7520803ded7f648633ccca30e623a0dd192/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
225,
3635,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
6134,
7344,
941,
67,
6011,
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,
3929,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
225,
3635,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
6134,
7344,
941,
67,
6011,
273,
... |
from pypy import conftest tdir = udir.ensure("t", dir=True) dest = tdir.join("test_expect.py") dest.write(source) col = conftest.Module(dest, config="dummy") result = col.run() assert len(result) == 1 | passed, skipped, failed = sorter.countoutcomes() assert passed == 1 | def test_one(self): pass | bdadb575274ee4b0b5924254fc75663055032293 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/bdadb575274ee4b0b5924254fc75663055032293/test_pytestsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,
4672,
1342,
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... |
mixinClass = self.stampMixinClass() mixinKind = mixinClass.getKind(self.itsView) stamped = item.isItemOf(mixinKind) if __debug__: looksStampedbyClass = isinstance(item, mixinClass) assert looksStampedbyClass == stamped, \ "Class/Kind mismatch! Item is class %s, kind %s; " \ "stamping with class %s, kind %s" % ( item.__... | if item is not None: mixinClass = self.stampMixinClass() mixinKind = mixinClass.getKind(self.itsView) stamped = item.isItemOf(mixinKind) if __debug__: looksStampedbyClass = isinstance(item, mixinClass) assert looksStampedbyClass == stamped, \ "Class/Kind mismatch! Item is class %s, kind %s; " \ "stamping with class %s,... | def synchronizeWidget(self, useHints=False): super(DetailStampButton, self).synchronizeWidget(useHints) | 28605a8213a2f8559d4b40c08d40befb8025fccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/28605a8213a2f8559d4b40c08d40befb8025fccb/Detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
4609,
12,
2890,
16,
999,
13368,
33,
8381,
4672,
2240,
12,
6109,
8860,
3616,
16,
365,
2934,
87,
2600,
554,
4609,
12,
1202,
13368,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
16978,
4609,
12,
2890,
16,
999,
13368,
33,
8381,
4672,
2240,
12,
6109,
8860,
3616,
16,
365,
2934,
87,
2600,
554,
4609,
12,
1202,
13368,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.vibcarts.append(p[0:len(broken)/3]) | self.vibcarts.extend(p[0:len(broken)/3]) | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = utils.openlogfile(self.filename) if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 optfinished = False # Flag that indic... | 37adb8d3cb9d170c545f9adaf1593e038281e07c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/37adb8d3cb9d170c545f9adaf1593e038281e07c/gaussianparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
12,
2890,
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,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
12,
2890,
18,
... |
self.k0_dkc = self.Gdir_dc.reshape(-1, 1, 3) | k0_dkc = self.Gdir_dc.reshape(-1, 1, 3) | def __init__(self, nwannier, calc, nbands=None, occupationenergy=None, fixedstates=None, spin=0, verbose=True): | a8b3a713b28e2bc93f8874ac2ca600a18b2884ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/a8b3a713b28e2bc93f8874ac2ca600a18b2884ec/wannier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
... |
count[x] += 1 sum = 0 cnt = 0 for x in count.values(): if x != 0: sum += x cnt += 1 avg = sum / cnt counts[angle] = cnt highest[angle] = 0 for x in count.values(): if x > highest[angle]: highest[angle] = x highest[angle] = highest[angle] - avg hkey = 0 hvalue = 0 for key, value in highest.iteritems(): if value > ... | pixels[x, y] = 0 self.pixels = pixels def split_captcha_letters(self): captcha = self.image started = False letters = [] width, height = captcha.size bottomY, topY = 0, height pixels = captcha.load() for x in xrange(width): black_pixel_in_col = False for y in xrange(height): if pixels[x, y] != 255: if started == Fal... | def derotate_by_average(self): """rotate by checking each angle and guess most suitable""" w, h = self.image.size pixels = self.pixels for x in xrange(w): for y in xrange(h): if pixels[x, y] == 0: pixels[x, y] = 155 highest = {} counts = {} for angle in range(-45, 45): tmpimage = self.image.rotate(angle) pixels =... | ce0e9fa939a3c6d9e22f28561f86282a96ddb9c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/ce0e9fa939a3c6d9e22f28561f86282a96ddb9c5/captcha.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4854,
352,
340,
67,
1637,
67,
15621,
12,
2890,
4672,
3536,
20342,
635,
6728,
1517,
5291,
471,
7274,
4486,
10631,
8395,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
8948,
273,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4854,
352,
340,
67,
1637,
67,
15621,
12,
2890,
4672,
3536,
20342,
635,
6728,
1517,
5291,
471,
7274,
4486,
10631,
8395,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
8948,
273,
365,
... |
cue = FakeNormalReader("cue/normal/Portishead - Dummy.cue", 45) | path = os.path.join("test", "cue", "normal", "Portishead - Dummy.cue") if not os.path.exists(path): path = os.path.join("cue", "normal", "Portishead - Dummy.cue") cue = FakeNormalReader(os.path.join(path), 45) | def get_full_duration(self, cue_file): return 60 * self.duration_min | 5e65a4a92750acc9f2661718b80c10d4fc613eda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/5e65a4a92750acc9f2661718b80c10d4fc613eda/test_cue_service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2854,
67,
8760,
12,
2890,
16,
276,
344,
67,
768,
4672,
327,
4752,
380,
365,
18,
8760,
67,
1154,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2854,
67,
8760,
12,
2890,
16,
276,
344,
67,
768,
4672,
327,
4752,
380,
365,
18,
8760,
67,
1154,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tar_cmd = "tar rvf %s firefox" % self.uncompressed_build | if options.quiet: tar_flags = "rf" else: tar_flags = "rvf" tar_cmd = "tar %s %s firefox" % (tar_flags, self.uncompressed_build) | def repackBuild(self): tar_cmd = "tar rvf %s firefox" % self.uncompressed_build shellCommand(tar_cmd) bzip2_command = "bzip2 %s" % self.uncompressed_build shellCommand(bzip2_command) | 8345bd04fc746d831846644290606cce5844b5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/8345bd04fc746d831846644290606cce5844b5a8/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
309,
702,
18,
20380,
30,
8232,
67,
7133,
273,
315,
5809,
6,
469,
30,
8232,
67,
7133,
273,
315,
4962,
74,
6,
8232,
67,
4172,
273,
315,
11718,
738,
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,
2071,
484,
3116,
12,
2890,
4672,
309,
702,
18,
20380,
30,
8232,
67,
7133,
273,
315,
5809,
6,
469,
30,
8232,
67,
7133,
273,
315,
4962,
74,
6,
8232,
67,
4172,
273,
315,
11718,
738,
87,... |
return self._inc(key, channel, channels) | return channel | def inc(self, *args, **keys): key = self._key(*args, **keys) | 010e3ceb7ac4166a932dfbd4f9020a6aa1795911 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/010e3ceb7ac4166a932dfbd4f9020a6aa1795911/taskfarm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7290,
12,
2890,
16,
380,
1968,
16,
2826,
2452,
4672,
498,
273,
365,
6315,
856,
30857,
1968,
16,
2826,
2452,
13,
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,
7290,
12,
2890,
16,
380,
1968,
16,
2826,
2452,
4672,
498,
273,
365,
6315,
856,
30857,
1968,
16,
2826,
2452,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if signature != built: key, base = signature_method.build_signature_base_string(oauth_request, consumer, token) raise OAuthError('Signature does not match. Expected: %s Got: %s Expected signature base string: %s' % (built, signature, base)) | def _check_signature(self, oauth_request, consumer, token): timestamp, nonce = oauth_request._get_timestamp_nonce() self._check_timestamp(timestamp) self._check_nonce(consumer, token, nonce) signature_method = self._get_signature_method(oauth_request) try: signature = oauth_request.get_parameter('oauth_signature') exce... | 073065fae4e9688900399c1a17162f9fb2f0f797 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1598/073065fae4e9688900399c1a17162f9fb2f0f797/oauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
2858,
16,
7448,
273,
6924,
67,
2293,
6315,
588,
67,
5508,
67,
12824,
1435,
365,
6315,
1893,
67,
5508,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
2858,
16,
7448,
273,
6924,
67,
2293,
6315,
588,
67,
5508,
67,
12824,
1435,
365,
6315,
1893,
67,
5508,
12,
... | |
if len>0: raise IOError(errno.ENOSYS,path) | if len>0: warn("truncate not implemented",path,len) raise IOError(errno.ENOSYS,path) | def truncate(self,path,len): if len>0: raise IOError(errno.ENOSYS,path) self.fs.delete(path) self.fs.mkentry(path) return 0 | 2164ea993cae3a272123c9380327f54f0c3a10bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/2164ea993cae3a272123c9380327f54f0c3a10bb/archivefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
12,
2890,
16,
803,
16,
1897,
4672,
309,
562,
34,
20,
30,
1894,
2932,
27201,
486,
8249,
3113,
803,
16,
1897,
13,
1002,
8340,
12,
19088,
18,
1157,
4618,
61,
55,
16,
803,
13,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
12,
2890,
16,
803,
16,
1897,
4672,
309,
562,
34,
20,
30,
1894,
2932,
27201,
486,
8249,
3113,
803,
16,
1897,
13,
1002,
8340,
12,
19088,
18,
1157,
4618,
61,
55,
16,
803,
13,
365... |
resp = (yield dev.query('SENS:SWE:TIME?; POIN?')) | resp = yield dev.query('SENS:SWE:TIME?; POIN?') | def startSweep(self, dev, sweeptype): yield dev.write('SENS:SWE:TIME:AUTO ON; :INIT:CONT OFF; :OUTP ON') | 6a9afdf1dbe4defcb7a645d94ee6236e87f6c82e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7016/6a9afdf1dbe4defcb7a645d94ee6236e87f6c82e/agilentN5320A.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
55,
25236,
12,
2890,
16,
4461,
16,
1352,
1340,
27672,
4672,
2824,
4461,
18,
2626,
2668,
26753,
30,
55,
6950,
30,
4684,
30,
18909,
6229,
31,
294,
12919,
30,
6067,
17511,
31,
294,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
55,
25236,
12,
2890,
16,
4461,
16,
1352,
1340,
27672,
4672,
2824,
4461,
18,
2626,
2668,
26753,
30,
55,
6950,
30,
4684,
30,
18909,
6229,
31,
294,
12919,
30,
6067,
17511,
31,
294,
5... |
properties['outgoingEmailMonitorLevel'] = 'HEADERS_ONLY' | properties['outgoingEmailMonitorLevel'] = 'HEADER_ONLY' | def createEmailMonitor(self, source_user, destination_user, end_date, begin_date=None, incoming_headers_only=False, outgoing_headers_only=False, drafts=False, drafts_headers_only=False, chats=False, chats_headers_only=False): """Creates a email monitor, forwarding the source_users emails/chats | 562df59fada74b8cb8025319e87fa9d2764d0e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/562df59fada74b8cb8025319e87fa9d2764d0e32/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
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,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3... |
random.seed(time.time()) | def __getRandomContentNodeList(self, au, minCount, maxCount): """Return a randomly sized list of nodes with content, between min and max in length. If there are fewer than 'max' nodes, this will return a list between 'min' and 'len(allnodes)'.""" nodes = self.getAuNodesWithContent(au) maxCount = min(maxCount, len(nodes... | cb9a70c7bbdce1e09c351d60188d3e6bda051e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/766/cb9a70c7bbdce1e09c351d60188d3e6bda051e84/lockss_daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8529,
1350,
19914,
12,
2890,
16,
20309,
16,
1131,
1380,
16,
943,
1380,
4672,
3536,
990,
279,
20153,
26046,
666,
434,
2199,
598,
913,
16,
3086,
1131,
471,
943,
316,
769,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8529,
1350,
19914,
12,
2890,
16,
20309,
16,
1131,
1380,
16,
943,
1380,
4672,
3536,
990,
279,
20153,
26046,
666,
434,
2199,
598,
913,
16,
3086,
1131,
471,
943,
316,
769,
18,
... | |
if self.debug>0: print 'vars to delete: ',ncvars print 'deleting ncvar: ',v | log.debug('vars to delete: %s ' % ncvars) log.debug('deleting ncvar: %s' % v) | def delete_ncattdimvar(self,ncf,ncattrs=(),ncdims=(),ncvars=()): ''' helper function to delete attributes, dimensions and variables in a netcdffile | 97d65b7f6de853ae8bd02694f63966f3dfe9ab9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/97d65b7f6de853ae8bd02694f63966f3dfe9ab9e/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
33,
9334,
14202,
8550,
33,
9334,
14202,
4699,
33,
1435,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
5769,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
33,
9334,
14202,
8550,
33,
9334,
14202,
4699,
33,
1435,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
5769,
4... |
except DBInvalidArgError: | except db.DBInvalidArgError: | def open_shelve(filename): from bsddb3 import db,dbshelve,DBInvalidArgError log.debug('Opening database ' + filename) | 6c7d87ef8f67d23bcd0237379d380c1297ee590f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/6c7d87ef8f67d23bcd0237379d380c1297ee590f/apt_proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
16,
2290,
1941,
4117,
668,
613,
18,
4148,
2668,
21378,
2063,
296,
397,
1544,
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,
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,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
16,
2290,
1941,
4117,
668,
613,
18,
4148,
2668,
21378,
2063,
296,
397,
1544,
13,
... |
def endElement(self, name ): """Signals the end of an element. | def endElementNS(self, name, qname): """Signals the end of an element in namespace mode. | def endElement(self, name ): """Signals the end of an element. | b4d6bb098776de48275c2e422c608ddfd85f4198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b4d6bb098776de48275c2e422c608ddfd85f4198/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
262,
30,
3536,
23346,
326,
679,
434,
392,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
262,
30,
3536,
23346,
326,
679,
434,
392,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def handleResponsePart(self, data): | self.got_metadata = True def handleEndHeaders(self): if self.got_metadata: self.handleResponsePart = self.handleResponsePart_with_metadata else: self.handleResponsePart = self.gotMP3Data def handleResponsePart_with_metadata(self, data): | def handleHeader(self, key, value): if key.lower() == 'icy-metaint': self.metaint = int(value) | f7135a2918b3d018f599459d44ae113bbc294985 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f7135a2918b3d018f599459d44ae113bbc294985/shoutcast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1864,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
18,
8167,
1435,
422,
296,
335,
93,
17,
3901,
474,
4278,
365,
18,
3901,
474,
273,
509,
12,
1132,
13,
225,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1864,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
18,
8167,
1435,
422,
296,
335,
93,
17,
3901,
474,
4278,
365,
18,
3901,
474,
273,
509,
12,
1132,
13,
225,
2,
-100,
-100,
-100,
... |
print "Starting BT downloader" | def getDownloader(self,url): | 0d0a41169cea83bb7c142896fe5df9d0bc8a96e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/0d0a41169cea83bb7c142896fe5df9d0bc8a96e9/downloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
995,
6714,
12,
2890,
16,
718,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
995,
6714,
12,
2890,
16,
718,
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,... | |
print "call contact called" | logger.debug("call contact called") | def call_contact(self, emission, source, param): print "call contact called" number = emission.part_text_get('label-number') name = emission.part_text_get('label') self.extra_child.edj.part_swallow_get('contacts-items').visible_set(0) self.extra_child.edj.part_swallow_get('contacts-items').delete() Caller(None, number,... | 01c25941dcc46b5166dcddd3aeed3ae3b26b48e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/01c25941dcc46b5166dcddd3aeed3ae3b26b48e6/paroli-dialer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
8994,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
1991,
5388,
2566,
7923,
1300,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
17,
2696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
8994,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
1991,
5388,
2566,
7923,
1300,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
17,
2696,... |
def plus(): | def inc_indent(): | def plus(): global indent indent += 1 | 6ae6ed47bd06d9e4a84ff98ecaaaa5baa53ddb47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/6ae6ed47bd06d9e4a84ff98ecaaaa5baa53ddb47/compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7290,
67,
9355,
13332,
2552,
3504,
3504,
1011,
404,
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,
7290,
67,
9355,
13332,
2552,
3504,
3504,
1011,
404,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
fields = self.context.REQUEST hebPk=fields.get('heb_maj_hebpk') tableHotePk=fields.get('hebhot_tabhot_fk') | def insertTypeTableHoteOfHebergementMaj(self): """ ajoute les infos de mise à jour des tables d'hote d'un hebergement par le proprio table heb_tab_hote_maj """ fields = self.context.REQUEST hebPk=fields.get('heb_maj_hebpk') tableHotePk=fields.get('hebhot_tabhot_fk') wrapper = getSAWrapper('gites_wallons') session = wra... | 05260e966db103e2372db7e0275d8e49b07078e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10188/05260e966db103e2372db7e0275d8e49b07078e8/hebergement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
2832,
4606,
302,
11,
76,
1168,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
2832,
4606,
302,
11,
76,
1168,
302,
... | |
item.slot(3).setType("Unused") | item.slot(3).setType('Unused') | def chooseItemType(self, action): newtype = str(action.data().toString()) item = self.itemattrlist[self.currentTabLabel] if newtype == 'Normal Item' or newtype == 'Enhanced Bow': item.slot(4).setSlotType('effect') if item.slot(5).type()[-6:] == "Effect": item.slot(4).setAll(item.slot(5).type(), item.slot(5).amount(), i... | e9cb97a07852b15f89969cefa507f1e097a1c9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/e9cb97a07852b15f89969cefa507f1e097a1c9a8/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
22580,
12,
2890,
16,
1301,
4672,
394,
723,
273,
609,
12,
1128,
18,
892,
7675,
10492,
10756,
761,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
394,
723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
22580,
12,
2890,
16,
1301,
4672,
394,
723,
273,
609,
12,
1128,
18,
892,
7675,
10492,
10756,
761,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
394,
723... |
tgeo=read_file_with_comments('./EXECOPTS') | tgeo=ReadFileWithComments('./EXECOPTS') | def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return | 6726fd039f7a0494d6243f612d9ade4ec88db45d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6895/6726fd039f7a0494d6243f612d9ade4ec88db45d/sub_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... |
known_failures = ["i386-debian-etch-story6", "i386-ubuntu-intrepid-story6", "amd64-ubuntu-intrepid-story6", "i386-ubuntu-edgy-story6", "amd64-ubuntu-edgy-story6", | known_failures = ["i386-debian-etch", "i386-ubuntu-intrepid", "amd64-ubuntu-intrepid", "i386-ubuntu-edgy", "amd64-ubuntu-edgy", | def get_targets(config, deb_versions): # Plash needs Ubuntu universe for dietlibc-dev. ubuntu = {"name": "ubuntu", "url": config.ubuntu_mirror, "script": config.ubuntu_debootstrap_script, "subdists": ["main", "universe"]} ubuntu_old = {"name": "ubuntu", "url": config.ubuntu_old_mirror, "script": config.ubuntu_debootstr... | 60158ea2354ad073c4f41dfd7f51984a581d8c41 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1008/60158ea2354ad073c4f41dfd7f51984a581d8c41/chroot_build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11358,
12,
1425,
16,
18202,
67,
10169,
4672,
468,
3008,
961,
4260,
587,
70,
25348,
29235,
364,
4314,
278,
2941,
71,
17,
5206,
18,
13910,
25348,
273,
12528,
529,
6877,
315,
373,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11358,
12,
1425,
16,
18202,
67,
10169,
4672,
468,
3008,
961,
4260,
587,
70,
25348,
29235,
364,
4314,
278,
2941,
71,
17,
5206,
18,
13910,
25348,
273,
12528,
529,
6877,
315,
373,
... |
ChildTopWindow.__init__(self, _("Preferences"), 800, 500) | ChildTopWindow.__init__(self, _("Preferences"), 900, 500) | def __init__(self, controls): FControl.__init__(self, controls) | 9a4c14ee4cd00ac581c40c57126e6a81d3bd8d49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/9a4c14ee4cd00ac581c40c57126e6a81d3bd8d49/preferences_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11022,
4672,
478,
3367,
16186,
2738,
972,
12,
2890,
16,
11022,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
11022,
4672,
478,
3367,
16186,
2738,
972,
12,
2890,
16,
11022,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
assert False, "Tuple not in dependency tree: " + str(tuple) | assert False, "Tuple not in dependency tree: " + str(tuple) + " " + str(node) | def assert_tuple(tuple, node): if node[1]: cycles = node[1] else: cycles = [] if tuple[0] is node[0] or tuple[0] in cycles: tuple.pop() if tuple[0] is node[0] or tuple[0] in cycles: return elif len(tuple) > 1 and tuple[1] is node[0]: assert False, "Tuple not in dependency tree: " + str(tuple) for c in node[2]: assert_t... | 1b1f8d78dfe3a83cee1353fbdfe722bc1713124f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/1b1f8d78dfe3a83cee1353fbdfe722bc1713124f/dependency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
8052,
12,
8052,
16,
756,
4672,
309,
756,
63,
21,
14542,
15139,
273,
756,
63,
21,
65,
469,
30,
15139,
273,
5378,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
8052,
12,
8052,
16,
756,
4672,
309,
756,
63,
21,
14542,
15139,
273,
756,
63,
21,
65,
469,
30,
15139,
273,
5378,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63... |
bt += "/" | bt += " /" | def handle_starttag(self, tag, method, attrs): if tag not in self.permitted_tags: if tag not in self.stripped_tags: self.result.append( xssescape("<%s>" % tag) ) else: bt = "<" + tag if tag in self.allowed_attributes: attrs = dict(attrs) self.allowed_attributes_here = \ [x for x in self.allowed_attributes[tag] if x in... | e052e3b35747c8f40688b2146c2cba1c6ee73f70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/e052e3b35747c8f40688b2146c2cba1c6ee73f70/Html_cleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
707,
16,
3422,
4672,
309,
1047,
486,
316,
365,
18,
457,
7948,
67,
4156,
30,
309,
1047,
486,
316,
365,
18,
6406,
1845,
67,
4156,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
707,
16,
3422,
4672,
309,
1047,
486,
316,
365,
18,
457,
7948,
67,
4156,
30,
309,
1047,
486,
316,
365,
18,
6406,
1845,
67,
4156,
30,
365,... |
self._lineDict[name] = _Line(name, axes=axes, doAutoscale=doAutoscale, **kargs) | self._lineDict[name] = _Line(self, subplotInd, **kargs) def getDoAutoscale(self, subplotInd): return self._doAutoscaleArr[subplotInd] def getSubplot(self, subplotInd): return self.subplotArr[subplotInd] | def addLine(self, name, subplotInd=0, doLabel=True, **kargs): """Add a new quantity to plot Inputs: - name: name for line - subplotInd: index of subplot - doLabel: if True then the Line's label is set to name. Set True if you want the line to show up in the legend using name. Set False if you want no label (the line w... | 8f0db37bc375c56ac27469781575815f4f3b008d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/8f0db37bc375c56ac27469781575815f4f3b008d/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26772,
12,
2890,
16,
508,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
5510,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
10457,
358,
3207,
225,
24472,
30,
300,
508,
30,
508,
364,
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,
26772,
12,
2890,
16,
508,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
5510,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
10457,
358,
3207,
225,
24472,
30,
300,
508,
30,
508,
364,
9... |
try: if self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(): self.move_to_www_mode() else: rs, rsp = self.client_head_obj.get_http_server() if rs in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: self.move_to_www_mode() else: self.move_to_proxy_mode() except KeyError: | rs, rsp = self.client_head_obj.get_http_server() if rs in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: self.move_to_www_mode() elif self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(rs, rsp): self.move_to_www_mode() else: | def determine_mode(self): if self.config['GENERAL']['PARENT_PROXY']: if self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY'] or self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE']: try: if self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(): self.move_to_www_mode() else: rs, rsp = self.client... | 1c1e0aa9234eedf1ee6b79332cf55fa48586134b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2865/1c1e0aa9234eedf1ee6b79332cf55fa48586134b/proxy_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
3188,
12,
2890,
4672,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
14943,
67,
16085,
3546,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
1088... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
3188,
12,
2890,
4672,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
14943,
67,
16085,
3546,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
1088... |
pstdout = PIPE | if sys.platform == 'os2emx': pstdout = None else: pstdout = PIPE | def processLeakLog(leakLogFile): """Process the leak log.""" # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469523) if not os.path.exists(leakLogFile): return None | 2a8d758d6245d7de4e12f8f763bae830faf8087e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/2a8d758d6245d7de4e12f8f763bae830faf8087e/runxpcshelltests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1682,
581,
1343,
12,
298,
581,
19103,
4672,
3536,
2227,
326,
20891,
613,
12123,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1682,
581,
1343,
12,
298,
581,
19103,
4672,
3536,
2227,
326,
20891,
613,
12123,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
35... |
[(0, 1), (0, 10), (0, 19), (1, 8), (1, 2), (2, 3), (2, 6), (3, 19), (3, 4), (4, 17), (4, 5), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 16), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)] | [(0, 1), (0, 10), (0, 19), (1, 2), (1, 8), (2, 3), (2, 6), (3, 4), (3, 19), (4, 5), (4, 17), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 13), (12, 16), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)] | def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- (bool; default: True) if False, each edge is a tuple (u,v) of vertices. sort -- (bool; default: True) if True, ensure that the list of edges is sorted. | 8f2d854c03fa1d7cf1003912572ef6bf352712d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8f2d854c03fa1d7cf1003912572ef6bf352712d5/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,... |
j = end.start(0) res = tagfind.match(rawdata, i+1) if not res: raise RuntimeError, 'unexpected call to parse_starttag' k = res.end(0) tag = res.group(0) if not self.__seen_starttag and self.__seen_doctype: if tag != self.__seen_doctype: self.syntax_error('starttag does not match DOCTYPE') | tag = starttagmatch.match(rawdata, i) if tag is None or tag.end(0) != end.end(0): self.syntax_error('garbage in starttag') return end.end(0) tagname = tag.group('tagname') if not self.__seen_starttag and self.__seen_doctype and \ tagname != self.__seen_doctype: self.syntax_error('starttag does not match DOCTYPE') | def parse_starttag(self, i): rawdata = self.rawdata # i points to start of tag end = endbracket.search(rawdata, i+1) if not end: return -1 j = end.start(0) res = tagfind.match(rawdata, i+1) if not res: raise RuntimeError, 'unexpected call to parse_starttag' k = res.end(0) tag = res.group(0) if not self.__seen_starttag ... | 6ab07a6994f604145de2212d52c2267c7ebfeb5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ab07a6994f604145de2212d52c2267c7ebfeb5c/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
277,
3143,
358,
787,
434,
1047,
679,
273,
679,
21025,
18,
3072,
12,
1899,
892,
16,
277,
15,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
277,
3143,
358,
787,
434,
1047,
679,
273,
679,
21025,
18,
3072,
12,
1899,
892,
16,
277,
15,
21... |
if e[0] != _errno.EEXIST: | if e.args[0] != _errno.EEXIST: | def _get_default_tempdir(): """Calculate the default directory to use for temporary files. This routine should be called exactly once. We determine whether or not a candidate temp dir is usable by trying to create and write to a file in that directory. If this is successful, the test file is deleted. To prevent deni... | 62202e160bda60c00625487d4f103754838aa676 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/62202e160bda60c00625487d4f103754838aa676/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1886,
67,
5814,
1214,
13332,
3536,
8695,
326,
805,
1867,
358,
999,
364,
6269,
1390,
18,
1220,
12245,
1410,
506,
2566,
8950,
3647,
18,
225,
1660,
4199,
2856,
578,
486,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
67,
5814,
1214,
13332,
3536,
8695,
326,
805,
1867,
358,
999,
364,
6269,
1390,
18,
1220,
12245,
1410,
506,
2566,
8950,
3647,
18,
225,
1660,
4199,
2856,
578,
486,
279,
... |
if not ex: if modified: log = 'push(m)' else: log = 'push' self.refresh_patch(cache_update = False, log = log) else: self.refresh_patch(cache_update = False, log = 'push(c)') raise StackException, str(ex) return modified | self.refresh_patch(cache_update = False, log = 'push(m)') | def push_empty_patch(self, name): """Pushes an empty patch on the stack """ unapplied = self.get_unapplied() assert(name in unapplied) | d12b37ad2e67c914ec0d63d0877bf1ac90f7e044 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/d12b37ad2e67c914ec0d63d0877bf1ac90f7e044/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
... |
hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ) if self.info.is_hvm() and not hvm_pvdrv: code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason] log.info("HVM save:remote shutdown dom %d!", self.domid) xc.domain_shutdown(self.domid, code) | if self.info.is_hvm(): hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ) if not hvm_pvdrv: code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason] log.info("HVM save:remote shutdown dom %d!", self.domid) xc.domain_shutdown(self.domid, code) | def shutdown(self, reason): """Shutdown a domain by signalling this via xenstored.""" log.debug('XendDomainInfo.shutdown(%s)', reason) if self.state in (DOM_STATE_SHUTDOWN, DOM_STATE_HALTED,): raise XendError('Domain cannot be shutdown') | e5bc494866cc08ce7ae37d1778e7e82570e8786c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/e5bc494866cc08ce7ae37d1778e7e82570e8786c/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
16,
3971,
4672,
3536,
10961,
279,
2461,
635,
1573,
454,
310,
333,
3970,
23048,
22601,
12123,
613,
18,
4148,
2668,
60,
409,
3748,
966,
18,
15132,
9275,
87,
13,
2187,
3971,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
16,
3971,
4672,
3536,
10961,
279,
2461,
635,
1573,
454,
310,
333,
3970,
23048,
22601,
12123,
613,
18,
4148,
2668,
60,
409,
3748,
966,
18,
15132,
9275,
87,
13,
2187,
3971,... |
else: template_name = success_template_name | template_name = success_template_name | def follow(request, to_user_id, template_name='relationships/relationship_add_confirm.html', success_template_name='relationships/relationship_add_success.html', mimetype='text/html'): """ Allows a user to follow another user. Templates: ``relationships/relationship_add_confirm.html`` and ``relationships/relationship_... | 24068c98deeb5437ddc267accc7519be064fadda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11830/24068c98deeb5437ddc267accc7519be064fadda/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2805,
12,
2293,
16,
358,
67,
1355,
67,
350,
16,
1542,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
2187,
2216,
67,
3202,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2805,
12,
2293,
16,
358,
67,
1355,
67,
350,
16,
1542,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
2187,
2216,
67,
3202,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
... |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') | def generate_current_bug_xml(self): queries = { 'Easy bugs': '', 'Documentation bugs': '' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') | e18f8d0790dd7a4976e34fcd84482d92c3f9b23f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/e18f8d0790dd7a4976e34fcd84482d92c3f9b23f/bugzilla_instances.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
12,
28707,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
12,
28707,
2,
-100,
-... |
sub['combined'], sub['left'], sub['top'], sub['width'], sub['height'], sub['type']) config[sub['file']] = x.meta_format() | Path.posifyPath(sub['combined']), sub['left'], sub['top'], sub['width'], sub['height'], sub['type']) config[Path.posifyPath(sub['file'])] = x.meta_format() | def runImageCombining(self): """Go through a list of images and create them as combination of other images""" if not self._job.get("combine-images", False): return | ee265889d0f5ee1c21a3b5885a13444646e1343c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ee265889d0f5ee1c21a3b5885a13444646e1343c/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2040,
24107,
310,
12,
2890,
4672,
3536,
5741,
3059,
279,
666,
434,
4602,
471,
752,
2182,
487,
10702,
434,
1308,
4602,
8395,
309,
486,
365,
6315,
4688,
18,
588,
2932,
14082,
17,
736... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
2040,
24107,
310,
12,
2890,
4672,
3536,
5741,
3059,
279,
666,
434,
4602,
471,
752,
2182,
487,
10702,
434,
1308,
4602,
8395,
309,
486,
365,
6315,
4688,
18,
588,
2932,
14082,
17,
736... |
if oneTwoVersion is False: return False | def checkVersion(self, oneZeroVersion, oneOneVersion, oneTwoVersion=None, twoZeroVersion=None): if self.majorVersion == [1,0]: if not oneZeroVersion: return False return self.minorVersion >= oneZeroVersion elif self.majorVersion == [1,1]: if not oneOneVersion: return False return self.minorVersion >= oneOneVersion elif... | 98ccac4228c9b941ab478aa38f812ce80ace7691 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/98ccac4228c9b941ab478aa38f812ce80ace7691/compat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1444,
12,
2890,
16,
1245,
7170,
1444,
16,
1245,
3335,
1444,
16,
1245,
11710,
1444,
33,
7036,
16,
2795,
7170,
1444,
33,
7036,
4672,
309,
365,
18,
14019,
1444,
422,
306,
21,
16,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1444,
12,
2890,
16,
1245,
7170,
1444,
16,
1245,
3335,
1444,
16,
1245,
11710,
1444,
33,
7036,
16,
2795,
7170,
1444,
33,
7036,
4672,
309,
365,
18,
14019,
1444,
422,
306,
21,
16,
20,... | |
m.resize(512) except SystemError: pass else: self.assertEqual(len(m), 512) self.assertRaises(ValueError, m.seek, 513, 0) f = open(TESTFN) | def test_basic(self): # Test mmap module on Unix systems and Windows | 456fe5d3cafc065b919fd4e8ba939c666f420dfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/456fe5d3cafc065b919fd4e8ba939c666f420dfa/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
12,
2890,
4672,
468,
7766,
30749,
1605,
603,
9480,
14908,
471,
8202,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
12,
2890,
4672,
468,
7766,
30749,
1605,
603,
9480,
14908,
471,
8202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
position = linear_interp (rootstart, rootend, i, len (paths['root'])) | position = linear_interp (rootstart, rootend, i, len(paths)) | def build_order(asf): order = ['root'] pos = 0 while pos < len(order): for group in asf.hierarchy: if len(group) and group[0] == order[pos]: order.extend(group[1:]) pos += 1 return order | 07d9044de24812334fbc0e0919fbef89c45b6f19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/07d9044de24812334fbc0e0919fbef89c45b6f19/shuffle-interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1019,
12,
345,
74,
4672,
1353,
273,
10228,
3085,
3546,
949,
273,
374,
1323,
949,
411,
562,
12,
1019,
4672,
364,
1041,
316,
487,
74,
18,
17937,
30,
309,
562,
12,
1655,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1019,
12,
345,
74,
4672,
1353,
273,
10228,
3085,
3546,
949,
273,
374,
1323,
949,
411,
562,
12,
1019,
4672,
364,
1041,
316,
487,
74,
18,
17937,
30,
309,
562,
12,
1655,
13,
4... |
Plone treats recognizes him, assigns local permissions if ShibbolethPermissions is installed and passes control to the next | Plone recognizes him and passes control to the next | def safe_int(s, default=0): try: return int(s) except (ValueError, TypeError): return default | 2de4ef7b586d1fa2962de407bcc01fa802722718 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11319/2de4ef7b586d1fa2962de407bcc01fa802722718/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
67,
474,
12,
87,
16,
805,
33,
20,
4672,
775,
30,
327,
509,
12,
87,
13,
1335,
261,
23610,
16,
3580,
4672,
327,
805,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
4183,
67,
474,
12,
87,
16,
805,
33,
20,
4672,
775,
30,
327,
509,
12,
87,
13,
1335,
261,
23610,
16,
3580,
4672,
327,
805,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sys.ps1 = "[DEBUG ON]>>> " | sys.ps1 = "[DEBUG ON]\n>>> " | def open_debugger(self): import Debugger self.interp.setdebugger(Debugger.Debugger(self)) sys.ps1 = "[DEBUG ON]>>> " self.showprompt() self.top.tkraise() self.text.focus_set() | adfe773d2c0ab1aa9f692956ed8f7fec0caaf940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/adfe773d2c0ab1aa9f692956ed8f7fec0caaf940/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4148,
693,
12,
2890,
4672,
1930,
28645,
365,
18,
24940,
18,
542,
4148,
693,
12,
24113,
18,
24113,
12,
2890,
3719,
2589,
18,
1121,
21,
273,
5158,
9394,
6229,
13944,
82,
23012,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4148,
693,
12,
2890,
4672,
1930,
28645,
365,
18,
24940,
18,
542,
4148,
693,
12,
24113,
18,
24113,
12,
2890,
3719,
2589,
18,
1121,
21,
273,
5158,
9394,
6229,
13944,
82,
23012,
... |
print 'user theme' | def LoadThemeCfg(self): ##current theme type radiobutton self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default', type='bool',default=1)) ##currently set theme currentOption=idleConf.CurrentTheme() print 'current option',currentOption ##load available theme option menus if self.themeIsBuiltin.get(): #defaul... | dfd0b296d766645bd2e01955a61f52643a483922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dfd0b296d766645bd2e01955a61f52643a483922/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | |
if storagegroups.has_key(u'posterdir'): videometadata[u'host'] = localhostname.lower() | def createVideometadataRecord(item): '''Using the details from a Miro item create a MythTV videometadata record return an dictionary of MythTV an initialised videometadata record ''' global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, flat, image_extensions global videometadata_initialize_reco... | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
... | |
return descriptors, tcoeff_names def getNames(self, descriptors, tcoeff_names): | return descriptors, tcoeff_names, true_values def getNames(self, descriptors, tcoeff_names, true_values): | def getDescriptors(self, trans, examples, buckets): tcoeff_names = [] descriptors = [] # used for managing continuous atts for i in range(len(trans)): t = trans[i] tc = ["%s"%t.attr.name] d = t.description() #print tc[0],d if d[0]==0: # continuous values = self.bucketize(examples, t.attr, buckets) tc += values descript... | d5d765a106ee2fda0789f07a6a122d52f838cef9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/d5d765a106ee2fda0789f07a6a122d52f838cef9/orngLinVis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
8379,
12,
2890,
16,
906,
16,
10991,
16,
9169,
4672,
1715,
15548,
1403,
67,
1973,
273,
5378,
14215,
273,
5378,
468,
1399,
364,
30632,
17235,
15687,
364,
277,
316,
1048,
12,
1897,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
8379,
12,
2890,
16,
906,
16,
10991,
16,
9169,
4672,
1715,
15548,
1403,
67,
1973,
273,
5378,
14215,
273,
5378,
468,
1399,
364,
30632,
17235,
15687,
364,
277,
316,
1048,
12,
1897,
12... |
fd = os.open(filename, os.O_RDONLY, 0777) def call_fstat(fd): | def call_fstat(): fd = os.open(filename, os.O_RDONLY, 0777) | def test_os_fstat(): if os.environ.get('PYPY_CC', '').startswith('tcc'): py.test.skip("segfault with tcc :-(") filename = str(py.magic.autopath()) fd = os.open(filename, os.O_RDONLY, 0777) def call_fstat(fd): st = os.fstat(fd) return (st.st_mode, st[1], st.st_mtime) f = compile(call_fstat, [int]) osstat = os.stat(filen... | 7ade73798be092b77257e5fe57c2788969feaff1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/7ade73798be092b77257e5fe57c2788969feaff1/test_extfunc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
538,
67,
74,
5642,
13332,
309,
1140,
18,
28684,
18,
588,
2668,
16235,
16235,
67,
6743,
2187,
875,
2934,
17514,
1918,
2668,
88,
952,
11,
4672,
2395,
18,
3813,
18,
7457,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
538,
67,
74,
5642,
13332,
309,
1140,
18,
28684,
18,
588,
2668,
16235,
16235,
67,
6743,
2187,
875,
2934,
17514,
1918,
2668,
88,
952,
11,
4672,
2395,
18,
3813,
18,
7457,
2932,
... |
cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],)) | cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True)) | def get_id(self, cr, uid, sequence_id, test='id=%s', context={}): try: cr.execute('lock table ir_sequence') cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True', (sequence_id,)) res = cr.dictfetchone() if res: cr.execute('update ir_sequence set number... | 3dfafb4181f1899abe184c89975fca1dd32d5dad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/3dfafb4181f1899abe184c89975fca1dd32d5dad/ir_sequence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
... |
print >> web.debug, "* query fmt: returning (%r)"% r | def __query_fmt(self, query, **attribs): # rows=None, start=None, wt=None, sort=None): fshards = ','.join('%s:%s/solr'%(host,port) for host,port in self.shards) ax = list((k,v) for k,v in attribs.items() if v is not None) if fshards: ax.append(('shards', fshards)) | 32367ba00b90bef054832983fcf0d1ce85720412 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/32367ba00b90bef054832983fcf0d1ce85720412/solr_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2271,
67,
8666,
12,
2890,
16,
843,
16,
2826,
19617,
4672,
468,
2595,
33,
7036,
16,
787,
33,
7036,
16,
18201,
33,
7036,
16,
1524,
33,
7036,
4672,
284,
24633,
273,
3316,
18,
5701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
67,
8666,
12,
2890,
16,
843,
16,
2826,
19617,
4672,
468,
2595,
33,
7036,
16,
787,
33,
7036,
16,
18201,
33,
7036,
16,
1524,
33,
7036,
4672,
284,
24633,
273,
3316,
18,
5701,
... | |
def ensureDir(dirname): try: os.mkdir(dirname) except OSError, e: if e.errno != errno.EEXIST: raise | def ensureDir(dirname): try: os.mkdir(dirname) except OSError, e: if e.errno != errno.EEXIST: raise | 7b9d4a307a746d896df59c0625a9cc28f1b2a629 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/7b9d4a307a746d896df59c0625a9cc28f1b2a629/sb_server.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... | |
return beta * self.stdgamma(alpha) def stdgamma(self, alpha, *args): | if alpha <= 0.0 or beta <= 0.0: raise ValueError, 'gammavariate: alpha and beta must be > 0.0' | def gammavariate(self, alpha, beta): # beta times standard gamma return beta * self.stdgamma(alpha) | 1ef4463cc4c8aa15656fd0bdff420ad6c0ca29da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1ef4463cc4c8aa15656fd0bdff420ad6c0ca29da/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
468,
6796,
4124,
4529,
9601,
327,
6796,
380,
365,
18,
5084,
20589,
12,
5429,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
468,
6796,
4124,
4529,
9601,
327,
6796,
380,
365,
18,
5084,
20589,
12,
5429,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
str, "\\N{blah}", 'unicode-escape', 'strict' | str, b"\\N{blah}", 'unicode-escape', 'strict' | def test_strict_eror_handling(self): # bogus character name self.assertRaises( UnicodeError, str, "\\N{blah}", 'unicode-escape', 'strict' ) # long bogus character name self.assertRaises( UnicodeError, str, "\\N{%s}" % ("x" * 100000), 'unicode-escape', 'strict' ) # missing closing brace self.assertRaises( UnicodeError, ... | e560a3660e775406196138e35838041e5b7b5780 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e560a3660e775406196138e35838041e5b7b5780/test_ucn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
... |
raise ConfigFileReadErrorException("File '" + CONF_FILE + "' is missing or does not contain a '" + section + "' section") | raise ConfigFileReadErrorException("File '" + self.config_file + "' is missing or does not contain a '" + section + "' section") | def read_var(self, section, name): if not self.config.has_section(section) : raise ConfigFileReadErrorException("File '" + CONF_FILE + "' is missing or does not contain a '" + section + "' section") | 02d4f54f9bf105783c378e298f525b5055ee8a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/02d4f54f9bf105783c378e298f525b5055ee8a66/Config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1401,
12,
2890,
16,
2442,
16,
508,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3464,
12,
3464,
13,
294,
1002,
31988,
1994,
10009,
2932,
812,
2119,
397,
18733,
67,
3776,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1401,
12,
2890,
16,
2442,
16,
508,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3464,
12,
3464,
13,
294,
1002,
31988,
1994,
10009,
2932,
812,
2119,
397,
18733,
67,
3776,
397,
... |
client = get_client(client) client.delete(self.endpoint, id) | if client is None: client = get_client() client.delete(cls.endpoint, id) | def __class_delete(cls, id, client=None): """Deletes an object identified by `id`""" client = get_client(client) client.delete(self.endpoint, id) | 70d2dda2f37ca4c6fcc13695437b4e150ef275a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10415/70d2dda2f37ca4c6fcc13695437b4e150ef275a9/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1106,
67,
3733,
12,
6429,
16,
612,
16,
1004,
33,
7036,
4672,
3536,
7551,
392,
733,
9283,
635,
1375,
350,
68,
8395,
1004,
273,
336,
67,
2625,
12,
2625,
13,
1004,
18,
3733,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1106,
67,
3733,
12,
6429,
16,
612,
16,
1004,
33,
7036,
4672,
3536,
7551,
392,
733,
9283,
635,
1375,
350,
68,
8395,
1004,
273,
336,
67,
2625,
12,
2625,
13,
1004,
18,
3733,
12,
2... |
self._itemName = '' | self._itemName = u'' | def init(self): self = super(ASDictionary, self).init() if self is None: return self._selectedFiles = [] # {'name': '...', 'path': '...'} self._canExport = False self._htmlOptionsEnabled = False self._itemName = '' self._progressBar = 0 self._showLog = False # Connect to StandardAdditions (see note at top of script) se... | 8f9010fda4ea23709fcac7764ebade390a893a95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10961/8f9010fda4ea23709fcac7764ebade390a893a95/ASDictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
3033,
10905,
16,
365,
2934,
2738,
1435,
309,
365,
353,
599,
30,
327,
365,
6315,
8109,
2697,
273,
5378,
468,
13666,
529,
4278,
20243,
16,
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,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
3033,
10905,
16,
365,
2934,
2738,
1435,
309,
365,
353,
599,
30,
327,
365,
6315,
8109,
2697,
273,
5378,
468,
13666,
529,
4278,
20243,
16,
296,
... |
@staticmethod | @staticmethod | def getPath(self, path): """ Created: Unknown, KP Description: Returns a valid path based on the parameter """ if type(path) == types.StringType: path = [path] return os.path.normpath(os.path.join(self.installPath, reduce(os.path.join, path))) | 51eb7efbd47abaa0e8a0282a154f6aa787052985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/51eb7efbd47abaa0e8a0282a154f6aa787052985/Configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
16,
589,
4672,
3536,
12953,
30,
9077,
16,
1475,
52,
6507,
30,
2860,
279,
923,
589,
2511,
603,
326,
1569,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
16,
589,
4672,
3536,
12953,
30,
9077,
16,
1475,
52,
6507,
30,
2860,
279,
923,
589,
2511,
603,
326,
1569,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
589... |
self.attachProcess(command[7:]) | errmsg = self.attachProcess(command[7:]) | def execute(self, command): errmsg = None if command == "cont": errmsg = self.cont() elif command == "proc": self.procInfo() elif command == "proclist": self.procList() elif command.startswith("attach "): self.attachProcess(command[7:]) elif command == "regs": self.process.dumpRegs() elif command == "stack": self.proce... | 491ccbf2caa99ae67adeec33acc32a8eed95341a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/296/491ccbf2caa99ae67adeec33acc32a8eed95341a/gdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
4672,
17460,
273,
599,
309,
1296,
422,
315,
1213,
6877,
17460,
273,
365,
18,
1213,
1435,
1327,
1296,
422,
315,
9381,
6877,
365,
18,
9381,
966,
1435,
1327,
1296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
4672,
17460,
273,
599,
309,
1296,
422,
315,
1213,
6877,
17460,
273,
365,
18,
1213,
1435,
1327,
1296,
422,
315,
9381,
6877,
365,
18,
9381,
966,
1435,
1327,
1296,... |
setup_layer(options, layer, setup_layers) return run_tests(options, tests, layer_name, failures, errors) | try: setup_layer(options, layer, setup_layers) except EndRun: raise except Exception: f = cStringIO.StringIO() traceback.print_exc(file=f) output.error(f.getvalue()) errors.append((SetUpLayerFailure(), sys.exc_info())) return 0 else: return run_tests(options, tests, layer_name, failures, errors) class SetUpLayerFailur... | def run_layer(options, layer_name, layer, tests, setup_layers, failures, errors): output = options.output gathered = [] gather_layers(layer, gathered) needed = dict([(l, 1) for l in gathered]) if options.resume_number != 0: output.info("Running %s tests:" % layer_name) tear_down_unneeded(options, needed, setup_layers)... | 77e0f64f2b2d42166edd0b1f03ae8c1f023220b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10007/77e0f64f2b2d42166edd0b1f03ae8c1f023220b5/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
6363,
12,
2116,
16,
3018,
67,
529,
16,
3018,
16,
7434,
16,
3875,
67,
10396,
16,
11720,
16,
1334,
4672,
225,
876,
273,
702,
18,
2844,
11090,
329,
273,
5378,
11090,
67,
10396,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
6363,
12,
2116,
16,
3018,
67,
529,
16,
3018,
16,
7434,
16,
3875,
67,
10396,
16,
11720,
16,
1334,
4672,
225,
876,
273,
702,
18,
2844,
11090,
329,
273,
5378,
11090,
67,
10396,
... |
def test_index(self): b = b'parrot' self.assertEqual(b.index('p'), 0) self.assertEqual(b.index('rr'), 2) self.assertEqual(b.index('t'), 5) self.assertRaises(ValueError, lambda: b.index('w')) def test_count(self): b = b'mississippi' self.assertEqual(b.count(b'i'), 4) self.assertEqual(b.count(b'ss'), 2) self.assertEqual... | def test_index(self): b = b'parrot' self.assertEqual(b.index('p'), 0) self.assertEqual(b.index('rr'), 2) self.assertEqual(b.index('t'), 5) self.assertRaises(ValueError, lambda: b.index('w')) | ee68bbafb3455a5d2d59063851393925977e8adc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/ee68bbafb3455a5d2d59063851393925977e8adc/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
12,
2890,
4672,
324,
273,
324,
11,
1065,
8342,
11,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
84,
19899,
374,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1615,
12,
2890,
4672,
324,
273,
324,
11,
1065,
8342,
11,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
84,
19899,
374,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
523... | |
query = "INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) " \ "VALUES (%s, %s, %s, %s, %s, %s, %s)" | query = """INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) VALUES (%s, %s, %s, %s, %s, %s, %s)""" | def query_add_comment_or_remark(reviews=0, recID=0, uid=-1, msg="", note="", score=0, priority=0, client_ip_address=''): """ Private function Insert a comment/review or remarkinto the database @param recID: record id @param uid: user id @param msg: comment body @param note: comment title @param score: review star score... | 19293d1d7864d96de149757fd866961c1ff4b39a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3302/19293d1d7864d96de149757fd866961c1ff4b39a/webcomment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
1289,
67,
3469,
67,
280,
67,
2764,
1313,
12,
266,
7061,
33,
20,
16,
1950,
734,
33,
20,
16,
4555,
29711,
21,
16,
1234,
1546,
3113,
4721,
1546,
3113,
4462,
33,
20,
16,
4394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
1289,
67,
3469,
67,
280,
67,
2764,
1313,
12,
266,
7061,
33,
20,
16,
1950,
734,
33,
20,
16,
4555,
29711,
21,
16,
1234,
1546,
3113,
4721,
1546,
3113,
4462,
33,
20,
16,
4394,
... |
valp = extract(c1,val) | def _cdf(self, x, c): output = 0.0*x val = (1.0+c)/(1.0-c) c1 = x<pi c2 = 1-c1 xp = extract( c1,x) valp = extract(c1,val) xn = extract( c2,x) valn = extract(c2,val) if (any(xn)): xn = 2*pi - xn yn = tan(xn/2.0) on = 1.0-1.0/pi*arctan(valn*yn) place(output, c2, on) if (any(xp)): yp = tan(xp/2.0) op = 1.0/pi*arctan(valp*... | 71676a6a55d58d6bf27bd58f974692564970e1af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/71676a6a55d58d6bf27bd58f974692564970e1af/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
276,
4672,
876,
273,
374,
18,
20,
14,
92,
1244,
273,
261,
21,
18,
20,
15,
71,
13176,
12,
21,
18,
20,
17,
71,
13,
276,
21,
273,
619,
32,
7259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24799,
12,
2890,
16,
619,
16,
276,
4672,
876,
273,
374,
18,
20,
14,
92,
1244,
273,
261,
21,
18,
20,
15,
71,
13176,
12,
21,
18,
20,
17,
71,
13,
276,
21,
273,
619,
32,
7259,
... | |
headers_out = res.getheaders() | headers_out = [] for header, value in res.getheaders(): if header.lower() not in filtered_headers: headers_out.append((header, value)) | def __call__(self, environ, start_response): if self.scheme == 'http': ConnClass = httplib.HTTPConnection elif self.scheme == 'https': ConnClass = httplib.HTTPSConnection else: raise ValueError( "Unknown scheme for %r: %r" % (self.address, self.scheme)) conn = ConnClass(self.host) headers = {} for key, value in environ... | cb7bdabc239c4002b380017cfbcdfe2a0e517f51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/cb7bdabc239c4002b380017cfbcdfe2a0e517f51/proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
9068,
422,
296,
2505,
4278,
6683,
797,
273,
15851,
6673,
18,
3693,
1952,
1327,
365,
18,
9068,
422,
296,
4528... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
9068,
422,
296,
2505,
4278,
6683,
797,
273,
15851,
6673,
18,
3693,
1952,
1327,
365,
18,
9068,
422,
296,
4528... |
self.vpan.set_position(275) | tmp = 0 w, h = self.window.get_size() self.vpan.set_position(h) tmp = self.vpan.get_position() print tmp self.vpan.set_position(int((275.0/450)*h)) | def tree_select_changed(self, widget=None, event=None): model, iter = self.selection.get_selected() value = model.get_value(iter,0) #print value if value not in list_groups(): self.vpan.set_position(275) else: self.vpan.set_position(10000) detail = get_details(value) buff = self.output_txtview.get_buffer() buff.set_tex... | b35ac0bc384cf082ae603d692369925f2c13cf46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/b35ac0bc384cf082ae603d692369925f2c13cf46/wordgroupz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
67,
4025,
67,
6703,
12,
2890,
16,
3604,
33,
7036,
16,
871,
33,
7036,
4672,
938,
16,
1400,
273,
365,
18,
10705,
18,
588,
67,
8109,
1435,
460,
273,
938,
18,
588,
67,
1132,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
67,
4025,
67,
6703,
12,
2890,
16,
3604,
33,
7036,
16,
871,
33,
7036,
4672,
938,
16,
1400,
273,
365,
18,
10705,
18,
588,
67,
8109,
1435,
460,
273,
938,
18,
588,
67,
1132,
12,
... |
@xfail | def test_style(): yield check_style, u"''frankfurt''", (2,) yield check_style, u"'''mainz'''", (3,) yield check_style,u"'''''hamburg'''''", (3,2) yield check_style, u"'''''foo'' bla'''", (3,2,3) yield check_style, u"'''''mainz''' bla''", (3,2,2) yield check_style, u"'''''''''''''''''''pp'''''", (3,2) yield check_style,... | 0a40078fb3d66df1a669344fc1392ded8202d50a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/0a40078fb3d66df1a669344fc1392ded8202d50a/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
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,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
3113,
... | |
if self.command == 'POST': | if self.command == 'POST' or self.command == 'PUT' : | def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!""" | 762d2db5d5e1b0d7852ddb2efef982b00e897322 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/762d2db5d5e1b0d7852ddb2efef982b00e897322/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
-100,
-100,
-100,
-10... |
if item.Class == constants.olMail: msgstore_message = self.manager.message_store.GetMessage(item) | msgstore_message = self.manager.message_store.GetMessage(item) if msgstore_message and msgstore_message.IsFilterCandidate(): | def GetSelectedMessages(self, allow_multi = True, explorer = None): if explorer is None: explorer = self.Application.ActiveExplorer() sel = explorer.Selection if sel.Count > 1 and not allow_multi: self.manager.ReportError("Please select a single item", "Large selection") return None | d5eee01743d5a25f38ae1bfa806f20c668cc6121 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d5eee01743d5a25f38ae1bfa806f20c668cc6121/addin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7416,
5058,
12,
2890,
16,
1699,
67,
7027,
273,
1053,
16,
22147,
273,
599,
4672,
309,
22147,
353,
599,
30,
22147,
273,
365,
18,
3208,
18,
3896,
20938,
1435,
357,
273,
22147,
18,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7416,
5058,
12,
2890,
16,
1699,
67,
7027,
273,
1053,
16,
22147,
273,
599,
4672,
309,
22147,
353,
599,
30,
22147,
273,
365,
18,
3208,
18,
3896,
20938,
1435,
357,
273,
22147,
18,
62... |
return | from calibre.ebooks.oeb.base import urlnormalize href = urlnormalize(oeb.guide['toc'].href) if href in oeb.manifest.hrefs: item = oeb.manifest.hrefs[href] if oeb.spine.index(item) < 0: oeb.spine.add(item, linear=False) return else: oeb.guide.remove('toc') | def __call__(self, oeb, context): if 'toc' in oeb.guide: return if not getattr(getattr(oeb, 'toc', False), 'nodes', False): return oeb.logger.info('Generating in-line TOC...') title = self.title or oeb.translate(DEFAULT_TITLE) style = self.style if style not in STYLE_CSS: oeb.logger.error('Unknown TOC style %r' % style... | 3a4ac4663befd39598385c771d25e14e6ba648b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3a4ac4663befd39598385c771d25e14e6ba648b5/htmltoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
320,
24008,
16,
819,
4672,
309,
296,
1391,
11,
316,
320,
24008,
18,
12118,
30,
225,
628,
26139,
266,
18,
73,
12567,
18,
15548,
70,
18,
1969,
1930,
880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
320,
24008,
16,
819,
4672,
309,
296,
1391,
11,
316,
320,
24008,
18,
12118,
30,
225,
628,
26139,
266,
18,
73,
12567,
18,
15548,
70,
18,
1969,
1930,
880,
... |
z = zipfile.ZipFile(zip_filename, "w", compression=zipfile.ZIP_DEFLATED) | z = zipfile.ZipFile(zip_filename, "w", compression=compression) | def visit (z, dirname, names): for name in names: path = os.path.normpath(os.path.join(dirname, name)) if os.path.isfile(path): p = path[len(base_dir)+1:] if not dry_run: z.write(path, p) log.debug("adding '%s'" % p) | 51744a3040da5d1a8489eda8647f253047628c1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/51744a3040da5d1a8489eda8647f253047628c1e/bdist_egg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
... |
if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | return "/".join(self._short_opts + self._long_opts) | def __str__ (self): if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | 2492fcf3b0d58eafc9a7551263857649fcc7f1a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2492fcf3b0d58eafc9a7551263857649fcc7f1a4/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952... |
raise TestFailed, 'list index, negative stop argument' | raise TestFailed, 'list index, very -stop argument' | def __getitem__(self, key): return str(key) + '!!!' | e618d3051dd46bc547d5524bef5e38ece3f4bc7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e618d3051dd46bc547d5524bef5e38ece3f4bc7a/test_types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
609,
12,
856,
13,
397,
296,
8548,
5124,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
609,
12,
856,
13,
397,
296,
8548,
5124,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def __parseGroupHierarchy(self, node): | def __parseGroupHierarchy(self, ip): | def __parseGroupHierarchy(self, node): """Parse <grouphierarchy>. | 548339ade027fa3106a7161f4e817ac9e2f1e024 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/548339ade027fa3106a7161f4e817ac9e2f1e024/comps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
1114,
12074,
12,
2890,
16,
2359,
4672,
3536,
3201,
411,
1655,
17937,
18652,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2670,
1114,
12074,
12,
2890,
16,
2359,
4672,
3536,
3201,
411,
1655,
17937,
18652,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
re_mac = re.compile('([a-f\d]{2}[:]?){5}[a-f\d]{2}') hwaddress_validator = RegexValidator(re_mac,'Enter a valid hardware address.', 'invalid') | re_valid_mac = re.compile(r'([A-Fa-f\d]{2}[:-]?){5}[A-Fa-f\d]{2}') re_mac_octets = re.compile(r'[A-Fa-f\d]{2}') hwaddress_validator = RegexValidator(re_valid_mac,'Enter a valid hardware address.', 'invalid') | def default_label(self): # TODO: make dynamic for different types of clusters try: assert self.rack.label is not None and self.first_slot is not \ None, 'not able to generate a label' return 'r%sn%s' % (self.rack.label, self.first_slot) except: pass | 1b6035eab3dc9c56376c34054483cbe42d90a9f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1104/1b6035eab3dc9c56376c34054483cbe42d90a9f1/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
1925,
12,
2890,
4672,
468,
2660,
30,
1221,
5976,
364,
3775,
1953,
434,
9566,
775,
30,
1815,
365,
18,
21580,
18,
1925,
353,
486,
599,
471,
365,
18,
3645,
67,
14194,
353,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
1925,
12,
2890,
4672,
468,
2660,
30,
1221,
5976,
364,
3775,
1953,
434,
9566,
775,
30,
1815,
365,
18,
21580,
18,
1925,
353,
486,
599,
471,
365,
18,
3645,
67,
14194,
353,
486,
... |
return subprocess.call(args2, executable=prog) | return subprocess.call(args2) | def exec_pg_command(name, *args): prog = find_pg_tool(name) if not prog: raise Exception('Couldn\'t find %s' % name) args2 = (os.path.basename(prog),) + args return subprocess.call(args2, executable=prog) | 9c03b09c67306d972f9fa20840cf51875b73e5d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/9c03b09c67306d972f9fa20840cf51875b73e5d0/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
8365,
67,
3076,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
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,
1196,
67,
8365,
67,
3076,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
11,
... |
parts = [] for c in self.clients: parts.append(c.request_template.url) parts.append(c.request_template.params.layer) self.identifier = ''.join(parts) | self.identifier = legend_identifier( [(c.request_template.url, c.request_template.params.layer) for c in self.clients]) | def __init__(self, clients, legend_cache): self.clients = clients parts = [] for c in self.clients: parts.append(c.request_template.url) parts.append(c.request_template.params.layer) self.identifier = ''.join(parts) self._cache = legend_cache self._size = None | cd68ae175e3d3546ee8017c54d906894c19009a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/cd68ae175e3d3546ee8017c54d906894c19009a9/wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7712,
16,
7241,
67,
2493,
4672,
365,
18,
16931,
273,
7712,
365,
18,
5644,
273,
7241,
67,
5644,
12,
306,
12,
71,
18,
2293,
67,
3202,
18,
718,
16,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7712,
16,
7241,
67,
2493,
4672,
365,
18,
16931,
273,
7712,
365,
18,
5644,
273,
7241,
67,
5644,
12,
306,
12,
71,
18,
2293,
67,
3202,
18,
718,
16,
276,
... |
do('dmap.supportsextensions', False), do('dmap.supportsindex', False), do('dmap.supportsbrowse', False), do('dmap.supportsquery', False), do('dmap.supportspersistentids', False), | do('dmap.supportspersistentids', True), | def GET(self): msrv = do('dmap.serverinforesponse', [ do('dmap.status', 200), do('dmap.protocolversion', '2.0'), do('daap.protocolversion', '3.0'), do('dmap.timeoutinterval', 1800), do('dmap.itemname', server_name), do('dmap.loginrequired', False), do('dmap.authenticationmethod', 0), do('dmap.supportsextensions', False... | 1f8be4b2efc5528d7122cf9175e4e41b129ebc76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8691/1f8be4b2efc5528d7122cf9175e4e41b129ebc76/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
4086,
4962,
273,
741,
2668,
72,
1458,
18,
3567,
1376,
2740,
2187,
306,
741,
2668,
72,
1458,
18,
2327,
2187,
4044,
3631,
741,
2668,
72,
1458,
18,
8373,
1589,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
4086,
4962,
273,
741,
2668,
72,
1458,
18,
3567,
1376,
2740,
2187,
306,
741,
2668,
72,
1458,
18,
2327,
2187,
4044,
3631,
741,
2668,
72,
1458,
18,
8373,
1589,
2187,
... |
if k == 'text' and fnmatch.fnmatch(filename, args.include): | if k == 'text' and fnmatch.fnmatch(os.path.basename(filename), args.include): | def get_filenames(args): """ Generate the filenames to grep. """ files = [] # If the user has given us a file with filenames, consume them first. if args.files_from_file is not None: if args.files_from_file == '-': files_file = sys.stdin should_close = False elif os.path.exists(args.files_from_file): files_file = open(... | 99fb606c1730356378f611089d7fe166cec788e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10903/99fb606c1730356378f611089d7fe166cec788e2/grin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
12,
1968,
4672,
3536,
6654,
326,
9066,
358,
23366,
18,
3536,
1390,
273,
5378,
468,
971,
326,
729,
711,
864,
584,
279,
585,
598,
9066,
16,
7865,
2182,
1122,
18,
309,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
12,
1968,
4672,
3536,
6654,
326,
9066,
358,
23366,
18,
3536,
1390,
273,
5378,
468,
971,
326,
729,
711,
864,
584,
279,
585,
598,
9066,
16,
7865,
2182,
1122,
18,
309,
833... |
print >>STDERR, 'At step=' + str(step) | print >>STDERR, 'At formPerfectRuns, step=' + str(step) | def runOld(self): self.globals['atacAlgorithmVersion'] = str(17) print >>STDERR, "runName = %s\n" % self.runName | b0320aafbfa4ffff8c6908c5f59785ef879bfba8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2088/b0320aafbfa4ffff8c6908c5f59785ef879bfba8/AtacDriver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
7617,
12,
2890,
4672,
365,
18,
16227,
3292,
396,
71,
6801,
1444,
3546,
273,
609,
12,
4033,
13,
1172,
1671,
882,
25617,
16,
315,
2681,
461,
273,
738,
87,
64,
82,
6,
738,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7617,
12,
2890,
4672,
365,
18,
16227,
3292,
396,
71,
6801,
1444,
3546,
273,
609,
12,
4033,
13,
1172,
1671,
882,
25617,
16,
315,
2681,
461,
273,
738,
87,
64,
82,
6,
738,
365,
18... |
def set_write_buffered(): | def _set_write_buffered(): | def set_write_buffered(): flag = fcntl.fcntl(sys.stdout, fcntl.F_GETFL) fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flag & ~os.O_NDELAY) | e4098373e5716f8e9470cb371a433c13b3d73ade /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11479/e4098373e5716f8e9470cb371a433c13b3d73ade/clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2626,
67,
26385,
13332,
2982,
273,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
3264,
19054,
13,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2626,
67,
26385,
13332,
2982,
273,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
3264,
19054,
13,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
3... |
if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and window==focusObject.event_windowHandle: eventName="caret" objectID=focusObject.event_objectID childID=focusObject.IAccessibleChildID | if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and (window==focusObject.event_windowHandle or window==focusObject.windowHandle): return queueHandler.queueFunction(queueHandler.eventQueue,eventHandler.manageEvent,"caret",focusObject) | def winEventCallback(handle,eventID,window,objectID,childID,threadID,timestamp): try: focusObject=api.getFocusObject() foregroundObject=api.getForegroundObject() desktopObject=api.getDesktopObject() navigatorObject=api.getNavigatorObject() mouseObject=api.getMouseObject() eventName=eventMap[eventID] #Change window objI... | 2769732836f58cc8e4925d4ce4df5c7e4afcc74b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/2769732836f58cc8e4925d4ce4df5c7e4afcc74b/IAccessibleHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1133,
2428,
12,
4110,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
16,
5508,
4672,
775,
30,
7155,
921,
33,
2425,
18,
588,
9233,
921,
1435,
16231,
921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1133,
2428,
12,
4110,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
16,
5508,
4672,
775,
30,
7155,
921,
33,
2425,
18,
588,
9233,
921,
1435,
16231,
921,
... |
response = self.br.open(url) | response = self.newBrowser().open(url) | def fetchSiteSurvey(self): url = "http://%s/Site_Survey.asp" % self.hostname | 2d093c14be5a548e7f2de89704c1a8517e2d5677 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9143/2d093c14be5a548e7f2de89704c1a8517e2d5677/ddwrt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4956,
22165,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
4956,
67,
22165,
18,
28264,
6,
738,
365,
18,
10358,
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,
2158,
4956,
22165,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
4956,
67,
22165,
18,
28264,
6,
738,
365,
18,
10358,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Set the list of time slides to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. | Set the list of offset vectors to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. | def set_time_slides(self, offsetdictlist): """ Set the list of time slides to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. """ self.timeslides = offsetdictlist min_offset = min(min(ti... | 5afd00a93e9df3377b0390c41b2e01173c997532 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/5afd00a93e9df3377b0390c41b2e01173c997532/ligolw_cafe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
1384,
10046,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
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,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
1384,
10046,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
18,... |
zLOG.LOG("ZEOStorage:%s:%s" % (pid, name), level, msg, error=error) | zLOG.LOG("%s:%s" % (_label, name), level, msg, error=error) | def _log(self, msg, level=zLOG.INFO, error=None, pid=os.getpid()): name = getattr(self.__storage, '__name__', None) if name is None: name = str(self.__storage) zLOG.LOG("ZEOStorage:%s:%s" % (pid, name), level, msg, error=error) | b65ac5ca69f921a61a6c92be02c15bb88f981bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/b65ac5ca69f921a61a6c92be02c15bb88f981bfb/StorageServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1330,
12,
2890,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
2890,
16186,
5697,
16,
4940,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1330,
12,
2890,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
2890,
16186,
5697,
16,
4940,
529... |
if len(temp)==0: return if temp[-1]=='/': temp = temp[:-1] | self.base = path path = path.split('/') | def __init__(self, uri): | 4cc4d01d5479a695fcf128146a17545a587923d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/4cc4d01d5479a695fcf128146a17545a587923d7/URLParse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
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... |
self.propMgr.rotateAboutPointButton.setChecked(False) | def _acceptLineModePoints(self, params): #bruce 080801, revises acceptParamsFromTemporaryMode """ Accept returned points from the Line_Command request command. """ ### REVIEW: can this be called with params == None, # and/or never called, if Line_Command is terminated early? # In current code, it must always be called,... | df89c25a8efcb7b63783a6955bffa3bdd3657f47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/df89c25a8efcb7b63783a6955bffa3bdd3657f47/Move_Command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9436,
1670,
2309,
5636,
12,
2890,
16,
859,
4672,
468,
2848,
3965,
374,
3672,
28,
1611,
16,
283,
3516,
281,
2791,
1370,
1265,
11685,
2309,
3536,
8662,
2106,
3143,
628,
326,
5377,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9436,
1670,
2309,
5636,
12,
2890,
16,
859,
4672,
468,
2848,
3965,
374,
3672,
28,
1611,
16,
283,
3516,
281,
2791,
1370,
1265,
11685,
2309,
3536,
8662,
2106,
3143,
628,
326,
5377,
67,... | |
"chisq_dof": "real_4", "sigmasq": "real_4", | "chisq_dof": "int_4s", "sigmasq": "real_8", | def set_band(self, band): self.central_freq = (band[0] + band[1])/2.0 self.bandwidth = band.duration() | b1cbab0ab7468a82afef33c240272a6fdc8e6cf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/b1cbab0ab7468a82afef33c240272a6fdc8e6cf1/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
12,
2890,
16,
8937,
4672,
365,
18,
71,
12839,
67,
10212,
273,
261,
12752,
63,
20,
65,
397,
8937,
63,
21,
5717,
19,
22,
18,
20,
365,
18,
29750,
273,
8937,
18,
8760,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
12,
2890,
16,
8937,
4672,
365,
18,
71,
12839,
67,
10212,
273,
261,
12752,
63,
20,
65,
397,
8937,
63,
21,
5717,
19,
22,
18,
20,
365,
18,
29750,
273,
8937,
18,
8760,
... |
return xen_api_error(['HANDLE_INVALID', 'VM', vtpm_struct['VM']]) | return xen_api_error(['HANDLE_INVALID', 'VTPM', vtpm_ref]) | def VTPM_destroy(self, session, vtpm_ref): xendom = XendDomain.instance() dom = xendom.get_vm_with_dev_uuid('vtpm', vtpm_ref) if dom: if dom.state != XEN_API_VM_POWER_STATE_HALTED: vm_ref = dom.get_dev_property('vtpm', vtpm_ref, 'VM') return xen_api_error(['VM_BAD_POWER_STATE', vm_ref, XendDomain.POWER_STATE_NAMES[XEN_... | 3070d0cfb532c3b4a9b62a3d967edd6f3daa970b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/3070d0cfb532c3b4a9b62a3d967edd6f3daa970b/XendAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
776,
11130,
49,
67,
11662,
12,
2890,
16,
1339,
16,
331,
6834,
81,
67,
1734,
4672,
619,
409,
362,
273,
1139,
409,
3748,
18,
1336,
1435,
4092,
273,
619,
409,
362,
18,
588,
67,
3489,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
776,
11130,
49,
67,
11662,
12,
2890,
16,
1339,
16,
331,
6834,
81,
67,
1734,
4672,
619,
409,
362,
273,
1139,
409,
3748,
18,
1336,
1435,
4092,
273,
619,
409,
362,
18,
588,
67,
3489,
67... |
res = super(crm_case, self).search(cr, uid, args, offset, | res = super(crm_case, self).search(cr, uid, args, offset, | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): res = super(crm_case, self).search(cr, uid, args, offset, limit, order, context, count) return res | 6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
400,
273,
2240,
12,
3353,
81,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
400,
273,
2240,
12,
3353,
81,
67... |
def __setitem__(self, obj): | def add(self, obj): | def __setitem__(self, obj): """ Add the documentation for an object, and everything contained by that object, to this documentation map. | 3cd49f83d0d683c0b0adea1a5358cdc2234d7583 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3cd49f83d0d683c0b0adea1a5358cdc2234d7583/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1081,
4672,
3536,
1436,
326,
7323,
364,
392,
733,
16,
471,
7756,
7542,
635,
716,
733,
16,
358,
333,
7323,
852,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1081,
4672,
3536,
1436,
326,
7323,
364,
392,
733,
16,
471,
7756,
7542,
635,
716,
733,
16,
358,
333,
7323,
852,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
<p> See also the <em>forbidden_posters</em> option for a related mechanism.""")), | <p> See also the <em>forbidden_posters</em> option for a related mechanism.""")), | def GetConfigInfo(self): langs = self.GetAvailableLanguages() | d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa55121d903681fad00c3/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26666,
966,
12,
2890,
4672,
26467,
273,
365,
18,
967,
5268,
12912,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26666,
966,
12,
2890,
4672,
26467,
273,
365,
18,
967,
5268,
12912,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return None | return (0, None) | def runScript(prog=None, script=None, otherargs=[], force=False, rusage=False, tmpdir="/var/tmp", chroot=None): """Run (script otherargs) with interpreter prog (which can be a list containing initial arguments). Return None, or getrusage() stats of the script if rusage. Disable ldconfig optimization if force. Raise ... | 1fc8cf80445525becdf49d3dac1a462c3136a76c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1fc8cf80445525becdf49d3dac1a462c3136a76c/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... |
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) | def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-... | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
269... | |
self.draw() | self.rect.show() self.updateSelectionRect() | def mousePressEvent(self, ev): self.sel_startX = int(ev.pos().x()) self.sel_startY = int(ev.pos().y()) master = self.master master.sel_colmin = master.sel_colmax = self.sel_startX / master.cellwidth master.sel_rowmin = master.sel_rowmax = self.sel_startY / master.cellheight self.draw() master.updateRuleList() | 342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f/OWAssociationRulesViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
2113,
4672,
365,
18,
1786,
67,
1937,
60,
273,
509,
12,
14965,
18,
917,
7675,
92,
10756,
365,
18,
1786,
67,
1937,
61,
273,
509,
12,
14965,
18,
917,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
2113,
4672,
365,
18,
1786,
67,
1937,
60,
273,
509,
12,
14965,
18,
917,
7675,
92,
10756,
365,
18,
1786,
67,
1937,
61,
273,
509,
12,
14965,
18,
917,
76... |
self.startupconf.errorlevel = opts.errorlevel | self.conf.errorlevel = opts.errorlevel | def repo_optcb(optobj, opt, value, parser): '''Callback for the enablerepo and disablerepo option. Combines the values given for these options while preserving order from command line. ''' dest = eval('parser.values.%s' % optobj.dest) dest.append((opt, value)) | f5ebf54ac836878a2839b3dec4cf8b45fede4a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/f5ebf54ac836878a2839b3dec4cf8b45fede4a38/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3538,
67,
3838,
7358,
12,
3838,
2603,
16,
2153,
16,
460,
16,
2082,
4672,
9163,
2428,
364,
326,
570,
27371,
881,
83,
471,
1015,
27371,
881,
83,
1456,
18,
225,
15645,
1465,
326,
924,
864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3538,
67,
3838,
7358,
12,
3838,
2603,
16,
2153,
16,
460,
16,
2082,
4672,
9163,
2428,
364,
326,
570,
27371,
881,
83,
471,
1015,
27371,
881,
83,
1456,
18,
225,
15645,
1465,
326,
924,
864... |
Audio.gcom4.addpfx=(options.addpfx.get().lstrip()+' ')[:4] | Audio.gcom4.addpfx=(options.addpfx.get().lstrip()+' ')[:8] | def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \ first,itol,txsnrdb utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b ... | 373fe6d8b3acfdeda3ccd4200e62ad0c97431cc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2394/373fe6d8b3acfdeda3ccd4200e62ad0c97431cc6/wsjt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
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,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
... |
sage: C = Curve(X^3+Y^3-Z^3) sage: C.rational_points() [(0 : 1 : 1), (1 : 0 : 1), (2 : 2 : 1), (3 : 4 : 1), (4 : 1 : 0), (4 : 3 : 1)] sage: C.rational_points(sort=False) [(4 : 1 : 0), (1 : 0 : 1), (0 : 1 : 1), (2 : 2 : 1), (4 : 3 : 1), (3 : 4 : 1)] :: sage: F = GF(1009) sage: P2.<X,Y,Z> = ProjectiveSpace(F,2) sage: C... | sage: C = Curve(X*Y*Z) sage: a = C.rational_points_iterator() sage: a.next() (1 : 0 : 0) sage: a.next() (0 : 1 : 0) sage: a.next() (1 : 1 : 0) sage: a.next() (0 : 0 : 1) sage: a.next() (1 : 0 : 1) sage: a.next() (0 : 1 : 1) sage: a.next() Traceback (most recent call last): ... StopIteration | def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration. | 98b600e283b76d988294a386cfe037b70de67ee1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/98b600e283b76d988294a386cfe037b70de67ee1/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
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,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
-100,
-100,
-100,
... |
from os.path import normpath, join, dirname for (name, value) in done.items(): if value[0:2] == "./": done[name] = normpath(join(dirname(fp.name), value)) | def parse_makefile(fp, g=None): """Parse a Makefile-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. """ if g is None: g = {} variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)\n") done =... | 44a4889a6cc7e9630286617bc672fa88be66626f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/44a4889a6cc7e9630286617bc672fa88be66626f/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
6540,
768,
12,
7944,
16,
314,
33,
7036,
4672,
3536,
3201,
279,
4344,
768,
17,
4060,
585,
18,
225,
432,
3880,
4191,
508,
19,
1132,
5574,
353,
2106,
18,
225,
971,
392,
3129,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
768,
12,
7944,
16,
314,
33,
7036,
4672,
3536,
3201,
279,
4344,
768,
17,
4060,
585,
18,
225,
432,
3880,
4191,
508,
19,
1132,
5574,
353,
2106,
18,
225,
971,
392,
3129,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.