rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
g.insert(image_id = imageId, tag_id = res[0][0]) | g.insert(image_id = imageId, tag_id = tagid) | def run_stack_ingestion(g, stackFile, user_id): """ Ingestion of Stack image @param g DBGeneric instance @param stackFile full path to file @param user_id current user DB id """ global log duration_stime = time.time() ipath = os.path.dirname(stackFile) fitsNoExt = os.path.basename(stackFile.replace(FITSEXT, NULLSTRING... | 1b2fc36fcb0487e6d00344b9f9f6191a60c26898 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/1b2fc36fcb0487e6d00344b9f9f6191a60c26898/stack_ingestion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3772,
67,
310,
6868,
12,
75,
16,
2110,
812,
16,
729,
67,
350,
4672,
3536,
657,
75,
6868,
434,
7283,
1316,
632,
891,
314,
2383,
7014,
791,
632,
891,
2110,
812,
1983,
589,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3772,
67,
310,
6868,
12,
75,
16,
2110,
812,
16,
729,
67,
350,
4672,
3536,
657,
75,
6868,
434,
7283,
1316,
632,
891,
314,
2383,
7014,
791,
632,
891,
2110,
812,
1983,
589,
35... |
if sys.argv[1] == '-c': | setup_seattle=False setup_seattlegeni=False if sys.argv[1] == '-cseattle': | def main(): """ <Purpose> Deploys the monitor_processes.py along with all the files needed into a single directory. The directory must already exist. <Exceptions> If OS is not Linux, then setting up crontab will not work. <Side Effect> If the target directory that the user provides is not empty, then this script will... | 352bf0b5c34e7a744995ca6844028cae6de4763f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7274/352bf0b5c34e7a744995ca6844028cae6de4763f/deploy_monitor_processes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
411,
10262,
4150,
34,
4019,
383,
1900,
326,
6438,
67,
18675,
18,
2074,
7563,
598,
777,
326,
1390,
3577,
1368,
279,
2202,
1867,
18,
1021,
1867,
1297,
1818,
1005,
18,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
411,
10262,
4150,
34,
4019,
383,
1900,
326,
6438,
67,
18675,
18,
2074,
7563,
598,
777,
326,
1390,
3577,
1368,
279,
2202,
1867,
18,
1021,
1867,
1297,
1818,
1005,
18,
22... |
req_by = '' | req_tmp = [] | def _search_dependencies(self, pac): # Search in local repo for pac_name in descriptions files. # If found than pack.name is requied by pack_name deps_stack = [] deps_on = '' deps = '' req_stack = [] req_by = '' req = '' # Get dependencies only from "pac" pac_raw_req_by = self._get_raw_desc(pac, "depends") pac_req_by... | fb6fe348a2c97c323c7dd1c1f621b876db96dc15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/fb6fe348a2c97c323c7dd1c1f621b876db96dc15/pacman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3072,
67,
11037,
12,
2890,
16,
293,
1077,
4672,
468,
5167,
316,
1191,
3538,
364,
293,
1077,
67,
529,
316,
15550,
1390,
18,
468,
971,
1392,
2353,
2298,
18,
529,
353,
10780,
2092,
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,
3072,
67,
11037,
12,
2890,
16,
293,
1077,
4672,
468,
5167,
316,
1191,
3538,
364,
293,
1077,
67,
529,
316,
15550,
1390,
18,
468,
971,
1392,
2353,
2298,
18,
529,
353,
10780,
2092,
6... |
lfit.Y = Y | def fit(self, Y, **keywords): """ Full \'fit\' of the model including estimate of covariance matrix, (whitened) residuals and scale. | af7b6951110ce17903406fde26c729dadde75f31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/af7b6951110ce17903406fde26c729dadde75f31/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4845,
12,
2890,
16,
1624,
16,
2826,
11771,
4672,
3536,
11692,
7164,
7216,
3730,
434,
326,
938,
6508,
11108,
434,
17366,
3148,
16,
261,
3350,
305,
275,
329,
13,
29252,
471,
3159,
18,
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,
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,
4845,
12,
2890,
16,
1624,
16,
2826,
11771,
4672,
3536,
11692,
7164,
7216,
3730,
434,
326,
938,
6508,
11108,
434,
17366,
3148,
16,
261,
3350,
305,
275,
329,
13,
29252,
471,
3159,
18,
2,
... | |
limit 1 """, (form['date'],)) | limit 1 """, (date,)) | def compute_refund(self, cr, uid, ids, mode, context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs | 8710567e1847970b7324e2f92429d386ac40c66a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8710567e1847970b7324e2f92429d386ac40c66a/account_invoice_refund.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
1734,
1074,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1965,
16,
819,
33,
7036,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
455... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
1734,
1074,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1965,
16,
819,
33,
7036,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
455... |
return (bv.grid) | kpts = (bv.grid) | def get_kpts(self): 'return the kpt grid, not the kpts' nc = netCDF(self.nc,'r') | f24feaeeb4f35c2d48bb5fa47d97c4957e1bc034 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/f24feaeeb4f35c2d48bb5fa47d97c4957e1bc034/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
79,
1092,
12,
2890,
4672,
296,
2463,
326,
417,
337,
3068,
16,
486,
326,
417,
1092,
11,
8194,
273,
2901,
39,
4577,
12,
2890,
18,
14202,
11189,
86,
6134,
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,
336,
67,
79,
1092,
12,
2890,
4672,
296,
2463,
326,
417,
337,
3068,
16,
486,
326,
417,
1092,
11,
8194,
273,
2901,
39,
4577,
12,
2890,
18,
14202,
11189,
86,
6134,
2,
-100,
-100,
-100,
... |
wrong.append(testname) | def checking_loop(wiki): url = wiki.host while True: #Get all new history pages with pending status info('Lookig for pages') picked_pages = wiki.getMeta('CategoryHistory, overallvalue=pending') info('Found %d pages' % len(picked_pages)) if not picked_pages: info('No pages. Sleeping') time.sleep(10) continue #go thgr... | d57661ce85607fd508ce4dfcbecdd8881512f156 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/d57661ce85607fd508ce4dfcbecdd8881512f156/testBot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6728,
67,
6498,
12,
13044,
4672,
880,
273,
9050,
18,
2564,
225,
1323,
1053,
30,
468,
967,
777,
394,
4927,
4689,
598,
4634,
1267,
1123,
2668,
9794,
360,
364,
4689,
6134,
25534,
67,
7267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6728,
67,
6498,
12,
13044,
4672,
880,
273,
9050,
18,
2564,
225,
1323,
1053,
30,
468,
967,
777,
394,
4927,
4689,
598,
4634,
1267,
1123,
2668,
9794,
360,
364,
4689,
6134,
25534,
67,
7267,
... | |
b_file = file(self.bad_url_cache_name, "w") pickle.dump(self.bad_urls, b_file) b_file.close() h_file = file(self.http_error_cache_name, "w") pickle.dump(self.http_error_urls, h_file) h_file.close() | for name, data in [(self.bad_url_cache_name, self.bad_urls), (self.http_error_cache_name, self.http_error_urls),]: cache = open(name + ".tmp", "w") pickle.dump(data, cache) cache.close() try: os.rename(name + ".tmp", name) except OSError: os.remove(name) os.rename(name + ".tmp", name) | def _save_caches(self): # XXX Note that these caches are never refreshed, which might not # XXX be a good thing long-term (if a previously invalid URL # XXX becomes valid, for example). b_file = file(self.bad_url_cache_name, "w") pickle.dump(self.bad_urls, b_file) b_file.close() h_file = file(self.http_error_cache_name... | 95895491fb21688291fd1a82789cef7321ee3128 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/95895491fb21688291fd1a82789cef7321ee3128/classifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5688,
67,
17703,
281,
12,
2890,
4672,
468,
11329,
3609,
716,
4259,
12535,
854,
5903,
27880,
16,
1492,
4825,
486,
468,
11329,
506,
279,
7494,
7757,
1525,
17,
6408,
261,
430,
279,
724... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5688,
67,
17703,
281,
12,
2890,
4672,
468,
11329,
3609,
716,
4259,
12535,
854,
5903,
27880,
16,
1492,
4825,
486,
468,
11329,
506,
279,
7494,
7757,
1525,
17,
6408,
261,
430,
279,
724... |
self.extract_entries(entries=self.html_files, destdir=tempdir, correct_file=True) | self.extract_entries(entries=self.html_files, destdir=tempdir, correct=True) | def htmldoc(self, output, format=archmod.CHM2HTML): """CHM to other file formats converter using htmldoc""" # Extract CHM content into temporary directory output = output.replace(' ', '_') tempdir = tempfile.mkdtemp(prefix=output.rsplit('.', 1)[0]) self.extract_entries(entries=self.html_files, destdir=tempdir, correct_... | 3be63c17aa7dbbb09b4bbf0251add8eba8886698 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5198/3be63c17aa7dbbb09b4bbf0251add8eba8886698/CHM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
2434,
12,
2890,
16,
876,
16,
740,
33,
991,
1711,
18,
1792,
49,
22,
4870,
4672,
3536,
1792,
49,
358,
1308,
585,
6449,
6027,
1450,
1729,
2434,
8395,
468,
8152,
6469,
49,
913,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
2434,
12,
2890,
16,
876,
16,
740,
33,
991,
1711,
18,
1792,
49,
22,
4870,
4672,
3536,
1792,
49,
358,
1308,
585,
6449,
6027,
1450,
1729,
2434,
8395,
468,
8152,
6469,
49,
913,
1368,... |
+ self.makeReply(md, errfnRecv) | + [ Whitespace.NL ] + self.makeReply(md, errfnRecv, routingId=idvar) | def genDtorRecvCase(self, md): lbl = CaseLabel(md.pqMsgId()) case = StmtBlock() | c95f27e461d64b9a59162ef066344e6890d6942d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/c95f27e461d64b9a59162ef066344e6890d6942d/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
40,
13039,
28470,
2449,
12,
2890,
16,
3481,
4672,
14284,
273,
12605,
2224,
12,
1264,
18,
84,
85,
3332,
548,
10756,
648,
273,
13751,
1768,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
40,
13039,
28470,
2449,
12,
2890,
16,
3481,
4672,
14284,
273,
12605,
2224,
12,
1264,
18,
84,
85,
3332,
548,
10756,
648,
273,
13751,
1768,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
if self.active_operation: | if self._mousedown: | def on_canvas_motion_notify_event(self, widget, ev): if self.active_operation: self.updateOperation(self.tool_active, ev.x, ev.y) | bcbfa4e1f582b47498cec1f1ef0411a1110c4a5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/bcbfa4e1f582b47498cec1f1ef0411a1110c4a5b/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15424,
67,
81,
8240,
67,
12336,
67,
2575,
12,
2890,
16,
3604,
16,
2113,
4672,
309,
365,
6315,
29958,
30,
365,
18,
2725,
2988,
12,
2890,
18,
6738,
67,
3535,
16,
2113,
18,
92,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15424,
67,
81,
8240,
67,
12336,
67,
2575,
12,
2890,
16,
3604,
16,
2113,
4672,
309,
365,
6315,
29958,
30,
365,
18,
2725,
2988,
12,
2890,
18,
6738,
67,
3535,
16,
2113,
18,
92,... |
name = chooser.get_filename() db_name = os.path.basename(chooser.get_filename()) | def ImportDialog(widgetTree, windows_title): import shutil chooser = gtk.FileChooserDialog(title=windows_title,action=gtk.FILE_CHOOSER_ACTION_SAVE, buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) r = chooser.run() #name of file to export name = chooser.get_filename() db_name = os.path.ba... | 34e4a909130f34821e7a3aad4c0a5b559f079917 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2973/34e4a909130f34821e7a3aad4c0a5b559f079917/kbi_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
6353,
12,
6587,
2471,
16,
9965,
67,
2649,
4672,
1930,
11060,
5011,
13164,
273,
22718,
18,
812,
17324,
6353,
12,
2649,
33,
13226,
67,
2649,
16,
1128,
33,
4521,
79,
18,
3776,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
6353,
12,
6587,
2471,
16,
9965,
67,
2649,
4672,
1930,
11060,
5011,
13164,
273,
22718,
18,
812,
17324,
6353,
12,
2649,
33,
13226,
67,
2649,
16,
1128,
33,
4521,
79,
18,
3776,
67,
2... | |
print mirror.identifier | print s | def do_list(self, subcmd, opts, *args): """${cmd_name}: list mirrors | 27f529252a243b0ec036fe08466b658ad1f14315 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/27f529252a243b0ec036fe08466b658ad1f14315/mirrordoctor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1098,
12,
2890,
16,
720,
4172,
16,
1500,
16,
380,
1968,
4672,
3536,
18498,
4172,
67,
529,
6713,
666,
312,
27026,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1098,
12,
2890,
16,
720,
4172,
16,
1500,
16,
380,
1968,
4672,
3536,
18498,
4172,
67,
529,
6713,
666,
312,
27026,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return '%s[%s]' % (self.name(), self.typeDefinition().name()) | return 'ED[%s:%s]' % (self.name(), self.typeDefinition().name()) | def __str__ (self): return '%s[%s]' % (self.name(), self.typeDefinition().name()) | d564904c54eda6ecda7cdea92b5f10e44422c2fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/d564904c54eda6ecda7cdea92b5f10e44422c2fc/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
327,
1995,
87,
14451,
87,
3864,
738,
261,
2890,
18,
529,
9334,
365,
18,
723,
1852,
7675,
529,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
327,
1995,
87,
14451,
87,
3864,
738,
261,
2890,
18,
529,
9334,
365,
18,
723,
1852,
7675,
529,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
EXAMPLE: | EXAMPLES: | def branch_weyl_character(chi, R, S, rule="default"): """A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429--449 or Howe, Tan and Wil... | da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
3536,
37,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
3536,
37,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
... |
value_length = struct.unpack("!I", data[pos:pos+4]) & 0x7fffffff | value_length = struct.unpack("!I", data[pos:pos+4])[0] & 0x7fffffff | def __init__(self, data=""): self.values = [] pos = 0 while pos < len(data): if ord(data[pos]) & 128: name_length = struct.unpack("!I", data[pos:pos+4]) & 0x7fffffff pos += 4 else: name_length = ord(data[pos]) pos += 1 if ord(data[pos]) & 128: value_length = struct.unpack("!I", data[pos:pos+4]) & 0x7fffffff pos += 4 el... | bc96479fe82ed082f5c9d2616befa70f055dbb98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/506/bc96479fe82ed082f5c9d2616befa70f055dbb98/fcgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
1546,
6,
4672,
365,
18,
2372,
273,
5378,
949,
273,
374,
1323,
949,
411,
562,
12,
892,
4672,
309,
4642,
12,
892,
63,
917,
5717,
473,
8038,
30,
508,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
501,
1546,
6,
4672,
365,
18,
2372,
273,
5378,
949,
273,
374,
1323,
949,
411,
562,
12,
892,
4672,
309,
4642,
12,
892,
63,
917,
5717,
473,
8038,
30,
508,... |
def __init__(self, wiki, data, write=False): | def __init__(self, wiki, data, write=False, multipart=False): | def __init__(self, wiki, data, write=False): """ wiki - A Wiki object data - API parameters in the form of a dict write - set to True if doing a write query, so it won't try again on error maxlag is set by default to 5 but can be changed format is always set to json """ self.sleep = 5 self.data = data.copy() self.data[... | 17fc397db9db6702301626ec8cd08dee4eeb473c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10544/17fc397db9db6702301626ec8cd08dee4eeb473c/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9050,
16,
501,
16,
1045,
33,
8381,
16,
10263,
33,
8381,
4672,
3536,
9050,
300,
432,
28268,
733,
501,
300,
1491,
1472,
316,
326,
646,
434,
279,
2065,
1045... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9050,
16,
501,
16,
1045,
33,
8381,
16,
10263,
33,
8381,
4672,
3536,
9050,
300,
432,
28268,
733,
501,
300,
1491,
1472,
316,
326,
646,
434,
279,
2065,
1045... |
cursor = self.connection.cursor() cursor.execute("SELECT * FROM %s" % self.dbtablename) for values in cursor: | for values in self.connection.cursor().execute("SELECT * FROM %s" % self.dbtablename): | def __iter__(self): cursor = self.connection.cursor() cursor.execute("SELECT * FROM %s" % self.dbtablename) for values in cursor: yield self._row_from_cols(values) | 473e8f82c49994472dd50f3d32660d64e8c24980 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/473e8f82c49994472dd50f3d32660d64e8c24980/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
924,
316,
365,
18,
4071,
18,
9216,
7675,
8837,
2932,
4803,
380,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
4672,
2824,
365,
6315,
492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
924,
316,
365,
18,
4071,
18,
9216,
7675,
8837,
2932,
4803,
380,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
4672,
2824,
365,
6315,
492,
67,... |
for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT \ and node.tagName == "section": create_module_info(doc, node) | for node in find_all_elements(doc, "section"): create_module_info(doc, node) | def cleanup_synopses(doc): for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT \ and node.tagName == "section": create_module_info(doc, node) | 6fd3b456df1736e218c2900c3479631306a4f4d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6fd3b456df1736e218c2900c3479631306a4f4d7/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
67,
11982,
556,
2420,
12,
2434,
4672,
364,
756,
316,
1104,
67,
454,
67,
6274,
12,
2434,
16,
315,
3464,
6,
4672,
752,
67,
2978,
67,
1376,
12,
2434,
16,
756,
13,
282,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
67,
11982,
556,
2420,
12,
2434,
4672,
364,
756,
316,
1104,
67,
454,
67,
6274,
12,
2434,
16,
315,
3464,
6,
4672,
752,
67,
2978,
67,
1376,
12,
2434,
16,
756,
13,
282,
2,
-100,
... |
rc = Matrix(F,r,c, ([a**(i-1)] * c) + [F(0)]*((r-1)*c) ) ki = Matrix(F,r,c) | rc = Matrix(F, r, c, ([a**(i-1)] * c) + [F(0)]*((r-1)*c) ) ki = Matrix(F, r, c) | def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. TESTS: sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki,i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E2 51 1... | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
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,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
18,... |
if not rpc.call_bridges_exist(instance.primary_node, brlist): | if not rpc.call_bridges_exist(target_node, brlist): | def CheckPrereq(self): """Check prerequisites. | 50ff9a7acf800a15c2ee7704d4f562ad6148bbc1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7542/50ff9a7acf800a15c2ee7704d4f562ad6148bbc1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): | def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, type = "QDialog"): | def __init__(self, parent = None, desc = None, name = None, modal = 0, fl = 0, env = None, is_dialog = True): if env is None: import env # this is a little weird... probably it'll be ok, and logically it seems correct. self.desc = desc | c73ef807a157ef1b98d95dae6f4d28dad060cbcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c73ef807a157ef1b98d95dae6f4d28dad060cbcc/ParameterDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
3044,
273,
599,
16,
508,
273,
599,
16,
13010,
273,
374,
16,
1183,
273,
374,
16,
1550,
273,
599,
16,
618,
273,
315,
53,
6353,
6,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
3044,
273,
599,
16,
508,
273,
599,
16,
13010,
273,
374,
16,
1183,
273,
374,
16,
1550,
273,
599,
16,
618,
273,
315,
53,
6353,
6,
46... |
The performance issue from | The performance issue from | ... def variance(self, bias = False): | d868e3d99c0565bfa6cb057a2325bd9a9e7b1625 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/d868e3d99c0565bfa6cb057a2325bd9a9e7b1625/basic_stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
12380,
12,
2890,
16,
12005,
273,
1083,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
12380,
12,
2890,
16,
12005,
273,
1083,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def GetNumInvalidValues(self): | def GetNumInvalidValues(self, func): | def GetNumInvalidValues(self): """Overridden from Argument.""" return 2 | e1ea91c039be302d932f52103de15e4d66c29781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/e1ea91c039be302d932f52103de15e4d66c29781/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
16,
1326,
4672,
3536,
22042,
2794,
628,
5067,
12123,
327,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
16,
1326,
4672,
3536,
22042,
2794,
628,
5067,
12123,
327,
576,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sendchannel("Stimme für %s gezählt. Noch %d Stimmen nötig für OP." % (target, difference)) | sendchannel("Stimme für %s gezählt. Noch %d \ Stimmen nötig für OP." % (target, difference)) | def checkTimeOut(votes): if votes[0][1] + TIMEOUT > time(): return votes # no votes have timed out elif len(votes) > 1: return checkTimeOut(votes[1:]) # oldest vote has timed out, continue checking else: return [] # no valid vote left | 17c61548967182a27edf171b75277fa10ff63052 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14907/17c61548967182a27edf171b75277fa10ff63052/scherbengericht.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
950,
1182,
12,
27800,
4672,
309,
19588,
63,
20,
6362,
21,
65,
397,
24374,
405,
813,
13332,
327,
19588,
10792,
468,
1158,
19588,
1240,
7491,
596,
1327,
562,
12,
27800,
13,
405,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
950,
1182,
12,
27800,
4672,
309,
19588,
63,
20,
6362,
21,
65,
397,
24374,
405,
813,
13332,
327,
19588,
10792,
468,
1158,
19588,
1240,
7491,
596,
1327,
562,
12,
27800,
13,
405,
404,
... |
pepcons.append(len(hist) == 1 and "X" not in hist) | pepcons.append(len(hist) == 1) pep.append(hist.values()[0]) | def findFourFold(aln): """Returns index of all columns in alignment that are completely fourfold degenerate Assumes that columns are already filtered for aligned codons """ # create peptide alignment pepAln = mapalign(aln, valfunc=translate) # find peptide conservation pepcons = [] for i in xrange(pepAln.alignlen())... | 4e78a3e6dda4524245bc076287f770f0548defe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8482/4e78a3e6dda4524245bc076287f770f0548defe5/alignlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
42,
477,
15592,
12,
30907,
4672,
3536,
1356,
770,
434,
777,
2168,
316,
8710,
716,
854,
14416,
12792,
16007,
443,
7163,
225,
25374,
716,
2168,
854,
1818,
5105,
364,
13939,
11012,
7008... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
42,
477,
15592,
12,
30907,
4672,
3536,
1356,
770,
434,
777,
2168,
316,
8710,
716,
854,
14416,
12792,
16007,
443,
7163,
225,
25374,
716,
2168,
854,
1818,
5105,
364,
13939,
11012,
7008... |
throwstext = " throws "+string.join(self.throws, ", ") | throwstext = " throws " + COMMASPACE.join(self.throws) | def writeSource(self, out): argtext = [] for type, name in self.args[1:]: argtext.append(type+" "+name) if len(self.throws) == 0: throwstext = "" else: throwstext = " throws "+string.join(self.throws, ", ") | c7f30bbce741c6611f67361a2c2901b109a31842 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/c7f30bbce741c6611f67361a2c2901b109a31842/Statement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1830,
12,
2890,
16,
596,
4672,
1501,
955,
273,
5378,
364,
618,
16,
508,
316,
365,
18,
1968,
63,
21,
30,
14542,
1501,
955,
18,
6923,
12,
723,
9078,
13773,
529,
13,
309,
562,
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,
1045,
1830,
12,
2890,
16,
596,
4672,
1501,
955,
273,
5378,
364,
618,
16,
508,
316,
365,
18,
1968,
63,
21,
30,
14542,
1501,
955,
18,
6923,
12,
723,
9078,
13773,
529,
13,
309,
562,
12,... |
dm.setdefault(extra.lower(),[]).extend(parse_requirements(reqs)) | if extra: extra = extra.lower() dm.setdefault(extra,[]).extend(parse_requirements(reqs)) | def _dep_map(self): try: return self.__dep_map except AttributeError: dm = self.__dep_map = {None: []} for name in 'requires.txt', 'depends.txt': for extra,reqs in split_sections(self._get_metadata(name)): dm.setdefault(extra.lower(),[]).extend(parse_requirements(reqs)) return dm | ed9dc512453e631d6b2893b5cd86072811c2efd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/ed9dc512453e631d6b2893b5cd86072811c2efd7/pkg_resources.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15037,
67,
1458,
12,
2890,
4672,
775,
30,
327,
365,
16186,
15037,
67,
1458,
1335,
6394,
30,
9113,
273,
365,
16186,
15037,
67,
1458,
273,
288,
7036,
30,
5378,
97,
364,
508,
316,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15037,
67,
1458,
12,
2890,
4672,
775,
30,
327,
365,
16186,
15037,
67,
1458,
1335,
6394,
30,
9113,
273,
365,
16186,
15037,
67,
1458,
273,
288,
7036,
30,
5378,
97,
364,
508,
316,
29... |
sql = "SELECT DISTINCTROW value FROM versions" sql += " WHERE" + makeWhereClause('program', PRODUCTS) | sql = "SELECT DISTINCTROW value FROM versions" sql += " WHERE" + makeWhereClause('program', PRODUCTS) | def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bug... | c27a48bc7d3e33e259dbb1bfcf7789acafcc80b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/c27a48bc7d3e33e259dbb1bfcf7789acafcc80b3/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
24899,
1966,
16,
389,
2564,
16,
389,
1355,
16,
389,
3664,
16,
389,
3074,
16,
389,
5734,
4672,
5728,
2314,
273,
2286,
12233,
1435,
225,
468,
2236,
364,
12156,
5244,
434,
7934,
15990... |
if self.passes!=1: self.stream=DV_TMP_PATH+self.tmpfilename self.tmpfilename=self.gettmpfilename(DV_TMP_PATH,self.filenamenoext,ext) | if self.stream=='-': if self.passes==1: self.tmppassfile=DV_TMP_PATH+self.gettmpfilename(DV_TMP_PATH,self.filenamenoext,ext) else: self.stream=self.tmppassfile if self.passes!=1: self.tmpfilename=self.gettmpfilename(DV_TMP_PATH,self.filenamenoext,ext) | def run(self): self.abort=False if not self.abort: self.uri=self.uris[0] self.parent.gauge1.SetValue(0.0) self.parent.thisvideo.append(self.parent.videos[self.parent.converting]) self.filename=REGEX_FILE_CLEANUP_FILENAME.sub('',self.parent.meta[self.parent.videos[self.parent.converting]]['name']) self.profile=int(self.... | c40fdb2df1fddd26432a1c83c6925db79812c2b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/c40fdb2df1fddd26432a1c83c6925db79812c2b0/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
18623,
33,
8381,
309,
486,
365,
18,
18623,
30,
365,
18,
1650,
33,
2890,
18,
23510,
63,
20,
65,
365,
18,
2938,
18,
75,
8305,
21,
18,
694,
620,
12,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
18623,
33,
8381,
309,
486,
365,
18,
18623,
30,
365,
18,
1650,
33,
2890,
18,
23510,
63,
20,
65,
365,
18,
2938,
18,
75,
8305,
21,
18,
694,
620,
12,
20,... |
self.itemEditChannel.set_visible(True) self.itemRemoveChannel.set_visible(True) | if getattr(self.active_channel, 'ALL_EPISODES_PROXY', False): self.itemEditChannel.set_visible(False) self.itemRemoveChannel.set_visible(False) else: self.itemEditChannel.set_visible(True) self.itemRemoveChannel.set_visible(True) | def on_treeChannels_cursor_changed(self, widget, *args): ( model, iter ) = self.treeChannels.get_selection().get_selected() | 3301e92e939ba5c2c4d90d722c41b921c636b993 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/3301e92e939ba5c2c4d90d722c41b921c636b993/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3413,
10585,
67,
9216,
67,
6703,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
261,
938,
16,
1400,
262,
273,
365,
18,
3413,
10585,
18,
588,
67,
10705,
7675,
588,
67,
8109,
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,
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,
603,
67,
3413,
10585,
67,
9216,
67,
6703,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
261,
938,
16,
1400,
262,
273,
365,
18,
3413,
10585,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435,
... |
return None if not os.path.exists(tmpdir): try: os.makedirs(os.path.dirname(tmpdir), mode=0755) | return (0, None) if chroot != None: tdir = chroot+"/"+tmpdir else: tdir = tmpdir if not os.path.exists(tdir): try: os.makedirs(os.path.dirname(tdir), mode=0755) | def runScript(prog=None, script=None, otherargs=[], force=False, rusage=False, tmpdir="/var/tmp", chroot=None): """Run (script otherargs) with interpreter prog (which can be a list containing initial arguments). Return None, or getrusage() stats of the script if rusage. Disable ldconfig optimization if force. Raise ... | 1fc8cf80445525becdf49d3dac1a462c3136a76c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1fc8cf80445525becdf49d3dac1a462c3136a76c/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... |
</datafield> | </datafield> | def setUp(self): """Prepare some ideal outputs""" | e392a2b83cce91ef4d27622e150c5c79211c9eae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e392a2b83cce91ef4d27622e150c5c79211c9eae/bibformat_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return cursor.fetchall() | try: return cursor.fetchall() except: return [] | def execute(self, sql, params=[]): """ Executes the given SQL statement, with optional parameters. If the instance's debug attribute is True, prints out what it executes. """ cursor = connection.cursor() if self.debug: print " = %s" % sql, params cursor.execute(sql, params) return cursor.fetchall() | 9381e7b9cdbf9014a98d45cd120adbfeab7a6ed6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13142/9381e7b9cdbf9014a98d45cd120adbfeab7a6ed6/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1847,
16,
859,
33,
8526,
4672,
3536,
3889,
993,
326,
864,
3063,
3021,
16,
598,
3129,
1472,
18,
971,
326,
791,
1807,
1198,
1566,
353,
1053,
16,
14971,
596,
4121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1847,
16,
859,
33,
8526,
4672,
3536,
3889,
993,
326,
864,
3063,
3021,
16,
598,
3129,
1472,
18,
971,
326,
791,
1807,
1198,
1566,
353,
1053,
16,
14971,
596,
4121,
518... |
return (indent*' '+children[0]+'('+ | return (indent*' '+'@'+children[0]+'('+ | def to_epytext(tree, indent=0, seclevel=0): """ Convert a DOM tree encoding epytext back to an epytext string. This is the inverse operation from L{parse}. I.e., assuming there are no errors, the following is true: - C{parse(to_epytext(tree)) == tree} The inverse is true, except that whitespace, line wrapping, and ch... | 151adf65fde535b5a72c9d869ebf835ce8123891 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/151adf65fde535b5a72c9d869ebf835ce8123891/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
881,
93,
955,
12,
3413,
16,
3504,
33,
20,
16,
1428,
2815,
33,
20,
4672,
3536,
4037,
279,
4703,
2151,
2688,
425,
2074,
955,
1473,
358,
392,
425,
2074,
955,
533,
18,
1220,
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,
358,
67,
881,
93,
955,
12,
3413,
16,
3504,
33,
20,
16,
1428,
2815,
33,
20,
4672,
3536,
4037,
279,
4703,
2151,
2688,
425,
2074,
955,
1473,
358,
392,
425,
2074,
955,
533,
18,
1220,
353... |
self.selectAllSQLWhitelist = "SELECT %s FROM `%s`%s" % (columnSQLWhitelist, tableWhitelist, groupBySQLWhitelist) if tableBlacklist != None: columnSQLBlacklist = '`%s`' % "`, `".join(colsBlacklist) | self.selectAllSQLWhitelist = "SELECT %s FROM `%s`%s" % (columnSQLWhitelist, self.tableWhitelist, groupBySQLWhitelist) if self.tableBlacklist != None: | def start(self): if self.factory == None: raise ParamError("this module need reference to fatory and database connection pool") | 2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
file.Write(" GenGLObjects<GL%sHelper>(n, %s);\n" % | file.Write(" if (!GenGLObjects<GL%sHelper>(n, %s)) {\n" " return parse_error::kParseInvalidArguments;\n" " }\n" % | def WriteImmediateHandlerImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write(" GenGLObjects<GL%sHelper>(n, %s);\n" % (func.original_name, func.GetLastOriginalArg().name)) | 8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1503,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
225,
309,
16051,
7642,
11261,
4710,
32,
11261,
9,
87,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1503,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
225,
309,
16051,
7642,
11261,
4710,
32,
11261,
9,
87,
22... |
server = StoppableHttpServer(('', int(port)), StoppableHttpRequestHandler) | server = StoppableHttpServer(('localhost', int(port)), StoppableHttpRequestHandler) | def start_server(port=DEFAULT_PORT): print "Demo application starting on port %s" % port root = os.path.dirname(os.path.abspath(__file__)) os.chdir(root) server = StoppableHttpServer(('', int(port)), StoppableHttpRequestHandler) server.serve_forever() | 82bc079334cecdeee503243d1f763e6e7a4b04d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2148/82bc079334cecdeee503243d1f763e6e7a4b04d6/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3567,
12,
655,
33,
5280,
67,
6354,
4672,
1172,
315,
27126,
2521,
5023,
603,
1756,
738,
87,
6,
738,
1756,
1365,
225,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3567,
12,
655,
33,
5280,
67,
6354,
4672,
1172,
315,
27126,
2521,
5023,
603,
1756,
738,
87,
6,
738,
1756,
1365,
225,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113... |
typecode = None if format in (pygame.AUDIO_S8, pygame.AUDIO_S16LSB, pygame.AUDIO_S16MSB): typecode = (numpy.uint8, numpy.uint16, None, numpy.uint32)[fmtbytes - 1] else: typecode = (numpy.int8, numpy.int16, None, numpy.int32)[fmtbytes - 1] | typecode = { 8 : numpy.uint8, 16 : numpy.uint16, -8 : numpy.int8, -16 : numpy.int16 }[info[1]] | def samples (sound): """ """ # Info is a (freq, format, stereo) tuple info = pygame.mixer.get_init () if not info: raise pygame.error, "Mixer not initialized" fmtbytes = (abs (info[1]) & 0xff) >> 3 channels = mixer.get_num_channels () data = sound.get_buffer () shape = (data.length / channels * fmtbytes, ) if channels... | da0bcce5e530d0f9eb7bdd9211d2f405671a9945 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/da0bcce5e530d0f9eb7bdd9211d2f405671a9945/_numpysndarray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5216,
261,
29671,
4672,
3536,
3536,
468,
3807,
353,
279,
261,
10212,
16,
740,
16,
29558,
13,
3193,
1123,
273,
2395,
13957,
18,
14860,
264,
18,
588,
67,
2738,
1832,
309,
486,
1123,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5216,
261,
29671,
4672,
3536,
3536,
468,
3807,
353,
279,
261,
10212,
16,
740,
16,
29558,
13,
3193,
1123,
273,
2395,
13957,
18,
14860,
264,
18,
588,
67,
2738,
1832,
309,
486,
1123,
30,
... |
frame = 1 nc.close() log.info("Current frame number is: %i" % (frame-1)) | if hasattr(self,'atoms'): frame = 1 else: frame = 0 log.info("Current frame number is: %i" % (frame-1)) | def _set_frame_number(self, frame=None): 'set framenumber in the netcdf file' if frame is None: nc = netCDF(self.nc, 'r') if 'TotalEnergy' in nc.variables: frame = nc.variables['TotalEnergy'].shape[0] # make sure the last energy is reasonable. Sometime # the field is empty if the calculation ran out of # walltime for ... | 7d02f026851de4efa926b3c4fa391648177b9443 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/7d02f026851de4efa926b3c4fa391648177b9443/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
3789,
67,
2696,
12,
2890,
16,
2623,
33,
7036,
4672,
296,
542,
21799,
21998,
316,
326,
2901,
24799,
585,
11,
225,
309,
2623,
353,
599,
30,
8194,
273,
2901,
39,
4577,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
3789,
67,
2696,
12,
2890,
16,
2623,
33,
7036,
4672,
296,
542,
21799,
21998,
316,
326,
2901,
24799,
585,
11,
225,
309,
2623,
353,
599,
30,
8194,
273,
2901,
39,
4577,
12,
... |
self.startPos = self.roi.lowerRight() | self.startPos = self.roi.lowerRight() - Diff2D(1,1) | def mousePressed(self, x, y, button): if self._painting and button == qt.Qt.RightButton: self._stopPainting() self.setROI(self._oldROI) return if button != qt.Qt.LeftButton: return if self.roi: mousePos = self._viewer.toWindowCoordinates(x, y) wr = self.windowRect() print (mousePos - wr.topLeft()).manhattanLength() if ... | 66ec2e44c5ec7238ba11d6b92cd130947baef15e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/66ec2e44c5ec7238ba11d6b92cd130947baef15e/mapdisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
24624,
12,
2890,
16,
619,
16,
677,
16,
3568,
4672,
309,
365,
6315,
84,
1598,
310,
471,
3568,
422,
25672,
18,
23310,
18,
4726,
3616,
30,
365,
6315,
5681,
12699,
310,
1435,
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,
7644,
24624,
12,
2890,
16,
619,
16,
677,
16,
3568,
4672,
309,
365,
6315,
84,
1598,
310,
471,
3568,
422,
25672,
18,
23310,
18,
4726,
3616,
30,
365,
6315,
5681,
12699,
310,
1435,
365,
18... |
def create(*args): return apply(_quickfix.MemoryStoreFactory_create, args) def destroy(*args): return apply(_quickfix.MemoryStoreFactory_destroy, args) def __init__(self, *args): this = apply(_quickfix.new_MemoryStoreFactory, args) | def create(*args): return _quickfix.MemoryStoreFactory_create(*args) def destroy(*args): return _quickfix.MemoryStoreFactory_destroy(*args) def __init__(self, *args): this = _quickfix.new_MemoryStoreFactory(*args) | def create(*args): return apply(_quickfix.MemoryStoreFactory_create, args) | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
30857,
1968,
4672,
327,
2230,
24899,
19525,
904,
18,
6031,
2257,
1733,
67,
2640,
16,
833,
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,
752,
30857,
1968,
4672,
327,
2230,
24899,
19525,
904,
18,
6031,
2257,
1733,
67,
2640,
16,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def ApplyConvolution(self, imagedata): | def ApplyConvolution(self, imagedata, update_progress = None): | def ApplyConvolution(self, imagedata): number_filters = len(self.config['convolutionFilters']) if number_filters: update_progress= vtk_utils.ShowProgress(number_filters) for filter in self.config['convolutionFilters']: convolve = vtk.vtkImageConvolve() convolve.SetInput(imagedata) convolve.SetKernel5x5([i/60.0 for i in... | b6b1506bed151f054fc20b54bb85121814549987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/b6b1506bed151f054fc20b54bb85121814549987/volume.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
17467,
5889,
12,
2890,
16,
8902,
329,
396,
16,
1089,
67,
8298,
273,
599,
4672,
1300,
67,
6348,
273,
562,
12,
2890,
18,
1425,
3292,
4896,
5889,
5422,
19486,
309,
1300,
67,
6348,
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,
5534,
17467,
5889,
12,
2890,
16,
8902,
329,
396,
16,
1089,
67,
8298,
273,
599,
4672,
1300,
67,
6348,
273,
562,
12,
2890,
18,
1425,
3292,
4896,
5889,
5422,
19486,
309,
1300,
67,
6348,
3... |
wmproxy = self.wmproxyInit( wms ) | def doWMScancel( self, jobList, service): """ Kill jobs submitted to a given WMS. Does not perform status check """ | 19380de804a6491834bb51bd1ac64fed6b6d7716 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/19380de804a6491834bb51bd1ac64fed6b6d7716/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
25173,
7972,
2183,
12,
365,
16,
1719,
682,
16,
1156,
4672,
3536,
20520,
6550,
9638,
358,
279,
864,
678,
3537,
18,
9637,
486,
3073,
1267,
866,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
741,
25173,
7972,
2183,
12,
365,
16,
1719,
682,
16,
1156,
4672,
3536,
20520,
6550,
9638,
358,
279,
864,
678,
3537,
18,
9637,
486,
3073,
1267,
866,
3536,
2,
-100,
-100,
-100,
-100,
-100,
... | |
""" Returns a list of Boolean columns. """ | """Return a list of Boolean columns.""" | def get_bools(self): """ Returns a list of Boolean columns. """ return [col for col in self.model.c.keys() if isinstance(self.model.c[col].type, Boolean)] | 8ed969f42696996ee506bc295016810685eb5120 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13203/8ed969f42696996ee506bc295016810685eb5120/formalchemy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1075,
3528,
12,
2890,
4672,
3536,
990,
279,
666,
434,
3411,
2168,
12123,
327,
306,
1293,
364,
645,
316,
365,
18,
2284,
18,
71,
18,
2452,
1435,
309,
1549,
12,
2890,
18,
2284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
1075,
3528,
12,
2890,
4672,
3536,
990,
279,
666,
434,
3411,
2168,
12123,
327,
306,
1293,
364,
645,
316,
365,
18,
2284,
18,
71,
18,
2452,
1435,
309,
1549,
12,
2890,
18,
2284,
... |
write=file.write tfile.seek(0) id=self._serial user, desc, ext = self._ude tlen=self._thl pos=self._pos file.seek(pos) tl=tlen+dlen stl=p64(tl) try: write(pack( ">8s" "8s" "c" "H" "H" "H" ,id, stl, 'c', len(user), len(desc), len(ext), )) if user: write(user) if desc: write(desc) if ext: write(ext) ... | file.seek(self._pos+16) file.write(self._tstatus) file.flush() if fsync is not None: fsync(file.fileno()) self._pos=self._nextpos | def _finish(self, tid, u, d, e): tfile=self._tfile dlen=tfile.tell() if not dlen: return # No data in this trans file=self._file write=file.write tfile.seek(0) id=self._serial user, desc, ext = self._ude | e9aa3bd398cba329c8a421eb6d47f4dba6e400a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e9aa3bd398cba329c8a421eb6d47f4dba6e400a9/FileStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13749,
12,
2890,
16,
11594,
16,
582,
16,
302,
16,
425,
4672,
268,
768,
33,
2890,
6315,
88,
768,
302,
1897,
33,
88,
768,
18,
88,
1165,
1435,
309,
486,
302,
1897,
30,
327,
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,
13749,
12,
2890,
16,
11594,
16,
582,
16,
302,
16,
425,
4672,
268,
768,
33,
2890,
6315,
88,
768,
302,
1897,
33,
88,
768,
18,
88,
1165,
1435,
309,
486,
302,
1897,
30,
327,
468,
... |
self.l0.SetLabel( "resized (%d)" %(ch1.GetId()) ) | self.l0.SetLabel( "resized (%d)" %(self.ch1.GetId()) ) | def OnTestResizeButton(self, event): curWidth = self.ch1.GetTotalUIExtent() if (self.stepSize == 1): self.stepDir = (-1) else: if (self.stepSize == (-1)): self.stepDir = 1 self.stepSize = self.stepSize + self.stepDir self.ch1.DoSetSize( 20, 40, curWidth + 40 * self.stepSize, 20, 0 ) self.l0.SetLabel( "resized (%d)" %(c... | 559e8e9b8c0ac49102810f4a0e2e93d1ea05e238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/559e8e9b8c0ac49102810f4a0e2e93d1ea05e238/ColumnHeader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4709,
12182,
3616,
12,
2890,
16,
871,
4672,
662,
2384,
273,
365,
18,
343,
21,
18,
967,
5269,
5370,
17639,
1435,
309,
261,
2890,
18,
4119,
1225,
422,
404,
4672,
365,
18,
4119,
162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4709,
12182,
3616,
12,
2890,
16,
871,
4672,
662,
2384,
273,
365,
18,
343,
21,
18,
967,
5269,
5370,
17639,
1435,
309,
261,
2890,
18,
4119,
1225,
422,
404,
4672,
365,
18,
4119,
162... |
host = user + ':' + passwd + '@' + host | host = quote(user, safe='') + ':' + quote(passwd, safe='') + '@' + host | def retry_http_basic_auth(self, url, realm, data=None): host, selector = splithost(url) i = host.find('@') + 1 host = host[i:] user, passwd = self.get_user_passwd(host, realm, i) if not (user or passwd): return None host = user + ':' + passwd + '@' + host newurl = 'http://' + host + selector if data is None: return sel... | 9db85c3337c23b18f5007361dc55da721a182171 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9db85c3337c23b18f5007361dc55da721a182171/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
16,
501,
33,
7036,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
1479,
18,
4720,
2668,
36,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
16,
501,
33,
7036,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
1479,
18,
4720,
2668,
36,
6134... |
return self.message | return self.msg | def __str__(self): return self.message | b5027f778753355f1d9ebf8cb4725d6056a3f0a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/b5027f778753355f1d9ebf8cb4725d6056a3f0a3/NodeSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
2150,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
2150,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
support.unlink(temp_mod_name + '.py') support.unlink(temp_mod_name + '.pyc') support.unlink(temp_mod_name + '.pyo') support.unlink(init_file_name + '.py') support.unlink(init_file_name + '.pyc') support.unlink(init_file_name + '.pyo') | for ext in ('.py', '.pyc', '.pyo'): support.unlink(temp_mod_name + ext) support.unlink(init_file_name + ext) | def test_issue5604(self): # Test cannot cover imp.load_compiled function. # Martin von Loewis note what shared library cannot have non-ascii # character because init_xxx function cannot be compiled # and issue never happens for dynamic modules. # But sources modified to follow generic way for processing pathes. | 86189641773faed2acbe1dd3617488b44d6404fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/86189641773faed2acbe1dd3617488b44d6404fc/test_imp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13882,
4313,
3028,
12,
2890,
4672,
468,
7766,
2780,
5590,
1646,
18,
945,
67,
19397,
445,
18,
468,
490,
485,
267,
331,
265,
3176,
359,
291,
4721,
4121,
5116,
5313,
2780,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13882,
4313,
3028,
12,
2890,
4672,
468,
7766,
2780,
5590,
1646,
18,
945,
67,
19397,
445,
18,
468,
490,
485,
267,
331,
265,
3176,
359,
291,
4721,
4121,
5116,
5313,
2780,
1240,
... |
if rosen == 1: x = 1.5*x y = 0.5 + y | x = 1.5*x y = 0.5 + y | def main(): rosen = 1 x = (arange(XPTS) - (XPTS / 2)) / float(XPTS / 2) y = (arange(YPTS) - (YPTS / 2)) / float(YPTS / 2) if rosen == 1: x = 1.5*x y = 0.5 + y x.shape = (-1,1) r2 = (x*x) + (y*y) z = (1. - x)*(1. - x) + 100 * (x*x - y)*(x*x - y) # The log argument may be zero for just the right grid. */ z = log(choose... | 27e6ffd3271b6aa3025cba28cd49552fbcd14956 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2933/27e6ffd3271b6aa3025cba28cd49552fbcd14956/plplot_logo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
721,
87,
275,
273,
404,
619,
273,
261,
297,
726,
12,
60,
1856,
55,
13,
300,
261,
60,
1856,
55,
342,
576,
3719,
342,
1431,
12,
60,
1856,
55,
342,
576,
13,
677,
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,
2774,
13332,
225,
721,
87,
275,
273,
404,
619,
273,
261,
297,
726,
12,
60,
1856,
55,
13,
300,
261,
60,
1856,
55,
342,
576,
3719,
342,
1431,
12,
60,
1856,
55,
342,
576,
13,
677,
273... |
def __init__(self, application, config): | def __init__(self, application, config, dispatching_config=CONFIG): | def __init__(self, application, config): """ This delegates all requests to `application`, adding a *copy* of the configuration `config`. """ def register_config(environ, start_response): popped_config = None if 'paste.config' in environ: popped_config = environ['paste.config'] | 2e91c6f87a54d2f0b0714bb9d77eb77c5a08462d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/2e91c6f87a54d2f0b0714bb9d77eb77c5a08462d/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
16,
642,
16,
3435,
310,
67,
1425,
33,
7203,
4672,
3536,
1220,
22310,
777,
3285,
358,
1375,
3685,
9191,
6534,
279,
380,
3530,
14,
434,
326,
1664,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
16,
642,
16,
3435,
310,
67,
1425,
33,
7203,
4672,
3536,
1220,
22310,
777,
3285,
358,
1375,
3685,
9191,
6534,
279,
380,
3530,
14,
434,
326,
1664,
13... |
ctx.Set("alert.assessment.impact.description", source + "has repeated actions taken against it recently at least 5 times. It may have been infected with a worm.") | ctx.Set("alert.assessment.impact.description", source + " has repeated actions taken against it recently at least 5 times. It may have been infected with a worm.") | def run(self, idmef): ctxt = idmef.Get("alert.classification.text") if not ctxt: return | 6ef8076667b0ec142470eec5b5f270330696a547 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3386/6ef8076667b0ec142470eec5b5f270330696a547/worm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
612,
3501,
74,
4672,
14286,
273,
612,
3501,
74,
18,
967,
2932,
11798,
18,
20251,
18,
955,
7923,
309,
486,
14286,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
612,
3501,
74,
4672,
14286,
273,
612,
3501,
74,
18,
967,
2932,
11798,
18,
20251,
18,
955,
7923,
309,
486,
14286,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
>>> context = Context.from_request(req, 'source', 'trunk/foo.py', 123) | >>> context = Context.from_request(req, 'source', '/trunk/foo.py', 123) | def render_summary(self, req, config, build, step, category): assert category == 'coverage' | 5bc70454bfc3d736144870055b656c6286ec5b82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/5bc70454bfc3d736144870055b656c6286ec5b82/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
7687,
12,
2890,
16,
1111,
16,
642,
16,
1361,
16,
2235,
16,
3150,
4672,
1815,
3150,
422,
296,
16356,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
7687,
12,
2890,
16,
1111,
16,
642,
16,
1361,
16,
2235,
16,
3150,
4672,
1815,
3150,
422,
296,
16356,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
from schooltool.calendar.icalendar import RowParser | from schooltool.calendar.icalendar import RowParser, ICalParseError | def test_parseRow(self): from schooltool.calendar.icalendar import RowParser parseRow = RowParser._parseRow self.assertEqual(parseRow("key:"), ("KEY", "", {})) self.assertEqual(parseRow("key:value"), ("KEY", "value", {})) self.assertEqual(parseRow("key:va:lu:e"), ("KEY", "va:lu:e", {})) self.assertRaises(ICalParseError... | 89713591dbf5fbfa1a6fd4867ca2311ab69bca56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/89713591dbf5fbfa1a6fd4867ca2311ab69bca56/test_icalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
1999,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
11650,
18,
1706,
2843,
1930,
6556,
2678,
16,
467,
3005,
21004,
1109,
1999,
273,
6556,
2678,
6315,
2670,
1999,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
1999,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
11650,
18,
1706,
2843,
1930,
6556,
2678,
16,
467,
3005,
21004,
1109,
1999,
273,
6556,
2678,
6315,
2670,
1999,
365,
18,
1... |
s_uid = credDict['username'] s_gid = credDict['group'] result = self.findUser(s_uid) if not result['OK']: return result uid = result['Value'] result = self.findGroup(s_gid) if not result['OK']: return result gid = result['Value'] | def getReplicas(self,lfns,credDict): """ Get Replicas for the given LFNs """ s_uid = credDict['username'] s_gid = credDict['group'] result = self.findUser(s_uid) if not result['OK']: return result uid = result['Value'] result = self.findGroup(s_gid) if not result['OK']: return result gid = result['Value'] result = che... | 7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8/FileCatalogDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
10528,
12,
2890,
16,
20850,
2387,
16,
20610,
5014,
4672,
3536,
968,
31222,
364,
326,
864,
18803,
10386,
3536,
225,
563,
273,
10788,
1630,
12,
20850,
2387,
13,
309,
486,
563,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
10528,
12,
2890,
16,
20850,
2387,
16,
20610,
5014,
4672,
3536,
968,
31222,
364,
326,
864,
18803,
10386,
3536,
225,
563,
273,
10788,
1630,
12,
20850,
2387,
13,
309,
486,
563,
3292,
... | |
pname = self._text_to_latex(param.name()) str += ' '*10+'\\item[' + self._text_to_latex(pname) | str += ' '*10+'\\item[' + self._text_to_latex(param.name()) | def _func_list_box(self, link, cls): str = '' fname = link.name() fuid = link.target() if fuid.is_method() or fuid.is_builtin_method(): container = fuid.cls() # (If container==ClassType, it's (probably) a class method.) inherit = (container != cls and container.value() is not types.ClassType) else: inherit = 0 try: con... | d246bf0e65f24e5066780f8c636107f08490f619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/d246bf0e65f24e5066780f8c636107f08490f619/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
1098,
67,
2147,
12,
2890,
16,
1692,
16,
2028,
4672,
609,
273,
875,
5299,
273,
1692,
18,
529,
1435,
284,
1911,
273,
1692,
18,
3299,
1435,
309,
284,
1911,
18,
291,
67,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
1098,
67,
2147,
12,
2890,
16,
1692,
16,
2028,
4672,
609,
273,
875,
5299,
273,
1692,
18,
529,
1435,
284,
1911,
273,
1692,
18,
3299,
1435,
309,
284,
1911,
18,
291,
67,
20... |
query = subepxr + '\nLIMIT %d,18446744073709551615' % expr.offset | query = subexpr + '\nLIMIT %d,18446744073709551615' % expr.offset | def OffsetLimit(self, expr, subexpr): # Check that we have some kind of SELECT expression in subexpr allowed = [nodes.MapResult, nodes.Select, nodes.Sort, nodes.Distinct] assert expr[0].__class__ in allowed, \ 'OffsetLimit can only be used with the result of MapResult, Select, ' \ 'Distinct or Sort!' # Add LIMIT cla... | ddd2842306c57d5b14c394931ef43cbb91123514 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5223/ddd2842306c57d5b14c394931ef43cbb91123514/emit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9874,
3039,
12,
2890,
16,
3065,
16,
720,
8638,
4672,
225,
468,
2073,
716,
732,
1240,
2690,
3846,
434,
9111,
2652,
316,
720,
8638,
2935,
273,
306,
4690,
18,
863,
1253,
16,
2199,
18,
339... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9874,
3039,
12,
2890,
16,
3065,
16,
720,
8638,
4672,
225,
468,
2073,
716,
732,
1240,
2690,
3846,
434,
9111,
2652,
316,
720,
8638,
2935,
273,
306,
4690,
18,
863,
1253,
16,
2199,
18,
339... |
uninstaller = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; for subdir in ListRegistryKeys(uninstaller): if (subdir[0]=="{"): dir = GetRegistryKey(uninstaller+"\\"+subdir, "InstallLocation") if (dir != 0): if ((SDK.has_key("DX8")==0) and (os.path.isfile(dir+"\\Include\\d3d8.h")) and (os.path.isfile(dir+"\\... | if (SDK.has_key("DX9")==0): dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (March 2009)", "InstallPath") if (dir != 0): SDK["DX9"] = dir.replace("\\", "/").rstrip("/") if (SDK.has_key("DX9")==0 or SDK.has_key("DX8")==0): uninstaller = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"... | def SdkLocateDirectX(): if (sys.platform != "win32"): return if (os.path.isdir("sdks/directx8")): SDK["DX8"]="sdks/directx8" if (os.path.isdir("sdks/directx9")): SDK["DX9"]="sdks/directx9" uninstaller = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; for subdir in ListRegistryKeys(uninstaller): if (subdir[0]... | d427b8559f45445bbcac60bc2895b411d93ef9b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/d427b8559f45445bbcac60bc2895b411d93ef9b3/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3426,
1333,
340,
5368,
60,
13332,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
327,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20907,
87,
19,
7205,
92,
28,
6,
3719,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3426,
1333,
340,
5368,
60,
13332,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
327,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20907,
87,
19,
7205,
92,
28,
6,
3719,
30,... |
{'becquerel':'SI derived unit of radiation.\nDefined to be the activity of a quantity of radioactive material in which one nucleus decays per second.', 'curie':'Defined to be 37*10^9 becquerels.', 'rutherford':'Defined to be 10^6 becquerels.'}, | {'becquerel':'SI derived unit of radiation.\nDefined to be the activity of a quantity of radioactive material in which one nucleus decays per second.', 'curie':'Defined to be 37*10^9 becquerels.', 'rutherford':'Defined to be 10^6 becquerels.'}, | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | 04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
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,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
self.channel_count = codec_param.info.channel_count | self.channel_count = codec_param.info.channel_cnt | def __init__(self, codec_info, codec_param): self.name = codec_info.id self.priority = codec_info.priority self.clock_rate = codec_param.info.clock_rate self.channel_count = codec_param.info.channel_count self.avg_bps = codec_param.info.avg_bps self.frm_ptime = codec_param.info.frm_ptime self.ptime = codec_param.info.f... | ab3b8bde18a012a34991ed441fb38c325cb113ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4447/ab3b8bde18a012a34991ed441fb38c325cb113ab/pjsua.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9196,
67,
1376,
16,
9196,
67,
891,
4672,
365,
18,
529,
273,
9196,
67,
1376,
18,
350,
365,
18,
8457,
273,
9196,
67,
1376,
18,
8457,
365,
18,
18517,
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,
1001,
2738,
972,
12,
2890,
16,
9196,
67,
1376,
16,
9196,
67,
891,
4672,
365,
18,
529,
273,
9196,
67,
1376,
18,
350,
365,
18,
8457,
273,
9196,
67,
1376,
18,
8457,
365,
18,
18517,
67,
... |
control.style, control.styles = self.styles([], defaultControlStyle) | control.style, control.styles = self.styles([], thisDefaultStyle) if self.token==",": self.getToken() control.styleEx, control.stylesEx = self.styles([], defaultControlStyleEx) | def controls(self, dlg): if self.token=="BEGIN": self.getToken() while self.token!="END": control = ControlDef() control.controlType = self.token; #print self.token self.getToken() if self.token[0:1]=='"': control.label = self.token[1:-1] self.getCommaToken() self.getToken() elif self.token.isdigit(): control.label = s... | 6607b8df7f10522d254a3356f18efd66dfcaef31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/6607b8df7f10522d254a3356f18efd66dfcaef31/win32rcparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11022,
12,
2890,
16,
25840,
4672,
309,
365,
18,
2316,
31713,
16061,
6877,
365,
18,
588,
1345,
1435,
1323,
365,
18,
2316,
5,
1546,
4415,
6877,
3325,
273,
8888,
3262,
1435,
3325,
18,
7098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11022,
12,
2890,
16,
25840,
4672,
309,
365,
18,
2316,
31713,
16061,
6877,
365,
18,
588,
1345,
1435,
1323,
365,
18,
2316,
5,
1546,
4415,
6877,
3325,
273,
8888,
3262,
1435,
3325,
18,
7098,... |
sage: print {L : 0} | sage: {L : 0} | def set_immutable(self): """ A latin square is immutable if the underlying matrix is immutable. | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
381,
5146,
12,
2890,
4672,
3536,
432,
30486,
8576,
353,
11732,
309,
326,
6808,
3148,
353,
11732,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
381,
5146,
12,
2890,
4672,
3536,
432,
30486,
8576,
353,
11732,
309,
326,
6808,
3148,
353,
11732,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if diffhelpers.testhunk(old, self.lines, start) == 0: | if self.skew == 0 and diffhelpers.testhunk(old, self.lines, start) == 0: | def apply(self, h): if not h.complete(): raise PatchError(_("bad hunk #%d %s (%d %d %d %d)") % (h.number, h.desc, len(h.a), h.lena, len(h.b), h.lenb)) | 0f196125119ac38a360d5bcd5231bc8a0e967297 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/0f196125119ac38a360d5bcd5231bc8a0e967297/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
366,
4672,
309,
486,
366,
18,
6226,
13332,
1002,
12042,
668,
24899,
2932,
8759,
366,
1683,
31974,
72,
738,
87,
6142,
72,
738,
72,
738,
72,
738,
72,
2225,
13,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
366,
4672,
309,
486,
366,
18,
6226,
13332,
1002,
12042,
668,
24899,
2932,
8759,
366,
1683,
31974,
72,
738,
87,
6142,
72,
738,
72,
738,
72,
738,
72,
2225,
13,
738,
... |
fmts = self.db.FIELD_MAP['formats'] | fmts = FM['formats'] | def stanza(self, search=None, sortby=None, authorid=None, tagid=None, seriesid=None, offset=0): 'Feeds to read calibre books on a ipod with stanza.' books = [] updated = self.db.last_modified() offset = int(offset) cherrypy.response.headers['Last-Modified'] = self.last_modified(updated) cherrypy.response.headers['Conte... | 37bfe8109d9f641424f8ff122cea79b8ee9f279e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/37bfe8109d9f641424f8ff122cea79b8ee9f279e/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21650,
12,
2890,
16,
1623,
33,
7036,
16,
1524,
1637,
33,
7036,
16,
2869,
350,
33,
7036,
16,
1047,
350,
33,
7036,
16,
4166,
350,
33,
7036,
16,
1384,
33,
20,
4672,
296,
8141,
87,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21650,
12,
2890,
16,
1623,
33,
7036,
16,
1524,
1637,
33,
7036,
16,
2869,
350,
33,
7036,
16,
1047,
350,
33,
7036,
16,
4166,
350,
33,
7036,
16,
1384,
33,
20,
4672,
296,
8141,
87,
358,
... |
def testEcho (self): | def test_echo(self): """Basic test of an SSL client connecting to a server""" | def testEcho (self): | cb62a4cb12d8f0f9904d111d93c76ea857434a52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/cb62a4cb12d8f0f9904d111d93c76ea857434a52/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
19704,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
19704,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.entry.flags() & gtk.HAS_FOCUS == True and intfocus == False: x -= focus_width y -= focus_width width += 2 * focus_width height += 2 * focus_width | if self.entry.flags() & gtk.HAS_FOCUS == gtk.HAS_FOCUS and intfocus == False: x -= focuswidth y -= focuswidth width += 2 * focuswidth height += 2 * focuswidth | def __cb_expose(self, widget, data): "Draws the widget borders on expose" | 38cfd53714c267fc1dad586b6f8ccc61c6d58cd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11787/38cfd53714c267fc1dad586b6f8ccc61c6d58cd1/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7358,
67,
338,
4150,
12,
2890,
16,
3604,
16,
501,
4672,
315,
25113,
326,
3604,
24028,
603,
15722,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7358,
67,
338,
4150,
12,
2890,
16,
3604,
16,
501,
4672,
315,
25113,
326,
3604,
24028,
603,
15722,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
output = [""] * 18 | cols = Columns(18) | def shlomif_main(args): print_ts = 0 if (args[1] == "-t"): print_ts = 1 args.pop(0) game_num = long(args[1]) if (len(args) >= 3): which_game = args[2] else: which_game = "freecell" game_chooser = WhichGame() game_class = game_chooser.lookup(which_game) if ((which_game == "der_katz") or (which_game == "der_katzenschw... | 4dc67ff01e485de10dd8b31089e52a02e7f542a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2756/4dc67ff01e485de10dd8b31089e52a02e7f542a4/make_pysol_freecell_board.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
699,
80,
362,
430,
67,
5254,
12,
1968,
4672,
1172,
67,
3428,
273,
374,
309,
261,
1968,
63,
21,
65,
422,
3701,
88,
6,
4672,
1172,
67,
3428,
273,
404,
833,
18,
5120,
12,
20,
13,
7920... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
699,
80,
362,
430,
67,
5254,
12,
1968,
4672,
1172,
67,
3428,
273,
374,
309,
261,
1968,
63,
21,
65,
422,
3701,
88,
6,
4672,
1172,
67,
3428,
273,
404,
833,
18,
5120,
12,
20,
13,
7920... |
dbg("bits = %s" % repr(bits)) | ddbg("bits = %s" % repr(bits)) | def parse_telnet(self, data): odata = data data = re.sub(BareLF, '\\1', data) data = data.replace('\015\000', '') data = data.replace('\000', '') | 528aaa06b6d1da43df857560969166229ecd0f23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/528aaa06b6d1da43df857560969166229ecd0f23/debugserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
19261,
2758,
12,
2890,
16,
501,
4672,
320,
892,
273,
501,
501,
273,
283,
18,
1717,
12,
31242,
9105,
16,
3718,
21,
2187,
501,
13,
501,
273,
501,
18,
2079,
2668,
64,
1611,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
67,
19261,
2758,
12,
2890,
16,
501,
4672,
320,
892,
273,
501,
501,
273,
283,
18,
1717,
12,
31242,
9105,
16,
3718,
21,
2187,
501,
13,
501,
273,
501,
18,
2079,
2668,
64,
1611,
25... |
self.assertEqual(p.ppid, 0) | self.assertTrue(p.ppid in (0, 1)) | def test_pid_0(self): # Process(0) is supposed to work on all platforms even if with # some differences p = psutil.Process(0) if WINDOWS: self.assertEqual(p.name, 'System Idle Process') elif LINUX: self.assertEqual(p.name, 'sched') elif BSD: self.assertEqual(p.name, 'swapper') elif OSX: self.assertEqual(p.name, 'kernel... | efaff43ee063317b59131fcf5773d186f744f464 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/efaff43ee063317b59131fcf5773d186f744f464/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6610,
67,
20,
12,
2890,
4672,
468,
4389,
12,
20,
13,
353,
18405,
358,
1440,
603,
777,
17422,
5456,
309,
598,
468,
2690,
16440,
293,
273,
27024,
18,
2227,
12,
20,
13,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6610,
67,
20,
12,
2890,
4672,
468,
4389,
12,
20,
13,
353,
18405,
358,
1440,
603,
777,
17422,
5456,
309,
598,
468,
2690,
16440,
293,
273,
27024,
18,
2227,
12,
20,
13,
309,
2... |
def gaussian_binomial(n,k,q): | def gaussian_binomial(n,k,q=None): | def gaussian_binomial(n,k,q): r""" Return the gaussian binomial $$ \binom{n}{k}_q = \frac{(1-q^m)(1-q^{m-1})\cdots (1-q^{m-r+1})} {(1-q)(1-q^2)\cdots (1-q^r)}. $$ EXAMPLES: sage: gaussian_binomial(5,1,2) 31 AUTHOR: David Joyner and William Stein """ n = integer_ring.ZZ(misc.prod([1 - q**i for i in range((n-k+1),n+1)]... | c9a0605a9346b0ae7e5c2960e6b36593a0c8f095 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c9a0605a9346b0ae7e5c2960e6b36593a0c8f095/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21490,
67,
4757,
11496,
12,
82,
16,
79,
16,
85,
33,
7036,
4672,
436,
8395,
2000,
326,
21490,
4158,
11496,
5366,
521,
4757,
362,
95,
82,
8637,
79,
9044,
85,
273,
521,
22187,
95,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21490,
67,
4757,
11496,
12,
82,
16,
79,
16,
85,
33,
7036,
4672,
436,
8395,
2000,
326,
21490,
4158,
11496,
5366,
521,
4757,
362,
95,
82,
8637,
79,
9044,
85,
273,
521,
22187,
95,
12,
2... |
field = str(message.get_payload()) | field = self.__get_body(message) | def get_messages(self): | a3b48f3ff1e058545c86b5f6370bb7be548abfcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10886/a3b48f3ff1e058545c86b5f6370bb7be548abfcd/analyzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6833,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6833,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
instr = project.JokosherObjectFromString("I" + self.instr_id) | instr = project.JokosherObjectFromString("I" + str(self.instr_id)) | def Execute(self, project): instr = project.JokosherObjectFromString("I" + self.instr_id) instr.addEventFromURL(self.event_start, self.url) | 68f561deef28b6cb0ef8d9cff44db074cd30b067 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/68f561deef28b6cb0ef8d9cff44db074cd30b067/IncrementalSave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
1984,
4672,
16170,
273,
1984,
18,
46,
601,
538,
1614,
921,
9193,
2932,
45,
6,
397,
609,
12,
2890,
18,
267,
701,
67,
350,
3719,
16170,
18,
1289,
1133,
1265,
1785,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
1984,
4672,
16170,
273,
1984,
18,
46,
601,
538,
1614,
921,
9193,
2932,
45,
6,
397,
609,
12,
2890,
18,
267,
701,
67,
350,
3719,
16170,
18,
1289,
1133,
1265,
1785,
... |
param_nodes[param].insert(1, nodes.Text(' (%s)' % type)) | param_nodes[param][1:1] = type | def handle_doc_fields(node, env): # don't traverse, only handle field lists that are immediate children for child in node.children: if not isinstance(child, nodes.field_list): continue params = None param_nodes = {} param_types = {} new_list = nodes.field_list() for field in child: fname, fbody = field try: typ, obj = ... | 44b0929669b2fd7992ebda4e1d4e70134e3cb50e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/44b0929669b2fd7992ebda4e1d4e70134e3cb50e/desc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2434,
67,
2821,
12,
2159,
16,
1550,
4672,
468,
2727,
1404,
10080,
16,
1338,
1640,
652,
6035,
716,
854,
14483,
2325,
364,
1151,
316,
756,
18,
5906,
30,
309,
486,
1549,
12,
362... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2434,
67,
2821,
12,
2159,
16,
1550,
4672,
468,
2727,
1404,
10080,
16,
1338,
1640,
652,
6035,
716,
854,
14483,
2325,
364,
1151,
316,
756,
18,
5906,
30,
309,
486,
1549,
12,
362... |
f(1, 2, 3, *UserList([4, 5]) | f(1, 2, 3, *UserList([4, 5])) | def h(j=1, a=2, h=3): print j, a, h | 003663d78372a33ddbc57594d0176fa39996a84d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/003663d78372a33ddbc57594d0176fa39996a84d/test_extcall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
12,
78,
33,
21,
16,
279,
33,
22,
16,
366,
33,
23,
4672,
1172,
525,
16,
279,
16,
366,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
12,
78,
33,
21,
16,
279,
33,
22,
16,
366,
33,
23,
4672,
1172,
525,
16,
279,
16,
366,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Die('Missing stable ebuild in %s' % root) | Die('Missing stable ebuild in %s' % os.path.dirname(path)) | def _FindStableEBuilds(files): """Return a list of stable ebuilds from specified list of files. Args: files: List of files. """ workon_dir = False stable_ebuilds = [] unstable_ebuilds = [] for path in files: if path.endswith('.ebuild') and not os.path.islink(path): ebuild = _EBuild(path) if ebuild.is_workon: workon_di... | 804ad7df2772bbb0df99bab523e0e6acca66ef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/804ad7df2772bbb0df99bab523e0e6acca66ef39/cros_mark_as_stable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3125,
30915,
41,
7746,
12,
2354,
4672,
3536,
990,
279,
666,
434,
14114,
425,
27324,
628,
1269,
666,
434,
1390,
18,
225,
6634,
30,
1390,
30,
987,
434,
1390,
18,
3536,
1440,
265,
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,
3125,
30915,
41,
7746,
12,
2354,
4672,
3536,
990,
279,
666,
434,
14114,
425,
27324,
628,
1269,
666,
434,
1390,
18,
225,
6634,
30,
1390,
30,
987,
434,
1390,
18,
3536,
1440,
265,
67... |
handle_unknown_callback(url) | if url == None: handle_unknown_callback(old_url) else: handle_unknown_callback(url) | def _callback(url, contentType="video/flv", additional=additional): if url: if additional == None: additional = {"title": url} entry = _build_entry(url, contentType, additional) download_video(entry) return | 9dd655a19b63594510e3c23c3362648d0210922b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/9dd655a19b63594510e3c23c3362648d0210922b/singleclick.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3394,
12,
718,
16,
5064,
1546,
9115,
19,
2242,
90,
3113,
3312,
33,
13996,
4672,
309,
880,
30,
309,
3312,
422,
599,
30,
3312,
273,
12528,
2649,
6877,
880,
97,
1241,
273,
389,
3510,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
3394,
12,
718,
16,
5064,
1546,
9115,
19,
2242,
90,
3113,
3312,
33,
13996,
4672,
309,
880,
30,
309,
3312,
422,
599,
30,
3312,
273,
12528,
2649,
6877,
880,
97,
1241,
273,
389,
3510,... |
if not sp['pbid'] | if not sp['pbid']: | def OnJ(self, action, data, match=None): # COD4 stores the PBID in the log file codguid = match.group('guid') cid = match.group('cid') pbid = '' | 7a14beb2f2a2a264c31dfddc4f567e1e7fadd345 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/7a14beb2f2a2a264c31dfddc4f567e1e7fadd345/cod4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
46,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
385,
1212,
24,
9064,
326,
20819,
734,
316,
326,
613,
585,
11012,
14066,
273,
845,
18,
1655,
2668,
14066,
6134,
7504... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
46,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
385,
1212,
24,
9064,
326,
20819,
734,
316,
326,
613,
585,
11012,
14066,
273,
845,
18,
1655,
2668,
14066,
6134,
7504... |
def is_isomorphic(self, other, proof=False): | def is_isomorphic(self, other, proof=False, verbosity=0): | def is_isomorphic(self, other, proof=False): """ Tests for isomorphism between self and other. INPUT: proof -- if True, then output is (a,b), where a is a boolean and b is either a map or None. EXAMPLES: sage: D = graphs.DodecahedralGraph() sage: E = D.copy() sage: gamma = SymmetricGroup(20).random_element() sage: E.... | d67a023472152bc59356bb215a37f04255fdd99a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d67a023472152bc59356bb215a37f04255fdd99a/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
291,
362,
18435,
12,
2890,
16,
1308,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
7766,
87,
364,
353,
362,
7657,
6228,
3086,
365,
471,
1308,
18,
225,
12943,
30,
14601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
291,
362,
18435,
12,
2890,
16,
1308,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
7766,
87,
364,
353,
362,
7657,
6228,
3086,
365,
471,
1308,
18,
225,
12943,
30,
14601,
... |
sage: r.install_package('Hmisc') | sage: r.install_package('Hmisc') | def install_packages(self, package_name): """ Install an R package into Sage's R installation. | f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f1cd5773fe3e88b0bf0433c53477cfdf6c99bd08/r.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
10308,
12,
2890,
16,
2181,
67,
529,
4672,
3536,
10284,
392,
534,
2181,
1368,
348,
410,
1807,
534,
13193,
18,
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,
3799,
67,
10308,
12,
2890,
16,
2181,
67,
529,
4672,
3536,
10284,
392,
534,
2181,
1368,
348,
410,
1807,
534,
13193,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return http.Response(stream=msg) | return HTMLResponse(stream=msg) | def render(self, ctx): id = self.id(ctx) | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
cache['%s.metadata' % name] = self.build_metadata(csv) | cache['%s.metadata' % name] = csv.build_metadata() | def new(self, **kw): Folder.new(self, **kw) cache = self.cache # Versions csv = Versions() csv.add_row([u'1.0', False]) csv.add_row([u'2.0', False]) cache['versions.csv'] = csv cache['versions.csv.metadata'] = self.build_metadata(csv) # Other Tables tables = [ ('modules.csv', [u'Documentation', u'Unit Tests', u'Program... | 3ce933dd0b6747a9c5ebd6aa6765fb94fdde695f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/3ce933dd0b6747a9c5ebd6aa6765fb94fdde695f/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2826,
9987,
4672,
12623,
18,
2704,
12,
2890,
16,
2826,
9987,
13,
1247,
273,
365,
18,
2493,
468,
28375,
6101,
273,
28375,
1435,
6101,
18,
1289,
67,
492,
3816,
89,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2826,
9987,
4672,
12623,
18,
2704,
12,
2890,
16,
2826,
9987,
13,
1247,
273,
365,
18,
2493,
468,
28375,
6101,
273,
28375,
1435,
6101,
18,
1289,
67,
492,
3816,
89,
11,... |
'dimension_id' : fields.many2one('product.variant.dimension.type', 'Dimension Type', required=True), | 'dimension_id' : fields.many2one('product.variant.dimension.type', 'Dimension Type', required=True, ondelete='cascade'), | def _get_dimension_values(self, cr, uid, ids, context={}): result = [] for type in self.pool.get('product.variant.dimension.type').browse(cr, uid, ids, context=context): for value in type.value_ids: result.append(value.id) return result | 0e9f365be05ba5ca53e4244892baa8af51ee98de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0e9f365be05ba5ca53e4244892baa8af51ee98de/product_variant.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
11808,
67,
2372,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
5378,
364,
618,
316,
365,
18,
6011,
18,
588,
2668,
5896,
18,
8688,
18,
11808,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
11808,
67,
2372,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
5378,
364,
618,
316,
365,
18,
6011,
18,
588,
2668,
5896,
18,
8688,
18,
11808,
1... |
("'", "''"), | ("'", "\\'"), | def __repr__(self): if self: return 'TRUE' else: return 'FALSE' | a42ecfcfa92d15402aa126c87c2444aecc3f0d56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/a42ecfcfa92d15402aa126c87c2444aecc3f0d56/converters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
30,
327,
296,
18724,
11,
469,
30,
327,
296,
21053,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
309,
365,
30,
327,
296,
18724,
11,
469,
30,
327,
296,
21053,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.tabnanny(filename): return | def run_module_event(self, event): """Run the module after setting up the environment. | 8b7d4d0720f57ab71fcbeeaf0f212a5931f97365 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8b7d4d0720f57ab71fcbeeaf0f212a5931f97365/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
3536,
1997,
326,
1605,
1839,
3637,
731,
326,
3330,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
3536,
1997,
326,
1605,
1839,
3637,
731,
326,
3330,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
val[0] = -bernoulli(k) / (2*k) R = QQ[['q']] | val[0] = a0 R = K[['q']] | def eisenstein_series_qexp(k, prec=10, K=QQ): r""" Return the $q$-expansion of the weight $k$ Eisenstein series to precision prec in the field $K$. Here's a rough description of how the algorithm works: we know $E_k = const + \sum_n sigma(n,k-1) q^n$. Now, we basically just compute all the $\sigma(n,k-1)$ simultaneous... | ae0a4f1be121d0b5cd96f36d12d796a7dabacb15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ae0a4f1be121d0b5cd96f36d12d796a7dabacb15/eis_series.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... |
Def atlas(): | def atlas(): | def cblas(): if os.environ.has_key('SAGE_CBLAS'): return os.environ['SAGE_CBLAS'] elif os.path.exists('/usr/lib/libcblas.dylib') or \ os.path.exists('/usr/lib/libcblas.so'): return 'cblas' elif os.path.exists('/usr/lib/libblas.dll.a'): # untested. return 'blas' else: # This is very slow (?), but *guaranteed* to be a... | a1b917785f1b5c11013b680adff924e809dcf296 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a1b917785f1b5c11013b680adff924e809dcf296/cython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
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,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
18... |
self.body.append('\n\\end{verbatim}\\end{quote}\n') | self.body.append('\n\\end{verbatim}') | def depart_literal_block(self, node): if self.verbatim: self.body.append('\n\\end{verbatim}\\end{quote}\n') self.verbatim = 0 else: if self.active_table.is_open(): self.body.append('\n}\n') else: self.body.append('\n') self.body.append('}\\end{quote}\n') self.insert_none_breaking_blanks = 0 self.literal_block = 0 # obe... | 194c1c0447cd76e9f3c993ca97a602b255db1e68 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/194c1c0447cd76e9f3c993ca97a602b255db1e68/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
309,
365,
18,
16629,
22204,
30,
365,
18,
3432,
18,
6923,
2668,
64,
82,
1695,
409,
95,
16629,
22204,
1713,
13,
365,
18,
16629,
22204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
309,
365,
18,
16629,
22204,
30,
365,
18,
3432,
18,
6923,
2668,
64,
82,
1695,
409,
95,
16629,
22204,
1713,
13,
365,
18,
16629,
22204... |
gLogger.info("Succeded setting request for %s at %s" % (requestName,status,url)) result["Server"] = url return result | gLogger.info("Succeded setting request for %s at %s" % (requestName,url)) res["Server"] = url return res | def setRequest(self,requestType,requestName,requestString,requestStatus='ToDo',url=''): """ Set request. URL can be supplied if not a all VOBOXes will be tried in random order. """ try: urls = [] if url: urls[url] urls.append(self.voBoxUrls) for url in urls: requestRPCClient = DISETClient(url) res = requestRPCClient.se... | e04ab9ecb893477f9aaadb286d4551c45f21c342 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e04ab9ecb893477f9aaadb286d4551c45f21c342/Request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12475,
12,
2890,
16,
2293,
559,
16,
2293,
461,
16,
2293,
780,
16,
2293,
1482,
2218,
774,
3244,
2187,
718,
2218,
11,
4672,
3536,
1000,
590,
18,
1976,
848,
506,
4580,
309,
486,
279,
777,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12475,
12,
2890,
16,
2293,
559,
16,
2293,
461,
16,
2293,
780,
16,
2293,
1482,
2218,
774,
3244,
2187,
718,
2218,
11,
4672,
3536,
1000,
590,
18,
1976,
848,
506,
4580,
309,
486,
279,
777,... |
scripts.append('ipython/kernel/scripts/ipengine') scripts.append('ipython/kernel/scripts/ipcontroller') scripts.append('ipython/kernel/scripts/ipcluster') | scripts.append('IPython/kernel/scripts/ipengine') scripts.append('IPython/kernel/scripts/ipcontroller') scripts.append('IPython/kernel/scripts/ipcluster') | def find_scripts(): """ Find IPython's scripts. """ scripts = [] scripts.append('ipython/kernel/scripts/ipengine') scripts.append('ipython/kernel/scripts/ipcontroller') scripts.append('ipython/kernel/scripts/ipcluster') scripts.append('scripts/ipython') scripts.append('scripts/pycolor') scripts.append('scripts/irunner'... | cc85cf9653b5f504575fc93af200f0c652f87faa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3900/cc85cf9653b5f504575fc93af200f0c652f87faa/setupbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12827,
13332,
3536,
4163,
26085,
1807,
8873,
18,
3536,
8873,
273,
5378,
8873,
18,
6923,
2668,
2579,
18490,
19,
8111,
19,
12827,
19,
625,
8944,
6134,
8873,
18,
6923,
2668,
2579,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12827,
13332,
3536,
4163,
26085,
1807,
8873,
18,
3536,
8873,
273,
5378,
8873,
18,
6923,
2668,
2579,
18490,
19,
8111,
19,
12827,
19,
625,
8944,
6134,
8873,
18,
6923,
2668,
2579,
... |
name=self.datetimeimplemenation) | name=self.datetimeimplementation) | def _readDateTimeFromForm(self, instance, form, fieldname): date = form.get('%s_date' % fieldname) time = form.get('%s_time' % fieldname) tzinfo = ITimezoneFactory(instance) try: value = IIntelliDateTime(self).convert(date, time=time, locale='de', tzinfo=tzinfo) except DateTimeConversionError, e: return None # correct ... | 7366077cf6ac44467bfbe258082843235ed38e4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5657/7366077cf6ac44467bfbe258082843235ed38e4b/widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
5096,
1265,
1204,
12,
2890,
16,
791,
16,
646,
16,
14680,
4672,
1509,
273,
646,
18,
588,
29909,
87,
67,
712,
11,
738,
14680,
13,
813,
273,
646,
18,
588,
29909,
87,
67,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
5096,
1265,
1204,
12,
2890,
16,
791,
16,
646,
16,
14680,
4672,
1509,
273,
646,
18,
588,
29909,
87,
67,
712,
11,
738,
14680,
13,
813,
273,
646,
18,
588,
29909,
87,
67,
957,
... |
knownempties=["rfc", "declaremodule", "appendix", | knownempties=["appendix", | def main(): if len(sys.argv) == 2: ifp = open(sys.argv[1]) ofp = sys.stdout elif len(sys.argv) == 3: ifp = open(sys.argv[1]) ofp = open(sys.argv[2], "w") else: usage() sys.exit(2) convert(ifp, ofp, { # entries are name # -> ([list of attribute names], first_is_optional, empty) "cfuncdesc": (["type", "name", ("... | 177c5005c27b072f67098dea66be9f3528dd0fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/177c5005c27b072f67098dea66be9f3528dd0fe8/latex2esis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
2589,
18,
10283,
1327,
562,
12,
9499,
18,
19485,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
30,
309,
84,
273,
1696,
12,
9499,
18,
19485,
63,
21,
5717,
434,
84,
273,
2589,
18,
10283,
1327,
562,
12,
9499,
18,
19485,
13... |
raise NameError, "ERROR: problems in output stage-out" | raise NameError, "ERROR: problems in output stage-out. Could not read output file: '%s'" % output_files_orig[i] | def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype | d7bfe8937a92ce862fafbd3d61f42398155a5dc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/d7bfe8937a92ce862fafbd3d61f42398155a5dc8/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
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,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... |
band_num = int(argv[i+1]) | band_nums.append( int(argv[i+1]) ) | def Usage(): print 'Usage: gdal2xyz.py [-skip factor] [-srcwin xoff yoff width height]' print ' [-band b] srcfile [dstfile]' print sys.exit( 1 ) | 1751af84fcb417916499ba1d8ab65443a46d0eba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/1751af84fcb417916499ba1d8ab65443a46d0eba/gdal2xyz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
17177,
18,
2074,
23059,
7457,
5578,
65,
23059,
4816,
8082,
619,
3674,
677,
3674,
1835,
2072,
3864,
1172,
296,
10402,
23059,
12752,
324,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
17177,
18,
2074,
23059,
7457,
5578,
65,
23059,
4816,
8082,
619,
3674,
677,
3674,
1835,
2072,
3864,
1172,
296,
10402,
23059,
12752,
324,
6... |
runner.run(self._dt_test, out=nooutput) | runner.run(self._dt_test) | def debug(self): r"""Run the test case without results and without catching exceptions | cbc966784c40379a497d47f64c6966c873b21087 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cbc966784c40379a497d47f64c6966c873b21087/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
2890,
4672,
436,
8395,
1997,
326,
1842,
648,
2887,
1686,
471,
2887,
1044,
310,
4798,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
2890,
4672,
436,
8395,
1997,
326,
1842,
648,
2887,
1686,
471,
2887,
1044,
310,
4798,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Lose(1) | self.Lose(1) | def loop (self): isSig=0 if (self.you.isNull()): self.Lose (1) return if (self.arrived==3): if (not self.istarget): curun=VS.getUnit(self.curiter) if (self.enemy): if (curun==self.enemy): self.enemy.setTarget(self.you) self.curiter+=1 if (you.isNull()): self.Lose(1) return if (self.enemy.isNull()): self.Win(you,1) retu... | a537f39c17600bf6b993994cfcfafc164c3f274f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/a537f39c17600bf6b993994cfcfafc164c3f274f/bounty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
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,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
3... |
def _check_for_process(self): | def _check_for_process(self): | def _check_for_process(self): | 125d57cee90301b91158819cfcabe18e45c6fae4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/125d57cee90301b91158819cfcabe18e45c6fae4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
2567,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
2567,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.bugzilla.updatecc(self.bug_id,cclist,'delete',comment) | self.bugzilla._updatecc(self.bug_id,cclist,'delete',comment) | def deletecc(self,cclist,comment=''): '''Removes the given email addresses from the CC list for this bug.''' self.bugzilla.updatecc(self.bug_id,cclist,'delete',comment) | 4162cd637465b4ab492822d2673ed0761ced06e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5050/4162cd637465b4ab492822d2673ed0761ced06e4/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6578,
24410,
12,
2890,
16,
71,
830,
376,
16,
3469,
2218,
11,
4672,
9163,
6220,
326,
864,
2699,
6138,
628,
326,
16525,
666,
364,
333,
7934,
1093,
6309,
365,
18,
925,
15990,
18,
2725,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6578,
24410,
12,
2890,
16,
71,
830,
376,
16,
3469,
2218,
11,
4672,
9163,
6220,
326,
864,
2699,
6138,
628,
326,
16525,
666,
364,
333,
7934,
1093,
6309,
365,
18,
925,
15990,
18,
2725,
95... |
req.hdf.setValue('ticket.changes.%d.new' % idx, wiki_to_html(new, req.hdf, self.env, self.db)) | changes[-1]['comment'] = wiki_to_html(new, req.hdf, self.env, self.db) elif field == 'description': changes[-1]['fields'][field] = {} | def insert_ticket_data(self, req, id, ticket, reporter_id): """Insert ticket data into the hdf""" evals = util.mydict(zip(ticket.keys(), map(lambda x: util.escape(x), ticket.values()))) util.add_to_hdf(evals, req.hdf, 'ticket') | 5af93da622cd2c46b60f11ea1671d6da1dbfaf15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5af93da622cd2c46b60f11ea1671d6da1dbfaf15/Ticket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
16282,
67,
892,
12,
2890,
16,
1111,
16,
612,
16,
9322,
16,
11528,
67,
350,
4672,
3536,
4600,
9322,
501,
1368,
326,
24217,
8395,
22654,
273,
1709,
18,
4811,
1576,
12,
4450,
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,
2243,
67,
16282,
67,
892,
12,
2890,
16,
1111,
16,
612,
16,
9322,
16,
11528,
67,
350,
4672,
3536,
4600,
9322,
501,
1368,
326,
24217,
8395,
22654,
273,
1709,
18,
4811,
1576,
12,
4450,
12... |
ctx_model = context.get('model', None) ctx_res_id = context.get('res_id', None) | ctx_model = context.get('model', None) ctx_res_id = context.get('res_id', None) | def export_cal(self, cr, uid, ids, vobj='vevent', context=None): """ Export Calendar @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of calendar’s IDs @param context: A standard dictionary for contextual values... | 1263dd94aec18dc93f2c1301bed8d5db4810ef61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1263dd94aec18dc93f2c1301bed8d5db4810ef61/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
331,
2603,
2218,
537,
616,
2187,
819,
33,
7036,
4672,
3536,
11054,
5542,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
331,
2603,
2218,
537,
616,
2187,
819,
33,
7036,
4672,
3536,
11054,
5542,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.