rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.cursor.execute("DELETE FROM dtv_objects WHERE id=?", int(object.id)) | self.cursor.execute("DELETE FROM dtv_objects WHERE id=?", (int(object.id),)) | def remove (self, object): database.confirmDBThread() if self.closed: return if not self.updating: self.toRemove.add (object) try: self.toUpdate.remove (object) except KeyboardInterrupt: raise except: pass if self.dc is None: self.dc = eventloop.addTimeout(self.TRANSACTION_TIMEOUT, self.runUpdate, self.TRANSACTION_NAME... | 4ff78adab028b07819595939f3a320523f1097f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/4ff78adab028b07819595939f3a320523f1097f9/storedatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
261,
2890,
16,
733,
4672,
2063,
18,
10927,
2290,
3830,
1435,
309,
365,
18,
12204,
30,
327,
309,
486,
365,
18,
5533,
1776,
30,
365,
18,
869,
3288,
18,
1289,
261,
1612,
13,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
261,
2890,
16,
733,
4672,
2063,
18,
10927,
2290,
3830,
1435,
309,
365,
18,
12204,
30,
327,
309,
486,
365,
18,
5533,
1776,
30,
365,
18,
869,
3288,
18,
1289,
261,
1612,
13,
775,
... |
isize = U32(read32(self.fileobj)) if U32(crc32) != U32(self.crc): raise IOError("CRC check failed %s != %s" % (hex(U32(crc32)), hex(U32(self.crc)))) elif isize != LOWU32(self.size): | isize = read32(self.fileobj) if crc32 != self.crc: raise IOError("CRC check failed %s != %s" % (hex(crc32), hex(self.crc))) elif isize != self.size: | def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. Note that the size # stored is the true file size mod 2**32. self.fil... | 28585970b8e0ad9cc9d475bb48a0b6a3fc9e68ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/28585970b8e0ad9cc9d475bb48a0b6a3fc9e68ab/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... |
self.addBool('Network', 'debugTraffic', True) | self.addBool('Network', 'debugTraffic', False) | def __init__(self): if util.PREF: logException(Exception('PREF is not None')) util.PREF = self KConfigSkeleton.__init__(self) self.addString('General', 'tilesetName', 'default') self.addString('General', 'windTilesetName', 'traditional') self.addString('General', 'backgroundName', 'default') self.addBool('General', 'de... | e718c88ed5b9711325dd6d39ad7dc9bb5646e02a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/e718c88ed5b9711325dd6d39ad7dc9bb5646e02a/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
309,
1709,
18,
3670,
42,
30,
28483,
12,
503,
2668,
3670,
42,
353,
486,
599,
26112,
1709,
18,
3670,
42,
273,
365,
1475,
809,
28070,
16186,
2738,
972,
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,
1001,
2738,
972,
12,
2890,
4672,
309,
1709,
18,
3670,
42,
30,
28483,
12,
503,
2668,
3670,
42,
353,
486,
599,
26112,
1709,
18,
3670,
42,
273,
365,
1475,
809,
28070,
16186,
2738,
972,
12... |
logging.error("Invalid weight specified: %r" % self.request.get('weight') | logging.error("Invalid weight specified: %r" % self.request.get('weight')) | def post(self): user_info = _get_current_user_info() weight_data = WeightData(user_info) datestr = self.request.get('date') | f7aa41a7085765e4f74ded867aa64cac52b54892 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6443/f7aa41a7085765e4f74ded867aa64cac52b54892/weightmeter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
729,
67,
1376,
273,
389,
588,
67,
2972,
67,
1355,
67,
1376,
1435,
3119,
67,
892,
273,
15437,
751,
12,
1355,
67,
1376,
13,
7811,
313,
273,
365,
18,
2293,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
729,
67,
1376,
273,
389,
588,
67,
2972,
67,
1355,
67,
1376,
1435,
3119,
67,
892,
273,
15437,
751,
12,
1355,
67,
1376,
13,
7811,
313,
273,
365,
18,
2293,
18,
588... |
self.control = os.path.join(streamit, 'regtest/control') | def __init__(self): self.checkout = 0 self.build = 0 self.test = 1 self.control = os.path.join(streamit, 'regtest/control') self.cases = [] | 6e67a8118ba11aa99fa7c3f0ebf2fd1c80f5f9e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12935/6e67a8118ba11aa99fa7c3f0ebf2fd1c80f5f9e6/streamit-regtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
17300,
273,
374,
365,
18,
3510,
273,
374,
365,
18,
3813,
273,
404,
365,
18,
22186,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
17300,
273,
374,
365,
18,
3510,
273,
374,
365,
18,
3813,
273,
404,
365,
18,
22186,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
def describe_by_id (specifier): | def describe_by_id(specifier): | def describe_by_id (specifier): return specifier | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
67,
1637,
67,
350,
12,
2793,
1251,
4672,
327,
24562,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
67,
1637,
67,
350,
12,
2793,
1251,
4672,
327,
24562,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
OMEModelProperty.fromElement(element, self.model) | OMEModelProperty.fromElement(element, self, self.model) | def addElement(self, element): """ Adds an OME XML Schema element to the object's data model. """ name = element.getName() self.properties[name] = \ OMEModelProperty.fromElement(element, self.model) | f7dfca6f480dea7bcef9a6d2f82aea89291574e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1844/f7dfca6f480dea7bcef9a6d2f82aea89291574e1/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9335,
12,
2890,
16,
930,
4672,
3536,
15605,
392,
531,
958,
3167,
4611,
930,
358,
326,
733,
1807,
501,
938,
18,
3536,
508,
273,
930,
18,
17994,
1435,
365,
18,
4738,
63,
529,
65,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9335,
12,
2890,
16,
930,
4672,
3536,
15605,
392,
531,
958,
3167,
4611,
930,
358,
326,
733,
1807,
501,
938,
18,
3536,
508,
273,
930,
18,
17994,
1435,
365,
18,
4738,
63,
529,
65,
273,
... |
latest_version_item = QTableWidgetItem("") | latest_version_item = None | def latestVersionItem(self): """ Returns the latest BeRTOS version founded. """ latest_version_item = QTableWidgetItem("") for index in range(self.pageContent.versionList.count()): item = self.pageContent.versionList.item(index) version = item.text().split(" (")[0] latest = latest_version_item.text().split(" (")[0] if ... | d77ff5582a0ba72fb63e48576551b75cb3d833ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/d77ff5582a0ba72fb63e48576551b75cb3d833ff/BVersionPage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4891,
1444,
1180,
12,
2890,
4672,
3536,
2860,
326,
4891,
4823,
54,
4296,
55,
1177,
284,
12002,
18,
3536,
4891,
67,
1589,
67,
1726,
273,
599,
364,
770,
316,
1048,
12,
2890,
18,
2433,
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,
4891,
1444,
1180,
12,
2890,
4672,
3536,
2860,
326,
4891,
4823,
54,
4296,
55,
1177,
284,
12002,
18,
3536,
4891,
67,
1589,
67,
1726,
273,
599,
364,
770,
316,
1048,
12,
2890,
18,
2433,
13... |
return prTable.get(pt) | return prTable.get(pt, hex(pt)) | def GetPropTagName(pt): if not prTable: for name, value in mapitags.__dict__.items(): if name[:3] == 'PR_': prTable[value] = name return prTable.get(pt) | 282c985a72433caed0c51e32add676ad6b031c4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/282c985a72433caed0c51e32add676ad6b031c4a/mapiutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4658,
8520,
12,
337,
4672,
309,
486,
846,
1388,
30,
364,
508,
16,
460,
316,
852,
305,
1341,
16186,
1576,
25648,
3319,
13332,
309,
508,
10531,
23,
65,
422,
296,
8025,
67,
4278,
846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4658,
8520,
12,
337,
4672,
309,
486,
846,
1388,
30,
364,
508,
16,
460,
316,
852,
305,
1341,
16186,
1576,
25648,
3319,
13332,
309,
508,
10531,
23,
65,
422,
296,
8025,
67,
4278,
846... |
syms[nm] = var(nm) | res = re.match(nm + '\s*\(.*\)', s) if res: syms[nm] = function(nm) else: syms[nm] = var(nm) | def symbolic_expression_from_maxima_string(x, equals_sub=False, maxima=maxima): syms = dict(_syms) if len(x) == 0: raise RuntimeError, "invalid symbolic expression -- ''" maxima.set('_tmp_',x) # This is inefficient since it so rarely is needed: #r = maxima._eval_line('listofvars(_tmp_);')[1:-1] s = maxima._eval_line... | 95c13ea28d87213b958f82442a63e8eec4baf719 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/95c13ea28d87213b958f82442a63e8eec4baf719/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16754,
67,
8692,
67,
2080,
67,
1896,
13888,
67,
1080,
12,
92,
16,
1606,
67,
1717,
33,
8381,
16,
943,
13888,
33,
1896,
13888,
4672,
24367,
273,
2065,
24899,
9009,
959,
13,
225,
309,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16754,
67,
8692,
67,
2080,
67,
1896,
13888,
67,
1080,
12,
92,
16,
1606,
67,
1717,
33,
8381,
16,
943,
13888,
33,
1896,
13888,
4672,
24367,
273,
2065,
24899,
9009,
959,
13,
225,
309,
562... |
and SkipNode is raised. | and SkipNode should be raised. returns True if SkipNode should be raised; False otherwise. | def process_inline(self, node, uri_string): """ Process the "inline:" link scheme. This can either come from visit_reference or from visit_image. The uri_string changes depending on the caller. The uri is passed to MoinMoin to handle the inline link. If it is an image, the src line is extracted and passed to the html4c... | 9f752108b6fd42db83c75b9b1560912b9f2e5da6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/9f752108b6fd42db83c75b9b1560912b9f2e5da6/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
10047,
12,
2890,
16,
756,
16,
2003,
67,
1080,
4672,
3536,
4389,
326,
315,
10047,
2773,
1692,
4355,
18,
1220,
848,
3344,
12404,
628,
3757,
67,
6180,
578,
628,
3757,
67,
2730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
10047,
12,
2890,
16,
756,
16,
2003,
67,
1080,
4672,
3536,
4389,
326,
315,
10047,
2773,
1692,
4355,
18,
1220,
848,
3344,
12404,
628,
3757,
67,
6180,
578,
628,
3757,
67,
2730,
... |
elif self.info.downloaded and not self.info.video_watched: | elif self.info.downloaded and self.info.is_playable and not self.info.video_watched: | def render(self, context, layout, selected, hotspot, hover): if self.info.state == 'downloading': icon = self.downloading_icon elif self.info.downloaded and not self.info.video_watched: icon = self.unwatched_icon elif not self.info.item_viewed and not self.info.expiration_date: icon = self.new_icon else: return x = int... | 3ca049c2e45f1a757c3549648c6118e716ed7d33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/3ca049c2e45f1a757c3549648c6118e716ed7d33/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
16,
3511,
16,
3170,
16,
12811,
19032,
16,
15758,
4672,
309,
365,
18,
1376,
18,
2019,
422,
296,
7813,
310,
4278,
4126,
273,
365,
18,
7813,
310,
67,
3950,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
16,
3511,
16,
3170,
16,
12811,
19032,
16,
15758,
4672,
309,
365,
18,
1376,
18,
2019,
422,
296,
7813,
310,
4278,
4126,
273,
365,
18,
7813,
310,
67,
3950,
1327,
... |
name = 'calibre.gui2.convert.%s' % self.plumber.input_plugin.name.lower().replace(' ', '_') | name = self.plumber.input_plugin.name.lower().replace(' ', '_') | def widget_factory(cls): return cls(self.stack, self.plumber.get_option_by_name, self.plumber.get_option_help, self.db, self.book_id) | 58c49359265282f595fc213fdaf60f12630831a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/58c49359265282f595fc213fdaf60f12630831a8/single.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3604,
67,
6848,
12,
6429,
4672,
327,
2028,
12,
2890,
18,
3772,
16,
365,
18,
412,
1226,
18,
588,
67,
3482,
67,
1637,
67,
529,
16,
365,
18,
412,
1226,
18,
588,
67,
3482,
67,
5201,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3604,
67,
6848,
12,
6429,
4672,
327,
2028,
12,
2890,
18,
3772,
16,
365,
18,
412,
1226,
18,
588,
67,
3482,
67,
1637,
67,
529,
16,
365,
18,
412,
1226,
18,
588,
67,
3482,
67,
5201,
16... |
estr = markup.wordwrap(estr, 7, startindex=7).strip() s += ' - %s\n' % estr print >>sys.stderr, s | log.warn(' - %s' % markup.wordwrap(estr, 7, startindex=7).strip()) log.end_block() | def report_errors(self, api_doc, parse_errors, field_warnings): if not parse_errors and not field_warnings: return | f5b741cb5fcf66904170f51d618b2ed7fec10f1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/f5b741cb5fcf66904170f51d618b2ed7fec10f1c/docstringparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2890,
16,
1536,
67,
2434,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
309,
486,
1109,
67,
4324,
471,
486,
652,
67,
12103,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2890,
16,
1536,
67,
2434,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
309,
486,
1109,
67,
4324,
471,
486,
652,
67,
12103,
30,
327,
2,
-100,
-100,
-100,
-100,
-1... |
if aSystemFullID[SYSTEMPATH] == '/': | if aSystemFullID[SYSTEMPATH] == '': | def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | 6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3163,
743,
1265,
5080,
734,
12,
279,
3163,
5080,
734,
262,
30,
225,
309,
279,
3163,
5080,
734,
63,
14318,
4211,
65,
422,
875,
30,
309,
279,
3163,
5080,
734,
63,
734,
65,
422,
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,
752,
3163,
743,
1265,
5080,
734,
12,
279,
3163,
5080,
734,
262,
30,
225,
309,
279,
3163,
5080,
734,
63,
14318,
4211,
65,
422,
875,
30,
309,
279,
3163,
5080,
734,
63,
734,
65,
422,
20... |
try: v=v.read() except: v=str(v) | if hasattr(v,'read'): v=v.read() else: v=str(v) | def field2Regexs(v): try: v=v.read() except: v=str(v) v= map(lambda v: regex.compile(v), split(v)) if v: return v | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
22,
6628,
87,
12,
90,
4672,
309,
3859,
12,
90,
11189,
896,
11,
4672,
331,
33,
90,
18,
896,
1435,
469,
30,
331,
33,
701,
12,
90,
13,
331,
33,
852,
12,
14661,
331,
30,
3936,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
22,
6628,
87,
12,
90,
4672,
309,
3859,
12,
90,
11189,
896,
11,
4672,
331,
33,
90,
18,
896,
1435,
469,
30,
331,
33,
701,
12,
90,
13,
331,
33,
852,
12,
14661,
331,
30,
3936,
1... |
return retval | def parse_2CADR(self, context, operands): retval = False word1 = word2 = None expr = AddressExpression(context, operands) if expr.complete: word1 = expr.value if context.memmap.isFixed(word1): word2 = 0 # Bits 15-11 of the 2nd generated word contain the bank number. word2 |= ((context.fbank & 037) << 10) # Bits 10-8 an... | 0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22,
39,
1880,
54,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1083,
2076,
21,
273,
2076,
22,
273,
599,
3065,
273,
5267,
2300,
12,
2472,
16,
14883,
13,
309,
3065,
18,
622... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22,
39,
1880,
54,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1083,
2076,
21,
273,
2076,
22,
273,
599,
3065,
273,
5267,
2300,
12,
2472,
16,
14883,
13,
309,
3065,
18,
622... | |
print 'Would have sent: %s' % subject.encode('ascii', 'replace') print 'To: %s' % recipients print 'From: %s %s' % (fromAddr[0].encode('ascii', 'replace'), fromAddr[1].encode('ascii', 'replace')) print '%s' % msg.encode('ascii', 'replace') | log.warning('Would have sent: %s' % subject.encode('ascii', 'replace')) log.warning('To: %s' % recipients) log.warning('From: %s %s' % (fromAddr[0].encode('ascii', 'replace'), fromAddr[1].encode('ascii', 'replace'))) log.warning('%s' % msg.encode('ascii', 'replace')) | def _send_msg(self, msg, subject, recipients, fromAddr=None): '''Send an email from the packagedb.''' if not fromAddr: fromAddr = self.MAILFROM if config.get('mail.on', False): print 'We should not be here on the test instance.' return for person in recipients: email = turbomail.Message(fromAddr, person, '[pkgdb] %s' %... | 2a86ca62992ba457b970f3df8953b7241d6b777d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/2a86ca62992ba457b970f3df8953b7241d6b777d/notifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
3576,
12,
2890,
16,
1234,
16,
3221,
16,
12045,
16,
628,
3178,
33,
7036,
4672,
9163,
3826,
392,
2699,
628,
326,
2298,
11349,
70,
1093,
6309,
309,
486,
628,
3178,
30,
628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
67,
3576,
12,
2890,
16,
1234,
16,
3221,
16,
12045,
16,
628,
3178,
33,
7036,
4672,
9163,
3826,
392,
2699,
628,
326,
2298,
11349,
70,
1093,
6309,
309,
486,
628,
3178,
30,
628,... |
ret = tuple(data) | def xmlrpcCleanup(data): """ Cleanup data content so that they can be send using XML-RPC. For example, None is not accepted, and must be converted to False. """ if type(data) == dict: ret = {} for key in data.keys(): # array keys must be string ret[str(key)] = xmlrpcCleanup(data[key]) elif type(data) == list: ret = []... | c73f2d4d2d9efca3c5b26eb087588885b43c5e1c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5988/c73f2d4d2d9efca3c5b26eb087588885b43c5e1c/mmctools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31811,
15007,
12,
892,
4672,
3536,
19968,
501,
913,
1427,
716,
2898,
848,
506,
1366,
1450,
3167,
17,
8087,
18,
225,
2457,
3454,
16,
599,
353,
486,
8494,
16,
471,
1297,
506,
5970,
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,
31811,
15007,
12,
892,
4672,
3536,
19968,
501,
913,
1427,
716,
2898,
848,
506,
1366,
1450,
3167,
17,
8087,
18,
225,
2457,
3454,
16,
599,
353,
486,
8494,
16,
471,
1297,
506,
5970,
358,
... | |
print " WARNING: test %s is a restart test -- no benchmarks are stored." print " skipping" | print " WARNING: test %s is a restart test -- no benchmarks are stored." % (test) print " skipping\n" | def test(argv): usage = """ ./test.py [--make_benchmarks comment, --no_cvs_update, --single_test test] testfile.ini arguments: testfile.ini This is the input file that defines the tests that the suite knows about. It has the format [main] sourceDir = < directory above Parallel/ and fParallel/ > testTopDir ... | d03247ad46cd393740c1c777d6f633d9106dd565 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5861/d03247ad46cd393740c1c777d6f633d9106dd565/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
19485,
4672,
225,
4084,
273,
3536,
263,
19,
3813,
18,
2074,
306,
413,
6540,
67,
70,
9737,
87,
2879,
16,
1493,
2135,
67,
71,
6904,
67,
2725,
16,
1493,
7526,
67,
3813,
1842,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
19485,
4672,
225,
4084,
273,
3536,
263,
19,
3813,
18,
2074,
306,
413,
6540,
67,
70,
9737,
87,
2879,
16,
1493,
2135,
67,
71,
6904,
67,
2725,
16,
1493,
7526,
67,
3813,
1842,
... |
tls_info["R"] = "%.3f" % (tls_info["R"]) | def run_tls_analysis(self): """ """ ## get the list of chain_ids to fit chain_ids = [] for chain_id, chain_check in self.chain_checks.items(): if chain_check.get_active()==True: chain_ids.append(chain_id) if self.include_side_chains.get_active()==True: use_side_chains = True else: use_side_chains = False | 926a014b07235d2fce3843d2d3d9ce59d7cd8902 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10674/926a014b07235d2fce3843d2d3d9ce59d7cd8902/tlsviewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
17116,
67,
12746,
12,
2890,
4672,
3536,
3536,
7541,
336,
326,
666,
434,
2687,
67,
2232,
358,
4845,
2687,
67,
2232,
273,
5378,
364,
2687,
67,
350,
16,
2687,
67,
1893,
316,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
17116,
67,
12746,
12,
2890,
4672,
3536,
3536,
7541,
336,
326,
666,
434,
2687,
67,
2232,
358,
4845,
2687,
67,
2232,
273,
5378,
364,
2687,
67,
350,
16,
2687,
67,
1893,
316,
365... | |
correct_pt = self.portal_type fti = pt.getTypeInfo(correct_pt) | correct_pt = portal_type fti = ptTool.getTypeInfo(correct_pt) | def _getPortalTypeName(self): """ """ pt = getToolByName(self, 'portal_types') # make it easy to derive from atct: if hasattr(self,'newTypeFor') and self.newTypeFor: correct_pt = self.newTypeFor[0] else: correct_pt = self.portal_type fti = pt.getTypeInfo(correct_pt) if fti is None: # FTI is None which may happen in ATC... | ac53e4c229720b94cd2f04da7e7f0d0fc91dd615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/ac53e4c229720b94cd2f04da7e7f0d0fc91dd615/ATContentType.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
24395,
7947,
12,
2890,
4672,
3536,
3536,
5818,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
2352,
6134,
468,
1221,
518,
12779,
358,
14763,
628,
622,
299,
30,
309,
3859,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24395,
7947,
12,
2890,
4672,
3536,
3536,
5818,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
2352,
6134,
468,
1221,
518,
12779,
358,
14763,
628,
622,
299,
30,
309,
3859,
... |
dottedname = 'z3c.testsetup.tests.%s' % (filename[:-3],) test = doctest.DocTestSuite(dottedname, | dottedname = os.path.join('..', filename) test = doctest.DocFileSuite(dottedname, | def suiteFromFile(filename): suite = unittest.TestSuite() dottedname = 'z3c.testsetup.tests.%s' % (filename[:-3],) test = doctest.DocTestSuite(dottedname, setUp=setUpZope, tearDown=cleanUpZope, checker=checker, optionflags=doctest.ELLIPSIS+ doctest.NORMALIZE_WHITESPACE) suite.addTest(test) return suite | a6d147328091b15330fde75bdffa2e7707cbe58f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14288/a6d147328091b15330fde75bdffa2e7707cbe58f/test_testsetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13087,
12,
3459,
4672,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
20965,
529,
273,
1140,
18,
803,
18,
5701,
2668,
838,
2187,
1544,
13,
1842,
273,
31263,
395,
18,
1759,
812,
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,
11371,
13087,
12,
3459,
4672,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
20965,
529,
273,
1140,
18,
803,
18,
5701,
2668,
838,
2187,
1544,
13,
1842,
273,
31263,
395,
18,
1759,
812,
13... |
if request.method == 'POST': if(not id): form = DistrictForm(request.POST) if form.is_valid(): new_form = form.save(commit=False) new_form.id = request.POST['id'] new_form.save() return HttpResponse("1") else: return HttpResponse("0") else: district = District.objects.get(id=id) form = DistrictForm(request.POST, insta... | if request.method == 'POST': if(not id): form = DistrictForm(request.POST) if form.is_valid(): new_form = form.save(commit=False) new_form.id = request.POST['id'] new_form.save() return HttpResponse("1") else: return HttpResponse("0") else: district = District.objects.get(id=id) form = DistrictForm(request.POST, insta... | def save_district_offline(request, id): if request.method == 'POST': if(not id): form = DistrictForm(request.POST) if form.is_valid(): new_form = form.save(commit=False) new_form.id = request.POST['id'] new_form.save() return HttpResponse("1") else: return HttpResponse("0") else: district = District.objects.get(id=id)... | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
22602,
67,
23787,
12,
2293,
16,
612,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
309,
12,
902,
612,
4672,
646,
273,
3035,
5792,
1204,
12,
2293,
18,
3798,
13,
309,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
22602,
67,
23787,
12,
2293,
16,
612,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
309,
12,
902,
612,
4672,
646,
273,
3035,
5792,
1204,
12,
2293,
18,
3798,
13,
309,
646,
... |
self.assertTrue(u.fp.fp.raw._sock.gettimeout() is None) | self.assertTrue(u.fp.raw._sock.gettimeout() is None) | def test_http_basic(self): self.assertTrue(socket.getdefaulttimeout() is None) u = _urlopen_with_retry("http://www.python.org") self.assertTrue(u.fp.fp.raw._sock.gettimeout() is None) | 4376dbc5f62d2bb65938d1af8c2a731bcd645763 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/4376dbc5f62d2bb65938d1af8c2a731bcd645763/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2505,
67,
13240,
12,
2890,
4672,
365,
18,
11231,
5510,
12,
7814,
18,
588,
1886,
4538,
1435,
353,
599,
13,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
559... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2505,
67,
13240,
12,
2890,
4672,
365,
18,
11231,
5510,
12,
7814,
18,
588,
1886,
4538,
1435,
353,
599,
13,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
559... |
Permutation Group with generators [(2,9,6)(3,8,10)(4,7,5), (1,2)(5,10)(6,9)(7,8)] | The projective special unitary group of degree 2 over Finite Field of size 3 | def __str__(self): return "The projective symplectic linear group of degree %s over %s"%(self._n, self.base_ring()) | eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
1986,
1984,
688,
27978,
1582,
335,
9103,
1041,
434,
10782,
738,
87,
1879,
738,
87,
6,
17105,
2890,
6315,
82,
16,
365,
18,
1969,
67,
8022,
1075... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
701,
972,
12,
2890,
4672,
327,
315,
1986,
1984,
688,
27978,
1582,
335,
9103,
1041,
434,
10782,
738,
87,
1879,
738,
87,
6,
17105,
2890,
6315,
82,
16,
365,
18,
1969,
67,
8022,
1075... |
oldip = ip.ip_addr ip.ip_addr = request.POST['ip_addr%d' % ip.id] ip.save() oldname = "-".join([host.hostname.split(".", 1)[0], oldip.split(".")[2]]) oldname += "." + host.hostname.split(".", 1)[1] newname = "-".join([host.hostname.split(".", 1)[0], ip.ip_addr.split(".")[2]]) newname += "." + host.hostname.split(".", 1... | if not ip.ip_addr == request.POST['ip_addr%d' % ip.id]: oldip = ip.ip_addr ip.ip_addr = request.POST['ip_addr%d' % ip.id] ip.save() oldname = "-".join([host.hostname.split(".", 1)[0], oldip.split(".")[2]]) oldname += "." + host.hostname.split(".", 1)[1] newname = "-".join([host.hostname.split(".", 1)[0], ip.ip_addr.spl... | def edit(request, host_id): """Edit general host information Data is validated before being committed to the database""" # fix bug when ip address changes, update the dns info appropriately if request.GET.has_key('sub'): host = Host.objects.get(id=host_id) interfaces = host.interface_set.all() if not validate(request,... | 998b31229cdd91a1fd0610596e83addfe28e6e0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/998b31229cdd91a1fd0610596e83addfe28e6e0c/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2293,
16,
1479,
67,
350,
4672,
3536,
4666,
7470,
1479,
1779,
1910,
353,
10266,
1865,
3832,
16015,
358,
326,
2063,
8395,
468,
2917,
7934,
1347,
2359,
1758,
3478,
16,
1089,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2293,
16,
1479,
67,
350,
4672,
3536,
4666,
7470,
1479,
1779,
1910,
353,
10266,
1865,
3832,
16015,
358,
326,
2063,
8395,
468,
2917,
7934,
1347,
2359,
1758,
3478,
16,
1089,
326,
... |
body = '301 Moved Permanently' status = '301 %s' % body | body = 'See Other' status = '303 %s' % body | def POST(self, name): document_uri = join(DB_URI, '%s.md' % name) length = int(self.environ['CONTENT_LENGTH']) input_data = self.environ['wsgi.input'].read(length) input_data = parse_qs(input_data) | 293fe52369eda0931f49f7387a3719d0070b6d4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10271/293fe52369eda0931f49f7387a3719d0070b6d4c/mynus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
508,
4672,
1668,
67,
1650,
273,
1233,
12,
2290,
67,
3098,
16,
1995,
87,
18,
1264,
11,
738,
508,
13,
769,
273,
509,
12,
2890,
18,
28684,
3292,
9689,
67,
7096,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
508,
4672,
1668,
67,
1650,
273,
1233,
12,
2290,
67,
3098,
16,
1995,
87,
18,
1264,
11,
738,
508,
13,
769,
273,
509,
12,
2890,
18,
28684,
3292,
9689,
67,
7096,
1948... |
AddPoint = context.application.plugins.get_action("AddPoint") self.assert_(AddPoint.analyze_selection()) AddPoint() context.application.model.universe.children[-1].transformation.t = numpy.random.uniform(-1, 1, 3) | Point = context.application.plugins.get_node("Point") point = Point(transformation=Translation(numpy.random.uniform(-1, 1, 3))) context.application.model.universe.add(point) | def fn(): FileNew = context.application.plugins.get_action("FileNew") FileNew() | 62f7ec753ba9da75e5b2dd8ce785b326ae798627 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/62f7ec753ba9da75e5b2dd8ce785b326ae798627/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
13332,
1387,
1908,
273,
819,
18,
3685,
18,
8057,
18,
588,
67,
1128,
2932,
812,
1908,
7923,
1387,
1908,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2295,
13332,
1387,
1908,
273,
819,
18,
3685,
18,
8057,
18,
588,
67,
1128,
2932,
812,
1908,
7923,
1387,
1908,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for i in xrange(0, nb.get_n_pages()): | for i in xrange(0, nb.get_n_pages() + 1): | def closetab(self, widget, label): """Close a tab""" tabnum = None try: nb = widget.notebook except AttributeError: err('TabLabel::closetab: called on non-Notebook: %s' % widget) return | 4f6aeb93e0b719670531c136471774acfe0890b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/4f6aeb93e0b719670531c136471774acfe0890b9/notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1219,
542,
378,
12,
2890,
16,
3604,
16,
1433,
4672,
3536,
4605,
279,
3246,
8395,
3246,
2107,
273,
599,
775,
30,
4264,
273,
3604,
18,
24422,
1335,
6394,
30,
393,
2668,
5661,
2224,
2866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1219,
542,
378,
12,
2890,
16,
3604,
16,
1433,
4672,
3536,
4605,
279,
3246,
8395,
3246,
2107,
273,
599,
775,
30,
4264,
273,
3604,
18,
24422,
1335,
6394,
30,
393,
2668,
5661,
2224,
2866,
... |
if self.config.PLC_OMF: | if self.config.PLC_OMF_ENABLED: | def __init__(self, config = "/etc/planetlab/plc_config", encoding = "utf-8"): self.encoding = encoding | 7274975ce82fb8e9d55907111ea223e14a782546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/7274975ce82fb8e9d55907111ea223e14a782546/API.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
273,
2206,
14175,
19,
7088,
278,
7411,
19,
412,
71,
67,
1425,
3113,
2688,
273,
315,
3158,
17,
28,
6,
4672,
365,
18,
5999,
273,
2688,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
273,
2206,
14175,
19,
7088,
278,
7411,
19,
412,
71,
67,
1425,
3113,
2688,
273,
315,
3158,
17,
28,
6,
4672,
365,
18,
5999,
273,
2688,
2,
-100,
-100... |
Menu(_("_Feeds"), "Feeds", *FeedItems), | Menu(_("_Sidebar"), "Sidebar", *SidebarItems), | def extractMenuItem(self, menuAction, itemAction): menu = self.findMenu(menuAction) if menu is not None: return menu.extractMenuItem(itemAction) return None | 5f3c4ee42947e9ac8ed3e6bea1af998346c74d86 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/5f3c4ee42947e9ac8ed3e6bea1af998346c74d86/menubar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12958,
12,
2890,
16,
3824,
1803,
16,
761,
1803,
4672,
3824,
273,
365,
18,
4720,
4599,
12,
5414,
1803,
13,
309,
3824,
353,
486,
599,
30,
327,
3824,
18,
8004,
12958,
12,
1726,
1803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12958,
12,
2890,
16,
3824,
1803,
16,
761,
1803,
4672,
3824,
273,
365,
18,
4720,
4599,
12,
5414,
1803,
13,
309,
3824,
353,
486,
599,
30,
327,
3824,
18,
8004,
12958,
12,
1726,
1803... |
function.__init__(self,self._fnct_read, arg, self._fnct_write, fnct_inv_arg=arg,method=True, fnct_search=self._fnct_search,**args) | function.__init__(self,self._fnct_read, arg, fnct_inv_arg=arg,method=True, fnct_search=self._fnct_search,**args) | def __init__(self,*arg,**args): function.__init__(self,self._fnct_read, arg, self._fnct_write, fnct_inv_arg=arg,method=True, fnct_search=self._fnct_search,**args) | cc7f55a19e8d4adcfbd1887f5b2054136c1ff10b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/cc7f55a19e8d4adcfbd1887f5b2054136c1ff10b/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
3175,
16,
636,
1968,
4672,
445,
16186,
2738,
972,
12,
2890,
16,
2890,
6315,
4293,
299,
67,
896,
16,
1501,
16,
365,
6315,
4293,
299,
67,
2626,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
3175,
16,
636,
1968,
4672,
445,
16186,
2738,
972,
12,
2890,
16,
2890,
6315,
4293,
299,
67,
896,
16,
1501,
16,
365,
6315,
4293,
299,
67,
2626,
16,
2... |
myMask="*%s*%s-findFlags_%s_%s.wiki"%\ | myMask="*%s/*%s-findFlags_%s_%s.wiki"%\ | def get_findFlags(self): """ """ tmpList=list() #H1,H2,L1-findFlags_H1,H2,L1_831695156.714.wiki #instrument,ifos ifoString="" for i in range(0,len(self.coinc.ifos)/2):ifoString=ifoString+"%s,"%self.coinc.ifos[2*i:2*i+2] ifoString=ifoString.rstrip(",") insString="" for i in range(0,len(self.coinc.instruments)/2):insStri... | 2ecdb740cf7779b329f5e5208424d8c61de2993d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/2ecdb740cf7779b329f5e5208424d8c61de2993d/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4720,
5094,
12,
2890,
4672,
3536,
3536,
1853,
682,
33,
1098,
1435,
468,
44,
21,
16,
44,
22,
16,
48,
21,
17,
4720,
5094,
67,
44,
21,
16,
44,
22,
16,
48,
21,
67,
10261,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4720,
5094,
12,
2890,
4672,
3536,
3536,
1853,
682,
33,
1098,
1435,
468,
44,
21,
16,
44,
22,
16,
48,
21,
17,
4720,
5094,
67,
44,
21,
16,
44,
22,
16,
48,
21,
67,
10261,
23... |
previous_completion = self.completions[cursel - 1] while cursel > 0 and selstart[:i] <= previous_completion: i += 1 if selstart == previous_completion: break | def _selection_changed(self): """Should be called when the selection of the Listbox has changed. Updates the Listbox display and calls _change_start.""" cursel = int(self.listbox.curselection()[0]) | 68a27851370b38d7bd71e78cb40f5f5d1b303316 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/68a27851370b38d7bd71e78cb40f5f5d1b303316/AutoCompleteWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10705,
67,
6703,
12,
2890,
4672,
3536,
14309,
506,
2566,
1347,
326,
4421,
434,
326,
987,
2147,
711,
3550,
18,
15419,
326,
987,
2147,
2562,
471,
4097,
389,
3427,
67,
1937,
12123,
662... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10705,
67,
6703,
12,
2890,
4672,
3536,
14309,
506,
2566,
1347,
326,
4421,
434,
326,
987,
2147,
711,
3550,
18,
15419,
326,
987,
2147,
2562,
471,
4097,
389,
3427,
67,
1937,
12123,
662... | |
"""return a default object created to be populated | """Return a default object created to be populated. | def __call__(): """return a default object created to be populated """ | 377e567b76340c660103da07a0a7e66be0a751b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9738/377e567b76340c660103da07a0a7e66be0a751b7/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
13332,
3536,
990,
279,
805,
733,
2522,
358,
506,
6737,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
13332,
3536,
990,
279,
805,
733,
2522,
358,
506,
6737,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.DebugErr(loc) | self.Debug(loc) | def lookup_yahoo(self, word): connect = httplib.HTTPConnection('cn.yahoo.com', 80) w = word.encode("GBK") # better than error connect.request("GET", "/dictionary/result/%s/%s.html" % (w[0], w)) response = connect.getresponse() if response.status != 200: msg = "%d:%s" % (response.status, response.reason) loc = response.... | e97f3842d8c52d18adcff5fbefe2f4f5f1869ff1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10749/e97f3842d8c52d18adcff5fbefe2f4f5f1869ff1/weblookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
67,
93,
9795,
5161,
12,
2890,
16,
2076,
4672,
3077,
273,
15851,
6673,
18,
3693,
1952,
2668,
10305,
18,
93,
9795,
5161,
18,
832,
2187,
8958,
13,
341,
273,
2076,
18,
3015,
2932,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
67,
93,
9795,
5161,
12,
2890,
16,
2076,
4672,
3077,
273,
15851,
6673,
18,
3693,
1952,
2668,
10305,
18,
93,
9795,
5161,
18,
832,
2187,
8958,
13,
341,
273,
2076,
18,
3015,
2932,
58... |
nic_bridge = nic_dict.get('bridge', None) if nic_bridge is None: nic_dict['bridge'] = self.cfg.GetDefBridge() | def CheckArguments(self): if not hasattr(self.op, 'nics'): self.op.nics = [] if not hasattr(self.op, 'disks'): self.op.disks = [] if not hasattr(self.op, 'beparams'): self.op.beparams = {} if not hasattr(self.op, 'hvparams'): self.op.hvparams = {} self.op.force = getattr(self.op, "force", False) if not (self.op.nics or... | cd098c41522469e462efeb1e157a8718ff7b7809 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/cd098c41522469e462efeb1e157a8718ff7b7809/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
4628,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
18,
556,
16,
296,
82,
2102,
11,
4672,
365,
18,
556,
18,
82,
2102,
273,
5378,
309,
486,
3859,
12,
2890,
18,
556,
16,
296,
28577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
4628,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
18,
556,
16,
296,
82,
2102,
11,
4672,
365,
18,
556,
18,
82,
2102,
273,
5378,
309,
486,
3859,
12,
2890,
18,
556,
16,
296,
28577,
... | |
tag = tag.replace("\n", " ").replace(""", '"') | tag = tag.replace("\n", " ") | def processTag(self, tag): tag = tag[1:-1] tag = tag.replace("\n", " ").replace(""", '"') | 40c303066e2ef26cc7500d0d1bbbb5cc8267cc62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/40c303066e2ef26cc7500d0d1bbbb5cc8267cc62/simplexmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1805,
12,
2890,
16,
1047,
4672,
1047,
273,
1047,
63,
21,
30,
17,
21,
65,
1047,
273,
1047,
18,
2079,
31458,
82,
3113,
315,
315,
2934,
2079,
2932,
10,
9270,
31,
3113,
4754,
13,
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,
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,
1207,
1805,
12,
2890,
16,
1047,
4672,
1047,
273,
1047,
63,
21,
30,
17,
21,
65,
1047,
273,
1047,
18,
2079,
31458,
82,
3113,
315,
315,
2934,
2079,
2932,
10,
9270,
31,
3113,
4754,
13,
2... |
padded_team_num = int( math.pow( 2, math.ceil( math.log( actual_team_num ) ) + 1 ) ) | padded_team_num = int( math.pow( 2, math.ceil( math.log( actual_team_num, 2 ) ) ) ) | def build(self,db,teams_,description): session = db.sessionmaker() self.teams = teams_ #random.shuffle(self.teams) self.description = description actual_team_num = len(teams_) padded_team_num = int( math.pow( 2, math.ceil( math.log( actual_team_num ) ) + 1 ) ) print 'got %d teams, padded to %d teams'%(actual_team_num,p... | 4d0bf173307c3d7b85e0af64dac6f934fcff8925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11284/4d0bf173307c3d7b85e0af64dac6f934fcff8925/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1966,
16,
27292,
67,
16,
3384,
4672,
1339,
273,
1319,
18,
3184,
29261,
1435,
365,
18,
27292,
273,
21475,
67,
468,
9188,
18,
31980,
12,
2890,
18,
27292,
13,
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,
1361,
12,
2890,
16,
1966,
16,
27292,
67,
16,
3384,
4672,
1339,
273,
1319,
18,
3184,
29261,
1435,
365,
18,
27292,
273,
21475,
67,
468,
9188,
18,
31980,
12,
2890,
18,
27292,
13,
365,
18,... |
<pre><script type="<a href="script">http://fw.mearie.org/script</a>"></script></pre> | <pre><script src="<a href="script">http://fw.mearie.org/script</a>"></script></pre> | def GET(self): web.header('Content-type', 'text/html') return '''\ | c436b8990ce766f2c8c29ea5e0743ea043397a15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9332/c436b8990ce766f2c8c29ea5e0743ea043397a15/forward.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
3311,
18,
3374,
2668,
1350,
17,
723,
2187,
296,
955,
19,
2620,
6134,
327,
875,
8314,
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,
4978,
12,
2890,
4672,
3311,
18,
3374,
2668,
1350,
17,
723,
2187,
296,
955,
19,
2620,
6134,
327,
875,
8314,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def arg_expand(list, opts): optmap = { 'A':'account', 'B':'bandwidth', 'C':'current_size', 'F':'file', 'H':'host', 'L':'localhost', 'O':'localport', 'P':'percentage', 'D':'pid', 'R':'resume', 'S':'state', 'T':'time', 'X':'stats', 'Z':'total_size' } for l in opts: if optmap.has_key(l): list.append(optmap[l]) else: print... | def clients(): fh.clear() parser.parse(os.popen('pure-ftpwho -x')) return numberize(fh.clients) | def arg_expand(list, opts): | 7b3f133f3d229db545911486033a9ef1856ec7b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/7b3f133f3d229db545911486033a9ef1856ec7b3/pure-ftp_xml_python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
12320,
12,
1098,
16,
1500,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
12320,
12,
1098,
16,
1500,
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... |
rt = RegistrationType.get_cached(name=prereg_verb, category='student') | def preregister_student(self, user, overridefull=False, priority=1, prereg_verb = None, fast_force_create=False): StudentRegistration, RegistrationType = self.StudentRegistration, self.RegistrationType | 429f80979596f6ea2d1ea5f8fffa154ef616d2bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/429f80979596f6ea2d1ea5f8fffa154ef616d2bd/class_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
13630,
67,
26240,
12,
2890,
16,
729,
16,
5713,
77,
536,
420,
33,
8381,
16,
4394,
33,
21,
16,
846,
11877,
67,
16629,
273,
599,
16,
4797,
67,
5734,
67,
2640,
33,
8381,
4672,
934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
13630,
67,
26240,
12,
2890,
16,
729,
16,
5713,
77,
536,
420,
33,
8381,
16,
4394,
33,
21,
16,
846,
11877,
67,
16629,
273,
599,
16,
4797,
67,
5734,
67,
2640,
33,
8381,
4672,
934,
... | |
bdecode.configure(bg='gray85',highlightbackground='red') | bdecode.configure(bg='gray85',activebackground='gray95') | def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \ first,itol,txsnrdb,tx6alt utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime(... | b35cfae8eecc990180481038ceb0555469e80ae6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2394/b35cfae8eecc990180481038ceb0555469e80ae6/wsjt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
... |
if time_length < 1: return '%0.2fsec' % time_length elif time_length < 60: return '<span style="color: | if time_length >= 60*1: time_string = '%i:%i:%i' % (int(time_length/60/60), int(time_length/60) % 60, time_length % (60*60)) elif time_length >= 120: time_string = '%i:%i' % (int(time_length/60), time_length % 60) elif time_length > 60: time_string = '%i sec' % time_length elif time_length > 1: time_string = '%0.1f se... | def format_time(time_length): if time_length < 1: return '%0.2fsec' % time_length elif time_length < 60: return '<span style="color: #900">%.1fsec</span>' % time_length else: return '<span style="background-color: #600; color: #fff">%isec</span>' % time_length | c3e26011d1f94bd35f80b336dda2f51267dfc277 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/c3e26011d1f94bd35f80b336dda2f51267dfc277/watchthreads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
957,
12,
957,
67,
2469,
4672,
309,
813,
67,
2469,
1545,
4752,
14,
21,
30,
225,
813,
67,
1080,
273,
1995,
77,
5319,
77,
5319,
77,
11,
738,
261,
474,
12,
957,
67,
2469,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
957,
12,
957,
67,
2469,
4672,
309,
813,
67,
2469,
1545,
4752,
14,
21,
30,
225,
813,
67,
1080,
273,
1995,
77,
5319,
77,
5319,
77,
11,
738,
261,
474,
12,
957,
67,
2469,
19,
... |
try: x = self.tk.call(self._w, 'subwidgets', '-all') return self.tk.split(x) except TclError: return None | try: x = self.tk.call(self._w, 'subwidgets', '-all') return self.tk.split(x) except TclError: return None | def _subwidget_names(self): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
6587,
67,
1973,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
6587,
67,
1973,
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... |
awaitingStatus = model.PackageAclStatus.get_by() | def toggle_acl_request(self, containerId): # Make sure package exists pkgListId, aclName = containerId.split(':') pkgListing = model.PackageListing.get_by(id=pkgListId) if not pkgListing: return dict(status=False, message='No such package listing %s' % pkgListId) | 41f0ae72ef0b1053a8c472c7da6482da5e7080d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/41f0ae72ef0b1053a8c472c7da6482da5e7080d2/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
67,
10150,
67,
2293,
12,
2890,
16,
27142,
4672,
468,
4344,
3071,
2181,
1704,
3475,
682,
548,
16,
7895,
461,
273,
27142,
18,
4939,
2668,
2497,
13,
3475,
19081,
273,
938,
18,
2261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
67,
10150,
67,
2293,
12,
2890,
16,
27142,
4672,
468,
4344,
3071,
2181,
1704,
3475,
682,
548,
16,
7895,
461,
273,
27142,
18,
4939,
2668,
2497,
13,
3475,
19081,
273,
938,
18,
2261,
... | |
self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} | self.type_stats = {'ALCH':{},'AMMO':{},'ARMO':{},'BOOK':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'WEAP':{}} | def __init__(self,types=None,aliases=None): """Initialize.""" self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} self.type_attrs = { 'ALCH':('eid', 'full', 'weight', 'value', 'iconPath'), 'AMMO':('eid', 'full', 'weight', ... | aeca1db1240364fac710811ccc7f19b3a36b644a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/aeca1db1240364fac710811ccc7f19b3a36b644a/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2352,
33,
7036,
16,
13831,
33,
7036,
4672,
3536,
7520,
12123,
365,
18,
723,
67,
5296,
273,
13666,
1013,
1792,
4278,
2916,
11189,
2192,
5980,
4278,
2916,
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,
1001,
2738,
972,
12,
2890,
16,
2352,
33,
7036,
16,
13831,
33,
7036,
4672,
3536,
7520,
12123,
365,
18,
723,
67,
5296,
273,
13666,
1013,
1792,
4278,
2916,
11189,
2192,
5980,
4278,
2916,
11... |
yield "".join(self.main_menu()) | tree = get_param(form, "tree") host = get_param(form, "host") compiler = get_param(form, "compiler") yield "".join(self.main_menu(tree, host, compiler)) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 6df5ccdcda4ca562343909bddd8871a4d7ca7829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6df5ccdcda4ca562343909bddd8871a4d7ca7829/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
646,
273,
276,
10052,
18,
974,
3245,
12,
7944,
33,
28684,
3292,
28539,
18,
2630,
17337,
5473,
33,
28684,
13,
2295,
67,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
646,
273,
276,
10052,
18,
974,
3245,
12,
7944,
33,
28684,
3292,
28539,
18,
2630,
17337,
5473,
33,
28684,
13,
2295,
67,
529... |
- This function is based on Networkx's implementation of the Bron and Kerbosch Algorithm, [1]. | This function is based on Networkx's implementation of the Bron and Kerbosch Algorithm [BroKer1973]_. | def cliques_maximal(self): """ Returns the list of all maximal cliques, with each clique represented by a list of vertices. A clique is an induced complete subgraph, and a maximal clique is one not contained in a larger one. NOTES: - Currently only implemented for undirected graphs. Use to_undirected to convert a dig... | 9e5b138b9189031c2c258c6596d3a3b7fdafb7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9e5b138b9189031c2c258c6596d3a3b7fdafb7d0/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
1896,
2840,
12,
2890,
4672,
3536,
2860,
326,
666,
434,
777,
943,
2840,
4942,
29896,
16,
598,
1517,
31380,
10584,
635,
279,
666,
434,
6928,
18,
432,
31380,
353,
392,
1547... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
1896,
2840,
12,
2890,
4672,
3536,
2860,
326,
666,
434,
777,
943,
2840,
4942,
29896,
16,
598,
1517,
31380,
10584,
635,
279,
666,
434,
6928,
18,
432,
31380,
353,
392,
1547... |
if cpsdates[0] == "2006-05-09": | if cpsdates[0] in ["2006-05-08", "2006-05-09", "2006-05-10", "2006-05-11"]: | def SetNameMatch(cp, cpsdates): cp.matchid = "" # don't match names that are in the lords if not re.search("Duke |Lord |Baroness |Dame ", cp.fullname): fullname = cp.fullname cons = cp.cons if fullname == "Mr Michael Foster" and not cons: if cpsdates[0] == "2006-05-09": cons = "Worcester" # this Michael Foster had b... | 06541d8e87e54eccf4b051d21f109390d9b466f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8428/06541d8e87e54eccf4b051d21f109390d9b466f9/minpostparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17823,
2060,
12,
4057,
16,
276,
1121,
9683,
4672,
3283,
18,
1916,
350,
273,
1408,
225,
468,
2727,
1404,
845,
1257,
716,
854,
316,
326,
328,
517,
87,
309,
486,
283,
18,
3072,
2932,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17823,
2060,
12,
4057,
16,
276,
1121,
9683,
4672,
3283,
18,
1916,
350,
273,
1408,
225,
468,
2727,
1404,
845,
1257,
716,
854,
316,
326,
328,
517,
87,
309,
486,
283,
18,
3072,
2932,
40,
... |
if numpy.iscomplexobj(p): indx = Numeric.argsort(abs(p)) | if iscomplexobj(p): indx = argsort(abs(p)) | def cmplx_sort(p): "sort roots based on magnitude." p = asarray(p) if numpy.iscomplexobj(p): indx = Numeric.argsort(abs(p)) else: indx = Numeric.argsort(p) return Numeric.take(p,indx), indx | 936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5003,
412,
92,
67,
3804,
12,
84,
4672,
315,
3804,
12876,
2511,
603,
13463,
1199,
293,
273,
10455,
12,
84,
13,
309,
353,
14259,
2603,
12,
84,
4672,
24732,
273,
22482,
12,
5113,
12,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5003,
412,
92,
67,
3804,
12,
84,
4672,
315,
3804,
12876,
2511,
603,
13463,
1199,
293,
273,
10455,
12,
84,
13,
309,
353,
14259,
2603,
12,
84,
4672,
24732,
273,
22482,
12,
5113,
12,
84,
... |
print dpttypes.decode([24,88],dptid=9) print dpttypes.decode([1],dptid=1) print dpttypes.decode([35,76,58],dptid=16) print dpttypes.encode("Das ist",dptid=16) | print dpttypes.encode(15.5,dptid=14) print dpttypes.decode([0, 0, 6, 14],dptid=14) print dpttypes.decode([65, 120, 0, 0],dptid=14) | def guessDPT(self,raw): if type(raw) == int: if raw < 256: return 5 elif raw < 655535: return 7 elif type(raw) == float: if raw > -671088.64 and raw < 670760.96: return 9 else: return 14 elif type(raw) == str or type(raw) == unicode: return 16 return 0 | 9500404a57e625ebedc4fb2cf5feecd973d29ca4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5166/9500404a57e625ebedc4fb2cf5feecd973d29ca4/DPT_Types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
40,
1856,
12,
2890,
16,
1899,
4672,
309,
618,
12,
1899,
13,
422,
509,
30,
309,
1831,
411,
8303,
30,
327,
1381,
1327,
1831,
411,
8982,
25,
4763,
30,
327,
2371,
1327,
618,
12,
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,
7274,
40,
1856,
12,
2890,
16,
1899,
4672,
309,
618,
12,
1899,
13,
422,
509,
30,
309,
1831,
411,
8303,
30,
327,
1381,
1327,
1831,
411,
8982,
25,
4763,
30,
327,
2371,
1327,
618,
12,
18... |
BulletListLayer("Control De Flujo", [ | BulletListLayer("Flow Control", [ | def __init__( self ): super( GrossiniLayer2, self ).__init__() | 856719e7a5692dc72588e63080ee7e8b302d3671 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/856719e7a5692dc72588e63080ee7e8b302d3671/presentacion_en.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
2240,
12,
611,
3984,
8767,
4576,
22,
16,
365,
262,
16186,
2738,
972,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
2240,
12,
611,
3984,
8767,
4576,
22,
16,
365,
262,
16186,
2738,
972,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
jobID = int(res['Value'][0][0]) | jobID = int( res['Value'][0][0] ) | def __insertNewJDL( self, JDL ): """Insert a new JDL in the system, this produces a new JobID """ res = self._getConnection() if not res['OK']: return res connection = res['Value'] res = self._insert( 'JobJDLs' , ['OriginalJDL'],[JDL], connection) | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6387,
1908,
46,
8914,
12,
365,
16,
804,
8914,
262,
30,
3536,
4600,
279,
394,
804,
8914,
316,
326,
2619,
16,
333,
15505,
279,
394,
22137,
3536,
400,
273,
365,
6315,
588,
1952,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6387,
1908,
46,
8914,
12,
365,
16,
804,
8914,
262,
30,
3536,
4600,
279,
394,
804,
8914,
316,
326,
2619,
16,
333,
15505,
279,
394,
22137,
3536,
400,
273,
365,
6315,
588,
1952,
143... |
return 1 | def test_expat_entityresolver(): return 1 # disabling this until pyexpat.c has been fixed parser = create_parser() parser.setEntityResolver(TestEntityResolver()) result = StringIO() parser.setContentHandler(XMLGenerator(result)) parser.feed('<!DOCTYPE doc [\n') parser.feed(' <!ENTITY test SYSTEM "whatever">\n') parse... | a4c311693a4e0996e557d83b78b85ebf469eaed1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a4c311693a4e0996e557d83b78b85ebf469eaed1/test_sax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2749,
270,
67,
1096,
14122,
13332,
468,
1015,
17912,
333,
3180,
2395,
2749,
270,
18,
71,
711,
2118,
5499,
2082,
273,
752,
67,
4288,
1435,
2082,
18,
542,
1943,
4301,
12,
4709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2749,
270,
67,
1096,
14122,
13332,
468,
1015,
17912,
333,
3180,
2395,
2749,
270,
18,
71,
711,
2118,
5499,
2082,
273,
752,
67,
4288,
1435,
2082,
18,
542,
1943,
4301,
12,
4709,
... | |
self.repository(repository) | self.repository = repository | def setRepository(self, repository): self.repository(repository) | 712021c6e5e001b1a637ac5d8f566b3f45b629d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1870/712021c6e5e001b1a637ac5d8f566b3f45b629d4/sloccompare.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3305,
12,
2890,
16,
3352,
4672,
365,
18,
9071,
12,
9071,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3305,
12,
2890,
16,
3352,
4672,
365,
18,
9071,
12,
9071,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return PYSRC_TEMPLATE % (self.module_name, html) | def colorize(self): """ Return an HTML string that renders the source code for the module that was specified in the constructor. """ # Initialize all our state variables self.pos = 0 self.cur_line = [] self.context = [] self.indents = [] self.lineno = 1 self.def_name = None | 385f05adec449bdea4b9e93217234a88e6f51d67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/385f05adec449bdea4b9e93217234a88e6f51d67/html_colorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21077,
12,
2890,
4672,
3536,
2000,
392,
3982,
533,
716,
19567,
326,
1084,
981,
364,
326,
1605,
716,
1703,
1269,
316,
326,
3885,
18,
3536,
468,
9190,
777,
3134,
919,
3152,
365,
18,
917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21077,
12,
2890,
4672,
3536,
2000,
392,
3982,
533,
716,
19567,
326,
1084,
981,
364,
326,
1605,
716,
1703,
1269,
316,
326,
3885,
18,
3536,
468,
9190,
777,
3134,
919,
3152,
365,
18,
917,
... | |
httpPort = gHttpPort httpDir = gHttpDir logFile = gLogFile user = gUser group = gGroup doFork = 'true' | httpPort = gHttpPort httpDir = gHttpDir logFile = gLogFile user = gUser group = gGroup doFork = 'true' | def main( ): httpPort = gHttpPort httpDir = gHttpDir logFile = gLogFile user = gUser group = gGroup doFork = 'true' shortOpts = 'd:p:l:u:g:fh' longOpts = [ 'httpdir=', 'httpport=', 'logfile=', 'user=', 'group=', 'help' ] try: opts, args = getopt.getopt( sys.argv[1:], shortOpts, longOpts ) except getopt.Ge... | d4cc2d1599d12bc73db5aa9e3c513fd4c1e1f939 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/d4cc2d1599d12bc73db5aa9e3c513fd4c1e1f939/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
1062,
2617,
273,
314,
2940,
2617,
1062,
1621,
225,
273,
314,
2940,
1621,
20169,
225,
273,
314,
19103,
729,
377,
273,
314,
1299,
1041,
565,
273,
314,
1114,
741,
22662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
1062,
2617,
273,
314,
2940,
2617,
1062,
1621,
225,
273,
314,
2940,
1621,
20169,
225,
273,
314,
19103,
729,
377,
273,
314,
1299,
1041,
565,
273,
314,
1114,
741,
22662,
... |
G = LineXY(data) | G = LineXY(data, encoding='text') | def axes_position(self): data = [ [10, 13, 16, 25, 26, 39, 54, 60, 66, 74, 94, 104, 139, 156, 160, 164, 166, 185, 187, 202, 208, 213], [2914, 3617, 3454, 3390, 3484, 3319, 2372, 2388, 2749, 2381, 2333, 2320, 2261, 1346, 1278, 1174, 1275, 1392, 1373, 2525, 1376, 2334] ] | a01545cf7adf23820da0eb2a3e75b3eac67c866b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3687/a01545cf7adf23820da0eb2a3e75b3eac67c866b/testing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6515,
67,
3276,
12,
2890,
4672,
501,
273,
306,
306,
2163,
16,
5958,
16,
2872,
16,
6969,
16,
10659,
16,
16977,
16,
22431,
16,
4752,
16,
22342,
16,
30338,
16,
31069,
16,
21856,
16,
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,
6515,
67,
3276,
12,
2890,
4672,
501,
273,
306,
306,
2163,
16,
5958,
16,
2872,
16,
6969,
16,
10659,
16,
16977,
16,
22431,
16,
4752,
16,
22342,
16,
30338,
16,
31069,
16,
21856,
16,
404,
... |
self.N = ncolors self._i_under = self.N self._i_over = self.N+1 self._i_bad = self.N+2 | def set_source(self, source): """ Define an alternative source for the colormap. *source* can be any other matplotlib colormap object or its registered name, a NumPy array with one RGB triplet per row or the name of a textfile with one RGB triplet per line. Values should be between 0.0 and 1.0. """ self.source = source... | 24ed2bf2192a7e9558edc823cd2e9a65511bb35c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/508/24ed2bf2192a7e9558edc823cd2e9a65511bb35c/mplutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3168,
12,
2890,
16,
1084,
4672,
3536,
13184,
392,
10355,
1084,
364,
326,
24806,
18,
380,
3168,
14,
848,
506,
1281,
1308,
13892,
24806,
733,
578,
2097,
4104,
508,
16,
279,
6805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3168,
12,
2890,
16,
1084,
4672,
3536,
13184,
392,
10355,
1084,
364,
326,
24806,
18,
380,
3168,
14,
848,
506,
1281,
1308,
13892,
24806,
733,
578,
2097,
4104,
508,
16,
279,
6805,
... | |
TRAITS_UI = etsdep('Traits[ui]', '3.2.1') TRAITSBACKENDWX = etsdep('TraitsBackendWX', '3.2.1') | TRAITS_UI = etsdep('Traits[ui]', '3.3.0') TRAITSBACKENDWX = etsdep('TraitsBackendWX', '3.3.0') | def etsdep(p, min, max=None, literal=False): require = '%s >=%s.dev' % (p, min) if max is not None: if literal is False: require = '%s, <%s.a' % (require, max) else: require = '%s, <%s' % (require, max) return require | ca71ff8f11eae33e4828ec04f05470b503fe029f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13168/ca71ff8f11eae33e4828ec04f05470b503fe029f/setup_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
2413,
15037,
12,
84,
16,
1131,
16,
943,
33,
7036,
16,
7158,
33,
8381,
4672,
2583,
273,
1995,
87,
1545,
9,
87,
18,
5206,
11,
738,
261,
84,
16,
1131,
13,
309,
943,
353,
486,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
2413,
15037,
12,
84,
16,
1131,
16,
943,
33,
7036,
16,
7158,
33,
8381,
4672,
2583,
273,
1995,
87,
1545,
9,
87,
18,
5206,
11,
738,
261,
84,
16,
1131,
13,
309,
943,
353,
486,
599... |
QTabBar.setCurrentTab(self, tab) self.repaint() | if QApplication.style().name()[0:9] == "Macintosh": QTabBar.setCurrentTab(self, tab) self.repaint() else: self.repaint() QTabBar.setCurrentTab(self, tab) | def setCurrentTab(self, tab): if self.count() == 0: return if isinstance(tab, int): tab = self.tab(tab) id = tab.identifier() if id in self.tabrows[self.currows[-1]]: QTabBar.setCurrentTab(self, tab) else: for row in range(0, len(self.tabrows)): if id in self.tabrows[self.currows[row]]: saverow = self.currows[row] self... | a73c215e3c18eb8ed95ab369c2391de425252541 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/a73c215e3c18eb8ed95ab369c2391de425252541/MultiTabBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12589,
5661,
12,
2890,
16,
3246,
4672,
309,
365,
18,
1883,
1435,
422,
374,
30,
327,
309,
1549,
12,
7032,
16,
509,
4672,
3246,
273,
365,
18,
7032,
12,
7032,
13,
612,
273,
3246,
18,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12589,
5661,
12,
2890,
16,
3246,
4672,
309,
365,
18,
1883,
1435,
422,
374,
30,
327,
309,
1549,
12,
7032,
16,
509,
4672,
3246,
273,
365,
18,
7032,
12,
7032,
13,
612,
273,
3246,
18,
56... |
classifyInbox(vinbox, vspam, bayes, ldbname) | classifyInbox(vinbox, vtrainspam, bayes, ldbname, notesindex) print "The Spambayes database currently has %s Spam and %s Ham" \ % (bayes.nspam, bayes.nham) | def run(bdbname, useDBM, ldbname, rdbname, foldname, doTrain, doClassify): if useDBM: bayes = storage.DBDictClassifier(bdbname) else: bayes = storage.PickledClassifier(bdbname) sess = win32com.client.Dispatch("Lotus.NotesSession") sess.initialize() db = sess.GetDatabase("",ldbname) vinbox = db.getView('($Inbox)') vs... | d157df0b94ba030675a5557e78bbe08945d099e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d157df0b94ba030675a5557e78bbe08945d099e0/notesfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
70,
20979,
16,
999,
2290,
49,
16,
328,
20979,
16,
436,
20979,
16,
11590,
529,
16,
741,
23419,
16,
741,
797,
1164,
4672,
225,
309,
999,
2290,
49,
30,
324,
528,
281,
273,
250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
20979,
16,
999,
2290,
49,
16,
328,
20979,
16,
436,
20979,
16,
11590,
529,
16,
741,
23419,
16,
741,
797,
1164,
4672,
225,
309,
999,
2290,
49,
30,
324,
528,
281,
273,
250... |
_KEYWORDS = ["del", "from", "lambda", "return", "and", "or", "is", "global", "not", "try", "break", "else", "if", "elif", "while", "class", "except", "import", "pass", "raise", "continue", "finally", "in", "print", "def", "for"] _KEYWORD = '|'.join([r'(\b%s\b)' % kw for kw in _KEYWORDS]) _STRING = '|'.join([r'("""(""... | def _dom_to_html_helper(self, tree, container, indent, seclevel): """ Helper function for L{_dom_to_html}, that does the real work of converting a DOM tree for an epytext string to HTML. @param tree: The DOM tree for an epytext string. @type tree: L{xml.dom.minidom.Element} @param container: The container in which to ... | 771e91d9f27aff69c7681d17285ac18c37519cc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/771e91d9f27aff69c7681d17285ac18c37519cc0/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
869,
67,
2620,
67,
4759,
12,
2890,
16,
2151,
16,
1478,
16,
3504,
16,
1428,
2815,
4672,
3536,
9705,
445,
364,
511,
95,
67,
9859,
67,
869,
67,
2620,
5779,
716,
1552,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
869,
67,
2620,
67,
4759,
12,
2890,
16,
2151,
16,
1478,
16,
3504,
16,
1428,
2815,
4672,
3536,
9705,
445,
364,
511,
95,
67,
9859,
67,
869,
67,
2620,
5779,
716,
1552,
326... | |
"SIG","Nonce","N","D","VendorID"] | "SIG","Nonce","Notification","Delete","VendorID"] | def post_build(self, p, pay): p += pay l = self.len if l is None: l = len(p) p = p[:2]+struct.pack("!H",l)+p[4:] return p | 7eac8b2a3643ad931213b6a5ff5090229d30a099 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/7eac8b2a3643ad931213b6a5ff5090229d30a099/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
3510,
12,
2890,
16,
293,
16,
8843,
4672,
293,
1011,
8843,
328,
273,
365,
18,
1897,
309,
328,
353,
599,
30,
328,
273,
562,
12,
84,
13,
293,
273,
293,
10531,
22,
3737,
1697,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
67,
3510,
12,
2890,
16,
293,
16,
8843,
4672,
293,
1011,
8843,
328,
273,
365,
18,
1897,
309,
328,
353,
599,
30,
328,
273,
562,
12,
84,
13,
293,
273,
293,
10531,
22,
3737,
1697,
... |
clause.append("%s LIKE '%%%s%%'" % (col, util.sql_escape(v[0]))) else: clause.append("%s = '%s'" % (col, util.sql_escape(v[0]))) if not k in Ticket.std_fields: clauses.append("(name='%s' AND (" % k + " OR ".join(clause) + "))") else: clauses.append(" OR ".join(clause)) | clauses.append("%s LIKE '%%%s%%'" % (k, util.sql_escape(v[0]))) else: clauses.append("%s='%s'" % (k, util.sql_escape(v[0]))) | def _render_results(self, constraints, order, desc): self.req.hdf.setValue('title', 'Custom Query') self.req.hdf.setValue('query.edit_href', self.env.href.query(constraints, order, desc, action='edit')) | aac9324c59494ca64c088d674192aaacc6722947 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/aac9324c59494ca64c088d674192aaacc6722947/Query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4717,
12,
2890,
16,
6237,
16,
1353,
16,
3044,
4672,
365,
18,
3658,
18,
26428,
18,
542,
620,
2668,
2649,
2187,
296,
3802,
2770,
6134,
365,
18,
3658,
18,
26428,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4717,
12,
2890,
16,
6237,
16,
1353,
16,
3044,
4672,
365,
18,
3658,
18,
26428,
18,
542,
620,
2668,
2649,
2187,
296,
3802,
2770,
6134,
365,
18,
3658,
18,
26428,
18,
542,
... |
return render_account_response('admin/help.html', 'system.help', | return render_account_response('account/help.html', 'system.help', | def help(req, page=''): """Show help page.""" from zine.docs import load_page, get_resource rv = load_page(req.app, page) if rv is None: resource = get_resource(req.app, page) if resource is None: return render_account_response('admin/help.html', 'system.help', not_found=True) return resource parts, is_index = rv end... | 4d930216c85019e1908ea67a82ce80abc8fb0ea8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12815/4d930216c85019e1908ea67a82ce80abc8fb0ea8/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
12,
3658,
16,
1363,
2218,
11,
4672,
3536,
5706,
2809,
1363,
12123,
628,
998,
558,
18,
8532,
1930,
1262,
67,
2433,
16,
336,
67,
3146,
225,
5633,
273,
1262,
67,
2433,
12,
3658,
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,
2809,
12,
3658,
16,
1363,
2218,
11,
4672,
3536,
5706,
2809,
1363,
12123,
628,
998,
558,
18,
8532,
1930,
1262,
67,
2433,
16,
336,
67,
3146,
225,
5633,
273,
1262,
67,
2433,
12,
3658,
18,... |
(_("&Statistics..."), 101)) | (_("&Statistics..."), 101)), | def __init__(self, parent, game): stats, gstats = game.stats, game.gstats w1 = w2 = "" n = 0 for s in game.s.foundations: n = n + len(s.cards) w1 = (_("Highlight piles: ") + str(stats.highlight_piles) + "\n" + _("Highlight cards: ") + str(stats.highlight_cards) + "\n" + _("Highlight same rank: ") + str(stats.highlight_... | 2ccef295636f2dfd59b957a0fff18b844f7ba12d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11444/2ccef295636f2dfd59b957a0fff18b844f7ba12d/tkstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
7920,
4672,
3177,
16,
314,
5296,
273,
7920,
18,
5296,
16,
7920,
18,
75,
5296,
341,
21,
273,
341,
22,
273,
1408,
290,
273,
374,
364,
272,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
7920,
4672,
3177,
16,
314,
5296,
273,
7920,
18,
5296,
16,
7920,
18,
75,
5296,
341,
21,
273,
341,
22,
273,
1408,
290,
273,
374,
364,
272,
316,
... |
gc.disable() | def infowindow_get_lyrics(self, artist, title): gc.disable() filename = os.path.expanduser('~/.lyrics/' + artist + '-' + title + '.txt') if os.path.exists(filename): # Re-use lyrics from file, if it exists: f = open(filename, 'r') lyrics = f.read() f.close() gobject.idle_add(self.infowindow_show_lyrics, lyrics, artist,... | cf641a3be7814ac8c28fad1ecb9dab568ab225cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/cf641a3be7814ac8c28fad1ecb9dab568ab225cc/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
543,
1700,
67,
588,
67,
715,
1512,
87,
12,
2890,
16,
15469,
16,
2077,
4672,
1544,
273,
1140,
18,
803,
18,
12320,
1355,
2668,
98,
15865,
715,
1512,
87,
2473,
397,
15469,
397,
4014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
543,
1700,
67,
588,
67,
715,
1512,
87,
12,
2890,
16,
15469,
16,
2077,
4672,
1544,
273,
1140,
18,
803,
18,
12320,
1355,
2668,
98,
15865,
715,
1512,
87,
2473,
397,
15469,
397,
4014... | |
self.thirdLabel.text = self.docType.value['other'].__name__ self.otherParty.cls = self.docType.value['other'] self.otherParty.enable() | if self.docType.value['other']: self.thirdLabel.text = self.docType.value['other'].__name__ self.otherParty.cls = self.docType.value['other'] self.otherParty.enable() else: self.thirdLabel.text = "Documento interno" | def setThirdLabel(self, *ignore): if self.docType.value: self.thirdLabel.text = self.docType.value['other'].__name__ self.otherParty.cls = self.docType.value['other'] self.otherParty.enable() | c485e572db06745ca971b3a746ba3170bc8ceb4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/c485e572db06745ca971b3a746ba3170bc8ceb4f/pettyCash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
24694,
2224,
12,
2890,
16,
380,
6185,
4672,
309,
365,
18,
2434,
559,
18,
1132,
30,
309,
365,
18,
2434,
559,
18,
1132,
3292,
3011,
3546,
30,
365,
18,
451,
6909,
2224,
18,
955,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
24694,
2224,
12,
2890,
16,
380,
6185,
4672,
309,
365,
18,
2434,
559,
18,
1132,
30,
309,
365,
18,
2434,
559,
18,
1132,
3292,
3011,
3546,
30,
365,
18,
451,
6909,
2224,
18,
955,
27... |
self._mesg('< %s' % line) | self._mesg('< %r' % line) | def _get_line(self): | fb5faf02853f5f56fe96f00e8020a6fabe8ac390 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/fb5faf02853f5f56fe96f00e8020a6fabe8ac390/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
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,... |
printVerbose(" loaded from cache", verb) | orngMisc.printVerbose(" loaded from cache", verb) | def testWithIndices(learners, examples, indices, indicesrandseed="*", pps=[], callback=None, **argkw): verb = argkw.get("verbose", 0) cache = argkw.get("cache", 0) storeclassifiers = argkw.get("storeclassifiers", 0) or argkw.get("storeClassifiers", 0) cache = cache and not storeclassifiers examples, weight = demangle... | 87a80fbc6ff7f4b19c37518dfe1b2a5d51e5bd25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/87a80fbc6ff7f4b19c37518dfe1b2a5d51e5bd25/orngTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1190,
8776,
12,
21346,
414,
16,
10991,
16,
4295,
16,
4295,
7884,
12407,
1546,
14,
3113,
293,
1121,
22850,
6487,
1348,
33,
7036,
16,
2826,
3175,
9987,
4672,
225,
6405,
273,
1501,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1190,
8776,
12,
21346,
414,
16,
10991,
16,
4295,
16,
4295,
7884,
12407,
1546,
14,
3113,
293,
1121,
22850,
6487,
1348,
33,
7036,
16,
2826,
3175,
9987,
4672,
225,
6405,
273,
1501,
99... |
""" assert len(string) == 1, "Pass in a single-character string to emulate_menu_accelerator" | @rtype: C{bool} """ | def emulate_menu_accelerator(string, ctrlFlag=True, altFlag=False, shiftFlag=False): """ Emulate typing a key accelerator that's handled by a menu. This searches through the items in the main frame's menu bar, and tries to find once whose accelerator matches. Unfortunately, just processing a keydown/keyup pair doesn't... | 105f5651830f79be6bdc7702dbf4b422d95b0544 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/105f5651830f79be6bdc7702dbf4b422d95b0544/User.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
801,
6243,
67,
5414,
67,
30737,
7385,
12,
1080,
16,
6414,
4678,
33,
5510,
16,
3770,
4678,
33,
8381,
16,
4654,
4678,
33,
8381,
4672,
3536,
7377,
6243,
13408,
279,
498,
15153,
7385,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
801,
6243,
67,
5414,
67,
30737,
7385,
12,
1080,
16,
6414,
4678,
33,
5510,
16,
3770,
4678,
33,
8381,
16,
4654,
4678,
33,
8381,
4672,
3536,
7377,
6243,
13408,
279,
498,
15153,
7385,
716,
... |
str += self._navbar('class', uid)+'<HR>' | str += self._navbar('class', uid) | def _class_to_html(self, uid): 'Return an HTML page for a Class' doc = self._docmap[uid] modname = doc.uid().module().name() descr = doc.descr() # Name & summary str = self._header(`uid`) str += self._navbar('class', uid)+'<HR>' str += self._start_of('Class Description') str += '<H2><FONT SIZE="-1">\n'+modname+'</FON... | 208b57b68fee425e4ef284675975df62fecdb5ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/208b57b68fee425e4ef284675975df62fecdb5ea/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1106,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
296,
990,
392,
3982,
1363,
364,
279,
1659,
11,
997,
273,
365,
6315,
2434,
1458,
63,
1911,
65,
16037,
273,
997,
18,
1911,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1106,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
296,
990,
392,
3982,
1363,
364,
279,
1659,
11,
997,
273,
365,
6315,
2434,
1458,
63,
1911,
65,
16037,
273,
997,
18,
1911,
7675,
... |
@param ea - linear address | @param ea: linear address | def IdbByte(ea): """ Get one byte (8-bit) of the program at 'ea' from the database even if the debugger is active @param ea - linear address @return: byte value. If the byte has no value then 0xFF is returned. @note: If the current byte size is different from 8 bits, then the returned value may have more 1's. To che... | 252fcf805295feb5e4e386c4814ad66b95a426d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/252fcf805295feb5e4e386c4814ad66b95a426d4/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
467,
1966,
3216,
12,
24852,
4672,
3536,
968,
1245,
1160,
261,
28,
17,
3682,
13,
434,
326,
5402,
622,
296,
24852,
11,
628,
326,
2063,
5456,
309,
326,
19977,
353,
2695,
225,
632,
891,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
467,
1966,
3216,
12,
24852,
4672,
3536,
968,
1245,
1160,
261,
28,
17,
3682,
13,
434,
326,
5402,
622,
296,
24852,
11,
628,
326,
2063,
5456,
309,
326,
19977,
353,
2695,
225,
632,
891,
24... |
There is no need to call ``IDontLikeBeingPrinted().__repr__()``, but itx can't be avoided with usual strings. Note that with the usual assert, the call is not performed:: | This behavior can induce major performance penalties when testing. Note that this issue does not impact the usual assert: | ... def __repr__(self): | e938c63a3dc6e28872c4936a1b94a0df66c03e36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/e938c63a3dc6e28872c4936a1b94a0df66c03e36/lazy_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
565,
1652,
1001,
12715,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
565,
1652,
1001,
12715,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pass | Director.pushSaveSting(plr, "mission_scripts", name) def eraseExtras(): import sys len=Director.getSaveStringLength(plr, "mission_scripts") if (len!=Director.getSaveStringLength(plr, "mission_names") or len!=Director.getSaveStringLength(plr, "mission_descriptions")): sys.stdout.write("Warning: Number of mission descs.... | def writemissionsavegame (name): pass | 917e934f83ea781edca1e94264eaa8ce824151a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/917e934f83ea781edca1e94264eaa8ce824151a8/dynamic_mission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
351,
1054,
1115,
836,
13957,
261,
529,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2518,
351,
1054,
1115,
836,
13957,
261,
529,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sys.stderr.write("--- fixup_refmodindexes_chunk(%s)\n" % container) | bwrite("--- fixup_refmodindexes_chunk(%s)\n" % container) | def fixup_refmodindexes_chunk(container): # node is probably a <para>; let's see how often it isn't: if container.tagName != PARA_ELEMENT: sys.stderr.write("--- fixup_refmodindexes_chunk(%s)\n" % container) module_entries = find_all_elements(container, "module") if not module_entries: return index_entries = find_all_el... | 2c0293aef2d090f8e00966cfa740a69c2f980b60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c0293aef2d090f8e00966cfa740a69c2f980b60/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
67,
1734,
1711,
11265,
67,
6551,
12,
3782,
4672,
468,
756,
353,
8656,
279,
411,
25072,
34,
31,
2231,
1807,
2621,
3661,
16337,
518,
5177,
1404,
30,
309,
1478,
18,
2692,
461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
67,
1734,
1711,
11265,
67,
6551,
12,
3782,
4672,
468,
756,
353,
8656,
279,
411,
25072,
34,
31,
2231,
1807,
2621,
3661,
16337,
518,
5177,
1404,
30,
309,
1478,
18,
2692,
461,
... |
elif c in (">", "<"): | elif c == ">": | def getAttribute(self): """Return a name,value pair for the next attribute in the stream, if one is found, or None""" data = self.data c = data.skip(spaceCharactersBytes | frozenset("/")) if c == "<": data.previous() return None elif c == ">" or c is None: return None attrName = [] attrValue = [] spaceFound = False #St... | c299416976f1100d51c47e56261a9f2149f9f6a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/c299416976f1100d51c47e56261a9f2149f9f6a0/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
12,
2890,
4672,
3536,
990,
279,
508,
16,
1132,
3082,
364,
326,
1024,
1566,
316,
326,
1407,
16,
309,
1245,
353,
1392,
16,
578,
599,
8395,
501,
273,
365,
18,
892,
276,
273,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
12,
2890,
4672,
3536,
990,
279,
508,
16,
1132,
3082,
364,
326,
1024,
1566,
316,
326,
1407,
16,
309,
1245,
353,
1392,
16,
578,
599,
8395,
501,
273,
365,
18,
892,
276,
273,
501,
... |
options.location = None type = "qemu" if virtinst.util.is_kvm_capable(): type = "kvm" elif virtinst.util.is_kqemu_capable(): type = "kqemu" | if conn.getType() == "Xen": type = "xen" hvm = options.fullvirt pv = options.paravirt if virtinst.util.is_hvm_capable(): if hvm is not None and pv is not None: print >> sys.stderr, _("Can't do both --hvm and --paravirt") sys.exit(1) elif pv is not None: hvm = False else: if hvm is not None: print >> sys.stderr, _("Ca... | def main(): options = parse_args() cli.setupLogging("ovirt-install", options.debug) conn = cli.getConnection(options.connect) type = None options.location = None type = "qemu" if virtinst.util.is_kvm_capable(): type = "kvm" elif virtinst.util.is_kqemu_capable(): type = "kqemu" if options.livecd: installer = virtins... | d6ab78bdc59daeb0d91fc8175f3a4e3016908b79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1639/d6ab78bdc59daeb0d91fc8175f3a4e3016908b79/ovirt-install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
702,
273,
1109,
67,
1968,
1435,
225,
4942,
18,
8401,
7735,
2932,
1527,
2714,
17,
5425,
3113,
702,
18,
4148,
13,
1487,
273,
4942,
18,
588,
1952,
12,
2116,
18,
3612,
13,
618... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
702,
273,
1109,
67,
1968,
1435,
225,
4942,
18,
8401,
7735,
2932,
1527,
2714,
17,
5425,
3113,
702,
18,
4148,
13,
1487,
273,
4942,
18,
588,
1952,
12,
2116,
18,
3612,
13,
618... |
Return the derived series of this group as a list of | Return the composition series of this group as a list of | def composition_series(self): """ Return the derived series of this group as a list of permutation groups. | e9624a3eb707f1c9d3a1b217906f1eb759cc73d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e9624a3eb707f1c9d3a1b217906f1eb759cc73d4/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
request.theme.add_msg(error, "error") | self.request.theme.add_msg(error, "error") | def render(self): """ Redirect to the new page, using edit action and template """ error = self.checkAndCombineArguments() or self.checkPermissions() if error: # Send back to the page you came from, with an error msg page = Page(self.request, self.referrer) request.theme.add_msg(error, "error") page.send_page() else: #... | 0bb263a21158c62e17df8ca392de972483af04dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/0bb263a21158c62e17df8ca392de972483af04dc/newpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
9942,
358,
326,
394,
1363,
16,
1450,
3874,
1301,
471,
1542,
3536,
555,
273,
365,
18,
1893,
1876,
21720,
4628,
1435,
578,
365,
18,
1893,
6521,
1435,
309,
555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
9942,
358,
326,
394,
1363,
16,
1450,
3874,
1301,
471,
1542,
3536,
555,
273,
365,
18,
1893,
1876,
21720,
4628,
1435,
578,
365,
18,
1893,
6521,
1435,
309,
555,
... |
series = '<b>Series: </b>' + mi.series if mi.series else '' | series = '<b>Series: </b>' + escape(mi.series if mi.series else '') | def insert_metadata(self, mi): self.log('Inserting metadata into book...') comments = mi.comments if not comments: try: comments = unicode(self.oeb.metadata.description[0]) except: comments = '' if not comments.strip(): comments = '' comments = comments.replace('\r\n', '\n').replace('\n\n', '<br/><br/>') series = '<b>S... | 522e75cf6db501e655f21c55792afedf77bd8b54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/522e75cf6db501e655f21c55792afedf77bd8b54/jacket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
4165,
12,
2890,
16,
12837,
4672,
365,
18,
1330,
2668,
4600,
310,
1982,
1368,
6978,
7821,
13,
5678,
273,
12837,
18,
9231,
309,
486,
5678,
30,
775,
30,
5678,
273,
5252,
12,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
12,
2890,
16,
12837,
4672,
365,
18,
1330,
2668,
4600,
310,
1982,
1368,
6978,
7821,
13,
5678,
273,
12837,
18,
9231,
309,
486,
5678,
30,
775,
30,
5678,
273,
5252,
12,
289... |
candidate = child | if candidate is None: candidate = child | def synchToDynamicBlock (block, isChild): """ Function to set and remember the dynamic Block we synch to. If it's a child block, it will be used so we must sync, and remember it for later. If it's not a child, we only need to sync if we had a different block last time. """ previous = Globals.mainView.lastDynamicBlock i... | 2ff555b7f01e7e717e94316fbc9185966fdb03f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2ff555b7f01e7e717e94316fbc9185966fdb03f9/Views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
2515,
774,
9791,
1768,
261,
2629,
16,
353,
1763,
4672,
3536,
4284,
358,
444,
471,
11586,
326,
5976,
3914,
732,
272,
2515,
358,
18,
971,
518,
1807,
279,
1151,
1203,
16,
518,
903,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
2515,
774,
9791,
1768,
261,
2629,
16,
353,
1763,
4672,
3536,
4284,
358,
444,
471,
11586,
326,
5976,
3914,
732,
272,
2515,
358,
18,
971,
518,
1807,
279,
1151,
1203,
16,
518,
903,
5... |
if not self.untagged_responses.has_key('READ-WRITE') \ | if self.untagged_responses.has_key('READ-ONLY') \ | def select(self, mailbox='INBOX', readonly=None): """Select a mailbox. | 1bdb417e4cd336860743322b43795d78449d858b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1bdb417e4cd336860743322b43795d78449d858b/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
14187,
2218,
706,
16876,
2187,
17102,
33,
7036,
4672,
3536,
3391,
279,
14187,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
14187,
2218,
706,
16876,
2187,
17102,
33,
7036,
4672,
3536,
3391,
279,
14187,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return q | return q.distinct() | def course(filter): q = Listing.objects.all() f = Listing.objects.filter for word in filter.split(): try: x = int(word) q = q & f(book__courses__number__icontains=word) except ValueError: q = q & f(book__courses__division__icontains=word) return q | d16777a4e38619a0493a13acdde8b651c81ef2eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8671/d16777a4e38619a0493a13acdde8b651c81ef2eb/view_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4362,
12,
2188,
4672,
1043,
273,
987,
310,
18,
6911,
18,
454,
1435,
284,
273,
987,
310,
18,
6911,
18,
2188,
364,
2076,
316,
1034,
18,
4939,
13332,
775,
30,
619,
273,
509,
12,
1095,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4362,
12,
2188,
4672,
1043,
273,
987,
310,
18,
6911,
18,
454,
1435,
284,
273,
987,
310,
18,
6911,
18,
2188,
364,
2076,
316,
1034,
18,
4939,
13332,
775,
30,
619,
273,
509,
12,
1095,
1... |
work_times = resource_calendar_obj.interval_get(cr, uid, calendar_id, date_start, hours or 0.0, resource.id or False) | work_times = resource_calendar_obj.interval_get(cr, uid, calendar_id, date_start, hours or 0.0, resource_id and resource_id[0] or False) | def _check_date_end(self, cr, uid, task, date_start, context={}): """ Check And Compute date_end of task if change in date_end > older time. """ resource_calendar_obj = self.pool.get('resource.calendar') resource_obj = self.pool.get('resource.resource') calendar_id = task.project_id.resource_calendar_id and task.projec... | 38d6ac1db2682a5f241e50820292261cd58f1030 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/38d6ac1db2682a5f241e50820292261cd58f1030/project_long_term.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
712,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
1562,
16,
1509,
67,
1937,
16,
819,
12938,
4672,
3536,
2073,
7835,
8155,
1509,
67,
409,
434,
1562,
309,
2549,
316,
1509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
712,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
1562,
16,
1509,
67,
1937,
16,
819,
12938,
4672,
3536,
2073,
7835,
8155,
1509,
67,
409,
434,
1562,
309,
2549,
316,
1509,
... |
def poll(self, _deadstate=None): | def _internal_poll(self, _deadstate=None): | def poll(self, _deadstate=None): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode is None: if WaitForSingleObject(self._handle, 0) == WAIT_OBJECT_0: self.returncode = GetExitCodeProcess(self._handle) return self.returncode | 2e7b8c682a7ed5112d18b0f0640c5c5737825a1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/2e7b8c682a7ed5112d18b0f0640c5c5737825a1d/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
3536,
1564,
309,
1151,
1207,
711,
14127,
18,
225,
2860,
18125,
1566,
12123,
309,
365,
18,
2463,
710,
353,
599,
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,
389,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
3536,
1564,
309,
1151,
1207,
711,
14127,
18,
225,
2860,
18125,
1566,
12123,
309,
365,
18,
2463,
710,
353,
599,
30,
... |
<td><span class="control"><a class="cs" href="javascript:changeAreaSize(2,'in%s')"><b> + </b></a></span></td> <td><span class="control"><a class="cs" href="javascript:changeAreaSize(2,'in%s')"><b> - </b></a></span></td> | <td><span class="control"><a class="cs" href="javascript:changeAreaSize(1,'in%s')"><b> + </b></a></span></td> <td><span class="control"><a class="cs" href="javascript:changeAreaSize(-1,'in%s')"><b> - </b></a></span></td> | def html(self, number, nrows, ncols, out_nrows=4, cmd_color='#FFFFFF', out_color='#FFFFFF'): if self.cmd != '': cmd_nrows = len(self.cmd.split('\n')) else: cmd_nrows = nrows | c6d7de654bba9136a73df0f51f39128de4168a9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/c6d7de654bba9136a73df0f51f39128de4168a9b/server1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
16,
1300,
16,
18871,
16,
21330,
16,
596,
67,
82,
3870,
33,
24,
16,
1797,
67,
3266,
2218,
7,
18343,
2187,
596,
67,
3266,
2218,
7,
18343,
11,
4672,
309,
365,
18,
4172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
1300,
16,
18871,
16,
21330,
16,
596,
67,
82,
3870,
33,
24,
16,
1797,
67,
3266,
2218,
7,
18343,
2187,
596,
67,
3266,
2218,
7,
18343,
11,
4672,
309,
365,
18,
4172,
... |
def __init__(self,scene): | def __init__(self, scene): | def __init__(self,scene): """ Initialisation of the ArrowPlot class @param scene: The Scene to render the plot in @type scene: Scene object """ if _debug: print "\t%s: Called ArrowPlot.__init__()" % rendererName return | 525240b057c0121c2cab7772950af46d6399ad7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/525240b057c0121c2cab7772950af46d6399ad7e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9065,
4672,
3536,
10188,
10742,
434,
326,
31620,
11532,
667,
225,
632,
891,
9065,
30,
1021,
29347,
358,
1743,
326,
3207,
316,
632,
723,
9065,
30,
29347,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9065,
4672,
3536,
10188,
10742,
434,
326,
31620,
11532,
667,
225,
632,
891,
9065,
30,
1021,
29347,
358,
1743,
326,
3207,
316,
632,
723,
9065,
30,
29347,
73... |
expected_text='Search term <em><SCRIPT>alert("XSS");</SCRIPT></em> inside index <em><SCRIPT>alert("XSS");</SCRIPT></em> did not match any record.')) | expected_text='Search term <em><SCRIPT>alert("XSS");</SCRIPT></em> inside index <em><script>alert("xss");</script></em> did not match any record.')) | def test_xss_in_advanced_search(self): """websearch - no XSS vulnerability in advanced search""" self.assertEqual([], test_web_page_content(CFG_SITE_URL + '/search?as=1&p1=ellis&f1=author&op1=a&p2=%3CSCRIPT%3Ealert%28%22XSS%22%29%3B%3C%2FSCRIPT%3E&f2=%3CSCRIPT%3Ealert%28%22XSS%22%29%3B%3C%2FSCRIPT%3E&m2=e', expected_te... | f21b16a032f297d6d2d4e1909c2d302dfc686cc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/f21b16a032f297d6d2d4e1909c2d302dfc686cc7/websearch_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
92,
1049,
67,
267,
67,
27080,
67,
3072,
12,
2890,
4672,
3536,
4875,
3072,
300,
1158,
1139,
1260,
331,
26064,
316,
16111,
1623,
8395,
365,
18,
11231,
5812,
3816,
6487,
1842,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
92,
1049,
67,
267,
67,
27080,
67,
3072,
12,
2890,
4672,
3536,
4875,
3072,
300,
1158,
1139,
1260,
331,
26064,
316,
16111,
1623,
8395,
365,
18,
11231,
5812,
3816,
6487,
1842,
67,... |
def removeStorageFile( self, physicalFile, storageElementName, singleFile=False ): | def removeStorageFile( self, physicalFile, storageElementName, singleFile = False ): | def removeStorageFile( self, physicalFile, storageElementName, singleFile=False ): """ Remove physical files 'physicalFile' is the pfn(s) to be removed 'storageElementName' is the Storage Element """ if singleFile: return self._executeSingleStorageElementFunction( storageElementName, physicalFile, 'removeFile' ) else:... | 8cfc8d124489ba672254aee3d1fff4f748757c6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8cfc8d124489ba672254aee3d1fff4f748757c6c/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
3245,
812,
12,
365,
16,
11640,
812,
16,
2502,
30584,
16,
2202,
812,
273,
1083,
262,
30,
3536,
3581,
11640,
1390,
225,
296,
20441,
812,
11,
353,
326,
293,
4293,
12,
87,
13,
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,
1206,
3245,
812,
12,
365,
16,
11640,
812,
16,
2502,
30584,
16,
2202,
812,
273,
1083,
262,
30,
3536,
3581,
11640,
1390,
225,
296,
20441,
812,
11,
353,
326,
293,
4293,
12,
87,
13,
358,
... |
cdata = get_cover(reader.opf, reader.opf_path, stream) | cdata = get_cover(reader.opf, reader.opf_path, stream, reader=reader) | def get_metadata(stream, extract_cover=True): """ Return metadata as a :class:`MetaInformation` object """ stream.seek(0) reader = OCFZipReader(stream) mi = MetaInformation(reader.opf) if extract_cover: try: cdata = get_cover(reader.opf, reader.opf_path, stream) if cdata is not None: mi.cover_data = ('jpg', cdata) exce... | 4a13c31aca82abd9729c219fd7168762f3585f68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4a13c31aca82abd9729c219fd7168762f3585f68/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4165,
12,
3256,
16,
2608,
67,
3165,
33,
5510,
4672,
3536,
2000,
1982,
487,
279,
294,
1106,
28288,
2781,
5369,
68,
733,
3536,
1407,
18,
16508,
12,
20,
13,
2949,
273,
531,
8955,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4165,
12,
3256,
16,
2608,
67,
3165,
33,
5510,
4672,
3536,
2000,
1982,
487,
279,
294,
1106,
28288,
2781,
5369,
68,
733,
3536,
1407,
18,
16508,
12,
20,
13,
2949,
273,
531,
8955,... |
def _install_loggers(cp, handlers): | def _install_loggers(cp, handlers, disable_existing_loggers): | def _install_loggers(cp, handlers): """Create and install loggers""" # configure the root first llist = cp.get("loggers", "keys") llist = string.split(llist, ",") llist = map(lambda x: string.strip(x), llist) llist.remove("root") sectname = "logger_root" root = logging.root log = root opts = cp.options(sectname) if "l... | a35be97898f513f6189ec9999eac5daf20bd266f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a35be97898f513f6189ec9999eac5daf20bd266f/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
1330,
6215,
12,
4057,
16,
4919,
16,
4056,
67,
11711,
67,
1330,
6215,
4672,
3536,
1684,
471,
3799,
18244,
8395,
225,
468,
5068,
326,
1365,
1122,
328,
1098,
273,
3283,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
1330,
6215,
12,
4057,
16,
4919,
16,
4056,
67,
11711,
67,
1330,
6215,
4672,
3536,
1684,
471,
3799,
18244,
8395,
225,
468,
5068,
326,
1365,
1122,
328,
1098,
273,
3283,
18,
... |
if debug: request.log("i18n: dumping lang %s" % self.language) | counter += 1 logging.debug("loadLanguage: dumping lang %s" % self.language) | def loadLanguage(self, request, trans_dir="i18n"): request.clock.start('loadLanguage') cache = caching.CacheEntry(request, arena='i18n', key=self.language, scope='farm', use_pickle=True) langfilename = po_filename(request, self.language, self.domain, i18n_dir=trans_dir) needsupdate = cache.needsUpdate(langfilename) if ... | ccb70a577227e47e4043b6c7bc82f1a84fcde46a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/ccb70a577227e47e4043b6c7bc82f1a84fcde46a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
3779,
12,
2890,
16,
590,
16,
906,
67,
1214,
1546,
77,
2643,
82,
6,
4672,
590,
18,
18517,
18,
1937,
2668,
945,
3779,
6134,
1247,
273,
11393,
18,
27630,
12,
2293,
16,
854,
6582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
3779,
12,
2890,
16,
590,
16,
906,
67,
1214,
1546,
77,
2643,
82,
6,
4672,
590,
18,
18517,
18,
1937,
2668,
945,
3779,
6134,
1247,
273,
11393,
18,
27630,
12,
2293,
16,
854,
6582,
... |
pos=wxPoint(136, 156), size=wxSize(120, 19), style=0) | pos=wxPoint(125, 156), size=wxSize(120, 19), style=0) | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 42b28de011a20c147bdfbed99afa82dcd0124408 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/42b28de011a20c147bdfbed99afa82dcd0124408/FindReplaceDlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
42,
2356,
21726,
8914... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
42,
2356,
21726,
8914... |
print 'refile', todo, tofolder | def refile_message(): global lastrefile, tofolder itop = scanbox.nearest(0) sel = scanbox.curselection() if not sel: dialog(root, "No Message To Refile", "Please select a message to refile", "", 0, "OK") return foldersel = folderbox.curselection() if len(foldersel) != 1: if not foldersel: msg = "Please select a folder ... | c7f2283240ca2f10f4af7064def582de8758b514 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c7f2283240ca2f10f4af7064def582de8758b514/mbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
768,
67,
2150,
13332,
2552,
1142,
266,
768,
16,
358,
5609,
518,
556,
273,
4135,
2147,
18,
25785,
12,
20,
13,
357,
273,
4135,
2147,
18,
1397,
10705,
1435,
309,
486,
357,
30,
6176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
768,
67,
2150,
13332,
2552,
1142,
266,
768,
16,
358,
5609,
518,
556,
273,
4135,
2147,
18,
25785,
12,
20,
13,
357,
273,
4135,
2147,
18,
1397,
10705,
1435,
309,
486,
357,
30,
6176,
... | |
h = g.reduce(self.__singular_groebner_basis) | try: h = g.reduce(self.__singular_groebner_basis) except TypeError: return f | def reduce(self, f): """ Reduce an element modulo a standard basis for this ideal. This returns 0 if and only if the element is in this ideal. EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: I = (x^3 + y, y)*R sage: I.reduce(y) 0 sage: I.reduce(x^3) 0 sage: I.reduce(x - y) x | 8a85a75932533ab12d5ed9cc6bfd2dbb29112a95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8a85a75932533ab12d5ed9cc6bfd2dbb29112a95/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
12,
2890,
16,
284,
4672,
3536,
24614,
392,
930,
26109,
279,
4529,
10853,
364,
333,
23349,
18,
1220,
1135,
374,
309,
471,
1338,
309,
326,
930,
353,
316,
333,
23349,
18,
225,
5675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
12,
2890,
16,
284,
4672,
3536,
24614,
392,
930,
26109,
279,
4529,
10853,
364,
333,
23349,
18,
1220,
1135,
374,
309,
471,
1338,
309,
326,
930,
353,
316,
333,
23349,
18,
225,
5675,
... |
ModuleLevelDocumenter.import_object(self) | ret = ModuleLevelDocumenter.import_object(self) | def import_object(self): ModuleLevelDocumenter.import_object(self) | d9bc840a4a9d64c136406176aea9580e0c9e0aa9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/d9bc840a4a9d64c136406176aea9580e0c9e0aa9/autodoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
1612,
12,
2890,
4672,
5924,
2355,
2519,
264,
18,
5666,
67,
1612,
12,
2890,
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,
... | [
1,
1,
1,
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,
1930,
67,
1612,
12,
2890,
4672,
5924,
2355,
2519,
264,
18,
5666,
67,
1612,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.