rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
cur.execute(sqlcmd % (taskid, linenum, cmdid, today)) | cur.execute(sqlcmd % (taskid, today)) | def insertTask(self, taskid): """inserts a task into the right tables, returns resultant rownumber for use in other tables""" sqlcmd = """insert into tasks (taskid, date) values ('%s','%s');""" #print >>sys.stderr, sqlcmd import time #today = "%04d%02d%02d" % time.localtime()[:3] # date in yyyy-mm-dd hh:mm format today... | 3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7/ssdap_dbutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
2174,
12,
2890,
16,
29035,
4672,
3536,
6387,
87,
279,
1562,
1368,
326,
2145,
4606,
16,
1135,
563,
970,
1027,
2696,
364,
999,
316,
1308,
4606,
8395,
1847,
4172,
273,
3536,
6387,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
2174,
12,
2890,
16,
29035,
4672,
3536,
6387,
87,
279,
1562,
1368,
326,
2145,
4606,
16,
1135,
563,
970,
1027,
2696,
364,
999,
316,
1308,
4606,
8395,
1847,
4172,
273,
3536,
6387,
136... |
"""Extracts the data and validates it. | """Extract the data and validates it. | def parseData(self, body): """Extracts the data and validates it. | e641081255cdd917b04677229fc0a80870817f29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/e641081255cdd917b04677229fc0a80870817f29/acl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
751,
12,
2890,
16,
1417,
4672,
3536,
12809,
326,
501,
471,
11964,
518,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
751,
12,
2890,
16,
1417,
4672,
3536,
12809,
326,
501,
471,
11964,
518,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for n in ['calc_info','calc_info_debian']: calc_info = getattr(self,n,None) if calc_info is None: continue for p in self.local_prefixes + prefixes: if self.verbose: print ' Looking in',p,'...' calc_info(p) if self.has_info(): break if self.has_info(): break | if hasattr(self, 'calc_info'): self.calc_info() | def get_info(self): """ Return a dictonary with items that are compatible with scipy_distutils.setup keyword arguments. """ flag = 0 if not self.has_info(): flag = 1 if self.verbose: print self.__class__.__name__ + ':' for n in ['calc_info','calc_info_debian']: calc_info = getattr(self,n,None) if calc_info is None: con... | 5082215ea3a74cc66a0da9e80094ec503d6ef185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5082215ea3a74cc66a0da9e80094ec503d6ef185/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
10966,
67,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
2982,
273,
374,
309,
486,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1376,
12,
2890,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
10966,
67,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
2982,
273,
374,
309,
486,
365,
18... |
minPackageSize = self._config.get("packages/sizes/min-package", 0) | minPackageSize = self._job.get("packages/sizes/min-package", 0) | def evalPackagesConfig(smartExclude, classList, variants): # Reading configuration partsCfg = self._job.get("packages/parts", {}) collapseCfg = self._job.get("packages/collapse", []) minPackageSize = self._config.get("packages/sizes/min-package", 0) minPackageSizeForUnshared = self._config.get("packages/sizes/min-pack... | 10dc86142ee125b94cbd29fec5c33554c7ac16d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/10dc86142ee125b94cbd29fec5c33554c7ac16d7/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
11425,
809,
12,
26416,
12689,
16,
16035,
16,
12935,
4672,
225,
468,
31941,
1664,
2140,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
6019,
3113,
2618,
13,
13627,
8198,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
11425,
809,
12,
26416,
12689,
16,
16035,
16,
12935,
4672,
225,
468,
31941,
1664,
2140,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
6019,
3113,
2618,
13,
13627,
8198,
273,
... |
.arg(len(to_delete)), | .arg(len(to_delete)), | def _deleteUserSlot(self): try: to_delete = [] for i in self._user_list.getSelection(): to_delete.append(i["name"]) ret = QtGui.QMessageBox.question(self, self.trUtf8("%1 User löschen?") \ .arg(len(to_delete)), self.trUtf8("Sind Sie sicher, dass Sie die " \ "ausgewählten Benutzer löschen möchten?"), QtGui.QMessageBox... | 264364269a301ec6020404f8aff8dc3b8f01916d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4919/264364269a301ec6020404f8aff8dc3b8f01916d/MainWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3733,
1299,
8764,
12,
2890,
4672,
775,
30,
358,
67,
3733,
273,
5378,
225,
364,
277,
316,
365,
6315,
1355,
67,
1098,
18,
588,
6233,
13332,
358,
67,
3733,
18,
6923,
12,
77,
9614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3733,
1299,
8764,
12,
2890,
4672,
775,
30,
358,
67,
3733,
273,
5378,
225,
364,
277,
316,
365,
6315,
1355,
67,
1098,
18,
588,
6233,
13332,
358,
67,
3733,
18,
6923,
12,
77,
9614,
... |
res[lang] = {'code': lang} | res[lang]['code'] = lang | def read_string(self, cr, uid, id, langs, fields=None, context=None): if not context: context = {} res = {} res2 = {} self.pool.get('ir.model.access').check(cr, uid, 'ir.translation', 'read') if not fields: fields = self._columns.keys() + self._inherit_fields.keys() for lang in langs: res[lang] = {'code': lang} for f i... | f25793c8ac7d6e58cb6f74e6e74ac97189169f6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/f25793c8ac7d6e58cb6f74e6e74ac97189169f6f/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1080,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
26467,
16,
1466,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
400,
273,
2618,
400,
22,
273,
2618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1080,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
26467,
16,
1466,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
400,
273,
2618,
400,
22,
273,
2618,
... |
None, | [], | def build(self, config): if not self.wants_package(): return | fb3c47fee9dd51cc20d076b14a9af7c453afdb68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/fb3c47fee9dd51cc20d076b14a9af7c453afdb68/bootstrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
statusbar = Statusbar( scr, main_win, ".:: <C-d> Exit <C-r> Rewind <F2> Save <F8> Pastebin ::.", (cols["g"]) *cols["y"] +1 ) return main_win, statusbar | statusbar = Statusbar( scr, main_win, ".:: <C-d> Exit <C-r> Rewind <F2> Save <F8> Pastebin ::.", (cols["g"]) *cols["y"] +1 ) return main_win, statusbar | def init_wins( scr, cols ): """Initialise the two windows (the main repl interface and the little status bar at the bottom with some stuff in it)""" | c6361de06b71b20ac271f61d115e6c3b39ce82c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/c6361de06b71b20ac271f61d115e6c3b39ce82c6/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
91,
2679,
12,
11991,
16,
5347,
262,
30,
3536,
4435,
784,
326,
2795,
9965,
261,
5787,
2774,
6831,
1560,
471,
326,
12720,
1267,
4653,
622,
326,
5469,
598,
2690,
10769,
316,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
91,
2679,
12,
11991,
16,
5347,
262,
30,
3536,
4435,
784,
326,
2795,
9965,
261,
5787,
2774,
6831,
1560,
471,
326,
12720,
1267,
4653,
622,
326,
5469,
598,
2690,
10769,
316,
518,
... |
str = string.split(str, '.')[-1] return (str and str[0]=='_' and str[-1]!='_') | if str == '...': return 0 for piece in str.split('.'): if piece[0] == '_' and piece[-1] != '_': return 1 return 0 | def _is_private(self, str): """ @return: true if C{str} is the name of a private Python object. @rtype: C{boolean} """ str = string.split(str, '.')[-1] return (str and str[0]=='_' and str[-1]!='_') | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
1152,
12,
2890,
16,
609,
4672,
3536,
632,
2463,
30,
638,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
3238,
6600,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
67,
1152,
12,
2890,
16,
609,
4672,
3536,
632,
2463,
30,
638,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
3238,
6600,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
353... |
int dim[2] = {Nknots[0]-m, m}; | npy_intp dim[2] = {Nknots[0]-m, m}; | def setup_bspline_module(): """ Builds an extension module with Bspline basis calculators using weave. """ mod = ext_tools.ext_module('_bspline', compiler='gcc') knots = N.linspace(0,1,11).astype(N.float64) nknots = knots.shape[0] x = N.array([0.4,0.5], N.float64) nx = x.shape[0] m = 4 d = 0 lower = 0 upper = 13 # Bs... | b6ac452f1e9fa776dec03294acafc891d6bb3877 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b6ac452f1e9fa776dec03294acafc891d6bb3877/bspline_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2038,
412,
558,
67,
2978,
13332,
3536,
3998,
87,
392,
2710,
1605,
598,
605,
13106,
558,
10853,
3026,
3062,
1450,
732,
836,
18,
3536,
225,
681,
273,
1110,
67,
6642,
18,
408,
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,
3875,
67,
2038,
412,
558,
67,
2978,
13332,
3536,
3998,
87,
392,
2710,
1605,
598,
605,
13106,
558,
10853,
3026,
3062,
1450,
732,
836,
18,
3536,
225,
681,
273,
1110,
67,
6642,
18,
408,
6... |
self._tk.deletecommand(cbname) | self._master.deletecommand(cbname) | def trace_vdelete(self, mode, cbname): self._tk.call("trace", "vdelete", self._name, mode, cbname) self._tk.deletecommand(cbname) | 0001a11986a17a94f1bf16df92b57df358d56958 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0001a11986a17a94f1bf16df92b57df358d56958/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
90,
3733,
12,
2890,
16,
1965,
16,
2875,
529,
4672,
365,
6315,
16099,
18,
1991,
2932,
5129,
3113,
315,
90,
3733,
3113,
365,
6315,
529,
16,
1965,
16,
2875,
529,
13,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
90,
3733,
12,
2890,
16,
1965,
16,
2875,
529,
4672,
365,
6315,
16099,
18,
1991,
2932,
5129,
3113,
315,
90,
3733,
3113,
365,
6315,
529,
16,
1965,
16,
2875,
529,
13,
365,
6315,
... |
WHERE a.id in (' + ','.join([str(x) for x in ids]) + ') \ GROUP BY a.id') | WHERE a.id in (" + ",".join([str(x) for x in ids]) + ") \ GROUP BY a.id") | def _sheet(self, cursor, user, ids, name, args, context): sheet_obj = self.pool.get('hr_timesheet_sheet.sheet') | b563f23652c9dbc74e61cb4facfce4e6c07d4b66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b563f23652c9dbc74e61cb4facfce4e6c07d4b66/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
6134,
... |
raise ValueError, "invalid entry" | raise ValueError, "index (%d) out of range (0<=index<=%d) "\ "in dimension %d" % (obj, N, axis) | def insertinto(arr, obj, values, axis=None): """Return a new array with values inserted along the given axis before the given indices If axis is None, then ravel the array first. The obj argument can be an integer, a slice, or a sequence of integers. Example: >>> a = array([[1,2,3], [4,5,6], [7,8,9]]) >>> insertint... | d42af63df8fbc4c275aa0b7e017dc153b39158ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/d42af63df8fbc4c275aa0b7e017dc153b39158ce/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
... |
""" c = [[x+1] for x in range(n)] c[n-1] = [] return LatticePoset(c) | TESTS: Check that sage: Posets.ChainPoset(0) Finite lattice containing 0 elements sage: C = Posets.ChainPoset(1); C Finite lattice containing 1 elements sage: C.cover_relations() [] sage: C = Posets.ChainPoset(2); C Finite lattice containing 2 elements sage: C.cover_relations() [[0, 1]] """ return LatticePoset((rang... | def ChainPoset(self, n): """ Returns a chain (a totally ordered poset) containing ``n`` elements. | b032b0345bd293a97a5c2d704129f7946f61a4de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b032b0345bd293a97a5c2d704129f7946f61a4de/poset_examples.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7824,
1616,
278,
12,
2890,
16,
290,
4672,
3536,
2860,
279,
2687,
261,
69,
9997,
1230,
5901,
949,
278,
13,
4191,
12176,
82,
10335,
2186,
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,
0,
0,
0,
0,
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,
7824,
1616,
278,
12,
2890,
16,
290,
4672,
3536,
2860,
279,
2687,
261,
69,
9997,
1230,
5901,
949,
278,
13,
4191,
12176,
82,
10335,
2186,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
try: body = [output, extra] except NameError: body = [output] | body = [output] | def perform_modifyfieldtags(fldID, ln=cdslang, callback='yes', content='', confirm=-1): """show the sort fields of this collection..""" output = '' fld_dict = dict(get_def_name('', "field")) fld_type = get_fld_nametypes() fldID = int(fldID) subtitle = """<a name="4"></a>3. Modify MARC tags for the logical field '%s'... | 2bfebc745d97514fe63c0e385bb842bede8f697e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2bfebc745d97514fe63c0e385bb842bede8f697e/bibindexadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
1518,
4156,
12,
19794,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
1518,
4156,
12,
19794,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
184... |
naive = datetime.utcfromtimestamp(float(record.createdOn)) inUTC = naive.replace(tzinfo=utc) createdOn = inUTC.astimezone(ICUtzinfo.default) | createdOn = decimalToDatetime(record.createdOn) | def resolveConflicts(self, conflicts): for conflict in conflicts: | db65a535f563f626d53b426cfed1d330e320961b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/db65a535f563f626d53b426cfed1d330e320961b/translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
30897,
12,
2890,
16,
14450,
4672,
364,
7546,
316,
14450,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
30897,
12,
2890,
16,
14450,
4672,
364,
7546,
316,
14450,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
elif eID == self.ID_WINDOW_BOTTOM: | elif eobj is self.bottomWindow: self.log.write('bottomwin received drag event') | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
961,
11728,
12,
2890,
16,
871,
4672,
309,
871,
18,
967,
11728,
1482,
1435,
422,
7075,
18,
5233,
2664,
67,
8608,
67,
5069,
67,
3932,
67,
15928,
30,
327,
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,
2755,
55,
961,
11728,
12,
2890,
16,
871,
4672,
309,
871,
18,
967,
11728,
1482,
1435,
422,
7075,
18,
5233,
2664,
67,
8608,
67,
5069,
67,
3932,
67,
15928,
30,
327,
2,
-100,
-100,
-100,
... |
print collections.query | def search(self, request, type = None): """Perform a search through collections and items metadata""" collections = MediaCollection.objects.enriched() items = MediaItem.objects.enriched() input = request.REQUEST criteria = {} | 50d4f5e20af4ae63a6c5b9aa9ec1e66ceb24e5f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12043/50d4f5e20af4ae63a6c5b9aa9ec1e66ceb24e5f6/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275,
12761,
329,
1435,
1516,
273,
6128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275,
12761,
329,
1435,
1516,
273,
6128,
... | |
allResults.extend(res['Value']) | allResults.extend( res['Value'] ) | def __gfalls_wrapper(self,urls,depth): """ This is a function that can be reused everywhere to perform the gfal_ls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = depth | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... |
opts, args = getopt.getopt(sys.argv[1:], 'hn:s:v', ['help']) | opts, args = getopt.getopt(sys.argv[1:], 'hgn:s:v', ['help']) | def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hn:s:v', ['help']) except getopt.error, msg: usage(1, msg) n = None verbose = False for opt, arg in opts: if opt in ('-h', '--help'): usage(0) elif opt == '-s': random.seed(int(arg)) elif opt == '-n': n = int(arg) elif opt == '-v': verbose = True if n is None... | d72c975e703e1c9c56cc9bb1267a92f93aaa15ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/d72c975e703e1c9c56cc9bb1267a92f93aaa15ac/splitndirs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
1600,
30,
87,
30,
90,
2187,
10228,
5201,
19486,
1335,
336,
3838,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
1600,
30,
87,
30,
90,
2187,
10228,
5201,
19486,
1335,
336,
3838,
1... |
self.preloadimg_next_pixbuf_original = None | self.preloadimg_next_in_list = -1 | def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_action... | b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
8704,
67,
3662,
67,
4905,
273,
1053,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
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,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
8704,
67,
3662,
67,
4905,
273,
1053,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
... |
""" Closes the connection, squelching any exceptions. """ | """ Closes the (already unwrapped) connection, squelching any exceptions.""" | def _safe_close(self, conn, quiet = False): """ Closes the connection, squelching any exceptions. """ try: conn.close() except KeyboardInterrupt: raise except AttributeError: pass # conn is None, or junk except: if not quiet: print "Connection.close raised: %s" % (sys.exc_info()[1]) | 198e6052b67f53d9b25c1f08c9f70ded53e9df01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/198e6052b67f53d9b25c1f08c9f70ded53e9df01/db_pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
4412,
12,
2890,
16,
1487,
16,
10902,
273,
1083,
4672,
3536,
22442,
2420,
326,
261,
17583,
26917,
13,
1459,
16,
17715,
292,
343,
310,
1281,
4798,
12123,
775,
30,
1487,
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,
389,
4626,
67,
4412,
12,
2890,
16,
1487,
16,
10902,
273,
1083,
4672,
3536,
22442,
2420,
326,
261,
17583,
26917,
13,
1459,
16,
17715,
292,
343,
310,
1281,
4798,
12123,
775,
30,
1487,
18,
... |
params['limit'] = limit | params['limit'] = unicode(limit) | def getTopTags(self, limit = None): """Returns the top tags used by this user. * limit: The limit of how many tags to return. """ params = self._getParams() if limit: params['limit'] = limit doc = Request(self, 'user.getTopTags', self.api_key, params).execute() if not doc: return None list = [] names = self._extrac... | 8e390ea93e2743714b53aabf1d44d42534ecc6fa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/8e390ea93e2743714b53aabf1d44d42534ecc6fa/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
3453,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
326,
1760,
2342,
1399,
635,
333,
729,
18,
380,
1800,
30,
1021,
1800,
434,
3661,
4906,
2342,
358,
327,
18,
3536,
225,
859,
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,
13729,
3453,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
326,
1760,
2342,
1399,
635,
333,
729,
18,
380,
1800,
30,
1021,
1800,
434,
3661,
4906,
2342,
358,
327,
18,
3536,
225,
859,
2... |
:math:`$d(s, t)$` between two clusters :math:`$s$` and :math:`$t$`. The algorithm begins with a forest of clusters that | :math:`d(s, t)` between two clusters :math:`s` and :math:`t`. The algorithm begins with a forest of clusters that | 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,
... |
'typeFields' : [], 'bucketFields' : [], dataTimespan : 0 } | 'typeFields' : [], 'bucketFields' : [], 'dataTimespan' : 0 } | def __addToCatalog( self, typeName, keyFields, valueFields, bucketsLength ): """ Add type to catalog """ self.log.verbose( "Adding to catalog type %s" % typeName, "with length %s" % str( bucketsLength ) ) self.dbCatalog[ typeName ] = { 'keys' : keyFields , 'values' : valueFields, 'typeFields' : [], 'bucketFields' : [],... | 9a7687a8896daf7e32c6c341dd9be68bf12c3180 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a7687a8896daf7e32c6c341dd9be68bf12c3180/AccountingDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
774,
9769,
12,
365,
16,
8173,
16,
498,
2314,
16,
460,
2314,
16,
9169,
1782,
262,
30,
3536,
1436,
618,
358,
6222,
3536,
365,
18,
1330,
18,
11369,
12,
315,
13962,
358,
6222,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
774,
9769,
12,
365,
16,
8173,
16,
498,
2314,
16,
460,
2314,
16,
9169,
1782,
262,
30,
3536,
1436,
618,
358,
6222,
3536,
365,
18,
1330,
18,
11369,
12,
315,
13962,
358,
6222,
... |
print "calling new game for the first time" | def __init__(self, handle): super(VisualMatchActivity,self).__init__(handle) | 6d30ffa6fd1261c24a17788187b8a5c2580ff573 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/6d30ffa6fd1261c24a17788187b8a5c2580ff573/VisualMatchActivity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1640,
4672,
2240,
12,
25780,
2060,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1640,
4672,
2240,
12,
25780,
2060,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
self.client.next() if self.client.status()['state']!="play": self.error(1) | self.give5tries(self.client.next) if self.give5tries(self.client.status)['state']!="play": self.error(1) def give5tries(self,func): i=0 value=None while i<5: try: value=func() i=5 except: i+=1 return value | def next(self): self.client.next() if self.client.status()['state']!="play": self.error(1) | 5ff265d98bee10d670b78139e7fc4c73d64683b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14596/5ff265d98bee10d670b78139e7fc4c73d64683b7/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
365,
18,
2625,
18,
4285,
1435,
309,
365,
18,
2625,
18,
2327,
1435,
3292,
2019,
3546,
5,
1546,
1601,
6877,
365,
18,
1636,
12,
21,
13,
2,
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,
1024,
12,
2890,
4672,
365,
18,
2625,
18,
4285,
1435,
309,
365,
18,
2625,
18,
2327,
1435,
3292,
2019,
3546,
5,
1546,
1601,
6877,
365,
18,
1636,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
... |
mro_err_msg = """Cannot create class.The superclasses have conflicting inheritance trees which leave the method resolution order (MRO) undefined for bases """ | mro_err_msg = """Cannot create a consistent method resolution order (MRO) for bases """ | def consistency_with_epg(): if verbose: print "Testing consistentcy with EPG..." class Pane(object): pass class ScrollingMixin(object): pass class EditingMixin(object): pass class ScrollablePane(Pane,ScrollingMixin): pass class EditablePane(Pane,EditingMixin): pass class EditableScrollablePane(ScrollablePane,EditablePa... | f394df47fd943d7067b5c3bedbf2c359d864923c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f394df47fd943d7067b5c3bedbf2c359d864923c/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14297,
67,
1918,
67,
881,
75,
13332,
309,
3988,
30,
1172,
315,
22218,
11071,
2431,
598,
512,
18679,
7070,
667,
453,
8806,
12,
1612,
4672,
1342,
667,
2850,
15742,
14439,
12,
1612,
4672,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14297,
67,
1918,
67,
881,
75,
13332,
309,
3988,
30,
1172,
315,
22218,
11071,
2431,
598,
512,
18679,
7070,
667,
453,
8806,
12,
1612,
4672,
1342,
667,
2850,
15742,
14439,
12,
1612,
4672,
1... |
sys.exit(0) | exit_status = 0 return | def _main(args, parser): # Here's where everything really happens. # First order of business: set up default warnings and and then # handle the user's warning options, so we can warn about anything # that happens appropriately. default_warnings = [ SCons.Warnings.CorruptSConsignWarning, SCons.Warnings.DeprecatedWarni... | 77a4a0b62f82e4ceaaaffa12224fa6d22e6e2873 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/77a4a0b62f82e4ceaaaffa12224fa6d22e6e2873/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
1968,
16,
2082,
4672,
468,
13743,
1807,
1625,
7756,
8654,
10555,
18,
225,
468,
5783,
1353,
434,
13160,
30,
225,
444,
731,
805,
5599,
471,
471,
1508,
468,
1640,
326,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
1968,
16,
2082,
4672,
468,
13743,
1807,
1625,
7756,
8654,
10555,
18,
225,
468,
5783,
1353,
434,
13160,
30,
225,
444,
731,
805,
5599,
471,
471,
1508,
468,
1640,
326,
729,
... |
_string = p.sub(r"\\alert{\1}", _string) | string = p.sub(r"\\alert{\1}", string) return string def transform_colors(string): """ colors """ | def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ... | 1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... |
print _(''' | print _(""" | def do_install(self, tracker_home, args): ""'''Usage: install [template [backend [admin password]]] Install a new Roundup tracker. | 640e7c498f550e19964fb6a7d43b73e704c0b5f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/640e7c498f550e19964fb6a7d43b73e704c0b5f6/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,
12,
2890,
16,
9745,
67,
8712,
16,
833,
4672,
1408,
26418,
5357,
30,
3799,
306,
3202,
306,
9993,
306,
3666,
2201,
13563,
65,
10284,
279,
394,
11370,
416,
9745,
18,
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,
741,
67,
5425,
12,
2890,
16,
9745,
67,
8712,
16,
833,
4672,
1408,
26418,
5357,
30,
3799,
306,
3202,
306,
9993,
306,
3666,
2201,
13563,
65,
10284,
279,
394,
11370,
416,
9745,
18,
2,
-10... |
this is just the normal hook length. The upper hook length of a box (i,j) is defined by | this is just the normal hook length. As usual, indices are 0 based. The upper hook length of a box (i,j) in a partition $\kappa$ is defined by | def upper_hook(self, i, j, alpha): r""" Returns the upper hook length of the box (i,j) in self. When alpha == 1, this is just the normal hook length. | 7896fee27ebd1c280842dcd38fb5539dd2c77a15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7896fee27ebd1c280842dcd38fb5539dd2c77a15/partition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3854,
67,
4476,
12,
2890,
16,
277,
16,
525,
16,
4190,
4672,
436,
8395,
2860,
326,
3854,
3953,
769,
434,
326,
3919,
261,
77,
16,
78,
13,
316,
365,
18,
225,
5203,
4190,
422,
404,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3854,
67,
4476,
12,
2890,
16,
277,
16,
525,
16,
4190,
4672,
436,
8395,
2860,
326,
3854,
3953,
769,
434,
326,
3919,
261,
77,
16,
78,
13,
316,
365,
18,
225,
5203,
4190,
422,
404,
16,
... |
self.cursonglabel1.set_markup('<big><b>' + _('Stopped') + '</b></big>') | def update_cursong(self): if self.conn and self.status and self.status.state in ['play', 'pause']: # We must show the trayprogressbar and trayalbumeventbox # before changing self.cursonglabel (and consequently calling # self.labelnotify()) in order to ensure that the notification # popup will have the correct height wh... | cad1f6554cb6bfd616e40cce7256f8509fd80381 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/cad1f6554cb6bfd616e40cce7256f8509fd80381/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,... | |
path = functest.registry.get('path', '/') | path = PATH | def setup_module(module, server_url=SERVER_URL, admin_user=ADMIN_USER, admin_pass=ADMIN_PASS, user_prefix=TEST_USER_PREFIX): # Set module vars module.SERVER_URL = server_url module.ADMIN_USER = admin_user module.ADMIN_PASS = admin_pass module.TEST_USER = str(uuid.uuid1()).replace('-', '') module.TEST_PASS = 'test_pass'... | ba41356b02dcef9f77c19b16ed6ea0a3e085f1ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9939/ba41356b02dcef9f77c19b16ed6ea0a3e085f1ae/cosmo_test_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
12,
2978,
16,
1438,
67,
718,
33,
4370,
67,
1785,
16,
3981,
67,
1355,
33,
15468,
67,
4714,
16,
3981,
67,
5466,
33,
15468,
67,
10884,
16,
729,
67,
3239,
33,
16961,
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,
3875,
67,
2978,
12,
2978,
16,
1438,
67,
718,
33,
4370,
67,
1785,
16,
3981,
67,
1355,
33,
15468,
67,
4714,
16,
3981,
67,
5466,
33,
15468,
67,
10884,
16,
729,
67,
3239,
33,
16961,
67,
... |
self.item = item | """ Return possible actions for the item. """ | def actions(self, item): self.item = item # don't allow this for items on an audio cd, only on the disc itself if item.type == 'audio' and item.parent.type == 'audiocd': return [] | 6d9f53994b120f152cf01dbb5f9d46eae2739b7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6d9f53994b120f152cf01dbb5f9d46eae2739b7d/coversearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
16,
761,
4672,
3536,
2000,
3323,
4209,
364,
326,
761,
18,
3536,
468,
2727,
1404,
1699,
333,
364,
1516,
603,
392,
7447,
7976,
16,
1338,
603,
326,
19169,
6174,
309,
761,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
16,
761,
4672,
3536,
2000,
3323,
4209,
364,
326,
761,
18,
3536,
468,
2727,
1404,
1699,
333,
364,
1516,
603,
392,
7447,
7976,
16,
1338,
603,
326,
19169,
6174,
309,
761,
... |
if not self.connecting and self.update_cb: gobject.source_remove(self.update_cb) | if not self.connecting: if self.update_cb: gobject.source_remove(self.update_cb) | def set_connecting_state(self, info): if not self.connecting and self.update_cb: gobject.source_remove(self.update_cb) self.update_cb = misc.timeout_add(500, self.update_statusbar, milli=True) self.connecting = True if not self.pulse_active: self.pulse_active = True misc.timeout_add(100, self.pulse_progress_bar, milli=... | 6e2cf3cfe0649b7351bbd23768d750864d4cd475 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/6e2cf3cfe0649b7351bbd23768d750864d4cd475/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3612,
310,
67,
2019,
12,
2890,
16,
1123,
4672,
309,
486,
365,
18,
3612,
310,
30,
309,
365,
18,
2725,
67,
7358,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
18,
2725,
67,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3612,
310,
67,
2019,
12,
2890,
16,
1123,
4672,
309,
486,
365,
18,
3612,
310,
30,
309,
365,
18,
2725,
67,
7358,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
18,
2725,
67,
7... |
for seed in data["remove"]: | for seed in process_seeds(data["remove"]): | def POST(self, key): site = web.ctx.site list = site.get(key) if not list: raise web.notfound() if not site.can_write(key): raise self.forbidden() data = formats.load(web.data(), self.encoding) data.setdefault("add", []) data.setdefault("remove", []) for seed in data["add"]: list.add_seed(seed) for seed in data["... | 4c49f8481985e3791ae3c55558b09b48f2ba1ec0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/4c49f8481985e3791ae3c55558b09b48f2ba1ec0/lists.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
498,
4672,
2834,
273,
3311,
18,
5900,
18,
4256,
225,
666,
273,
2834,
18,
588,
12,
856,
13,
309,
486,
666,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
486,
2834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
498,
4672,
2834,
273,
3311,
18,
5900,
18,
4256,
225,
666,
273,
2834,
18,
588,
12,
856,
13,
309,
486,
666,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
486,
2834... |
if 0 == len(p.namespaces): self.ns = self.file else: self.ns = Namespace(p.namespaces[-1].name) outerns = _putInNamespaces(self.ns, p.namespaces[:-1]) self.file.addthing(outerns) self.ns.addstmts([ Whitespace.NL, Whitespace.NL ]) | def visitProtocol(self, p): self.file.addthings([ CppDirective('ifdef', 'DEBUG'), CppDirective('include', '"prenv.h"'), CppDirective('endif', '// DEBUG') ]) | e50bc63c9fe99351b663726aa8a8c4d6e0a138c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/e50bc63c9fe99351b663726aa8a8c4d6e0a138c3/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
5752,
12,
2890,
16,
293,
4672,
365,
18,
768,
18,
1289,
451,
899,
3816,
385,
11858,
13307,
2668,
430,
536,
2187,
296,
9394,
19899,
385,
11858,
13307,
2668,
6702,
2187,
2119,
84,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
5752,
12,
2890,
16,
293,
4672,
365,
18,
768,
18,
1289,
451,
899,
3816,
385,
11858,
13307,
2668,
430,
536,
2187,
296,
9394,
19899,
385,
11858,
13307,
2668,
6702,
2187,
2119,
84,
118... | |
verify(s.translate(identitytab, "x").__class__ is str) vereq(s.translate(identitytab, "x"), base) vereq(s.translate(identitytab, "\x00"), "") | def rev(self): if self._rev is not None: return self._rev L = list(self) L.reverse() self._rev = self.__class__("".join(L)) return self._rev | 2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
12,
2890,
4672,
309,
365,
6315,
9083,
353,
486,
599,
30,
327,
365,
6315,
9083,
511,
273,
666,
12,
2890,
13,
511,
18,
9845,
1435,
365,
6315,
9083,
273,
365,
16186,
1106,
972,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
12,
2890,
4672,
309,
365,
6315,
9083,
353,
486,
599,
30,
327,
365,
6315,
9083,
511,
273,
666,
12,
2890,
13,
511,
18,
9845,
1435,
365,
6315,
9083,
273,
365,
16186,
1106,
972,
2932... | |
if not path.startswith('/_i_'): | if '/_i_' not in path: | def flush(self): """Flush all the alive nodes and HDF5 buffers.""" | 3273aabf59d7253acb38d00220a0e7bb1d151ec0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/3273aabf59d7253acb38d00220a0e7bb1d151ec0/File.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
8207,
777,
326,
13714,
2199,
471,
21673,
25,
9664,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
8207,
777,
326,
13714,
2199,
471,
21673,
25,
9664,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
size = stats[stat.ST_SIZE] modified = rfc822.formatdate(stats[stat.ST_MTIME]) | size = stats.st_size modified = rfc822.formatdate(stats.st_mtime) | def open_local_file(self, req): host = req.get_host() file = req.get_selector() localfile = url2pathname(file) stats = os.stat(localfile) size = stats[stat.ST_SIZE] modified = rfc822.formatdate(stats[stat.ST_MTIME]) mtype = mimetypes.guess_type(file)[0] stats = os.stat(localfile) headers = mimetools.Message(StringIO( '... | 44287135c63c9dd2fd475f5bb1b69c2cd4ae4297 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/44287135c63c9dd2fd475f5bb1b69c2cd4ae4297/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
585,
273,
1111,
18,
588,
67,
9663,
1435,
1191,
768,
273,
880,
22,
28336,
12,
768,
13,
317... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
585,
273,
1111,
18,
588,
67,
9663,
1435,
1191,
768,
273,
880,
22,
28336,
12,
768,
13,
317... |
@unittest.skipIf(c_int is None, "requires _ctypes") | def _test(self, values): for sv, cv in zip(values, self.codes_values): sv.value = cv[2] | fd8326704a001f539cb22d3f1c0abda08bf99805 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/fd8326704a001f539cb22d3f1c0abda08bf99805/test_multiprocessing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12,
2890,
16,
924,
4672,
364,
5893,
16,
8951,
316,
3144,
12,
2372,
16,
365,
18,
7000,
67,
2372,
4672,
5893,
18,
1132,
273,
8951,
63,
22,
65,
2,
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,
389,
3813,
12,
2890,
16,
924,
4672,
364,
5893,
16,
8951,
316,
3144,
12,
2372,
16,
365,
18,
7000,
67,
2372,
4672,
5893,
18,
1132,
273,
8951,
63,
22,
65,
2,
-100,
-100,
-100,
-100,
-10... | |
self._writeBody(msg) else: specific = UNDERSCORE.join(ctype.split('/')).replace('-', '_') meth = getattr(self, '_handle_' + specific, None) | ctype = msg.get_default_type() assert ctype in ('text/plain', 'message/rfc822') main, sub = ctype.split('/') specific = UNDERSCORE.join((main, sub)).replace('-', '_') meth = getattr(self, '_handle_' + specific, None) if meth is None: generic = main.replace('-', '_') meth = getattr(self, '_handle_' + generic, None) | def _dispatch(self, msg): # Get the Content-Type: for the message, then try to dispatch to # self._handle_maintype_subtype(). If there's no handler for the full # MIME type, then dispatch to self._handle_maintype(). If that's # missing too, then dispatch to self._writeBody(). ctype = msg.get_type() if ctype is None: ... | 93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
9... |
if isinstance(value, (datetime.date, datetime.datetime)): | if isinstance(value, (datetime.date, datetime.datetime, sqlbuilder.SQLExpression)): | def fromPython(self, value, state): if value is None: return None if isinstance(value, (datetime.date, datetime.datetime)): return value if hasattr(value, "strftime"): return value.strftime(self.format) raise validators.InvalidField("expected a datetime in the DateTimeCol '%s', got %s instead" % \ (self.name, type(valu... | 20457ded051a2aeae347927d142fef07f36c7688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/20457ded051a2aeae347927d142fef07f36c7688/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,... |
cal_path = string.strip(self.__cp.get('calibration','path')) | cal_path = self.job().get_config('calibration','path') | def calibration(self): """ Set the path to the calibration cache file for the given IFO. During S2 the Hanford 2km IFO had two calibration epochs, so if the start time is during S2, we use the correct cache file. """ cal_path = string.strip(self.__cp.get('calibration','path')) | 243cce9ec378a43e681624907856e03a7b823a1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/243cce9ec378a43e681624907856e03a7b823a1a/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15344,
12,
2890,
4672,
3536,
1000,
326,
589,
358,
326,
15344,
1247,
585,
364,
326,
864,
467,
3313,
18,
463,
4017,
348,
22,
326,
670,
304,
31836,
576,
18353,
467,
3313,
9323,
2795,
15344,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15344,
12,
2890,
4672,
3536,
1000,
326,
589,
358,
326,
15344,
1247,
585,
364,
326,
864,
467,
3313,
18,
463,
4017,
348,
22,
326,
670,
304,
31836,
576,
18353,
467,
3313,
9323,
2795,
15344,... |
i = end + len(subst) | i += len(subst) | def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return end = find_end_of_inset(document.body, i) if end == -1: document.warning("Can't find end of inset at line " + str(i)) i = j continue fline = find_token(... | bd11f5a78cd5ec5cd10f3d4c195d4249710b4c00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bd11f5a78cd5ec5cd10f3d4c195d4249710b4c00/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
842... |
self.dispGridAction.setIconSet(QIconSet(self.image42)) | self.dispGridAction.setIconSet(QIconSet(self.image36)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
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,
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,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
navigationRow.Add(self.monthButton, 0, wx.ALIGN_CENTER) | monthSizer = wx.BoxSizer(wx.VERTICAL) monthSizer.Add((7,7),0) monthSizer.Add(self.monthButton, 0) monthSizer.Add((5,5), 0) navigationRow.Add(monthSizer, 0, wx.ALIGN_CENTER) | def OnInit(self): self.SetBackgroundColour(self.parent.bgColor) | 291c5c35ee191ec2876d6a324e0406baa8a015fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/291c5c35ee191ec2876d6a324e0406baa8a015fc/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "P Pick weight deleted" | msg = "P Pick weight deleted" appendTextview(self.textviewStdOut, msg) | def delPWeight(self): try: del self.dicts[self.stPt]['PWeight'] print "P Pick weight deleted" except: pass | b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
52,
6544,
12,
2890,
4672,
775,
30,
1464,
365,
18,
16287,
63,
2890,
18,
334,
16484,
23962,
52,
6544,
3546,
1234,
273,
315,
52,
23038,
3119,
4282,
6,
714,
1528,
1945,
12,
2890,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
52,
6544,
12,
2890,
4672,
775,
30,
1464,
365,
18,
16287,
63,
2890,
18,
334,
16484,
23962,
52,
6544,
3546,
1234,
273,
315,
52,
23038,
3119,
4282,
6,
714,
1528,
1945,
12,
2890,
18,... |
return db.query_parse(subq[1]) | if spell: spell_corrected = db.spell_correct(subq[1]) return db.query_parse(spell_corrected), spell_corrected return db.query_parse(subq[1]), None | def parse_query_spec(db, subq): if subq is None: return db.query_all() if not isinstance(subq, (list, tuple)): raise ValidationError("Invalid query specification - expected [query_type, parameters], didn't get a list (got %r)" % subq) if len(subq) != 2: raise ValidationError("Invalid query specification - expected [que... | ac59c488d1d167561bc9b7d8284f56c05d11242e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/ac59c488d1d167561bc9b7d8284f56c05d11242e/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2271,
67,
2793,
12,
1966,
16,
720,
85,
4672,
309,
720,
85,
353,
599,
30,
327,
1319,
18,
2271,
67,
454,
1435,
309,
486,
1549,
12,
1717,
85,
16,
261,
1098,
16,
3193,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
67,
2793,
12,
1966,
16,
720,
85,
4672,
309,
720,
85,
353,
599,
30,
327,
1319,
18,
2271,
67,
454,
1435,
309,
486,
1549,
12,
1717,
85,
16,
261,
1098,
16,
3193,
3719,
... |
log.warn("Could not find product: %s", productname) | log.warn("Could not find product: %s", productslug) | def add_ajax(request, id=0, template="json.html"): data = {'errors': []} product = None formdata = request.POST.copy() if not formdata.has_key('productname'): data['errors'].append(('product', _('No product requested'))) else: productslug = formdata['productname'] log.debug('CART_AJAX: slug=%s', productslug) try: produ... | adbf8fc31f152b5c3dd5bf7dad7c19f6ac9a01b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/adbf8fc31f152b5c3dd5bf7dad7c19f6ac9a01b5/cart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12813,
12,
2293,
16,
612,
33,
20,
16,
1542,
1546,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
3530,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12813,
12,
2293,
16,
612,
33,
20,
16,
1542,
1546,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
3530,
1435,
... |
ReleaseToBuildDir(SHADOW_CENTRAL_DIR, SHADOW_CENTRAL_URL_PATH, options, upload_dir, files, dated) | options.product = "shadow-central" ReleaseToBuildDir(PVT_BUILD_DIR, PVT_BUILD_URL_PATH, options, upload_dir, files, dated) | def ReleaseToShadowCentralBuilds(options, upload_dir, files, dated=True): ReleaseToBuildDir(SHADOW_CENTRAL_DIR, SHADOW_CENTRAL_URL_PATH, options, upload_dir, files, dated) | b140bf3495d643e2e4b6539251b28066afabd5a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/b140bf3495d643e2e4b6539251b28066afabd5a1/post_upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10819,
774,
12957,
39,
12839,
7746,
12,
2116,
16,
3617,
67,
1214,
16,
1390,
16,
302,
690,
33,
5510,
4672,
702,
18,
5896,
273,
315,
19119,
17,
71,
12839,
6,
10819,
774,
3116,
1621,
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,
10819,
774,
12957,
39,
12839,
7746,
12,
2116,
16,
3617,
67,
1214,
16,
1390,
16,
302,
690,
33,
5510,
4672,
702,
18,
5896,
273,
315,
19119,
17,
71,
12839,
6,
10819,
774,
3116,
1621,
12,
... |
sourceImagePage.put(original_description + '\n\n' + nowCommonsTemplate[sourceSite.lang][0] % targetFilename, comment = nowCommonsMessage[sourceSite.lang][1]) | sourceImagePage.put(original_description + '\n\n' + nowCommonsTemplate[sourceSite.lang] % targetFilename, comment = nowCommonsMessage[sourceSite.lang]) | def transferImage(self, sourceImagePage, debug=False): """Gets a wikilink to an image, downloads it and its description, and uploads it to another wikipedia. Returns the filename which was used to upload the image This function is used by imagetransfer.py and by copy_table.py """ sourceSite = sourceImagePage.site() if ... | 9580a8e56dd07ed9c82f5e3ab3559a4af5dfe832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9580a8e56dd07ed9c82f5e3ab3559a4af5dfe832/imagetransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
2040,
12,
2890,
16,
1084,
2040,
1964,
16,
1198,
33,
8381,
4672,
3536,
3002,
279,
341,
1766,
330,
754,
358,
392,
1316,
16,
23011,
518,
471,
2097,
2477,
16,
471,
18427,
518,
358,
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,
7412,
2040,
12,
2890,
16,
1084,
2040,
1964,
16,
1198,
33,
8381,
4672,
3536,
3002,
279,
341,
1766,
330,
754,
358,
392,
1316,
16,
23011,
518,
471,
2097,
2477,
16,
471,
18427,
518,
358,
4... |
self.limit = self.__class__.limit or limit | kwargs.update({'limit': limit}) | def __init__(self, title=None, limit=None, include_list=None, exclude_list=None, **kwargs): self.include_list = include_list or [] self.exclude_list = exclude_list or [] self.limit = self.__class__.limit or limit super(RecentActions, self).__init__(title, **kwargs) | 281e552acc2a80d145d9c66ad2d98626f0d7a40b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3482/281e552acc2a80d145d9c66ad2d98626f0d7a40b/modules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
33,
7036,
16,
1800,
33,
7036,
16,
2341,
67,
1098,
33,
7036,
16,
4433,
67,
1098,
33,
7036,
16,
2826,
4333,
4672,
365,
18,
6702,
67,
1098,
273,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
33,
7036,
16,
1800,
33,
7036,
16,
2341,
67,
1098,
33,
7036,
16,
4433,
67,
1098,
33,
7036,
16,
2826,
4333,
4672,
365,
18,
6702,
67,
1098,
273,
234... |
sub_name = video_filename + extension | sub_name = video_name + extension | def subtitle_name_gen(video_filename, extension=".srt"): """Generates a subtitle file name given the video file name """ video_name = "" sub_name = "" if isinstance(video_filename, str): if get_extension(video_filename) in videofile.VIDEOS_EXT: video_name = without_extension(video_filename) elif isinstance(video_filena... | 79fe17f27332dee7d54580cd61008725af6eabb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/79fe17f27332dee7d54580cd61008725af6eabb0/Subtitle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20281,
67,
529,
67,
4507,
12,
9115,
67,
3459,
16,
2710,
1546,
18,
87,
3797,
6,
4672,
3536,
6653,
279,
20281,
585,
508,
864,
326,
6191,
585,
508,
3536,
6191,
67,
529,
273,
1408,
720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20281,
67,
529,
67,
4507,
12,
9115,
67,
3459,
16,
2710,
1546,
18,
87,
3797,
6,
4672,
3536,
6653,
279,
20281,
585,
508,
864,
326,
6191,
585,
508,
3536,
6191,
67,
529,
273,
1408,
720,
... |
cr.close() | def get_id(self, cr, uid, sequence_id, test='id=%s', context=None): # as we have to commit, we must create a fresh new cursor cr = pooler.get_db(cr.dbname).cursor() try: cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE '+test+' AND active=%s FOR UPDATE', (sequence_id, True)) res = cr.d... | 58fd28a3530cb612b8eab7f29a94ff3a21cd2fd8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/58fd28a3530cb612b8eab7f29a94ff3a21cd2fd8/ir_sequence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
33,
7036,
4672,
468,
487,
732,
1240,
358,
3294,
16,
732,
1297,
752,
279,
1218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
33,
7036,
4672,
468,
487,
732,
1240,
358,
3294,
16,
732,
1297,
752,
279,
1218... | |
int(m.groups(1)), int(m.groups(2))) | int(m.group(1)), int(m.group(2))) | def extract_ampId(self, dataId): m = re.match(r'(\d)(\d)', dataId['channel']) return (self.extract_detectorName(dataId), int(m.groups(1)), int(m.groups(2))) | 6adea68f91efb1e55fc37c9f593da9c7d41a12bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6517/6adea68f91efb1e55fc37c9f593da9c7d41a12bb/lsstSimMapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
931,
548,
12,
2890,
16,
501,
548,
4672,
312,
273,
283,
18,
1916,
12,
86,
11,
4713,
72,
13,
4713,
72,
13,
2187,
501,
548,
3292,
4327,
19486,
327,
261,
2890,
18,
8004,
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,
2608,
67,
931,
548,
12,
2890,
16,
501,
548,
4672,
312,
273,
283,
18,
1916,
12,
86,
11,
4713,
72,
13,
4713,
72,
13,
2187,
501,
548,
3292,
4327,
19486,
327,
261,
2890,
18,
8004,
67,
... |
partLod = self.find("**/" + lodName) if (partLod == None): | if lodName == 'lodRoot': partLod = self else: partLod = self.find("**/" + lodName) if partLod.isEmpty(): | def __copyPartBundles(self, other): """__copyPartBundles(self, Actor) Copy the part bundle dictionary from another actor as this instance's own. NOTE: this method does not actually copy geometry """ for lodName in other.__partBundleDict.keys(): self.__partBundleDict[lodName] = {} self.__updateSortedLODNames() # find th... | a2940a7d11d2407a6796a102b3df3d3ebf3f7fca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a2940a7d11d2407a6796a102b3df3d3ebf3f7fca/Actor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3530,
1988,
16151,
12,
2890,
16,
1308,
4672,
3536,
972,
3530,
1988,
16151,
12,
2890,
16,
21142,
13,
5631,
326,
1087,
3440,
3880,
628,
4042,
8327,
487,
333,
791,
1807,
4953,
18,
521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3530,
1988,
16151,
12,
2890,
16,
1308,
4672,
3536,
972,
3530,
1988,
16151,
12,
2890,
16,
21142,
13,
5631,
326,
1087,
3440,
3880,
628,
4042,
8327,
487,
333,
791,
1807,
4953,
18,
521... |
if self.settings["target"] not in ["grp","tinderbox"]: | if self.settings["target"] in ["stage1","stage2","stage3"]: | def run(self): self.dir_setup() self.unpack_and_bind() try: self.chroot_setup() except: self.unbind() raise #modify the current environment. This is an ugly hack that should be fixed. We need this #to use the os.system() call since we can't specify our own environ: for x in self.settings.keys(): if type(self.settings[x... | b5e4984613eaedce63a30d41538acb40e915690b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/b5e4984613eaedce63a30d41538acb40e915690b/targets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
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,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
4... |
step %= len(self) for i in range(step): | halflen = (length+1) >> 1 if n > halflen or n < -halflen: n %= length if n > halflen: n -= length elif n < -halflen: n += length while n > 0: | def rotate(self, step=1): if len(self) == 0: return step %= len(self) for i in range(step): self.appendleft(self.pop()) | 98d77cf1aef09187f66c5d480f696aed0614be1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/98d77cf1aef09187f66c5d480f696aed0614be1e/collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
12,
2890,
16,
2235,
33,
21,
4672,
309,
562,
12,
2890,
13,
422,
374,
30,
327,
8816,
1897,
273,
261,
2469,
15,
21,
13,
1671,
404,
309,
290,
405,
8816,
1897,
578,
290,
411,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
12,
2890,
16,
2235,
33,
21,
4672,
309,
562,
12,
2890,
13,
422,
374,
30,
327,
8816,
1897,
273,
261,
2469,
15,
21,
13,
1671,
404,
309,
290,
405,
8816,
1897,
578,
290,
411,
300,
... |
self._open(location) | return self._open(location) | def _open(self, url, data=None): self.url = url opener = URLOpener() for name, value in self._cookies.items(): # Quick and dirty hack opener.addheader('Cookie', '%s=%s' % (name, value)) fp = opener.open(url, data=data) self.content = fp.read() self.headers = fp.info() self.status = fp.status self.message = fp.message f... | 1615f80a1ab77bee0fc80ea4a6a342793dfb6fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/1615f80a1ab77bee0fc80ea4a6a342793dfb6fc1/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
365,
18,
718,
273,
880,
20532,
273,
1618,
1502,
84,
708,
1435,
364,
508,
16,
460,
316,
365,
6315,
16240,
18,
3319,
13332,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
365,
18,
718,
273,
880,
20532,
273,
1618,
1502,
84,
708,
1435,
364,
508,
16,
460,
316,
365,
6315,
16240,
18,
3319,
13332,
468,
... |
batchIDList.append(pilotJobReference) | batchIDList.append( pilotJobReference ) | def submitJob( self, executableFile, proxy, numberOfJobs=1 ): """ Method to submit job """ | 45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
365,
16,
9070,
812,
16,
2889,
16,
7922,
7276,
33,
21,
262,
30,
3536,
2985,
358,
4879,
1719,
3536,
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,
4879,
2278,
12,
365,
16,
9070,
812,
16,
2889,
16,
7922,
7276,
33,
21,
262,
30,
3536,
2985,
358,
4879,
1719,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if diff < 0: | if op1.int < op2.int: | def __add__(self, other, context=None): """Returns self + other. | 2987962c266a487e19674e69ca08f8ac738322b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2987962c266a487e19674e69ca08f8ac738322b8/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
values[category.name] = {} | def _reset_values (): for category in categories: values[category.name] = {} if category.iterable: for value in category.values: values[category.name][value] = False else: values[category.name] = None rating_modified.clear() | e57320a5f66cd1bb8ce168580daf9cf533104b48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/e57320a5f66cd1bb8ce168580daf9cf533104b48/rating_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6208,
67,
2372,
1832,
30,
364,
3150,
316,
6477,
30,
309,
3150,
18,
15364,
30,
364,
460,
316,
3150,
18,
2372,
30,
924,
63,
4743,
18,
529,
6362,
1132,
65,
273,
1083,
469,
30,
924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
6208,
67,
2372,
1832,
30,
364,
3150,
316,
6477,
30,
309,
3150,
18,
15364,
30,
364,
460,
316,
3150,
18,
2372,
30,
924,
63,
4743,
18,
529,
6362,
1132,
65,
273,
1083,
469,
30,
924,... | |
for j in range(seg_data.ele_len('%02i' % (i))): | for j in range(1, seg_data.ele_len('%02i' % (i))+1): | def gen_seg(self, seg_data, src, err_node_list): """ Find error seg for this segment. Find any skipped error values. ID pos of bad value. @param seg_data: data segment instance """ cur_line = src.cur_line | 4cc131951b2f2d09daaa4f066d42f77d82b8ee10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/4cc131951b2f2d09daaa4f066d42f77d82b8ee10/error_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
5680,
12,
2890,
16,
2291,
67,
892,
16,
1705,
16,
393,
67,
2159,
67,
1098,
4672,
3536,
4163,
555,
2291,
364,
333,
3267,
18,
4163,
1281,
9700,
555,
924,
18,
1599,
949,
434,
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,
3157,
67,
5680,
12,
2890,
16,
2291,
67,
892,
16,
1705,
16,
393,
67,
2159,
67,
1098,
4672,
3536,
4163,
555,
2291,
364,
333,
3267,
18,
4163,
1281,
9700,
555,
924,
18,
1599,
949,
434,
5... |
"""Return the main documentation string of the interface.""" | """Return the main documentation string of the interface. Example:: >>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> details.getDoc()[:34] '<h1>This is the Foo interface</h1>' """ | def getDoc(self): """Return the main documentation string of the interface.""" return stx2html(self.context.getDoc()) | 8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17999,
12,
2890,
4672,
3536,
990,
326,
2774,
7323,
533,
434,
326,
1560,
18,
225,
5090,
2866,
225,
4080,
628,
7434,
1930,
336,
1358,
3790,
4080,
3189,
273,
336,
1358,
3790,
1435,
4080,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17999,
12,
2890,
4672,
3536,
990,
326,
2774,
7323,
533,
434,
326,
1560,
18,
225,
5090,
2866,
225,
4080,
628,
7434,
1930,
336,
1358,
3790,
4080,
3189,
273,
336,
1358,
3790,
1435,
4080,
31... |
self.input('mosaic estimate') self.input('go') | for i in _images: self.input('mosaic estimate %d' % i) self.input('go') | def _index(self): '''Implement the indexer interface.''' | 18979c3273b7035ec88d3f13b963de27bad1113f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/18979c3273b7035ec88d3f13b963de27bad1113f/Mosflm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
5726,
326,
12635,
1560,
1093,
6309,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1615,
12,
2890,
4672,
9163,
5726,
326,
12635,
1560,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) ) | """This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) ) | def DEBUG(s): """This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) ) | c6361de06b71b20ac271f61d115e6c3b39ce82c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/c6361de06b71b20ac271f61d115e6c3b39ce82c6/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6369,
12,
87,
4672,
3536,
2503,
12044,
1404,
14103,
506,
2566,
316,
1281,
3992,
434,
324,
8103,
16,
1427,
23795,
1791,
731,
309,
1846,
1104,
6967,
4440,
518,
12123,
1696,
2668,
19,
8712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6369,
12,
87,
4672,
3536,
2503,
12044,
1404,
14103,
506,
2566,
316,
1281,
3992,
434,
324,
8103,
16,
1427,
23795,
1791,
731,
309,
1846,
1104,
6967,
4440,
518,
12123,
1696,
2668,
19,
8712,
... |
code =_fixescape(this) | code = _escape(source, this, state) | def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: ... | 842e911e887411eb043a164240fdb6b694895e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/842e911e887411eb043a164240fdb6b694895e87/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
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,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
... |
assert(self.debugPrint("setWalkSpeed()")) | assert self.notify.debugStateCall(self) | def setWalkSpeed(self, forward, jump, reverse, rotate): assert(self.debugPrint("setWalkSpeed()")) self.avatarControlForwardSpeed=forward self.avatarControlJumpForce=jump self.avatarControlReverseSpeed=reverse self.avatarControlRotateSpeed=rotate | 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,
9463,
16562,
12,
2890,
16,
5104,
16,
11833,
16,
4219,
16,
8534,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
19660,
3367,
8514,
16562,
33,
11565,
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,
444,
9463,
16562,
12,
2890,
16,
5104,
16,
11833,
16,
4219,
16,
8534,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
19660,
3367,
8514,
16562,
33,
11565,
365,
... |
assert guard_op.storage_info.setfields == [(0, E.ofs_value, -2)] | assert guard_op.storage_info.setfields == [(0, E.ofs_value, 7)] | def test_E_optimize_loop(): spec = PerfectSpecializer(Loop(E.ops)) spec.find_nodes() spec.intersect_input_and_output() spec.optimize_loop() equaloplists(spec.loop.operations, [ ResOperation('merge_point', [E.sum, E.v], None), # guard_class is gone ResOperation('int_sub', [E.v, ConstInt(1)], E.v2), ResOperation('int_add... | b34ea2699f3e305ecec63bf9d40d53141e8e8bd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/b34ea2699f3e305ecec63bf9d40d53141e8e8bd9/test_optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
41,
67,
29155,
67,
6498,
13332,
857,
273,
5722,
74,
386,
1990,
3926,
12,
6452,
12,
41,
18,
4473,
3719,
857,
18,
4720,
67,
4690,
1435,
857,
18,
12288,
67,
2630,
67,
464,
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,
1842,
67,
41,
67,
29155,
67,
6498,
13332,
857,
273,
5722,
74,
386,
1990,
3926,
12,
6452,
12,
41,
18,
4473,
3719,
857,
18,
4720,
67,
4690,
1435,
857,
18,
12288,
67,
2630,
67,
464,
67,... |
class MainWin(kdeui.KMainWindow, Ui_Form): | class MainWin(kdeui.KMainWindow, """ + winfo['uiclass'] + """): | def processUI(uifile, output_filename=None, exe=False, indent=4): if output_filename is not None: output = open(output_filename,'w') else: output = sys.stdout # Write out the header. output.write(header % (uifile,time.ctime())) indenter.indentwidth = indent winfo = compiler.UICompiler().compileUi(uifile, output) if ... | 3b37a7faeaa3588ef725b94f2794040cd180b58a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1715/3b37a7faeaa3588ef725b94f2794040cd180b58a/pykdeuic4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
5370,
12,
89,
430,
398,
16,
876,
67,
3459,
33,
7036,
16,
15073,
33,
8381,
16,
3504,
33,
24,
4672,
225,
309,
876,
67,
3459,
353,
486,
599,
30,
876,
273,
1696,
12,
2844,
67,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
5370,
12,
89,
430,
398,
16,
876,
67,
3459,
33,
7036,
16,
15073,
33,
8381,
16,
3504,
33,
24,
4672,
225,
309,
876,
67,
3459,
353,
486,
599,
30,
876,
273,
1696,
12,
2844,
67,
34... |
Fdf(Filename, True, EccGlobalData.gWorkspace, EccGlobalData.gDb) | Fdf(Filename, True, EccGlobalData.gWorkspace, EccGlobalData.gDb) | def BuildMetaDataFileDatabase(self): EdkLogger.quiet("Building database for meta data files ...") Op = open(EccGlobalData.gConfig.MetaDataFileCheckPathOfGenerateFileList, 'w+') #SkipDirs = Read from config file SkipDirs = EccGlobalData.gConfig.SkipDirList for Root, Dirs, Files in os.walk(EccGlobalData.gTarget): for Dir... | 1e406c9fd9a4f86172ad059c4d2478ab7cf6adec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/1e406c9fd9a4f86172ad059c4d2478ab7cf6adec/Ecc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
6998,
812,
4254,
12,
2890,
4672,
512,
2883,
3328,
18,
20380,
2932,
16713,
2063,
364,
2191,
501,
1390,
1372,
7923,
6066,
273,
1696,
12,
41,
952,
5160,
751,
18,
75,
809,
18,
6998,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
6998,
812,
4254,
12,
2890,
4672,
512,
2883,
3328,
18,
20380,
2932,
16713,
2063,
364,
2191,
501,
1390,
1372,
7923,
6066,
273,
1696,
12,
41,
952,
5160,
751,
18,
75,
809,
18,
6998,
... |
elif isinstance( period, datetime.timedelta ): | elif isinstance(period, datetime.timedelta): | def getPeriodSeconds( period ): """ return the number of seconds in the specified period """ if isinstance( period, basestring ): try: result = eval( 'seconds_per_%s' % period.lower() ) except NameError: raise ValueError, "period not in ( minute, hour, day, year )" elif isinstance( period, ( int, long ) ): result = per... | ccdd4176bbf664bc1e8b113fff77933c61ec889b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/865/ccdd4176bbf664bc1e8b113fff77933c61ec889b/datetools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22612,
2386,
6762,
12,
3879,
262,
30,
3536,
327,
326,
1300,
434,
3974,
316,
326,
1269,
3879,
3536,
309,
1549,
12,
3879,
16,
10699,
262,
30,
775,
30,
563,
273,
5302,
12,
296,
7572,
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,
22612,
2386,
6762,
12,
3879,
262,
30,
3536,
327,
326,
1300,
434,
3974,
316,
326,
1269,
3879,
3536,
309,
1549,
12,
3879,
16,
10699,
262,
30,
775,
30,
563,
273,
5302,
12,
296,
7572,
67,
... |
["perftest", "--count", 50000, | ["qpid-perftest", "--count", 50000, | def start_clients(broker, i): """Start ordinary clients for a broker. Start one client per broker. Round-robin on a colllection of different clients.""" cmds=[ ["perftest", "--count", 50000, "--base-name", str(qpid.datatypes.uuid4()), "--port", broker.port()], ["qpid-queue-stats", "-a", "localhost:%s" %(broker.port())]... | ff52471a8f666059c8907ebbb80a158c2ec2ce10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/198/ff52471a8f666059c8907ebbb80a158c2ec2ce10/cluster_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
16931,
12,
21722,
16,
277,
4672,
3536,
1685,
4642,
2101,
7712,
364,
279,
8625,
18,
3603,
1245,
1004,
1534,
8625,
18,
11370,
17,
303,
4757,
603,
279,
4508,
942,
434,
3775,
7712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
16931,
12,
21722,
16,
277,
4672,
3536,
1685,
4642,
2101,
7712,
364,
279,
8625,
18,
3603,
1245,
1004,
1534,
8625,
18,
11370,
17,
303,
4757,
603,
279,
4508,
942,
434,
3775,
7712,
... |
is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) if ok: yield file | is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) if ok: yield file | def list_files(self): for file in FileUtilities.children_in_directory("/tmp/", True): is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) # fixme whitelist # Pulseaudio /tmp/pulse-${USER}/pid # whitelist? # /tmp/gconf... | ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
2932,
19,
5645,
19,
3113,
1053,
4672,
353,
67,
3190,
273,
1387,
11864,
18,
3190,
2354,
18,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
2932,
19,
5645,
19,
3113,
1053,
4672,
353,
67,
3190,
273,
1387,
11864,
18,
3190,
2354,
18,
291,
... |
print "Launch the futil server ( futil.ws.wsServer ) and reboot web.py script" | print "Launch the futil server ( futil.ws.wsServer ) and reboot web client" | def GET(self, query): try: results = remote.search(query) for result in results: print result except socket.error, e: print "Launch the futil server ( futil.ws.wsServer ) and reboot web.py script" | 299fdb146db31f0b4854ed5a0b0757f0bc39a5ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/299fdb146db31f0b4854ed5a0b0757f0bc39a5ec/futil-web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
843,
4672,
775,
30,
1686,
273,
2632,
18,
3072,
12,
2271,
13,
364,
563,
316,
1686,
30,
1172,
563,
1335,
2987,
18,
1636,
16,
425,
30,
1172,
315,
9569,
326,
284,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
843,
4672,
775,
30,
1686,
273,
2632,
18,
3072,
12,
2271,
13,
364,
563,
316,
1686,
30,
1172,
563,
1335,
2987,
18,
1636,
16,
425,
30,
1172,
315,
9569,
326,
284,
136... |
(pkg, (float(total_idle)*100/total)) | (pkg, (float(total_idle)*100/total)) | def generate_report(): ''' Generate report of CPU utilization ''' cpu_labels = ('cpu', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'softirq', 'x', 'y') if (not os.path.exists('/procstat')): os.mkdir('/procstat') reportfile = open('/procstat/cpu-utilisation', 'a') debugfile = open('/procstat/cpu-utilisation.debu... | 8df8484c51591f3064cbb520dc7cca26f2ba5932 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/8df8484c51591f3064cbb520dc7cca26f2ba5932/sched_mc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
6006,
13332,
9163,
6654,
2605,
434,
12154,
1709,
1588,
9163,
8326,
67,
5336,
273,
7707,
11447,
2187,
296,
1355,
2187,
296,
82,
1812,
2187,
296,
4299,
2187,
296,
20390,
2187,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
6006,
13332,
9163,
6654,
2605,
434,
12154,
1709,
1588,
9163,
8326,
67,
5336,
273,
7707,
11447,
2187,
296,
1355,
2187,
296,
82,
1812,
2187,
296,
4299,
2187,
296,
20390,
2187,
296,... |
r'temp_scaffolding_stubs\.h$', | # Bogus ifdef tricks | e06131db8c610bca50a025fc876755d0aa42e53c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e06131db8c610bca50a025fc876755d0aa42e53c/PRESUBMIT.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
605,
28774,
309,
536,
433,
20642,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
605,
28774,
309,
536,
433,
20642,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
else : tmp_unpack_dir = tempfile.mkdtemp( prefix="enstaller-" ) egg_dir = path.join( tmp_unpack_dir, path.basename( installed_egg_path ) ) unpack_archive( installed_egg_path, egg_dir ) pi_script = path.join( egg_dir, "EGG-INFO", "post_install.py" ) if( path.exists( pi_script ) ) : try : execfile( pi_script, {"__fi... | pi_script = path.join( egg_dir, "EGG-INFO", "post_install.py" ) if( path.exists( pi_script ) ) : try : execfile( pi_script, {"__file__" : pi_script} ) except Exception, err : self.log( "Error: problem running post-install " + \ "script %s: %s\n" % (pi_script, err) ) | def _run_post_install( self, installed_egg_path ) : """ Run any post-install scripts in the newly-installed egg. """ tmp_unpack_dir = "" # # if the egg installed is a dir, simply check the EGG-INFO subdir # for a post_install.py script and run it, otherwise, unzip it to # a temp location and do the same thing # if( pat... | 603e4f7f8194bf706b8e1efbbb1ab1b9b3c9e64f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7707/603e4f7f8194bf706b8e1efbbb1ab1b9b3c9e64f/bootstrapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
2767,
67,
5425,
12,
365,
16,
5876,
67,
23171,
67,
803,
262,
294,
3536,
1939,
1281,
1603,
17,
5425,
8873,
316,
326,
10894,
17,
13435,
25144,
18,
3536,
1853,
67,
17309,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
2767,
67,
5425,
12,
365,
16,
5876,
67,
23171,
67,
803,
262,
294,
3536,
1939,
1281,
1603,
17,
5425,
8873,
316,
326,
10894,
17,
13435,
25144,
18,
3536,
1853,
67,
17309,
67... |
'icon': fields.function(_icon_get, method=True, string='Icon', type='string'), | 'icon': fields.function(_icon_get, method=True, string='Icon', type='char', size=32), | def _icon_get(self, cr, uid, ids, field_name, arg=None, context={}): result = {}.fromkeys(ids, 'STOCK_NEW') for r in self.read(cr, uid, ids, ['state']): result[r['id']] = { 'draft': 'STOCK_NEW', 'printed': 'STOCK_PRINT_PREVIEW', 'done': 'STOCK_DIALOG_AUTHENTICATION', }.get(r['state'], 'STOCK_NEW') return result | e8a2ddf964fa61a67ee56e68d91a8c60ed6c5c38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e8a2ddf964fa61a67ee56e68d91a8c60ed6c5c38/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3950,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
563,
273,
20151,
2080,
2452,
12,
2232,
16,
296,
31487,
3507,
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,
3950,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
563,
273,
20151,
2080,
2452,
12,
2232,
16,
296,
31487,
3507,
6... |
return self(self.hecke_operator(f.qexp(), m)) | return self(self.hecke_operator(f.q_expansion(), m)) | def hecke_operator(self, f, m): r""" Given an element `f` and an integer `m`, calculates the Hecke operator `T_m` acting on `f`. | c8cd75e98ec3124979cc2d0934a36c3cec53656f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/c8cd75e98ec3124979cc2d0934a36c3cec53656f/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
... |
if self.classifiers: return target == self.classifiers.values()[0] | if self.predictors: return target == self.predictors.values()[0] | def consistenttarget(self, target): """returns TRUE if target is consistent with current predictiors and data""" if self.classifiers: return target == self.classifiers.values()[0] return True | 63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11071,
3299,
12,
2890,
16,
1018,
4672,
3536,
6154,
5383,
309,
1018,
353,
11071,
598,
783,
7810,
77,
1383,
471,
501,
8395,
309,
365,
18,
14491,
1383,
30,
327,
1018,
422,
365,
18,
14491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11071,
3299,
12,
2890,
16,
1018,
4672,
3536,
6154,
5383,
309,
1018,
353,
11071,
598,
783,
7810,
77,
1383,
471,
501,
8395,
309,
365,
18,
14491,
1383,
30,
327,
1018,
422,
365,
18,
14491,
... |
return zope.component.getMultiAdaptera((ob, request), name=name[6:]) | return zope.component.getMultiAdapter((ob, request), name=name[6:]) | def publishTraverse(self, request, name): ob = self.context if name.startswith('@@'): return zope.component.getMultiAdaptera((ob, request), name=name[6:]) | b4863a4bb68292eb7c6d469f0714d7b788ca8541 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9689/b4863a4bb68292eb7c6d469f0714d7b788ca8541/traversers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
29654,
12,
2890,
16,
590,
16,
508,
4672,
3768,
273,
365,
18,
2472,
309,
508,
18,
17514,
1918,
2668,
36,
20887,
4672,
327,
998,
1306,
18,
4652,
18,
588,
5002,
4216,
69,
12443,
947... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
29654,
12,
2890,
16,
590,
16,
508,
4672,
3768,
273,
365,
18,
2472,
309,
508,
18,
17514,
1918,
2668,
36,
20887,
4672,
327,
998,
1306,
18,
4652,
18,
588,
5002,
4216,
69,
12443,
947... |
result += decoder.decode(self.buffer.read(), True) self._decoded_text = "" self._snapshot = None | result = (self._emit_decoded_text() + decoder.decode(self.buffer.read(), final=True)) self._clear_decoded_text() | def read(self, n=None): if n is None: n = -1 decoder = self._decoder or self._get_decoder() result = self._decoded_text if n < 0: result += decoder.decode(self.buffer.read(), True) self._decoded_text = "" self._snapshot = None return result else: while len(result) < n: input_chunk, decoded = self._read_chunk() result +... | 1e18b9ecf014bdc7f0b206c49c140c4f21edcb70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1e18b9ecf014bdc7f0b206c49c140c4f21edcb70/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
290,
33,
7036,
4672,
309,
290,
353,
599,
30,
290,
273,
300,
21,
8320,
273,
365,
6315,
21070,
578,
365,
6315,
588,
67,
21070,
1435,
563,
273,
365,
6315,
26646,
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,
855,
12,
2890,
16,
290,
33,
7036,
4672,
309,
290,
353,
599,
30,
290,
273,
300,
21,
8320,
273,
365,
6315,
21070,
578,
365,
6315,
588,
67,
21070,
1435,
563,
273,
365,
6315,
26646,
67,
... |
def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword) | def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword) | def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword) | 758fe31cbd216b7c19d07f9e14aa5e6f27060960 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/758fe31cbd216b7c19d07f9e14aa5e6f27060960/login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22178,
12,
2890,
4672,
365,
18,
4861,
1133,
12,
70,
23,
18,
5989,
18,
24427,
56,
67,
11935,
67,
7131,
13,
365,
6315,
3666,
3773,
273,
365,
18,
8698,
18,
588,
3773,
2668,
3666,
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,
603,
22178,
12,
2890,
4672,
365,
18,
4861,
1133,
12,
70,
23,
18,
5989,
18,
24427,
56,
67,
11935,
67,
7131,
13,
365,
6315,
3666,
3773,
273,
365,
18,
8698,
18,
588,
3773,
2668,
3666,
6... |
mock = PyLoaderMock({name: 'path/to/mod'}) | mock = PyLoaderMock({name: os.path.join('path', 'to', 'mod')}) | def test_default_encoding(self): # Should have no problems with UTF-8 text. name = 'mod' mock = PyLoaderMock({name: 'path/to/mod'}) source = 'x = "ü"' mock.source = source.encode('utf-8') returned_source = mock.get_source(name) self.assertEqual(returned_source, source) | 1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7/test_abc_loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
5999,
12,
2890,
4672,
468,
9363,
1240,
1158,
9688,
598,
6380,
17,
28,
977,
18,
508,
273,
296,
1711,
11,
5416,
273,
4707,
2886,
9865,
12590,
529,
30,
1140,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
5999,
12,
2890,
4672,
468,
9363,
1240,
1158,
9688,
598,
6380,
17,
28,
977,
18,
508,
273,
296,
1711,
11,
5416,
273,
4707,
2886,
9865,
12590,
529,
30,
1140,
18,
803,
... |
print 'Number of retries:',config.retries | def getPeople(self): return self.people | e41aa05f1df14bca602ed203d29c268d164a7456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2336/e41aa05f1df14bca602ed203d29c268d164a7456/TrustServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
73,
11763,
12,
2890,
4672,
327,
365,
18,
28035,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
73,
11763,
12,
2890,
4672,
327,
365,
18,
28035,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
file.write(' file.write(' | file.write(' file.write(' | file.write('#ifndef APP_GFX_GL_GL_BINDINGS_AUTOGEN_%s_H_\n' % setName.upper()) | 41b13474f628e124e24db208e67a4b0ebf16f001 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/41b13474f628e124e24db208e67a4b0ebf16f001/generate_bindings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
10756,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
10756,
2,
-100,
-100... |
self['threads'][thread]['checkTime'][-1][1] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0 | self['threads'][thread]['checkTime'][-1][1]=int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0 | def parse(self): for option in self.boolOptionsGlobal: try: if option.lower() in self.options('global'): try: self['global'][option] = self.getboolean('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option except ConfigParser.NoSectionError, m: raise SystemExit(unicode... | 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,
1109,
12,
2890,
4672,
364,
1456,
316,
365,
18,
6430,
1320,
5160,
30,
775,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
775,
30,
365,
3292,
6347,
3546,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
364,
1456,
316,
365,
18,
6430,
1320,
5160,
30,
775,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
775,
30,
365,
3292,
6347,
3546,
63,
... |
style = win32con.WS_OVERLAPPED | win32con.WS_SYSMENU self.hwnd = CreateWindow(classAtom, "SpamBayes", style, 0, 0, win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT, 0, 0, hinst, None) UpdateWindow(self.hwnd) | hinst = GetModuleHandle(None) dialogTemplate = [['SpamBayes', (14, 10, 246, 187), -1865809852 & ~win32con.WS_VISIBLE, None, (8, 'Tahoma')],] self.hwnd = CreateDialogIndirect(hinst, dialogTemplate, 0, message_map) | def __init__(self): # The ordering here is important - it is the order that they will # appear in the menu. As dicts don't have an order, this means # that the order is controlled by the id. Any items were the # function is None will appear as separators. self.control_functions = {1024 : ("Start SpamBayes", self.Star... | 0254a2f4a8a68361bc59fecaadbe2435c61fa306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0254a2f4a8a68361bc59fecaadbe2435c61fa306/pop3proxy_tray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353... |
traceback_count = output.lower().count('traceback') | traceback_count = output.lower().count('Traceback (most recent call last)') | def get_traceback_stats(output): counter = {} traceback_count = output.lower().count('traceback') for warning in get_exceptions(output): counter.setdefault(warning, 0) counter[warning] += 1 traceback_count -= 1 items = counter.items() items.sort(key=lambda (a, b): -b) if traceback_count: items.append(('other traceback'... | ebed92695d5de41960526f5818d849f27636e72f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/ebed92695d5de41960526f5818d849f27636e72f/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21696,
67,
5296,
12,
2844,
4672,
3895,
273,
2618,
10820,
67,
1883,
273,
876,
18,
8167,
7675,
1883,
2668,
3448,
823,
261,
10329,
8399,
745,
1142,
2506,
13,
364,
3436,
316,
336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21696,
67,
5296,
12,
2844,
4672,
3895,
273,
2618,
10820,
67,
1883,
273,
876,
18,
8167,
7675,
1883,
2668,
3448,
823,
261,
10329,
8399,
745,
1142,
2506,
13,
364,
3436,
316,
336,
... |
In case you want only log the length, use keyword `Get Length` from BuiltIn library. | If you only want to the length, use keyword `Get Length` from the BuiltIn library. | def log_list(self, list_, level='INFO'): """Logs given `list's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(list_) == 0: prin... | 1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1098,
12,
2890,
16,
666,
67,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
864,
1375,
1098,
1807,
68,
769,
471,
913,
598,
864,
1375,
2815,
68,
225,
2364,
7575,
854,
12734,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1098,
12,
2890,
16,
666,
67,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
864,
1375,
1098,
1807,
68,
769,
471,
913,
598,
864,
1375,
2815,
68,
225,
2364,
7575,
854,
12734,
16,
... |
self.PHOTO_TBL = config.get(section,'photo_tbl') self.PHOTO_TBLSQ = config.get(section,'photo_tblsq') self.NEWS_TBL = config.get(section,'news_tbl') self.NEWS_TBLSQ = config.get(section,'news_tblsq') self.SITE = config.get(section,'site') | self.PHOTO_TBL = ConfObj.get(section,'photo_tbl') self.PHOTO_TBLSQ = ConfObj.get(section,'photo_tblsq') self.NEWS_TBL = ConfObj.get(section,'news_tbl') self.NEWS_TBLSQ = ConfObj.get(section,'news_tblsq') self.SITE = ConfObj.get(section,'site') | def read_conf(self, ConfObj): ''' Getting config options for this handler ''' | 2bff5b59384628f80eb001f7fd095ec79b13d2c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/2bff5b59384628f80eb001f7fd095ec79b13d2c4/NewsHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
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... | [
1,
1,
1,
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,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
elif Key == TAB_TAT_DEFINES_MULTIPLE_THREAD and self.Opt.Num != None: | elif Key == TAB_TAT_DEFINES_MULTIPLE_THREAD and self.Opt.NUM != None: | def RWFile(self, CommentCharacter, KeySplitCharacter, Num): try: fr = open(self.FileName, 'r') fw = open(os.path.normpath(os.path.join(self.WorkSpace, 'Conf\\targetnew.txt')), 'w') | b1490d09e20dd70b001e612731692dd025712191 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/b1490d09e20dd70b001e612731692dd025712191/TargetTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25920,
812,
12,
2890,
16,
9821,
7069,
16,
1929,
5521,
7069,
16,
6805,
4672,
775,
30,
3812,
273,
1696,
12,
2890,
18,
4771,
16,
296,
86,
6134,
7600,
273,
1696,
12,
538,
18,
803,
18,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25920,
812,
12,
2890,
16,
9821,
7069,
16,
1929,
5521,
7069,
16,
6805,
4672,
775,
30,
3812,
273,
1696,
12,
2890,
18,
4771,
16,
296,
86,
6134,
7600,
273,
1696,
12,
538,
18,
803,
18,
79... |
print "adding scraped thumb at %s" % desc.expand("\\1") | def addScrapedThumbnail(self,entry): if (len(entry['enclosures'])>0 and entry.has_key('description') and not entry['enclosures'][0].has_key('thumbnail')): print "I could scrape "+entry['title'] desc = RSSFeed.firstImageRE.search(unescape(entry['description'])) if not desc is None: print "adding scraped thumb at %s" % d... | 78e2f9a7758c69397ec02fc5f57f5c3710fc5d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/78e2f9a7758c69397ec02fc5f57f5c3710fc5d32/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1541,
1266,
329,
16270,
12,
2890,
16,
4099,
4672,
309,
261,
1897,
12,
4099,
3292,
1331,
383,
8421,
19486,
34,
20,
471,
1241,
18,
5332,
67,
856,
2668,
3384,
6134,
471,
486,
1241,
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,
527,
1541,
1266,
329,
16270,
12,
2890,
16,
4099,
4672,
309,
261,
1897,
12,
4099,
3292,
1331,
383,
8421,
19486,
34,
20,
471,
1241,
18,
5332,
67,
856,
2668,
3384,
6134,
471,
486,
1241,
3... | |
'install_data': MyInstallData, | 'install_man': install_man, 'install': install, 'build_man': BuildDoc, }, 'options': { 'build_man': { 'builder': 'man' }, | def run(self): if not self.scripts: return saved_scripts = self.scripts self.scripts = [] for script in saved_scripts: script = convert_path(script) script_copy, script_ext = os.path.splitext(script) | 3969435fb46344d714d7a63b3e389def48dd45dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1984/3969435fb46344d714d7a63b3e389def48dd45dc/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
12827,
30,
327,
5198,
67,
12827,
273,
365,
18,
12827,
365,
18,
12827,
273,
5378,
364,
2728,
316,
5198,
67,
12827,
30,
2728,
273,
1765,
67,
803,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
12827,
30,
327,
5198,
67,
12827,
273,
365,
18,
12827,
365,
18,
12827,
273,
5378,
364,
2728,
316,
5198,
67,
12827,
30,
2728,
273,
1765,
67,
803,... |
gLogger.debug("SRM2Storage.removeDirectory: Attempting to remove %s" % directory) res = self.__getDirectoryContents(directory) resDict = {'FilesRemoved':0,'SizeRemoved':0} | gLogger.debug( "SRM2Storage.removeDirectory: Attempting to remove %s" % directory ) res = self.__getDirectoryContents( directory ) resDict = {'FilesRemoved':0, 'SizeRemoved':0} | def __removeDirectoryRecursive(self,directory): """ Recursively removes the directory and sub dirs. Repeatedly calls itself to delete recursively. """ res = self.checkArgumentFormat(directory) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4479,
2853,
10483,
12,
2890,
16,
5149,
4672,
3536,
31362,
7157,
326,
1867,
471,
720,
7717,
18,
868,
9061,
715,
4097,
6174,
358,
1430,
8536,
18,
3536,
400,
273,
365,
18,
1893,
1379,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4479,
2853,
10483,
12,
2890,
16,
5149,
4672,
3536,
31362,
7157,
326,
1867,
471,
720,
7717,
18,
868,
9061,
715,
4097,
6174,
358,
1430,
8536,
18,
3536,
400,
273,
365,
18,
1893,
1379,... |
CallerIDName = self.calls[call]['CallerIDName'] CallerID = self.calls[call]['CallerID'] | def handlerRename(self, lines): log.info('MonAst.handlerRename :: Running...') dic = self.list2Dict(lines) Oldname = dic.get('Channel', dic.get('Oldname')) Newname = dic['Newname'] Uniqueid = dic['Uniqueid'] CallerIDName = '' CallerID = '' try: self.channelsLock.acquire() self.channels[Uniqueid]['C... | 813c458b6b9d6ad69d56f03bf10cade3d4e1bc36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12004/813c458b6b9d6ad69d56f03bf10cade3d4e1bc36/monast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
16019,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
16019,
493,
20480,
7821,
13,
11681,
273,
365,
18,
1098,
22,
5014,
12,
3548,
13,
225,
18613,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
16019,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
16019,
493,
20480,
7821,
13,
11681,
273,
365,
18,
1098,
22,
5014,
12,
3548,
13,
225,
18613,
529,
... | |
self.search.connect('changed',self.on_search_changed) | self.search.connect('changed',self.on_search_changed) | def __init__(self): self.builder = gtk.Builder() self.builder.add_from_file("wordgroupz.glade") self.window = self.builder.get_object("MainWindow") self.window.set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") self.window.set_title("wordGroupz") self.builder.connect_signals(self) self.get_word = self.builder.get_... | e940197cbd5bd83a44f5fd387df2bfd0ff7d8037 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/e940197cbd5bd83a44f5fd387df2bfd0ff7d8037/wordgroupz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.