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 |
|---|---|---|---|---|---|---|
return the principle root. | return the principal root. | def nth_root(self, n): """ Return the nth root of this number. | 4bdf08a997ab55d67dd48b374fa3d4cbb7ddbd56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4bdf08a997ab55d67dd48b374fa3d4cbb7ddbd56/qqbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20196,
67,
3085,
12,
2890,
16,
290,
4672,
3536,
2000,
326,
20196,
1365,
434,
333,
1300,
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... | [
1,
1,
1,
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,
20196,
67,
3085,
12,
2890,
16,
290,
4672,
3536,
2000,
326,
20196,
1365,
434,
333,
1300,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 120) | self.assertEqual(u.fp.raw._sock.gettimeout(), 120) | def test_http_timeout(self): u = _urlopen_with_retry("http://www.python.org", timeout=120) self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 120) | 5ce8975a83a5664bc531c881eb9c98ebf09801e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/5ce8975a83a5664bc531c881eb9c98ebf09801e3/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2505,
67,
4538,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
3113,
2021,
33,
22343,
13,
365,
18,
11231,
5812,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2505,
67,
4538,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
3113,
2021,
33,
22343,
13,
365,
18,
11231,
5812,
12... |
def getHash(self): return len(DebugClass.itemlist) | assert self.dprint(items) for i in range(len(items)): self.Check(i, self.isChecked(i)) self.Bind(wx.EVT_CHECKLISTBOX, self.OnCheckListBox) | def getHash(self): return len(DebugClass.itemlist) | 56ac591d312ea693f3992735f261bc9a7c0cde45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/56ac591d312ea693f3992735f261bc9a7c0cde45/debug_classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16075,
12,
2890,
4672,
327,
562,
12,
2829,
797,
18,
1726,
1098,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16075,
12,
2890,
4672,
327,
562,
12,
2829,
797,
18,
1726,
1098,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
in gmt (such as those returned by time.time()) and the | in gmt (such as those returned by time.time()) and the | def __init__(self,*args): """Return a new date-time object | dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
3536,
990,
279,
394,
1509,
17,
957,
733,
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,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
3536,
990,
279,
394,
1509,
17,
957,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
parent = wx.GetApp().mainFrame | app = wx.GetApp() if app is not None: parent = app.mainFrame | def get(view, parent=None, testPassword=None): """ Get the master password. If needed, it will be asked from the user. Safe to call from from a background thread. @raise NoMasterPassword: NoMasterPassword will be raised if we have a non-default master password that has timed out, and the user cancels the dialog where... | 51897aa3f2b00065302646e2e9094f4d63a8782b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/51897aa3f2b00065302646e2e9094f4d63a8782b/MasterPassword.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
1945,
16,
982,
33,
7036,
16,
1842,
3913,
33,
7036,
4672,
3536,
968,
326,
4171,
2201,
18,
971,
3577,
16,
518,
903,
506,
19279,
628,
326,
729,
18,
225,
14060,
358,
745,
628,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
1945,
16,
982,
33,
7036,
16,
1842,
3913,
33,
7036,
4672,
3536,
968,
326,
4171,
2201,
18,
971,
3577,
16,
518,
903,
506,
19279,
628,
326,
729,
18,
225,
14060,
358,
745,
628,
6... |
preOps = [ migrator(rate=[ | preOps = migrator(rate=[ | def mutator(pop, param): 'Parameter has a length of region and a mutation rate at each basepair' region, rate = param # there are certainly more efficient algorithm, but this # example just mutate each basepair one by one.... for i in range(region): if random.random() < rate: try: idx = pop.addLoci(chrom=0, pos=i)[0] e... | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... |
BENTO4_VERSION = '0-9-7' | BENTO4_VERSION = '0-9-8' | def ZipIt(dir) : zip_filename = dir+'.zip' if os.path.exists(zip_filename): os.remove(zip_filename) archive = zipfile.ZipFile(zip_filename, "w", zipfile.ZIP_DEFLATED) ZipDir(dir, archive, dir) archive.close() | c72968b880caab3967e0e9d1045e30a49e4f0b16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5710/c72968b880caab3967e0e9d1045e30a49e4f0b16/ExportSourceTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8603,
7193,
12,
1214,
13,
294,
3144,
67,
3459,
273,
1577,
6797,
18,
4450,
11,
225,
309,
1140,
18,
803,
18,
1808,
12,
4450,
67,
3459,
4672,
1140,
18,
4479,
12,
4450,
67,
3459,
13,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8603,
7193,
12,
1214,
13,
294,
3144,
67,
3459,
273,
1577,
6797,
18,
4450,
11,
225,
309,
1140,
18,
803,
18,
1808,
12,
4450,
67,
3459,
4672,
1140,
18,
4479,
12,
4450,
67,
3459,
13,
225... |
s = idaapi.get_struc(id) | s = idaapi.get_struc(sid) | def DelStruc(id): """ Delete a structure type @param id: structure type ID @return: 0 if bad structure type ID is passed 1 otherwise the structure type is deleted. All data and other structure types referencing to the deleted structure type will be displayed as array of bytes. """ s = idaapi.get_struc(id) if not s: r... | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
12,
350,
4672,
3536,
2504,
279,
3695,
618,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
374,
309,
5570,
3695,
618,
1599,
353,
2275,
404,
3541,
326,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
12,
350,
4672,
3536,
2504,
279,
3695,
618,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
374,
309,
5570,
3695,
618,
1599,
353,
2275,
404,
3541,
326,
36... |
return self.__entries.index (entry) | return self._entries.index (entry) | def index (self, entry): return self.__entries.index (entry) | ed500b819555108af67057bd24de252315b598d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/ed500b819555108af67057bd24de252315b598d2/edit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
261,
2890,
16,
1241,
4672,
327,
365,
16186,
8219,
18,
1615,
261,
4099,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
770,
261,
2890,
16,
1241,
4672,
327,
365,
16186,
8219,
18,
1615,
261,
4099,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
class StrokeOrderBuilder(CSVFileLoader): | class NarrowBuildCSVFileLoader(CSVFileLoader): """ A CSVFileLoader that ignores entries for Unicode characters outside the BMP. """ @classmethod def getDefaultOptions(cls): options = super(NarrowBuildCSVFileLoader, cls).getDefaultOptions() options.update({'wideBuild': True}) return options @classmethod def getOptionM... | def build(self): import codecs | ec20f0cb3b7d6f3d33d81ca502fd1939f9d56e73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/ec20f0cb3b7d6f3d33d81ca502fd1939f9d56e73/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
4672,
1930,
17437,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1361,
12,
2890,
4672,
1930,
17437,
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,
... |
return super(osv.osv,self).write(cr, uid, ids, vals, context) | return super(task,self).write(cr, uid, ids, vals, context) | def write(self, cr, uid, ids,vals,context={}): if (vals.has_key('project_id') and vals['project_id']) or (vals.has_key('name') and vals['name']): vals_line = {} hr_anlytic_timesheet = self.pool.get('hr.analytic.timesheet') task_obj_l = self.browse(cr, uid, ids, context) if (vals.has_key('project_id') and vals['project_... | a9f6551f879763c23ece121459a21f76bb874ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a9f6551f879763c23ece121459a21f76bb874ebf/project_timesheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4524,
16,
2472,
12938,
4672,
309,
261,
4524,
18,
5332,
67,
856,
2668,
4406,
67,
350,
6134,
471,
5773,
3292,
4406,
67,
350,
19486,
578,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4524,
16,
2472,
12938,
4672,
309,
261,
4524,
18,
5332,
67,
856,
2668,
4406,
67,
350,
6134,
471,
5773,
3292,
4406,
67,
350,
19486,
578,... |
(element.getPackage().getCleanName(), | (element.getProduct().getCleanName(), | def generateArchetypesClass(self, element,**kw): """this is the all singing all dancing core generator logic for a full featured Archetypes class """ log.info("%sGenerating class '%s'.", ' '*self.infoind, element.getName()) name = element.getCleanName() # prepare file outfile=StringIO() wrt = outfile.write wrt('\n... | 19a845e5df3a08f15a2b11421d0b48d96c717e53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/19a845e5df3a08f15a2b11421d0b48d96c717e53/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12269,
15180,
797,
12,
2890,
16,
930,
16,
636,
9987,
4672,
3536,
2211,
353,
326,
777,
4864,
310,
777,
302,
304,
2822,
2922,
4456,
4058,
364,
279,
1983,
2572,
72,
16959,
15180,
667,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12269,
15180,
797,
12,
2890,
16,
930,
16,
636,
9987,
4672,
3536,
2211,
353,
326,
777,
4864,
310,
777,
302,
304,
2822,
2922,
4456,
4058,
364,
279,
1983,
2572,
72,
16959,
15180,
667,... |
r+="X" | r[-1]['val']="X" | def encodetiles(self,tilelist): if not tilelist: return '' r='' for t in tilelist: #The browser swaps the X and Y values, it seems. r+="%d%d%d"%(t.pos[1],t.pos[0],t.uncovered) if t.bomb: r+="X" else: r+=str(t.adjacency) return r | 146b666f749ad20ba42d4c049d42b6474b7c5e65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14104/146b666f749ad20ba42d4c049d42b6474b7c5e65/webmines.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17755,
278,
1449,
12,
2890,
16,
1025,
5449,
4672,
309,
486,
268,
330,
5449,
30,
327,
875,
436,
2218,
11,
364,
268,
316,
268,
330,
5449,
30,
468,
1986,
4748,
1352,
6679,
326,
1139,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17755,
278,
1449,
12,
2890,
16,
1025,
5449,
4672,
309,
486,
268,
330,
5449,
30,
327,
875,
436,
2218,
11,
364,
268,
316,
268,
330,
5449,
30,
468,
1986,
4748,
1352,
6679,
326,
1139,
471,... |
name, self, ''.join(traceback.format_trace()))) | name, self, ''.join(traceback.format_exc()))) | def __getitem__(self, name): if name == 'id': return self._id if name not in self._data[self._id]: # build the list of fields we will fetch | 01adbd02623d43c62d1daf70fb3e15cb5df9cbed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/01adbd02623d43c62d1daf70fb3e15cb5df9cbed/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
508,
4672,
309,
508,
422,
296,
350,
4278,
327,
365,
6315,
350,
309,
508,
486,
316,
365,
6315,
892,
63,
2890,
6315,
350,
14542,
468,
1361,
326,
666,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
508,
4672,
309,
508,
422,
296,
350,
4278,
327,
365,
6315,
350,
309,
508,
486,
316,
365,
6315,
892,
63,
2890,
6315,
350,
14542,
468,
1361,
326,
666,
434,... |
self.unpack_tarball( tarball_path ) | self.unpack_tarball( tarball_path, self.boost_root ) | def get_tarball( self, *args ): if not args or args == []: args = [ 'download', 'unpack' ] | 3f0366c1d4e33eca4693567235cd2cbe44e6bfde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7959/3f0366c1d4e33eca4693567235cd2cbe44e6bfde/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
88,
23846,
12,
365,
16,
380,
1968,
262,
30,
309,
486,
833,
578,
833,
422,
5378,
30,
833,
273,
306,
296,
7813,
2187,
296,
17309,
11,
308,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
88,
23846,
12,
365,
16,
380,
1968,
262,
30,
309,
486,
833,
578,
833,
422,
5378,
30,
833,
273,
306,
296,
7813,
2187,
296,
17309,
11,
308,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
_, stepless_data = zip(*data) | if min_step is not None: data = [(step, tup) for step, tup in data if min_step <= step] if max_step is not None: data = [(step, tup) for step, tup in data if step <= max_step] stepless_data = [tup for step, tup in data] | def get_plot_data(self, expr_x, expr_y): """Generate plot-ready data. | e95d25887b561966f6c5076fe18c3901d1d73897 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12871/e95d25887b561966f6c5076fe18c3901d1d73897/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4032,
67,
892,
12,
2890,
16,
3065,
67,
92,
16,
3065,
67,
93,
4672,
3536,
4625,
3207,
17,
1672,
501,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4032,
67,
892,
12,
2890,
16,
3065,
67,
92,
16,
3065,
67,
93,
4672,
3536,
4625,
3207,
17,
1672,
501,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ignore[self.mylang] = self.mysite.namespaces() | ignore_title[self.mylang] = self.mysite.namespaces() | def run(self): if self.main_only: if ignore.has_key(self.mylang): ignore[self.mylang] += self.mysite.namespaces() else: ignore[self.mylang] = self.mysite.namespaces() for disambTitle in self.page_list: # when run with -redir argument, there's another summary message if self.solve_redirect: wikipedia.setAction(wikipedi... | c3bf7b6226198bd9948d0e297929fc74124dd44a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c3bf7b6226198bd9948d0e297929fc74124dd44a/solve_disambiguation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
365,
18,
5254,
67,
3700,
30,
309,
2305,
18,
5332,
67,
856,
12,
2890,
18,
4811,
4936,
4672,
2305,
63,
2890,
18,
4811,
4936,
65,
1011,
365,
18,
81,
1900,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
365,
18,
5254,
67,
3700,
30,
309,
2305,
18,
5332,
67,
856,
12,
2890,
18,
4811,
4936,
4672,
2305,
63,
2890,
18,
4811,
4936,
65,
1011,
365,
18,
81,
1900,
113... |
self.logger.error( '__escape_string: Could not escape string', '"%s"' %s ) | self.logger.debug( '__escape_string: Could not escape string', '"%s"' %s ) | def __escapeString( self, s, connection ): """ To be used for escaping any MySQL string before passing it to the DB this should prevent passing non-MySQL acepted characters to the DB It also includes quotation marks " around the given string """ | dbbfc2e9691b79636765e7ead3e5df27861504bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/dbbfc2e9691b79636765e7ead3e5df27861504bc/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6939,
780,
12,
365,
16,
272,
16,
1459,
262,
30,
3536,
2974,
506,
1399,
364,
20604,
1281,
13485,
533,
1865,
9588,
518,
358,
326,
2383,
333,
1410,
5309,
9588,
1661,
17,
28723,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6939,
780,
12,
365,
16,
272,
16,
1459,
262,
30,
3536,
2974,
506,
1399,
364,
20604,
1281,
13485,
533,
1865,
9588,
518,
358,
326,
2383,
333,
1410,
5309,
9588,
1661,
17,
28723,
279,
... |
pass | def __init__(self, script_args=None, exit_code=None, message=None, output=None, cwd=None): if not message: message = 'Failed to run "%s"' % script_args if exit_code: message += " exit_code: %d" % exit_code if cwd: message += " cwd: %s" % cwd Exception.__init__(self, message) self.script_args = script_args self.exit_co... | def message(self): return "\n".join(self.message_lines) + "\n" | cbfef173775a18c163a046efa120abeeff3a6751 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/cbfef173775a18c163a046efa120abeeff3a6751/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
12,
2890,
4672,
327,
1548,
82,
9654,
5701,
12,
2890,
18,
2150,
67,
3548,
13,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
12,
2890,
4672,
327,
1548,
82,
9654,
5701,
12,
2890,
18,
2150,
67,
3548,
13,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for dn in ticket_dn_list: | print job_dn_list for dn,group in ticket_dn_list: print dn,group | def execute(self): """ The main agent execution method """ | 1cff06ebf279b10e12a27c88249cd250a48ec3fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1cff06ebf279b10e12a27c88249cd250a48ec3fb/ProxyRenewalAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) | bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
1482,
5190,
13332,
3536,
7520,
1267,
4653,
4716,
12123,
468,
413,
38,
961,
2685,
19,
2098,
5190,
468,
38,
961,
1482,
5190,
18,
16016,
18,
6923,
12,
3371,
67,
42,
287,
14533,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
1482,
5190,
13332,
3536,
7520,
1267,
4653,
4716,
12123,
468,
413,
38,
961,
2685,
19,
2098,
5190,
468,
38,
961,
1482,
5190,
18,
16016,
18,
6923,
12,
3371,
67,
42,
287,
14533,
23,
... |
if isinstance(x, float): | if isinstance(x, float): | def __call__(self, x): """ EXAMPLES:: | b8d4e8980196922bad05dde8387e4a6f47ddf4b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/b8d4e8980196922bad05dde8387e4a6f47ddf4b0/other.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
3536,
5675,
8900,
11386,
2866,
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,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
3536,
5675,
8900,
11386,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" | modifyAlignCommonAxisActionText =\ "<u><b>Align To Common Axis</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk. "\ "You must select two or more chunks before using this feature."\ "</p>" | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = connect_paths(libpath, '__init__.py') | elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = libpath+'/__init__.py' | def parse_module(name, ast=None, parent=None, node=None): # --- valid name? for c in name: if not c in string.letters+string.digits+'_.': print ("*ERROR*:%s.py: module names should consist of letters, digits and underscores" % name) sys.exit() # --- parse ident = name.split('.')[-1] mod = module(ident, node) mod.built... | d7ff07b382c793e4aea86abd70975b573665754e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/d7ff07b382c793e4aea86abd70975b573665754e/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2978,
12,
529,
16,
3364,
33,
7036,
16,
982,
33,
7036,
16,
756,
33,
7036,
4672,
468,
9948,
923,
508,
35,
364,
276,
316,
508,
30,
309,
486,
276,
316,
533,
18,
26054,
15,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
12,
529,
16,
3364,
33,
7036,
16,
982,
33,
7036,
16,
756,
33,
7036,
4672,
468,
9948,
923,
508,
35,
364,
276,
316,
508,
30,
309,
486,
276,
316,
533,
18,
26054,
15,
10... |
FunctionnalTest(CHECK + [ "group", "-v", "--name=%s" % group_name ], context=context).Run() group_name = "groupe_a_skel" FunctionnalTest(ADD + [ "group", "--name=%s" % group_name, '''--description="Le groupe C s'il vous plaît..."''' ], context=context).Run() FunctionnalTest(MODIFY + [ "group", '--name=%s' % grou... | gname = 'ARCHIVES-test' ScenarioTest([ ADD + [ 'group', gname, '-v' ], [ 'sudo', 'touch', "%s/%s/%s/test.txt" % ( configuration.defaults.home_base_path, configuration.groups.names['plural'], gname) ], [ 'sudo', 'mkdir', "%s/%s/%s/testdir" % ( configuration.defaults.home_base_path, configuration.groups.names['plu... | def gen_chk_acls_cmds(group): | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
27038,
67,
69,
6429,
67,
24680,
12,
1655,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
27038,
67,
69,
6429,
67,
24680,
12,
1655,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return FiniteField_ext_pariElement(self.__parent, ~self.__value) | return FiniteField_ext_pariElement(self.__parent, ~self.__value, check=False) | def __invert__(self): """ EXAMPLES: sage: from sage.rings.finite_field import FiniteField_ext_pari sage: a = FiniteField_ext_pari(9, 'a').gen() sage: ~a a + 2 sage: (a+1)*a 2*a + 1 """ | d17d26732f59bf8d3b821fe67313fdb16e88661d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d17d26732f59bf8d3b821fe67313fdb16e88661d/finite_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
86,
899,
18,
9551,
67,
1518,
1930,
9458,
1137,
974,
67,
408,
67,
1065,
77,
272,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
267,
1097,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
86,
899,
18,
9551,
67,
1518,
1930,
9458,
1137,
974,
67,
408,
67,
1065,
77,
272,
41... |
widget=TextAreaWidget(), | def generateFti(self,element,subtypes): ''' ''' | f5e5b424a0e01e9a88492672f53fc4444f4bee7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/f5e5b424a0e01e9a88492672f53fc4444f4bee7f/ArchGenXML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
42,
9096,
12,
2890,
16,
2956,
16,
1717,
2352,
4672,
9163,
9163,
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... | [
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,
2103,
42,
9096,
12,
2890,
16,
2956,
16,
1717,
2352,
4672,
9163,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
atomStart0 = chain[helix.startIndex-1].getAtom('CA') atomStart1 = chain[helix.startIndex].getAtom('CA') | if(helix.startIndex-1 in chain.residueRange()): atomStart0 = chain[helix.startIndex-1].getAtom('CA') if(helix.startIndex in chain.residueRange()): atomStart1 = chain[helix.startIndex].getAtom('CA') | def helixFlipButtonPress(self): """ | 21dad13f9a8161dface447e24aefbdaa6b79a129 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4399/21dad13f9a8161dface447e24aefbdaa6b79a129/calpha_structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
697,
28535,
3616,
11840,
12,
2890,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
697,
28535,
3616,
11840,
12,
2890,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
error_handler=log.err) | error_handler=d.errback) | def get_charset2_cb(_charset): # check that the new charset is the expected one self.assertEqual(new_charset, _charset) # leave everything as found self.device.SetCharset(charset, dbus_interface=CRD_INTFACE, reply_handler=lambda: d.callback(True), error_handler=log.err) | 45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9999,
22,
67,
7358,
24899,
9999,
4672,
468,
866,
716,
326,
394,
4856,
353,
326,
2665,
1245,
365,
18,
11231,
5812,
12,
2704,
67,
9999,
16,
389,
9999,
13,
468,
8851,
7756,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9999,
22,
67,
7358,
24899,
9999,
4672,
468,
866,
716,
326,
394,
4856,
353,
326,
2665,
1245,
365,
18,
11231,
5812,
12,
2704,
67,
9999,
16,
389,
9999,
13,
468,
8851,
7756,
487,
... |
print 'Problem in %s - %s' % (value.filename, value.args) | print value | def doc(thing): """Display documentation on an object (for interactive use).""" if type(thing) is type(""): try: path, x = locate(thing) except DocImportError, value: print 'Problem in %s - %s' % (value.filename, value.args) return if x: thing = x else: print 'No Python documentation found for %s.' % repr(thing) return... | 37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
12,
4274,
4672,
3536,
4236,
7323,
603,
392,
733,
261,
1884,
12625,
999,
13,
12123,
309,
618,
12,
4274,
13,
353,
618,
2932,
6,
4672,
775,
30,
589,
16,
619,
273,
10627,
12,
4274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
12,
4274,
4672,
3536,
4236,
7323,
603,
392,
733,
261,
1884,
12625,
999,
13,
12123,
309,
618,
12,
4274,
13,
353,
618,
2932,
6,
4672,
775,
30,
589,
16,
619,
273,
10627,
12,
4274,
... |
print "no dll" raise self.Exceptions.DeviceNotFound | raise self.Exceptions.DriverNotFound | def __start__( self, ledRX=True, ledTX=True, legacyRX=False, repeatStopCodes=False, | 8f7bce61609e1a37f6170e13dfa118b231e99f38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/8f7bce61609e1a37f6170e13dfa118b231e99f38/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1937,
972,
12,
365,
16,
12987,
54,
60,
33,
5510,
16,
12987,
16556,
33,
5510,
16,
8866,
54,
60,
33,
8381,
16,
7666,
4947,
6295,
33,
8381,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1937,
972,
12,
365,
16,
12987,
54,
60,
33,
5510,
16,
12987,
16556,
33,
5510,
16,
8866,
54,
60,
33,
8381,
16,
7666,
4947,
6295,
33,
8381,
16,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120) | self.assertEqual(u.fp.raw.fp._sock.gettimeout(), 120) | def test_http_Value(self): u = urllib2.urlopen("http://www.python.org", timeout=120) self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120) | 9834ba99773dc9627749f716d360358387ae516b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9834ba99773dc9627749f716d360358387ae516b/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2505,
67,
620,
12,
2890,
4672,
582,
273,
11527,
22,
18,
295,
18589,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
3113,
2021,
33,
22343,
13,
365,
18,
11231,
5812,
12,
89,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2505,
67,
620,
12,
2890,
4672,
582,
273,
11527,
22,
18,
295,
18589,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
3113,
2021,
33,
22343,
13,
365,
18,
11231,
5812,
12,
89,
18,
... |
""" | r""" | def encoding(self,S,padic=False): """ The binary encoding of the string S, as a binary string element. | ca219b0206186a194cdf8e11d2082bec654536f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ca219b0206186a194cdf8e11d2082bec654536f8/string_monoid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2688,
12,
2890,
16,
55,
16,
6982,
335,
33,
8381,
4672,
436,
8395,
1021,
3112,
2688,
434,
326,
533,
348,
16,
487,
279,
3112,
533,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2688,
12,
2890,
16,
55,
16,
6982,
335,
33,
8381,
4672,
436,
8395,
1021,
3112,
2688,
434,
326,
533,
348,
16,
487,
279,
3112,
533,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
log.msg("Changing listening port in server.conf " + | log.msg("Changing listening port " + | def main(options): """ Main execution loop of the server. """ # config = get_conf('server') # LOG_FILE = config['log_file'] # LOG_LEVEL = config['log_level'] # SSL = get_bool(config['ssl']) # SSL_PRIVKEY = config['privkey_file'] # SSL_CERT = config['cert_file'] # CLIENT_PORT = int(config['client_port']) # PUBKEY_DATA... | 1da5dd6b5fc14813a1db017c90bcdc1a88698673 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1da5dd6b5fc14813a1db017c90bcdc1a88698673/dsage_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
12740,
4588,
2798,
434,
326,
1438,
18,
225,
3536,
225,
468,
642,
273,
336,
67,
3923,
2668,
3567,
6134,
468,
2018,
67,
3776,
273,
642,
3292,
1330,
67,
768,
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,
2774,
12,
2116,
4672,
3536,
12740,
4588,
2798,
434,
326,
1438,
18,
225,
3536,
225,
468,
642,
273,
336,
67,
3923,
2668,
3567,
6134,
468,
2018,
67,
3776,
273,
642,
3292,
1330,
67,
768,
3... |
if caps is not None: filters = caps[0] self.width = filters["width"] self.height = filters["height"] timecode = self.pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixbuf_new_from_data(buff.data, gtk.gdk.COLORSPACE_RGB, False, 8, self.width, self.height, self.width * 3) | if caps is None: self.success = False self.disconnect() self.done() return False filters = caps[0] width = filters["width"] height = filters["height"] timecode = self.thumbnail_pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixbuf_new_from_data( buff.data, gtk.gdk.COLORSPACE_RGB, False, 8, width, height,... | def buffer_probe_handler_real(self, pad, buff, name): """Capture buffers as gdk_pixbufs when told to.""" if self.grabit: caps = buff.caps if caps is not None: filters = caps[0] self.width = filters["width"] self.height = filters["height"] timecode = self.pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixb... | 9ec3a8ff57978fde4b3a57d656b012c6d994d233 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/9ec3a8ff57978fde4b3a57d656b012c6d994d233/gst_extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1613,
67,
27230,
67,
4176,
67,
7688,
12,
2890,
16,
4627,
16,
6139,
16,
508,
4672,
3536,
12372,
9664,
487,
314,
2883,
67,
14861,
4385,
87,
1347,
268,
1673,
358,
12123,
309,
365,
18,
275... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1613,
67,
27230,
67,
4176,
67,
7688,
12,
2890,
16,
4627,
16,
6139,
16,
508,
4672,
3536,
12372,
9664,
487,
314,
2883,
67,
14861,
4385,
87,
1347,
268,
1673,
358,
12123,
309,
365,
18,
275... |
return [ id for d, id in facs ] | return [ id for d, n, id in facs ] | def primes_above(self, x, degree=None): r""" Return prime ideals of self lying over x. INPUT: - ``x``: usually an element or ideal of self. It should be such that self.ideal(x) is sensible. This excludes x=0. - ``degree`` (default: None): None or an integer. If None, find all primes above x of any degree. If an i... | b1ff2cfec2ee360f7df9341f799c02aaa308934c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b1ff2cfec2ee360f7df9341f799c02aaa308934c/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
4485,
67,
25998,
12,
2890,
16,
619,
16,
10782,
33,
7036,
4672,
436,
8395,
2000,
17014,
10572,
1031,
434,
365,
328,
14946,
1879,
619,
18,
225,
12943,
30,
282,
300,
225,
12176,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
4485,
67,
25998,
12,
2890,
16,
619,
16,
10782,
33,
7036,
4672,
436,
8395,
2000,
17014,
10572,
1031,
434,
365,
328,
14946,
1879,
619,
18,
225,
12943,
30,
282,
300,
225,
12176,
92,
... |
u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)""" | u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)""" | def cookieHandler(): u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)""" global cj returnValue = 2 logStatusMsg(u"""testing cookieFile settings""", 5) if cj == 1: pass elif cj == None and not getConfig()['global']['cookieFile']: logStatusMsg(... | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3878,
1503,
13332,
582,
8395,
6154,
374,
309,
1158,
3878,
4351,
16,
404,
309,
3878,
4351,
16,
576,
309,
3878,
1818,
4351,
261,
16728,
309,
518,
353,
364,
279,
446,
460,
15574,
2552,
1889... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3878,
1503,
13332,
582,
8395,
6154,
374,
309,
1158,
3878,
4351,
16,
404,
309,
3878,
4351,
16,
576,
309,
3878,
1818,
4351,
261,
16728,
309,
518,
353,
364,
279,
446,
460,
15574,
2552,
1889... |
while key == IHEOL: | while key == "IHEOL": | def getcourse(isprobe, akey): "Get a course and distance from the user." key = 0 dquad = copy.copy(game.quadrant) navmode = "unspecified" itemp = "curt" dsect = coord() iprompt = False if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) scan... | af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5566,
12,
291,
27230,
16,
279,
856,
4672,
315,
967,
279,
4362,
471,
3888,
628,
326,
729,
1199,
498,
273,
374,
302,
21733,
273,
1610,
18,
3530,
12,
13957,
18,
21733,
6890,
13,
8775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5566,
12,
291,
27230,
16,
279,
856,
4672,
315,
967,
279,
4362,
471,
3888,
628,
326,
729,
1199,
498,
273,
374,
302,
21733,
273,
1610,
18,
3530,
12,
13957,
18,
21733,
6890,
13,
8775... |
def _load_Files(self): href = os.path.join( self.Get("config_dir", "config") | self.configParser = self._load_Files("files") def _load_Files(self, section): "Load the config file and add it to configParser" href = os.path.join( self.Get("config_dir"), "config") | def _load_Files(self): href = os.path.join( self.Get("config_dir", "config") self.configParser = ConfigParser.ConfigParser() if len( self.configParser.read(href)) == 0: print "No conf file find" for (key, values) in defaultConf.items("): if not key in self.configParser.options(): self.configParser.set("default", key, ... | 7b19abf7d5a6a776a423f65290cc0d136b8b699d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/7b19abf7d5a6a776a423f65290cc0d136b8b699d/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
1425,
2678,
273,
365,
6315,
945,
67,
2697,
2932,
2354,
7923,
282,
1652,
389,
945,
67,
2697,
12,
2890,
16,
2442,
4672,
315,
2563,
326,
642,
585,
471,
527,
518,
358,
642,
2678,
6,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
1425,
2678,
273,
365,
6315,
945,
67,
2697,
2932,
2354,
7923,
282,
1652,
389,
945,
67,
2697,
12,
2890,
16,
2442,
4672,
315,
2563,
326,
642,
585,
471,
527,
518,
358,
642,
2678,
6,
3... |
self._logger.info("Creating tag.") | def _onTag(self, e): try: self._logger.info("Creating tag.") tagID = e.GetId() if self._tagMenu.IsChecked(tagID) == True: # since clicking checks self.setTag(self._track, tagID) else: self.unsetTag(self._track, tagID) self.refreshSelectedTrack() except AttributeError as err: if str(err) != "'MainWindow' object has no a... | 6ece34958d0ec2d8d79071a73ea889b1b54b62d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/6ece34958d0ec2d8d79071a73ea889b1b54b62d3/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
1805,
12,
2890,
16,
425,
4672,
775,
30,
1047,
734,
273,
425,
18,
967,
548,
1435,
309,
365,
6315,
2692,
4599,
18,
2520,
11454,
12,
2692,
734,
13,
422,
1053,
30,
468,
3241,
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,
389,
265,
1805,
12,
2890,
16,
425,
4672,
775,
30,
1047,
734,
273,
425,
18,
967,
548,
1435,
309,
365,
6315,
2692,
4599,
18,
2520,
11454,
12,
2692,
734,
13,
422,
1053,
30,
468,
3241,
4... | |
"""This is handler dumps the content of POST request to a disk file into the data_dir/dump. Sub-directories are not supported.""" | """This is handler dumps the content of POST/PUT request to a disk file into the data_dir/dump. Sub-directories are not supported.""" | def WriteFile(self): """This is handler dumps the content of POST request to a disk file into the data_dir/dump. Sub-directories are not supported.""" | 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,
24155,
12,
2890,
4672,
3536,
2503,
353,
1838,
6711,
326,
913,
434,
5485,
590,
358,
279,
4234,
585,
1368,
326,
501,
67,
1214,
19,
8481,
18,
2592,
17,
15121,
854,
486,
3260,
12123,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24155,
12,
2890,
4672,
3536,
2503,
353,
1838,
6711,
326,
913,
434,
5485,
590,
358,
279,
4234,
585,
1368,
326,
501,
67,
1214,
19,
8481,
18,
2592,
17,
15121,
854,
486,
3260,
12123,
2,
-1... |
self.satList.sort(key = lambda x: x[0]) | self.satList.sort(key = self.sortFunc) | def readTransponders(self): # read initial networks from file. we only read files which we are interested in, # which means only these where a compatible tuner exists. self.satellites = { } self.transponders = { } self.transponderscable = { } self.transpondersterrestrial = { } db = eDVBDB.getInstance() if self.hasNimTy... | 406b024501ad0bf0473d08b345de5e94c370804b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/406b024501ad0bf0473d08b345de5e94c370804b/NimManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1429,
3111,
414,
12,
2890,
4672,
468,
855,
2172,
13884,
628,
585,
18,
732,
1338,
855,
1390,
1492,
732,
854,
20506,
316,
16,
468,
1492,
4696,
1338,
4259,
1625,
279,
7318,
268,
29640,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1429,
3111,
414,
12,
2890,
4672,
468,
855,
2172,
13884,
628,
585,
18,
732,
1338,
855,
1390,
1492,
732,
854,
20506,
316,
16,
468,
1492,
4696,
1338,
4259,
1625,
279,
7318,
268,
29640,... |
if bits[2] != 'for': | if bits[2] != 'in': | def do_tagged_objects(parser, token): """ Retrieves a list of objects for a given Model which are tagged with a given Tag and stores them in a context variable. The tag must be an instance of a ``Tag``, not the name of a tag. The model is specified in ``[appname].[modelname]`` format. Example usage:: {% tagged_obje... | 95ef388684f261e416d45f7a2ad1caf18331dcb2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4290/95ef388684f261e416d45f7a2ad1caf18331dcb2/tagging_tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
23023,
67,
6911,
12,
4288,
16,
1147,
4672,
3536,
20507,
279,
666,
434,
2184,
364,
279,
864,
3164,
1492,
854,
12503,
598,
279,
864,
4034,
471,
9064,
2182,
316,
279,
819,
2190,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
23023,
67,
6911,
12,
4288,
16,
1147,
4672,
3536,
20507,
279,
666,
434,
2184,
364,
279,
864,
3164,
1492,
854,
12503,
598,
279,
864,
4034,
471,
9064,
2182,
316,
279,
819,
2190,
... |
if band == consts.MM_NETWORK_BAND_ANY: pass else: raise KeyError("Unsupported band %d" % band) | for key, value in self.custom.band_dict.items(): if band & key: return self.send_at("AT+ZBANDI=%d" % self.custom.band_dict[key]) | def set_band(self, band): """Sets the band to ``band``""" if not len(self.custom.band_dict): if band == consts.MM_NETWORK_BAND_ANY: return defer.succeed('') else: raise KeyError("Unsupported band %d" % band) | b96b9869242e522112b0801c1f3f76cd8097ab7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/b96b9869242e522112b0801c1f3f76cd8097ab7b/zte.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
12,
2890,
16,
8937,
4672,
3536,
2785,
326,
8937,
358,
12176,
12752,
10335,
8395,
309,
486,
562,
12,
2890,
18,
3662,
18,
12752,
67,
1576,
4672,
309,
8937,
422,
15677,
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,
12752,
12,
2890,
16,
8937,
4672,
3536,
2785,
326,
8937,
358,
12176,
12752,
10335,
8395,
309,
486,
562,
12,
2890,
18,
3662,
18,
12752,
67,
1576,
4672,
309,
8937,
422,
15677,
18,
... |
""").replace('\n', os.linesep) | """) | def testBufferOutputAddErrorOrFailure(self): for message_attr, add_attr, include_error in [ ('errors', 'addError', True), ('failures', 'addFailure', False), ('errors', 'addError', True), ('failures', 'addFailure', False) ]: result = self.getStartedResult() buffered_out = sys.stdout buffered_err = sys.stderr result._ori... | 93232660bb96b8ab10de393850007b49b0cc595c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/93232660bb96b8ab10de393850007b49b0cc595c/test_result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
2... |
def ChangeStatusBar(self, oldValue, newValue): pass | def GetStatusBar(self, x): return self.control.GetStatusBar() def SetStatusBar(self, value): self.control.SetStatusBar(value) if value: self.control.SendSizeEvent() | def ChangeStatusBar(self, oldValue, newValue): pass # XXX Cannot refresh designer because statusbar not yet connected | 46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1482,
5190,
12,
2890,
16,
11144,
16,
6129,
4672,
1342,
468,
11329,
14143,
4460,
8281,
264,
2724,
1267,
3215,
486,
4671,
5840,
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,
0,
0,
0,
0,
0,
0,
0,
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,
7576,
1482,
5190,
12,
2890,
16,
11144,
16,
6129,
4672,
1342,
468,
11329,
14143,
4460,
8281,
264,
2724,
1267,
3215,
486,
4671,
5840,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
debug(" %s does not path-match %s", req_path, path) | _debug(" %s does not path-match %s", req_path, path) | def path_return_ok(self, path, request): debug("- checking cookie path=%s", path) req_path = request_path(request) if not req_path.startswith(path): debug(" %s does not path-match %s", req_path, path) return False return True | e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
67,
2463,
67,
601,
12,
2890,
16,
589,
16,
590,
4672,
1198,
2932,
17,
6728,
3878,
589,
5095,
87,
3113,
589,
13,
1111,
67,
803,
273,
590,
67,
803,
12,
2293,
13,
309,
486,
1111,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
67,
2463,
67,
601,
12,
2890,
16,
589,
16,
590,
4672,
1198,
2932,
17,
6728,
3878,
589,
5095,
87,
3113,
589,
13,
1111,
67,
803,
273,
590,
67,
803,
12,
2293,
13,
309,
486,
1111,
... |
indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if item[2]: strList.append(', optional') strList.append('\n') | if not item[0].startswith('__param'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if item[2]: strList.append(', optional') strList.append('\n') else: return ['*Simple* %s' % item[1]] | def recurseTypeList(self, allTypeDict, typeList, level, alreadyListed): """Recurse through a dictionary of type lists until reach Python types. """ if level > 12: # just in case return strList = [] for item in typeList: if item[0].startswith('_'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0]... | d9d3337d4084d54d35a9489cf9880e594989841c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/d9d3337d4084d54d35a9489cf9880e594989841c/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11502,
559,
682,
12,
2890,
16,
777,
559,
5014,
16,
618,
682,
16,
1801,
16,
1818,
682,
329,
4672,
3536,
426,
17682,
3059,
279,
3880,
434,
618,
6035,
3180,
9287,
6600,
1953,
18,
3536,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11502,
559,
682,
12,
2890,
16,
777,
559,
5014,
16,
618,
682,
16,
1801,
16,
1818,
682,
329,
4672,
3536,
426,
17682,
3059,
279,
3880,
434,
618,
6035,
3180,
9287,
6600,
1953,
18,
3536,
30... |
Invenio (formerly CDSWare), then you should not proceed with | Invenio (formerly CDSware), then you should not proceed with | def tmpl_admin_migrate_formats(self, ln): """ Basic page to warn user that migration of formats to format templates is not straightforward """ _ = gettext_set_language(ln) # load the right message language out = '''<p>The migration of format is not completely staightforward. Here are some advice for the migration:<... | 505c3d30a955c667b9991b574b161cdc797b0161 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/505c3d30a955c667b9991b574b161cdc797b0161/bibformat_migration_kit_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3666,
67,
22083,
67,
11962,
12,
2890,
16,
7211,
4672,
3536,
7651,
1363,
358,
1894,
729,
716,
6333,
434,
6449,
358,
740,
5539,
353,
486,
21251,
11565,
3536,
389,
273,
24972,
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,
10720,
67,
3666,
67,
22083,
67,
11962,
12,
2890,
16,
7211,
4672,
3536,
7651,
1363,
358,
1894,
729,
716,
6333,
434,
6449,
358,
740,
5539,
353,
486,
21251,
11565,
3536,
389,
273,
24972,
67... |
p1, p2 = self.o.mousepoints(event) v2 = norm(p2-p1) px = ptonline(a.posn(), p1, v2) | px = self.dragto(a.posn(), event) | def leftShiftDrag(self, event): """ drag the new atom around | c3b33ebb3c32b24b8ca0870be88dba2058d5d0b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c3b33ebb3c32b24b8ca0870be88dba2058d5d0b6/depositMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
10544,
11728,
12,
2890,
16,
871,
4672,
3536,
8823,
326,
394,
3179,
6740,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2002,
10544,
11728,
12,
2890,
16,
871,
4672,
3536,
8823,
326,
394,
3179,
6740,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.x[i].t = val | self.x[i].t = (c_uint * (len(val) + 1))() self.x[i].t[0] = len(val) for j, num in enumerate(val): self.x[i].t[j+1] = num | def __init__(self, stringSVM, labels, values): | 50217656cb09ddf6382337cca40b8f4397b91010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14420/50217656cb09ddf6382337cca40b8f4397b91010/StringSVM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
533,
55,
7397,
16,
3249,
16,
924,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
533,
55,
7397,
16,
3249,
16,
924,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
candidates) | addresses) | def locate_many(self, domain, role=None, maxservers=None): """Locate a list of up to `maxservers' of domain controllers.""" if role is None: role = 'dc' if maxservers is None: maxservers = self._maxservers if role not in ('dc', 'gc', 'pdc'): raise ValueError, 'Role should be one of "dc", "gc" or "pdc".' if role == 'pdc... | e4f0f07a232f0948ef6daae133ae57183267e3a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11970/e4f0f07a232f0948ef6daae133ae57183267e3a3/locate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10627,
67,
9353,
12,
2890,
16,
2461,
16,
2478,
33,
7036,
16,
943,
14247,
33,
7036,
4672,
3536,
1333,
340,
279,
666,
434,
731,
358,
1375,
1896,
14247,
11,
434,
2461,
12403,
12123,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10627,
67,
9353,
12,
2890,
16,
2461,
16,
2478,
33,
7036,
16,
943,
14247,
33,
7036,
4672,
3536,
1333,
340,
279,
666,
434,
731,
358,
1375,
1896,
14247,
11,
434,
2461,
12403,
12123,
309,
... |
return isntrList | return instrList | def AddInstruments(self, instrTuples): """ Adds one or more instruments to the Project, and ensures that they are all appended to the undo stack as a single atomic action. Parameters: instrTuples -- a list of tuples containing name and type that will be passed to AddInstrument(). Returns: A list of the added Instrume... | 05cec31478852c794ce54bdd1c733e5f77c85d18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/05cec31478852c794ce54bdd1c733e5f77c85d18/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
19228,
87,
12,
2890,
16,
16170,
25813,
4672,
3536,
15605,
1245,
578,
1898,
29555,
358,
326,
5420,
16,
471,
11932,
716,
2898,
854,
777,
12317,
358,
326,
15436,
2110,
487,
279,
2202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
19228,
87,
12,
2890,
16,
16170,
25813,
4672,
3536,
15605,
1245,
578,
1898,
29555,
358,
326,
5420,
16,
471,
11932,
716,
2898,
854,
777,
12317,
358,
326,
15436,
2110,
487,
279,
2202,
... |
print("Materials in groups:",mat) print("Textures in groups:",tex) file.close() | file.close() | def load_msh(filename,orbiterpath,convert_coords): '''Read MSH file''' print("filepath=",filename,"orbiterpath=",orbiterpath) file=open(filename,"r") s=file.readline(); if s!='MSHX1\n': print("This file is not orbiter mesh: ",s) return else: print("Orbiter mesh format detected ") n_groups=0 #N of groups from header n... | a742957b6ee3c17a1d5ddaf38dbe115cb0e00154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/a742957b6ee3c17a1d5ddaf38dbe115cb0e00154/io_import_msh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
81,
674,
12,
3459,
16,
16640,
2165,
803,
16,
6283,
67,
9076,
4672,
9163,
1994,
490,
2664,
585,
26418,
1172,
2932,
10561,
1546,
16,
3459,
10837,
16640,
2165,
803,
1546,
16,
1664... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
81,
674,
12,
3459,
16,
16640,
2165,
803,
16,
6283,
67,
9076,
4672,
9163,
1994,
490,
2664,
585,
26418,
1172,
2932,
10561,
1546,
16,
3459,
10837,
16640,
2165,
803,
1546,
16,
1664... |
if debug_prints: print "got a crash but seh is intact, aborting" | logger.log_text("got a crash but seh is intact, aborting") | def exception(self, event): if event.is_first_chance(): event.continueStatus = win32.DBG_EXCEPTION_NOT_HANDLED if self.testing: if self.checkSnapshotPage(event): if debug_prints: print "updated snapshot" event.continueStatus = win32.DBG_CONTINUE elif hasattr(event, 'get_fault_type') and event.get_fault_type() == win32.... | 6d6079c7bcc0ba519b666a5d46e251aede9525d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6d6079c7bcc0ba519b666a5d46e251aede9525d0/sehtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
12,
2890,
16,
871,
4672,
309,
871,
18,
291,
67,
3645,
67,
343,
1359,
13332,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
4400,
67,
12346,
6687,
309,
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,
1520,
12,
2890,
16,
871,
4672,
309,
871,
18,
291,
67,
3645,
67,
343,
1359,
13332,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
4400,
67,
12346,
6687,
309,
365,
... |
treebuilder = treebuilders.simpletree | treebuilder = treebuilders.simpletree.TreeBuilder | def parse(): optParser = getOptParser() opts,args = optParser.parse_args() try: f = args[-1] except IndexError: print "No filename provided. Use -h for help" sys.exit(1) if opts.treebuilder is not None: try: #This isn't a great way to do this exec("import treebuilders.%s")%opts.treebuilder.split(".")[0] treebuilder = ... | b99fff6c5e538187360d1c1bec19f4147addb1ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/b99fff6c5e538187360d1c1bec19f4147addb1ed/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
13332,
2153,
2678,
273,
28959,
2678,
1435,
1500,
16,
1968,
273,
2153,
2678,
18,
2670,
67,
1968,
1435,
225,
775,
30,
284,
273,
833,
18919,
21,
65,
1335,
10195,
30,
1172,
315,
2279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
2153,
2678,
273,
28959,
2678,
1435,
1500,
16,
1968,
273,
2153,
2678,
18,
2670,
67,
1968,
1435,
225,
775,
30,
284,
273,
833,
18919,
21,
65,
1335,
10195,
30,
1172,
315,
2279,
... |
if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':') for f in allfiles: if f[-4:] == '.slb': finfo = macfs.FSSpec(f).GetFInfo() if finfo.Flags & 0x8000: os.unlink(f) else: LibFiles.append(f) | def main(): # Ask the user for the plugins directory dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname()) # Remove old .slb aliases and collect a list of .slb files if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':'... | 964b9fd985c3eb26a65b0c9dce5284148674de08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/964b9fd985c3eb26a65b0c9dce5284148674de08/fixfiletypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
25747,
326,
729,
364,
326,
4799,
1867,
1577,
16,
1529,
273,
5318,
2556,
18,
967,
2853,
1435,
309,
486,
1529,
30,
2589,
18,
8593,
12,
20,
13,
1140,
18,
343,
1214,
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,
2774,
13332,
468,
25747,
326,
729,
364,
326,
4799,
1867,
1577,
16,
1529,
273,
5318,
2556,
18,
967,
2853,
1435,
309,
486,
1529,
30,
2589,
18,
8593,
12,
20,
13,
1140,
18,
343,
1214,
12,
... | |
perm_delete = fields.Boolean('Delete Permission') | perm_delete = fields.Boolean('Delete Access') | def read(self, cursor, user, ids, fields_names=None, context=None): translation_obj = self.pool.get('ir.translation') | a71eceeb3a70daf8b424e4d9a10528df0469e81f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/a71eceeb3a70daf8b424e4d9a10528df0469e81f/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1466,
67,
1973,
33,
7036,
16,
819,
33,
7036,
4672,
4794,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
10173,
6134,
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,
855,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1466,
67,
1973,
33,
7036,
16,
819,
33,
7036,
4672,
4794,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
10173,
6134,
2,
-100,
... |
if isinstance(self.root, Expr.Negate): return Expr(self.root.expr) if isinstance(self.root, Expr.Number): return Expr(-self.root.value) return Expr(Expr.Negate(self.root)) | code = self.code if len(code) == 1: return Expr(-code[0]) if code[-1] is _EXPRNEG: return Expr(code[:-1]) return Expr(code + [_EXPRNEG]) | def __neg__(self): if isinstance(self.root, Expr.Negate): return Expr(self.root.expr) if isinstance(self.root, Expr.Number): return Expr(-self.root.value) return Expr(Expr.Negate(self.root)) | 1dd24e33ec6c36d3d5a36f2c212e6968864d27b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/1dd24e33ec6c36d3d5a36f2c212e6968864d27b3/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
972,
12,
2890,
4672,
309,
1549,
12,
2890,
18,
3085,
16,
8074,
18,
50,
4784,
4672,
327,
8074,
12,
2890,
18,
3085,
18,
8638,
13,
309,
1549,
12,
2890,
18,
3085,
16,
8074,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14518,
972,
12,
2890,
4672,
309,
1549,
12,
2890,
18,
3085,
16,
8074,
18,
50,
4784,
4672,
327,
8074,
12,
2890,
18,
3085,
18,
8638,
13,
309,
1549,
12,
2890,
18,
3085,
16,
8074,
1... |
timeout = job.timeout | def write_job_file(self, job): """ Writes out the job file to be executed to disk. | 8232b2d731d8950c9b50e56799c9a8fef29dca71 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/8232b2d731d8950c9b50e56799c9a8fef29dca71/dsage_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4688,
67,
768,
12,
2890,
16,
1719,
4672,
3536,
30053,
596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4688,
67,
768,
12,
2890,
16,
1719,
4672,
3536,
30053,
596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return http.Response(stream = message("Please request a specific worksheet")) | return HTMLResponse(stream = message("Please request a specific worksheet")) | def render(self, ctx): return http.Response(stream = message("Please request a specific worksheet")) | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
327,
1062,
18,
1064,
12,
3256,
273,
883,
2932,
8496,
590,
279,
2923,
13622,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
327,
1062,
18,
1064,
12,
3256,
273,
883,
2932,
8496,
590,
279,
2923,
13622,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.list[slotidx] = (_("init module"), 2, slot) | self.list[slotidx] = (_("init module"), ConfigDummy(), 2, slot) | def updateState(self, slot): state = eDVBCI_UI.getInstance().getState(slot) self.state[slot] = state | eb2804ab0205fd9204cd745feb840fdb4bc56216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/eb2804ab0205fd9204cd745feb840fdb4bc56216/Ci.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1119,
12,
2890,
16,
4694,
4672,
919,
273,
425,
30199,
38,
7266,
67,
5370,
18,
588,
1442,
7675,
588,
1119,
12,
14194,
13,
365,
18,
2019,
63,
14194,
65,
273,
919,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1119,
12,
2890,
16,
4694,
4672,
919,
273,
425,
30199,
38,
7266,
67,
5370,
18,
588,
1442,
7675,
588,
1119,
12,
14194,
13,
365,
18,
2019,
63,
14194,
65,
273,
919,
2,
-100,
-100,
... |
def __init__(self, allow_none): | def __init__(self, allow_none, encoding): | def __init__(self, allow_none): self.funcs = {} self.instance = None self.allow_none = allow_none | 2234f2d789905def1599dba588da16bbe4b99357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2234f2d789905def1599dba588da16bbe4b99357/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1699,
67,
6102,
16,
2688,
4672,
365,
18,
17728,
273,
2618,
365,
18,
1336,
273,
599,
365,
18,
5965,
67,
6102,
273,
1699,
67,
6102,
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,
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,
1699,
67,
6102,
16,
2688,
4672,
365,
18,
17728,
273,
2618,
365,
18,
1336,
273,
599,
365,
18,
5965,
67,
6102,
273,
1699,
67,
6102,
2,
-100,
-100,
-100,
... |
self.doingCmd = None self.manGuideScriptRunner = None | self.doingCmd = None | def __init__(self, master, actor, | 3840494bc0492f518ca35b58e6fb1e00be7f32ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/3840494bc0492f518ca35b58e6fb1e00be7f32ab/GuideWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
8327,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
8327,
16,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tx._canvas.line(t_off+x1, ys, t_off+x2, ys) | tx._canvas.line(x1, ys, x2, ys) | def _do_post_text(t_off, tx): xs = tx.XtraState leading = xs.style.leading autoLeading = xs.autoLeading f = xs.f if autoLeading=='max': leading = max(leading,1.2*f.fontSize) elif autoLeading=='min': leading = 1.2*f.fontSize ff = 0.125*f.fontSize y0 = xs.cur_y y = y0 - ff csc = None for x1,x2,c in xs.underlines: if c!=c... | ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
2767,
67,
955,
12,
88,
67,
3674,
16,
2229,
4672,
9280,
273,
2229,
18,
60,
2033,
1119,
7676,
273,
9280,
18,
4060,
18,
27200,
3656,
19112,
273,
9280,
18,
6079,
19112,
284,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
2767,
67,
955,
12,
88,
67,
3674,
16,
2229,
4672,
9280,
273,
2229,
18,
60,
2033,
1119,
7676,
273,
9280,
18,
4060,
18,
27200,
3656,
19112,
273,
9280,
18,
6079,
19112,
284,... |
stop += rcs*nchunk2 | stop += rchunksize*nchunk2 | def searchLastRow(self, item): # Variable initialization item1, item2 = item bebounds = self.bebounds b0, b1 = bebounds[0], bebounds[-1] bounds = bebounds[1:-1] itemsize = self.dtype.itemsize sortedLRcache = self.sortedLRcache hi = self.nelementsSLR # maximum number of elements rcs = self.chunksize // sel... | cac7fa90baf2dcde2a5f445c16751dcb191a15ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12687/cac7fa90baf2dcde2a5f445c16751dcb191a15ae/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
3024,
1999,
12,
2890,
16,
761,
4672,
468,
7110,
10313,
761,
21,
16,
761,
22,
273,
761,
506,
10576,
273,
365,
18,
2196,
10576,
324,
20,
16,
324,
21,
273,
506,
10576,
63,
20,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3024,
1999,
12,
2890,
16,
761,
4672,
468,
7110,
10313,
761,
21,
16,
761,
22,
273,
761,
506,
10576,
273,
365,
18,
2196,
10576,
324,
20,
16,
324,
21,
273,
506,
10576,
63,
20,
648... |
raise | def yumrepo(self): if not self._yumrepo: self.yumbase.repos.disableRepo('*') self.yumbase.add_enable_repo('pkgdb-%s' % self.repo.shortname, ['%s%s' % (self.repo.mirror, self.repo.url)]) self._yumrepo = self.yumbase.repos.getRepo('pkgdb-%s' % self.repo.shortname) # populate sack try: self.yumbase._getSacks(thisrepo=sel... | a69d8febd41eaf6574eeafd48fb0b9fda70aaba2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9953/a69d8febd41eaf6574eeafd48fb0b9fda70aaba2/packagebuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
379,
7422,
12,
2890,
4672,
309,
486,
365,
6315,
93,
379,
7422,
30,
365,
18,
93,
379,
1969,
18,
15564,
18,
8394,
8791,
2668,
4035,
13,
365,
18,
93,
379,
1969,
18,
1289,
67,
7589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
379,
7422,
12,
2890,
4672,
309,
486,
365,
6315,
93,
379,
7422,
30,
365,
18,
93,
379,
1969,
18,
15564,
18,
8394,
8791,
2668,
4035,
13,
365,
18,
93,
379,
1969,
18,
1289,
67,
7589,... | |
mapper.ImmediateModeRendering() | mapper.ImmediateModeRenderingOn() | def AddNewActor(self, pubsub_evt): """ Create surface actor, save into project and send it to viewer. """ surface_data = pubsub_evt.data | 126beb40b82e95beafd08ec6f018e851103caee2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/126beb40b82e95beafd08ec6f018e851103caee2/surface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1908,
17876,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
3536,
1788,
9034,
8327,
16,
1923,
1368,
1984,
471,
1366,
518,
358,
14157,
18,
3536,
9034,
67,
892,
273,
23288,
67,
73,
11734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1436,
1908,
17876,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
3536,
1788,
9034,
8327,
16,
1923,
1368,
1984,
471,
1366,
518,
358,
14157,
18,
3536,
9034,
67,
892,
273,
23288,
67,
73,
11734,... |
timestamp = os.path.getctime(filepath) if timestamp > self.conf.mdtimestamp: self.conf.mdtimestamp = timestamp | rxml = filepath + '/repomd.xml' if os.path.exists(rxml): timestamp = os.path.getctime(rxml) if timestamp > self.conf.mdtimestamp: self.conf.mdtimestamp = timestamp | def _test_setup_dirs(self): # start the sanity/stupidity checks for mydir in self.conf.directories: if os.path.isabs(mydir): testdir = mydir else: if mydir.startswith('../'): testdir = os.path.realpath(mydir) else: testdir = os.path.join(self.conf.basedir, mydir) | 6e6f8febc9042b5a95e20e5d7813a62a2ca30289 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/6e6f8febc9042b5a95e20e5d7813a62a2ca30289/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
8401,
67,
8291,
12,
2890,
4672,
468,
787,
326,
16267,
19,
334,
416,
24237,
4271,
364,
3399,
1214,
316,
365,
18,
3923,
18,
15121,
30,
309,
1140,
18,
803,
18,
291,
5113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
8401,
67,
8291,
12,
2890,
4672,
468,
787,
326,
16267,
19,
334,
416,
24237,
4271,
364,
3399,
1214,
316,
365,
18,
3923,
18,
15121,
30,
309,
1140,
18,
803,
18,
291,
5113,
... |
(repr(self.faultCode), repr(self.faultString)) | (self.faultCode, repr(self.faultString)) | def __repr__(self): return ( "<Fault %s: %s>" % (repr(self.faultCode), repr(self.faultString)) ) | ec00ab8f6244c6bfe9524cd649c63e5bcb7f4750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ec00ab8f6244c6bfe9524cd649c63e5bcb7f4750/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
261,
3532,
7083,
738,
87,
30,
738,
87,
2984,
738,
261,
2890,
18,
643,
1085,
16,
8480,
12,
2890,
18,
643,
780,
3719,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
261,
3532,
7083,
738,
87,
30,
738,
87,
2984,
738,
261,
2890,
18,
643,
1085,
16,
8480,
12,
2890,
18,
643,
780,
3719,
262,
2,
-100,
-100,
-100,
-... |
assert not filter(lambda x: isinstance(x,LCActionFlowable),V),'LCActionFlowables not allowed in sublists' | assert not [x for x in V if isinstance(x,LCActionFlowable)],'LCActionFlowables not allowed in sublists' | def _flowableSublist(V): "if it isn't a list or tuple, wrap it in a list" if type(V) not in (ListType, TupleType): V = V is not None and [V] or [] from doctemplate import LCActionFlowable assert not filter(lambda x: isinstance(x,LCActionFlowable),V),'LCActionFlowables not allowed in sublists' return V | af20f9e0bc90c57f1430ca9650389ab64c8ea9f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/af20f9e0bc90c57f1430ca9650389ab64c8ea9f1/flowables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2426,
429,
55,
440,
376,
12,
58,
4672,
315,
430,
518,
5177,
1404,
279,
666,
578,
3193,
16,
2193,
518,
316,
279,
666,
6,
309,
618,
12,
58,
13,
486,
316,
261,
19366,
16,
7257,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2426,
429,
55,
440,
376,
12,
58,
4672,
315,
430,
518,
5177,
1404,
279,
666,
578,
3193,
16,
2193,
518,
316,
279,
666,
6,
309,
618,
12,
58,
13,
486,
316,
261,
19366,
16,
7257,
5... |
s.quit() if debug: smtplib.stderr = oldstderr | try: s.quit() if debug: smtplib.stderr = oldstderr except: pass | def _email_send(message, openobject_id=None, debug=False): """Low-level method to send directly a Message through the configured smtp server. :param message: an email.message.Message to send :param debug: True if messages should be output to stderr before being sent, and smtplib.SMTP put into debug mode. :return: True ... | 478ab1c86d3d35f3b5c2e40276f5574c62d56543 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/478ab1c86d3d35f3b5c2e40276f5574c62d56543/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3652,
67,
4661,
12,
2150,
16,
1696,
1612,
67,
350,
33,
7036,
16,
1198,
33,
8381,
4672,
3536,
10520,
17,
2815,
707,
358,
1366,
5122,
279,
2350,
3059,
326,
4351,
17660,
1438,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3652,
67,
4661,
12,
2150,
16,
1696,
1612,
67,
350,
33,
7036,
16,
1198,
33,
8381,
4672,
3536,
10520,
17,
2815,
707,
358,
1366,
5122,
279,
2350,
3059,
326,
4351,
17660,
1438,
18,
29... |
cp.set("gip_tests", "enable_glite", "False") | cp.set("gip_tests", "results_dir", results_dir) | def interpolateConfig(cp): if cp_get(cp, "gip_tests", "site_names", "") == "": cp.set("gip_tests", "site_names", cp_get(cp, "site", "name", "")) if cp_get(cp, "gip_tests", "site_dns", "") == "": host_parts = cp_get(cp, "ce", "name", "").split('.') site_dns = "%s.%s" % (host_parts[:-2], host_parts[:-1]) cp.set("gip_tes... | bef31ea77737a7f712e6154212174ef981e1beea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12088/bef31ea77737a7f712e6154212174ef981e1beea/gip_testing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13156,
809,
12,
4057,
4672,
309,
3283,
67,
588,
12,
4057,
16,
315,
75,
625,
67,
16341,
3113,
315,
4256,
67,
1973,
3113,
1408,
13,
422,
1408,
30,
3283,
18,
542,
2932,
75,
625,
67,
163... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13156,
809,
12,
4057,
4672,
309,
3283,
67,
588,
12,
4057,
16,
315,
75,
625,
67,
16341,
3113,
315,
4256,
67,
1973,
3113,
1408,
13,
422,
1408,
30,
3283,
18,
542,
2932,
75,
625,
67,
163... |
if cellNr >= self.programChain.cellCount: | if (self.cell.blockMode == \ dvdread.CELL_BLOCK_MODE_ANGLE_FIRST or \ self.cell.blockMode == \ dvdread.CELL_BLOCK_MODE_ANGLE_MIDDLE): cellNr += 1 nextMode = self.programChain.getCell(cellNr).blockMode while nextMode != dvdread.CELL_BLOCK_MODE_ANGLE_LAST: cellNr += 1 nextMode = self.programChain.getCell(cellNr).blockM... | def linkCell(self, cellNr, sectorNr=None): """Link to the specified cell. | c517613690cb665282fcaf9ca4252741af236776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/c517613690cb665282fcaf9ca4252741af236776/machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
4020,
12,
2890,
16,
2484,
18726,
16,
16323,
18726,
33,
7036,
4672,
3536,
2098,
358,
326,
1269,
2484,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
4020,
12,
2890,
16,
2484,
18726,
16,
16323,
18726,
33,
7036,
4672,
3536,
2098,
358,
326,
1269,
2484,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
boolOptionsGlobal = ['runOnce', 'active', 'rssFeed', 'urllib', 'noClobber'] | boolOptionsGlobal = ['runOnce', 'active', 'rssFeed', 'urllib', 'noClobber', 'debug'] | def getSaved( filename=None, unset=False): u"""Return an instance of the SaveProcessor class creating one if needed""" global saved if unset: saved = None elif not saved: saved = SaveProcessor(saveFileName=filename) return saved | cb06f1645b77b7012f9195d9b9e4a000a0842687 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/cb06f1645b77b7012f9195d9b9e4a000a0842687/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
8158,
12,
1544,
33,
7036,
16,
2646,
33,
8381,
4672,
582,
8395,
990,
392,
791,
434,
326,
7074,
5164,
667,
4979,
1245,
309,
3577,
8395,
2552,
5198,
309,
2646,
30,
5198,
273,
599,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
8158,
12,
1544,
33,
7036,
16,
2646,
33,
8381,
4672,
582,
8395,
990,
392,
791,
434,
326,
7074,
5164,
667,
4979,
1245,
309,
3577,
8395,
2552,
5198,
309,
2646,
30,
5198,
273,
599,
1... |
str += '(type=' + epytext.to_html(param.type()) | str += '(type=' + dom_to_html(param.type(), container) | def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>' | b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
990,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
4186,
273,
365,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
990,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
4186,
273,
365,
6... |
hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_1.00_spectrogram_whitened_thumbnail.png\" width=\"50%\"><br>" hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_16.00_spectrogram_whitened... | hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_1.00_spectrogram_whitened.thumb.png\" width=\"50%\"><br>" hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_16.00_spectrogram_whitened.thu... | def getFileMatchingTrigger(jobname,string_id,file_list=False): if os.access(jobname,os.F_OK): filesInDir = os.listdir(jobname) fileList = [] for paramFile in filesInDir: if fnmatch.fnmatch(paramFile, "*"+string_id+"*.html"): if file_list: fileList.append("../"+jobname+"/"+paramFile) else: return "../"+jobname+"/"+param... | 9273b7b0fb17e529b5b4f6f9baeb0fb70e722be9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/9273b7b0fb17e529b5b4f6f9baeb0fb70e722be9/makeCheckList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
9517,
6518,
12,
4688,
529,
16,
1080,
67,
350,
16,
768,
67,
1098,
33,
8381,
4672,
309,
1140,
18,
3860,
12,
4688,
529,
16,
538,
18,
42,
67,
3141,
4672,
1390,
382,
1621,
273,
1140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
9517,
6518,
12,
4688,
529,
16,
1080,
67,
350,
16,
768,
67,
1098,
33,
8381,
4672,
309,
1140,
18,
3860,
12,
4688,
529,
16,
538,
18,
42,
67,
3141,
4672,
1390,
382,
1621,
273,
1140... |
the sorted list of unique numbers described by the ranges. | the sorted list of unique numbers described by the ranges. A range with a positive step describes the offsets (first + n * step) where n is an integer such that first <= offset <= last. A range with a negative step describes the offsets (first + n * step) where n is an integer such that last <= offset <= first. | def parse_slidespec(slidespec): """ Accepts a string in the format instrument=first:last:step[,first:last:step]... and returns the tuple (instrument, [offset1, offset2, ....]) where the offsets are the sorted list of unique numbers described by the ranges. Example: >>> parse_slidespec("H1=-5:+5:0.5") ('H1', [-5.0, -... | 3280eb72d42d7add55fe0714f37c98d2e461410d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/3280eb72d42d7add55fe0714f37c98d2e461410d/ligolw_tisi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2069,
4369,
705,
12,
2069,
4369,
705,
4672,
3536,
27158,
279,
533,
316,
326,
740,
10353,
33,
3645,
30,
2722,
30,
4119,
63,
16,
3645,
30,
2722,
30,
4119,
65,
2777,
225,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2069,
4369,
705,
12,
2069,
4369,
705,
4672,
3536,
27158,
279,
533,
316,
326,
740,
10353,
33,
3645,
30,
2722,
30,
4119,
63,
16,
3645,
30,
2722,
30,
4119,
65,
2777,
225,
471,
... |
mset(phash, '|'.join((ip, port,)), namespace='I') | mset(phash, '|'.join((ip, str(port))), namespace='I') | def real_main(): args = parse_qs(environ['QUERY_STRING']) if not args: print "Status: 301 Moved Permanantly\nLocation: /\n\n", return for a in ('info_hash', 'port'): if a not in args or len(args[a]) < 1: return # Maybe now that trackhub is fixed we shoud be less harsh? resps(bencode({'failure reason': "You must provi... | 547fbff1c8f123c01e6ebc9e28e01d54fa538bec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14779/547fbff1c8f123c01e6ebc9e28e01d54fa538bec/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
67,
5254,
13332,
833,
273,
1109,
67,
12926,
12,
28684,
3292,
10753,
67,
5804,
19486,
225,
309,
486,
833,
30,
1172,
315,
1482,
30,
26403,
490,
9952,
13813,
304,
970,
715,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
67,
5254,
13332,
833,
273,
1109,
67,
12926,
12,
28684,
3292,
10753,
67,
5804,
19486,
225,
309,
486,
833,
30,
1172,
315,
1482,
30,
26403,
490,
9952,
13813,
304,
970,
715,
64,
82,
... |
st t1, seg, [scale, index, t2], disp | st t1, seg, [1, t2, t7], disp | def macroop BTC_P_R { rdip t7 limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, 1 rol t3, t3, reg ldst t1, seg, [1, t2, t7] sext t0, t1, reg, flags=(CF,) xor t1, t1, t3 st t1, seg, [scale, index, t2], disp | 67fee0102648eb597c8c2a368da5f37f4b13b78b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/67fee0102648eb597c8c2a368da5f37f4b13b78b/bit_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
605,
15988,
67,
52,
67,
54,
288,
9437,
625,
268,
27,
20167,
81,
268,
21,
16,
709,
81,
272,
354,
77,
268,
22,
16,
268,
21,
16,
7751,
3074,
18,
892,
1225,
422,
1725,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
605,
15988,
67,
52,
67,
54,
288,
9437,
625,
268,
27,
20167,
81,
268,
21,
16,
709,
81,
272,
354,
77,
268,
22,
16,
268,
21,
16,
7751,
3074,
18,
892,
1225,
422,
1725,
13,
... |
item = NewsItem.objects.get(schema__id=schema.id, title=entry.title, description=entry.description) | item = NewsItem.objects.get(schema__id=schema.id, url=entry.link) | def main(argv=None): logger.info("Starting add_news") if argv: url = argv[0] else: url = 'http://search.boston.com/search/api?q=*&sort=-articleprintpublicationdate&subject=massachusetts&scope=bonzai' schema_slug = 'local-news' try: schema = Schema.objects.get(slug=schema_slug) except Schema.DoesNotExist: print "Schema... | 41f016572216a36d3af500427fdadb6d4f62ba97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/41f016572216a36d3af500427fdadb6d4f62ba97/add_news.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
1194,
18,
1376,
2932,
11715,
527,
67,
18443,
7923,
309,
5261,
30,
880,
273,
5261,
63,
20,
65,
469,
30,
880,
273,
296,
2505,
2207,
3072,
18,
70,
669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
1194,
18,
1376,
2932,
11715,
527,
67,
18443,
7923,
309,
5261,
30,
880,
273,
5261,
63,
20,
65,
469,
30,
880,
273,
296,
2505,
2207,
3072,
18,
70,
669,
... |
("foo", 5, 3.14, None, buffer("blob"),)) | ("foo", 5, 3.14, None, buffer(b"blob"),)) | def setUp(self): self.con = sqlite.connect(":memory:") cur = self.con.cursor() cur.execute(""" create table test( t text, i integer, f float, n, b blob ) """) cur.execute("insert into test(t, i, f, n, b) values (?, ?, ?, ?, ?)", ("foo", 5, 3.14, None, buffer("blob"),)) | 3488e70407261abba20e38080df81d1ef94ecae6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/3488e70407261abba20e38080df81d1ef94ecae6/userfunctions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
591,
273,
16184,
18,
3612,
2932,
30,
7858,
2773,
13,
662,
273,
365,
18,
591,
18,
9216,
1435,
662,
18,
8837,
2932,
3660,
752,
1014,
1842,
12,
268,
977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
591,
273,
16184,
18,
3612,
2932,
30,
7858,
2773,
13,
662,
273,
365,
18,
591,
18,
9216,
1435,
662,
18,
8837,
2932,
3660,
752,
1014,
1842,
12,
268,
977,
... |
self.sage._expect.expect(self.sage._prompt, timeout=timeout) | e.expect(self.sage._prompt, timeout=timeout) | def stop(self): """ Stops the current worker and resets it's internal state. """ INTERRUPT_TRIES = 20 timeout = 0.3 try: for i in range(INTERRUPT_TRIES): self.sage._expect.sendline('q') self.sage._expect.sendline(chr(3)) # send ctrl-c try: self.sage._expect.expect(self.sage._prompt, timeout=timeout) success = True b... | b26ee276ff3afed683baa8910a742216978dfeee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b26ee276ff3afed683baa8910a742216978dfeee/dsage_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
3536,
934,
4473,
326,
783,
4322,
471,
20063,
518,
1807,
2713,
919,
18,
225,
3536,
225,
6137,
9712,
57,
1856,
67,
6566,
3991,
273,
4200,
2021,
273,
374,
18,
23,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
3536,
934,
4473,
326,
783,
4322,
471,
20063,
518,
1807,
2713,
919,
18,
225,
3536,
225,
6137,
9712,
57,
1856,
67,
6566,
3991,
273,
4200,
2021,
273,
374,
18,
23,
77... |
A 4 by :math:`$(n-1)$` matrix ``Z`` is returned. At the :math:`$i$`th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`$n + i$`. A cluster with an index less than :math:`$n$` corresponds to one of the :math:`$n$` original observations. The distance between | A 4 by :math:`(n-1)` matrix ``Z`` is returned. At the :math:`i`-th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`n + i`. A cluster with an index less than :math:`n` corresponds to one of the :math:`n` original observations. The distance between | def linkage(y, method='single', metric='euclidean'): """ Performs hierarchical/agglomerative clustering on the condensed distance matrix y. y must be a {n \choose 2} sized vector where n is the number of original observations paired in the distance matrix. The behavior of this function is very similar to the MATLAB(TM)... | 8172e9e1737f1f6d84d1b06fa46e587e764a1a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/8172e9e1737f1f6d84d1b06fa46e587e764a1a0f/hierarchy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
3536,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
18,
677,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
3536,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
18,
677,
... |
return self._getCachedInfo()['venue']['name'] | return self._getCachedInfo('venue', 'name') | def getVenueName(self): """Returns the name of the venue where the event is held. """ return self._getCachedInfo()['venue']['name'] | ec1304614ea5bc838c2f5bb83444fc59ac9c26d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/ec1304614ea5bc838c2f5bb83444fc59ac9c26d8/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11031,
275,
344,
461,
12,
2890,
4672,
3536,
1356,
326,
508,
434,
326,
331,
275,
344,
1625,
326,
871,
353,
15770,
18,
3536,
225,
327,
365,
6315,
588,
9839,
966,
2668,
24612,
2187,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11031,
275,
344,
461,
12,
2890,
4672,
3536,
1356,
326,
508,
434,
326,
331,
275,
344,
1625,
326,
871,
353,
15770,
18,
3536,
225,
327,
365,
6315,
588,
9839,
966,
2668,
24612,
2187,
296,
... |
expect(f.read(1), 'z') | expect(f.read(1), b'z') | def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes') | f55d86abe0e358709c72f404db4b832ea362c7d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f55d86abe0e358709c72f404db4b832ea362c7d9/test_largefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... |
builder.getObject(state, name).source = '\n'.join(text).lstrip('\n\t/ ')+'\n/' | obj = builder.getObject(state, name) if obj: obj.source = '\n'.join(text).lstrip('\n\t/ ')+'\n/' | def customQuery(cursor, state, builder): cursor.execute(""" SELECT name, DECODE(line, 1, '/'||chr(10)||'CREATE OR REPLACE ', '')||text FROM user_source WHERE type IN ('%s') ORDER BY name, type, line""" % "', '".join(builder.DbType)) | bfd136ac9ae145198693c941adea2547c628575f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/760/bfd136ac9ae145198693c941adea2547c628575f/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1679,
1138,
12,
9216,
16,
919,
16,
2089,
4672,
3347,
18,
8837,
2932,
3660,
9111,
508,
16,
2030,
5572,
12,
1369,
16,
404,
16,
2023,
20081,
15182,
12,
2163,
14047,
16637,
9344,
4869,
23679... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1679,
1138,
12,
9216,
16,
919,
16,
2089,
4672,
3347,
18,
8837,
2932,
3660,
9111,
508,
16,
2030,
5572,
12,
1369,
16,
404,
16,
2023,
20081,
15182,
12,
2163,
14047,
16637,
9344,
4869,
23679... |
reg.register_linear_resample(image['data'], remaped_image['data'], M_inverse, imdata['step']) | reg.register_linear_resample(image, remaped_image, M_inverse, step) | def remap_image(image, parm_vector, resample='linear'): """ remaped_image = remap_image(image, parm_vector, resample='linear') rotates and translates image using the 3 angles and 3 translations in the 6-dim parm_vector. The mapping is stored in the 4x4 M_inverse matrix from the get_inverse_mapping method. Parameters ... | a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21674,
67,
2730,
12,
2730,
16,
19924,
67,
7737,
16,
19220,
2218,
12379,
11,
4672,
3536,
849,
5994,
67,
2730,
273,
21674,
67,
2730,
12,
2730,
16,
19924,
67,
7737,
16,
19220,
2218,
12379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21674,
67,
2730,
12,
2730,
16,
19924,
67,
7737,
16,
19220,
2218,
12379,
11,
4672,
3536,
849,
5994,
67,
2730,
273,
21674,
67,
2730,
12,
2730,
16,
19924,
67,
7737,
16,
19220,
2218,
12379,
... |
fromdate = datetime.datetime.today() todate = datetime.datetime.today() | fromdate = None todate = None | def to_datetime(datestr): numlist = re.findall('\d+', datestr) if len(numlist) != 3: print >>sys.stderr, '%s not in correct format [DD/MM/YYYY]' % datestr return None else: datelist = [] for num in numlist: datelist.append(string.atoi(num)) return datetime.datetime(datelist[2], datelist[1], datelist[0]) | f55a79144368a66b96fa92a55d8cec444dbad926 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5095/f55a79144368a66b96fa92a55d8cec444dbad926/supremecourt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
6585,
12,
9683,
313,
4672,
818,
1098,
273,
283,
18,
4720,
454,
2668,
64,
72,
15,
2187,
7811,
313,
13,
309,
562,
12,
2107,
1098,
13,
480,
890,
30,
1172,
1671,
9499,
18,
11241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
6585,
12,
9683,
313,
4672,
818,
1098,
273,
283,
18,
4720,
454,
2668,
64,
72,
15,
2187,
7811,
313,
13,
309,
562,
12,
2107,
1098,
13,
480,
890,
30,
1172,
1671,
9499,
18,
11241... |
return self.is_64bit() and self.is_i686() | return self.is_64bit() and self.is_PentiumIV() | def _is_Nocona(self): return self.is_64bit() and self.is_i686() | 19cc4b93b3dd495fd355d77225d3f97e23f85ffb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/19cc4b93b3dd495fd355d77225d3f97e23f85ffb/cpuinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
50,
16550,
69,
12,
2890,
4672,
327,
365,
18,
291,
67,
1105,
3682,
1435,
471,
365,
18,
291,
67,
77,
26,
5292,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
50,
16550,
69,
12,
2890,
4672,
327,
365,
18,
291,
67,
1105,
3682,
1435,
471,
365,
18,
291,
67,
77,
26,
5292,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
capture_temp=False, assert_no_temp=False): | capture_temp=False, assert_no_temp=False, split_cmd=True): | def __init__(self, base_path=None, template_path=None, environ=None, cwd=None, start_clear=True, ignore_paths=None, ignore_hidden=True, capture_temp=False, assert_no_temp=False): """ Creates an environment. ``base_path`` is used as the current working directory, and generally where changes are looked for. If not given... | 1edb8b5be29dbec631d234d0f7427ff0e8b3b22d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/1edb8b5be29dbec631d234d0f7427ff0e8b3b22d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
803,
33,
7036,
16,
1542,
67,
803,
33,
7036,
16,
5473,
33,
7036,
16,
7239,
33,
7036,
16,
787,
67,
8507,
33,
5510,
16,
2305,
67,
4481,
33,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
803,
33,
7036,
16,
1542,
67,
803,
33,
7036,
16,
5473,
33,
7036,
16,
7239,
33,
7036,
16,
787,
67,
8507,
33,
5510,
16,
2305,
67,
4481,
33,
70... |
class SimpleXMLRPCRequestHandler(GenericXMLRPCRequestHandler, SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): | class SimpleXMLRPCRequestHandler(GenericXMLRPCRequestHandler, SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): | def _dispatch(self, method, params): #print 'TERP-CALL : ',method, params import traceback try: n = self.path.split("/")[-1] s = LocalService(n) m = getattr(s, method) s._service._response = None r = m(*params) res = s._service._response if res != None: r = res return r except Exception, e: tb_s = reduce(lambda x, y: x... | 07f8f4943d0e6d1b45e76498021f6b5ff8ed63dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/07f8f4943d0e6d1b45e76498021f6b5ff8ed63dc/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
707,
16,
859,
4672,
468,
1188,
296,
2560,
52,
17,
13730,
294,
2265,
2039,
16,
859,
1930,
10820,
775,
30,
290,
273,
365,
18,
803,
18,
4939,
2932,
4898,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
707,
16,
859,
4672,
468,
1188,
296,
2560,
52,
17,
13730,
294,
2265,
2039,
16,
859,
1930,
10820,
775,
30,
290,
273,
365,
18,
803,
18,
4939,
2932,
4898,
13,
1... |
files = popenx(cmdline, 'b') fi = files[0] fo = files[1] if self.have_popen3: fe = files[2] | files = subprocess.Popen(cmdline, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE ) | def run_cgi(self): """Execute a CGI script.""" path = self.path dir, rest = self.cgi_info | 3a145a18c863f2b573b47126f7d6ed35bc3d48af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/3a145a18c863f2b573b47126f7d6ed35bc3d48af/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
589,
273,
365,
18,
803,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
589,
273,
365,
18,
803,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"Unknown format: must be either 'vtk' or 'vtk-xml'\n" | "Unknown format: must be either 'vtk' or 'vtk-xml'\n" | def setData(self, points=None, fname=None, format=None, radii=None, colors=None): """ Set data to the plot @param points: the array to use for the points of the sphere locations in space @type points: array | 6480f756a9f1895c985f2adcc7d2ec5d3da1a3d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/6480f756a9f1895c985f2adcc7d2ec5d3da1a3d2/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
3143,
33,
7036,
16,
5299,
33,
7036,
16,
740,
33,
7036,
16,
28125,
33,
7036,
16,
5740,
33,
7036,
4672,
3536,
1000,
501,
358,
326,
3207,
632,
891,
3143,
30,
326,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7929,
12,
2890,
16,
3143,
33,
7036,
16,
5299,
33,
7036,
16,
740,
33,
7036,
16,
28125,
33,
7036,
16,
5740,
33,
7036,
4672,
3536,
1000,
501,
358,
326,
3207,
632,
891,
3143,
30,
326,
52... |
self.state = (nsdict, ['xml'], []) | self.state = (nsdict, {'xml':''}, {}) | def __init__(self, node, write, **kw): '''Create and run the implementation.''' | 6df2d566784161a533c97fa1bd11ec1e27489fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6df2d566784161a533c97fa1bd11ec1e27489fcb/c14n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
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,
1001,
2738,
972,
12,
2890,
16,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
} | } | def c_code(self, node, nodename, (x, z, gz), (gx,), sub): fail = sub['fail'] ds0, ds1 = self.ds ignore_border = int(self.ignore_border) return """ if (%(x)s->nd != 4 || %(z)s->nd != 4 || %(gz)s->nd != 4) { PyErr_SetString(PyExc_ValueError, "rank error"); %(fail)s; } if ((NULL == %(gx)s) || (CudaNdarray_HOST_DIMS(%(gx)s... | 98f8608be75b8b81997fa956395f0063b48ea567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/98f8608be75b8b81997fa956395f0063b48ea567/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
14003,
1069,
16,
261,
92,
16,
998,
16,
14136,
3631,
261,
75,
92,
16,
3631,
720,
4672,
2321,
273,
720,
3292,
6870,
3546,
3780,
20,
16,
3780,
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,
276,
67,
710,
12,
2890,
16,
756,
16,
14003,
1069,
16,
261,
92,
16,
998,
16,
14136,
3631,
261,
75,
92,
16,
3631,
720,
4672,
2321,
273,
720,
3292,
6870,
3546,
3780,
20,
16,
3780,
21,
... |
class RuleLine(object): """A rule line is a single "Allow:" (allowance==1) or "Disallow:" (allowance==0) followed by a path.""" | class RuleLine: """A rule line is a single "Allow:" (allowance==True) or "Disallow:" (allowance==False) followed by a path.""" | def __str__(self): ret = "" for entry in self.entries: ret = ret + str(entry) + "\n" return ret | 9f86ae009f1e74ee040c0d6e683bcba6894a674b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4845/9f86ae009f1e74ee040c0d6e683bcba6894a674b/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
325,
273,
1408,
364,
1241,
316,
365,
18,
8219,
30,
325,
273,
325,
397,
609,
12,
4099,
13,
397,
1548,
82,
6,
327,
325,
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,
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,
1001,
701,
972,
12,
2890,
4672,
325,
273,
1408,
364,
1241,
316,
365,
18,
8219,
30,
325,
273,
325,
397,
609,
12,
4099,
13,
397,
1548,
82,
6,
327,
325,
2,
-100,
-100,
-100,
-100,
-100,... |
assert(self.debugPrint("setAvatarPhysicsIndicator()")) | assert self.notify.debugStateCall(self) | def setAvatarPhysicsIndicator(self, indicator): """ indicator is a NodePath """ assert(self.debugPrint("setAvatarPhysicsIndicator()")) self.cWallSphereNodePath.show() | abc151a082286523619150b15b5dc30864de5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/abc151a082286523619150b15b5dc30864de5bde/GravityWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
23999,
3731,
1900,
2102,
13140,
12,
2890,
16,
10664,
4672,
3536,
10664,
353,
279,
2029,
743,
3536,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
71,
26558,
2274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
23999,
3731,
1900,
2102,
13140,
12,
2890,
16,
10664,
4672,
3536,
10664,
353,
279,
2029,
743,
3536,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
71,
26558,
2274... |
buffer += key if key == '\n': break return buffer | buffer += key if key == '\n': break finally: curses.raw(False) return buffer.encode(getpreferredencoding()) | def readline(self): """I can't think of any reason why anything other than readline would be useful in the context of an interactive interpreter so this is the only one I've done anything with. The others are just there in case someone does something weird to stop it from blowing up.""" | cd3b707f7e1acfdd7180d26c1bb4a6a98ccb3a75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/cd3b707f7e1acfdd7180d26c1bb4a6a98ccb3a75/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
3536,
45,
848,
1404,
15507,
434,
1281,
3971,
11598,
6967,
1308,
2353,
12023,
4102,
506,
5301,
316,
326,
819,
434,
392,
12625,
16048,
1427,
333,
353,
326,
1338,
1245,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
3536,
45,
848,
1404,
15507,
434,
1281,
3971,
11598,
6967,
1308,
2353,
12023,
4102,
506,
5301,
316,
326,
819,
434,
392,
12625,
16048,
1427,
333,
353,
326,
1338,
1245,... |
(S_IFLNK, "l", S_IFREG, "-", S_IFBLK, "b", S_IFDIR, "d", S_IFCHR, "c", S_IFIFO, "p"), (TUREAD, "r"), (TUWRITE, "w"), (TUEXEC, "x", TSUID, "S", TUEXEC|TSUID, "s"), (TGREAD, "r"), (TGWRITE, "w"), (TGEXEC, "x", TSGID, "S", TGEXEC|TSGID, "s"), (TOREAD, "r"), (TOWRITE, "w"), (TOEXEC, "x", TSVTX, "T", TOEXEC|TSVTX, "t"... | ((S_IFLNK, "l"), (S_IFREG, "-"), (S_IFBLK, "b"), (S_IFDIR, "d"), (S_IFCHR, "c"), (S_IFIFO, "p")), ((TUREAD, "r"),), ((TUWRITE, "w"),), ((TUEXEC|TSUID, "s"), (TSUID, "S"), (TUEXEC, "x")), ((TGREAD, "r"),), ((TGWRITE, "w"),), ((TGEXEC|TSGID, "s"), (TSGID,... | def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src.... | 8bc462fcafe9f11094f0185813f95c0f569b112e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bc462fcafe9f11094f0185813f95c0f569b112e/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29310,
2603,
12,
4816,
16,
3046,
16,
769,
33,
7036,
4672,
3536,
2951,
769,
1731,
628,
17041,
1705,
358,
17041,
3046,
18,
971,
769,
353,
599,
16,
1610,
326,
7278,
913,
18,
3536,
309,
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,
29310,
2603,
12,
4816,
16,
3046,
16,
769,
33,
7036,
4672,
3536,
2951,
769,
1731,
628,
17041,
1705,
358,
17041,
3046,
18,
971,
769,
353,
599,
16,
1610,
326,
7278,
913,
18,
3536,
309,
76... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.