rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
return STORAGES | return STREAMS | def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se... | 604b7d991025ea2b02ef62785f1b5964f6911ac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/604b7d991025ea2b02ef62785f1b5964f6911ac0/compdoc-dumper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
790,
67,
334,
280,
1023,
12,
3459,
4672,
2347,
15553,
55,
273,
2618,
225,
997,
273,
585,
12,
3459,
16,
296,
6731,
16063,
896,
1435,
1446,
16,
501,
273,
997,
63,
20,
30,
1375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
790,
67,
334,
280,
1023,
12,
3459,
4672,
2347,
15553,
55,
273,
2618,
225,
997,
273,
585,
12,
3459,
16,
296,
6731,
16063,
896,
1435,
1446,
16,
501,
273,
997,
63,
20,
30,
1375... |
stack.append( iter(childs(node)) ) | stack.append( iter(children(node)) ) | def search_forest_iterator(roots, childs): """ INPUT: - ``roots``: a list (or iterable) - ``childs``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``child(x)`` returns the childs of the node ``x`` of the forest. EXAMPLES:: sage: from sag... | d1bfa2893dda8805bd4c6dd2e7784bcbd0f5a99d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d1bfa2893dda8805bd4c6dd2e7784bcbd0f5a99d/backtrack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
21619,
4672,
3536,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
3624,
87,
10335,
30,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
21619,
4672,
3536,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
3624,
87,
10335,
30,
279,
... |
def _add_para(doc, para_token, stack, indent_stack, errors, warnings): | def _add_para(doc, para_token, stack, indent_stack, errors): | def _add_para(doc, para_token, stack, indent_stack, errors, warnings): """Colorize the given paragraph, and add it to the DOM tree.""" # Check indentation, and update the parent's indentation # when appropriate. if indent_stack[-1] == None: indent_stack[-1] = para_token.indent if para_token.indent == indent_stack[-1]: ... | 36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
25072,
12,
2434,
16,
12602,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
4672,
3536,
2957,
554,
326,
864,
10190,
16,
471,
527,
518,
358,
326,
4703,
2151,
12123,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
25072,
12,
2434,
16,
12602,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
4672,
3536,
2957,
554,
326,
864,
10190,
16,
471,
527,
518,
358,
326,
4703,
2151,
12123,
468... |
return right._gap_().__cmp__(self._gap_()) | if self is right: return 0 gSelf = self._gap_() gRight = right._gap_() gapcmp = gSelf.__cmp__(gRight) if not gapcmp: return 0 if gSelf.IsSubgroup(gRight): return 1 if gRight.IsSubgroup(gSelf): return -1 return gapcmp | def __cmp__(self, right): """ Compare ``self`` and ``right``. The ordering is whatever it is in Gap. EXAMPLES:: sage: G1 = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G2 = PermutationGroup([[(1,2,3),(4,5)]]) sage: G1 > G2 True sage: G1 < G2 False """ if not isinstance(right, PermutationGroup_generic): return -... | 7d9725209e86750a669266ddc5ecf100c92b1842 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7d9725209e86750a669266ddc5ecf100c92b1842/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
11051,
12176,
2890,
10335,
471,
12176,
4083,
68,
8338,
225,
1021,
9543,
353,
15098,
518,
353,
316,
611,
438,
18,
225,
5675,
8900,
11386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
11051,
12176,
2890,
10335,
471,
12176,
4083,
68,
8338,
225,
1021,
9543,
353,
15098,
518,
353,
316,
611,
438,
18,
225,
5675,
8900,
11386,
... |
content = fp.read() | content = fp.read().decode('utf-8') | def handle_html(filename, fp, dst): now = datetime.now() title = os.path.basename(filename)[:-4] content = fp.read() c = generate_documentation(content, (lambda x: './%s.html' % x)) result = file(os.path.join(dst, title + '.html'), 'w') c['style'] = STYLESHEET + PYGMENTS_FORMATTER.get_style_defs('.syntax') c['generatio... | a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2620,
12,
3459,
16,
4253,
16,
3046,
4672,
2037,
273,
3314,
18,
3338,
1435,
2077,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
10531,
17,
24,
65,
913,
273,
4253,
18,
896,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2620,
12,
3459,
16,
4253,
16,
3046,
4672,
2037,
273,
3314,
18,
3338,
1435,
2077,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
10531,
17,
24,
65,
913,
273,
4253,
18,
896,
76... |
x = line.strip().split() | x = line.strip().split(' ') | def get_mount_point_for_uuid(uuid): # handle gfvs for x,y in get_gvfs_devices_and_paths(): if uuid==x: return y # handle local devices dev_paths = get_dev_paths_for_uuid(uuid) f = os.popen('mount') s = f.read() f.close() for line in s.split('\n'): x = line.strip().split() if x: dev_path = x[0] if dev_path in dev_paths:... | cd5e63175c5611da8c59471f031292505308c0a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3798/cd5e63175c5611da8c59471f031292505308c0a4/backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4778,
67,
1153,
67,
1884,
67,
7080,
12,
7080,
4672,
468,
1640,
13828,
6904,
364,
619,
16,
93,
316,
336,
67,
75,
90,
2556,
67,
12506,
67,
464,
67,
4481,
13332,
309,
3822,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4778,
67,
1153,
67,
1884,
67,
7080,
12,
7080,
4672,
468,
1640,
13828,
6904,
364,
619,
16,
93,
316,
336,
67,
75,
90,
2556,
67,
12506,
67,
464,
67,
4481,
13332,
309,
3822,
631... |
def writexml(self, writer): writer.write("<" + self.tagName) | def writexml(self, writer, indent="", addindent="", newl=""): writer.write(indent+"<" + self.tagName) | def writexml(self, writer): writer.write("<" + self.tagName) | 285ed3c7ae8ea988a1c52e6518da14f1d21e7e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/285ed3c7ae8ea988a1c52e6518da14f1d21e7e83/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2932,
32,
6,
397,
365,
18,
2692,
461,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2932,
32,
6,
397,
365,
18,
2692,
461,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
log.info('Syncing %s (%s)' % (unicode(dav.url), item.getItemDisplayName())) log.info('|- needsPut %s' % (needsPut)) log.info('|- localChanges %s' % (localChanges)) log.info('| `- versions %s : %s' % (item.sharedVersion, item._version)) log.info('`- serverChanges %s' % (serverChanges)) | log.info('%s|- needsPut %s' % (offset, needsPut)) log.info('%s|- localChanges %s' % (offset, localChanges)) log.info('%s| `- versions %s : %s' % (offset, item.sharedVersion, item._version)) log.info('%s`- serverChanges %s' % (offset, serverChanges)) | def syncItem(dav, item): # changes flags needsPut = False localChanges = False serverChanges = False # see if the local version has changed by comparing the last shared version # with the item's current version if item.sharedVersion != item._version: if item.sharedVersion == -1: localChanges = True else: localChanges ... | 74eef4b9b8ed3dc891787afb7430831cfda48942 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/74eef4b9b8ed3dc891787afb7430831cfda48942/Sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1180,
12,
20752,
16,
761,
4672,
468,
3478,
2943,
4260,
6426,
273,
1083,
1191,
7173,
273,
1083,
1438,
7173,
273,
1083,
225,
468,
2621,
309,
326,
1191,
1177,
711,
3550,
635,
17553,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1180,
12,
20752,
16,
761,
4672,
468,
3478,
2943,
4260,
6426,
273,
1083,
1191,
7173,
273,
1083,
1438,
7173,
273,
1083,
225,
468,
2621,
309,
326,
1191,
1177,
711,
3550,
635,
17553,
3... |
gameTypeName = self.__getNameOfTimeControl(0, 0) ratingType = self.__getTypeOfTimeControl(0, 0) | gametype = self.__getNameOfTimeControl(0, 0) ratingtype = self.__getTypeOfTimeControl(0, 0) | def __updateYourRatingHBox (self): if self.finger == None: return if self.widgets["untimedCheck"].get_active(): gameTypeName = self.__getNameOfTimeControl(0, 0) ratingType = self.__getTypeOfTimeControl(0, 0) elif self.widgets["noVariantRadio"].get_active(): min = int(self.widgets["minutesSpin"].get_value()) gain = int... | 722dcd889fab912f15e7688b07f1ddcedb21e013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/722dcd889fab912f15e7688b07f1ddcedb21e013/ICLounge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
15446,
20388,
44,
3514,
261,
2890,
4672,
309,
365,
18,
74,
6658,
422,
599,
30,
327,
225,
309,
365,
18,
18148,
9614,
318,
20905,
1564,
6,
8009,
588,
67,
3535,
13332,
23411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
15446,
20388,
44,
3514,
261,
2890,
4672,
309,
365,
18,
74,
6658,
422,
599,
30,
327,
225,
309,
365,
18,
18148,
9614,
318,
20905,
1564,
6,
8009,
588,
67,
3535,
13332,
23411,
... |
if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin'): | if (sys.platform.startswith('linux') or sys.platform.startswith('freebsd') or sys.platform.startswith('netbsd') or sys.platform == 'darwin'): | def testGetServBy(self): eq = self.assertEqual # Find one service that exists, then check all the related interfaces. # I've ordered this by protocols that have both a tcp and udp # protocol, at least for modern Linuxes. if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin')... | 1ca101a979c0b7c659c8cab88a7745e0e3ff2ca4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/1ca101a979c0b7c659c8cab88a7745e0e3ff2ca4/test_socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
827,
90,
858,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
468,
4163,
1245,
1156,
716,
1704,
16,
1508,
866,
777,
326,
3746,
7349,
18,
468,
467,
8081,
5901,
333,
635,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
827,
90,
858,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
468,
4163,
1245,
1156,
716,
1704,
16,
1508,
866,
777,
326,
3746,
7349,
18,
468,
467,
8081,
5901,
333,
635,
165... |
wc.log.error(wc.LOG_JS, "JS error at %s", self.url) wc.log.error(wc.LOG_JS, msg) | wc.log.debug(wc.LOG_JS, "JS error at %s", self.url) wc.log.debug(wc.LOG_JS, msg.rstrip()) | def js_process_error (self, msg): """ Process javascript syntax error. """ wc.log.error(wc.LOG_JS, "JS error at %s", self.url) wc.log.error(wc.LOG_JS, msg) | ba10e217fe651dff2925c726fd473acac6e976ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ba10e217fe651dff2925c726fd473acac6e976ec/JSFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
67,
2567,
67,
1636,
261,
2890,
16,
1234,
4672,
3536,
4389,
11341,
6279,
555,
18,
3536,
14310,
18,
1330,
18,
1636,
12,
27594,
18,
4842,
67,
6479,
16,
315,
6479,
555,
622,
738,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
67,
2567,
67,
1636,
261,
2890,
16,
1234,
4672,
3536,
4389,
11341,
6279,
555,
18,
3536,
14310,
18,
1330,
18,
1636,
12,
27594,
18,
4842,
67,
6479,
16,
315,
6479,
555,
622,
738,
87,... |
guessed_content_type = guess_type('', text) if guessed_content_type != content_type: raise ValueError('Guessed content-type != passed content-type (%s vs. %s)' % (guessed_content_type, content_type)) | def pt_edit(self, text, content_type, keep_output_encoding=False): | a4f57c3a9dc9677420ec24e2ab70f40ecc5cc78e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a4f57c3a9dc9677420ec24e2ab70f40ecc5cc78e/ZopePageTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
4619,
12,
2890,
16,
977,
16,
913,
67,
723,
16,
3455,
67,
2844,
67,
5999,
33,
8381,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
4619,
12,
2890,
16,
977,
16,
913,
67,
723,
16,
3455,
67,
2844,
67,
5999,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
We poll the url 5 times with a 1 second delay. If we don't | We poll the url 5 times with a 3 second delay. If we don't | def _UrlIsAlive(self, url): """Checks to see if we get an http response from |url|. We poll the url 5 times with a 1 second delay. If we don't get a reply in that time, we give up and assume the httpd didn't start properly. | e7896714379322d0c76eddee27af4e2c7cdcbefb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/e7896714379322d0c76eddee27af4e2c7cdcbefb/http_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1489,
2520,
10608,
12,
2890,
16,
880,
4672,
3536,
4081,
358,
2621,
309,
732,
336,
392,
1062,
766,
628,
571,
718,
96,
18,
1660,
7672,
326,
880,
1381,
4124,
598,
279,
890,
2205,
462... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1489,
2520,
10608,
12,
2890,
16,
880,
4672,
3536,
4081,
358,
2621,
309,
732,
336,
392,
1062,
766,
628,
571,
718,
96,
18,
1660,
7672,
326,
880,
1381,
4124,
598,
279,
890,
2205,
462... |
MixedContent.__init__(self, slide, 'text:list', attrib={'text:style-name':'L2'}) | self.attrib = attrib or {'text:style-name':'L2'} MixedContent.__init__(self, slide, 'text:list', attrib=self.attrib) | def __init__(self, slide): self._default_align = 'start' MixedContent.__init__(self, slide, 'text:list', attrib={'text:style-name':'L2'}) self.parents = [self.node] self.level = 0 | dd47297f38aa72cafcca6d091006423d6973c407 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/dd47297f38aa72cafcca6d091006423d6973c407/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12701,
4672,
365,
6315,
1886,
67,
7989,
273,
296,
1937,
11,
365,
18,
14588,
273,
5885,
578,
13666,
955,
30,
4060,
17,
529,
11,
2497,
48,
22,
11,
97,
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,
1001,
2738,
972,
12,
2890,
16,
12701,
4672,
365,
6315,
1886,
67,
7989,
273,
296,
1937,
11,
365,
18,
14588,
273,
5885,
578,
13666,
955,
30,
4060,
17,
529,
11,
2497,
48,
22,
11,
97,
24... |
user_pass=base64.encodestring(proxy_username + ':' + proxy_password) proxy_authorization = 'Proxy-authorization: Basic '+user_pass+'\r\n' | user_pass=base64.encodestring('%s:%s' % (proxy_username, proxy_password)) proxy_authorization = ('Proxy-authorization: Basic '+ user_pass + '\r\n') | def _PrepareConnection(self, full_uri): (server, port, ssl, partial_uri) = self._ProcessUrl(full_uri) if ssl: # destination is https proxy = os.environ.get('https_proxy') if proxy: (p_server, p_port, p_ssl, p_uri) = self._ProcessUrl(proxy, True) proxy_username = os.environ.get('proxy-username') proxy_password = os.env... | 640308770e97df9ee10f141a928aa80dda59ab00 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/640308770e97df9ee10f141a928aa80dda59ab00/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7543,
1952,
12,
2890,
16,
1983,
67,
1650,
4672,
225,
261,
3567,
16,
1756,
16,
5832,
16,
4702,
67,
1650,
13,
273,
365,
6315,
2227,
1489,
12,
2854,
67,
1650,
13,
309,
5832,
30,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7543,
1952,
12,
2890,
16,
1983,
67,
1650,
4672,
225,
261,
3567,
16,
1756,
16,
5832,
16,
4702,
67,
1650,
13,
273,
365,
6315,
2227,
1489,
12,
2854,
67,
1650,
13,
309,
5832,
30,
46... |
self.assertEquals(c(), struct.pack('!H', i + 1)) | self.assertEquals(c(), struct.pack('!H', (i + 1) % (2 ** 16))) | def testCounter(self): c = transport._Counter('\x00\x00', 2) for i in xrange(256 * 256): self.assertEquals(c(), struct.pack('!H', i + 1)) # It should wrap around, too. for i in xrange(256 * 256): self.assertEquals(c(), struct.pack('!H', i + 1)) | 4ad4d29e5522c31fb5713e98c063391f9ee8a103 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4ad4d29e5522c31fb5713e98c063391f9ee8a103/test_ssh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4789,
12,
2890,
4672,
276,
273,
4736,
6315,
4789,
2668,
64,
92,
713,
64,
92,
713,
2187,
576,
13,
364,
277,
316,
12314,
12,
5034,
380,
8303,
4672,
365,
18,
11231,
8867,
12,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4789,
12,
2890,
4672,
276,
273,
4736,
6315,
4789,
2668,
64,
92,
713,
64,
92,
713,
2187,
576,
13,
364,
277,
316,
12314,
12,
5034,
380,
8303,
4672,
365,
18,
11231,
8867,
12,
71,
... |
ignore_elements(self.unexpected_difference.touched_files, wildcard) | self.ignore_elements(self.unexpected_difference.touched_files, wildcard) | def ignore_touch(self, wildcard): ignore_elements(self.unexpected_difference.touched_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
67,
14084,
12,
2890,
16,
8531,
4672,
2305,
67,
6274,
12,
2890,
18,
21248,
67,
23444,
18,
869,
19370,
67,
2354,
16,
8531,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
2305,
67,
14084,
12,
2890,
16,
8531,
4672,
2305,
67,
6274,
12,
2890,
18,
21248,
67,
23444,
18,
869,
19370,
67,
2354,
16,
8531,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.infowindow_show_lyrics("") | self.infowindow_show_lyrics("", self.songinfo.artist, self.songinfo.title) | def infowindow_update(self, show_after_update=False, update_all=False): # update_all = True means that every tag should update. This is # only the case on song and status changes. Otherwise we only # want to update the minimum number of widgets so the user can # do things like select label text. if self.conn: if self.i... | ef335bb5758783289bea4a5b77282ae0c87d687a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/ef335bb5758783289bea4a5b77282ae0c87d687a/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
543,
1700,
67,
2725,
12,
2890,
16,
2405,
67,
5205,
67,
2725,
33,
8381,
16,
1089,
67,
454,
33,
8381,
4672,
468,
1089,
67,
454,
273,
1053,
4696,
716,
3614,
1047,
1410,
1089,
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,
8286,
543,
1700,
67,
2725,
12,
2890,
16,
2405,
67,
5205,
67,
2725,
33,
8381,
16,
1089,
67,
454,
33,
8381,
4672,
468,
1089,
67,
454,
273,
1053,
4696,
716,
3614,
1047,
1410,
1089,
18,
... |
for bplist in Breakpoint.bplist.itervalues(): | for bplist in Breakpoint.bplist.values(): | def DeleteSelected(self): try: num = self.GetNextItem(-1, commctrl.LVNI_SELECTED) item_id = self.GetItem(num)[6] from bdb import Breakpoint for bplist in Breakpoint.bplist.itervalues(): for bp in bplist: if id(bp)==item_id: self.debugger.clear_break(bp.file, bp.line) break except win32ui.error: win32api.MessageBeep() s... | 2a68fb046a5e8c8854366d9e4142b8c6176862b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/677/2a68fb046a5e8c8854366d9e4142b8c6176862b5/debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
7416,
12,
2890,
4672,
775,
30,
818,
273,
365,
18,
967,
2134,
1180,
19236,
21,
16,
1543,
16277,
18,
48,
58,
50,
45,
67,
4803,
2056,
13,
761,
67,
350,
273,
365,
18,
967,
1180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
7416,
12,
2890,
4672,
775,
30,
818,
273,
365,
18,
967,
2134,
1180,
19236,
21,
16,
1543,
16277,
18,
48,
58,
50,
45,
67,
4803,
2056,
13,
761,
67,
350,
273,
365,
18,
967,
1180,
... |
raise ExtractError, "could not change mode" | raise ExtractError("could not change mode") | def chmod(self, tarinfo, targetpath): """Set file permissions of targetpath according to tarinfo. """ if hasattr(os, 'chmod'): try: os.chmod(targetpath, tarinfo.mode) except EnvironmentError, e: raise ExtractError, "could not change mode" | e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13413,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
694,
585,
4371,
434,
1018,
803,
4888,
358,
8232,
1376,
18,
3536,
309,
3859,
12,
538,
16,
296,
343,
1711,
11,
4672,
775,
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,
13413,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
694,
585,
4371,
434,
1018,
803,
4888,
358,
8232,
1376,
18,
3536,
309,
3859,
12,
538,
16,
296,
343,
1711,
11,
4672,
775,
30,
... |
sage: xi = Matrix(R, 8, 1, sr.vars('x',1)) sage: wi = Matrix(R, 8, 1, sr.vars('w',1)) | sage: xi = Matrix(R, 8, 1, sr.vars('x', 1)) sage: wi = Matrix(R, 8, 1, sr.vars('w', 1)) | def inversion_polynomials(self, xi, wi, length): """ Return polynomials to represent the inversion in the AES S-Box. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
1589,
67,
3915,
13602,
87,
12,
2890,
16,
14087,
16,
16138,
16,
769,
4672,
3536,
2000,
16991,
87,
358,
2406,
326,
316,
1589,
316,
326,
15986,
348,
17,
3514,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
316,
1589,
67,
3915,
13602,
87,
12,
2890,
16,
14087,
16,
16138,
16,
769,
4672,
3536,
2000,
16991,
87,
358,
2406,
326,
316,
1589,
316,
326,
15986,
348,
17,
3514,
18,
2,
-100,
-100,
-100... |
self.vars.update(self.vars_stack[-1]) | self.vars = self.vars_stack[-1] | def pop_vars (self): """ Restore the last set of variables saved using "push_vars". """ self.vars.update(self.vars_stack[-1]) del self.vars_stack[-1] | d346c8300956aa84c886ffb2a17544acd2b5db9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/d346c8300956aa84c886ffb2a17544acd2b5db9f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
4699,
261,
2890,
4672,
3536,
11197,
326,
1142,
444,
434,
3152,
5198,
1450,
315,
6206,
67,
4699,
9654,
3536,
365,
18,
4699,
273,
365,
18,
4699,
67,
3772,
18919,
21,
65,
1464,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
4699,
261,
2890,
4672,
3536,
11197,
326,
1142,
444,
434,
3152,
5198,
1450,
315,
6206,
67,
4699,
9654,
3536,
365,
18,
4699,
273,
365,
18,
4699,
67,
3772,
18919,
21,
65,
1464,
... |
if key >= 65 and key <= 122: | validKeys = range(ord('A'), ord('Z')) + range(ord('a'), ord('z')) + \ range(ord('0'), ord('9')) if key in validKeys: | def prefixSearch(prefix): # let's search for a module in the module list with this prefix mFound = False idx = 0 for m in self._currentModuleListShort: if m.lower().startswith(prefix.lower()): mFound = True break idx += 1 | 699b73f4e6d2c79b6f748258dbfca069e52a97ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/699b73f4e6d2c79b6f748258dbfca069e52a97ce/graphEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1633,
2979,
12,
3239,
4672,
468,
2231,
1807,
1623,
364,
279,
1605,
316,
326,
1605,
666,
598,
333,
1633,
312,
2043,
273,
1083,
2067,
273,
374,
364,
312,
316,
365,
6315,
2972,
3120,
682,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1633,
2979,
12,
3239,
4672,
468,
2231,
1807,
1623,
364,
279,
1605,
316,
326,
1605,
666,
598,
333,
1633,
312,
2043,
273,
1083,
2067,
273,
374,
364,
312,
316,
365,
6315,
2972,
3120,
682,
... |
except ImportError: | except ImportError, e: | def _import_module(name): """ A wrapper for L{import_module} that catches any import errors, and displays a warning to stderr. """ try: return import_module(name) except ImportError: if sys.stderr.softspace: print >>sys.stderr print >>sys.stderr, '\n Warning: %s' % e return None | f00e93b341261cd3d2807ec3c1615250735c60fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/f00e93b341261cd3d2807ec3c1615250735c60fc/uid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5666,
67,
2978,
12,
529,
4672,
3536,
432,
4053,
364,
511,
95,
5666,
67,
2978,
97,
716,
1044,
281,
1281,
1930,
1334,
16,
471,
22461,
279,
3436,
358,
4514,
18,
3536,
775,
30,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5666,
67,
2978,
12,
529,
4672,
3536,
432,
4053,
364,
511,
95,
5666,
67,
2978,
97,
716,
1044,
281,
1281,
1930,
1334,
16,
471,
22461,
279,
3436,
358,
4514,
18,
3536,
775,
30,
327,
... |
if sys.version_info[:2] < (2, 2): def isinstance(obj, clsinfo): import __builtin__ if type(clsinfo) in (tuple, list): for cls in clsinfo: if cls is type: cls = types.ClassType if __builtin__.isinstance(obj, cls): return 1 return 0 else: return __builtin__.isinstance(obj, clsinfo) | def testMultiply(self): self.assertEquals((0 * 10), 0) self.assertEquals((5 * 8), 40) | f64c3e352b01b2c5c40815e4240b2d73462e2ba7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/f64c3e352b01b2c5c40815e4240b2d73462e2ba7/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26040,
12,
2890,
4672,
365,
18,
11231,
8867,
12443,
20,
380,
1728,
3631,
374,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26040,
12,
2890,
4672,
365,
18,
11231,
8867,
12443,
20,
380,
1728,
3631,
374,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 474) else quickfix.StringField.__init__(self, 474, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
5608,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
5608,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
textLst[idx][:indentLevel] == indentLevel*' ': | textLst[idx][:indentLevel] == idntBlock: | def processDedent(self, textLst): for idx in range(len(textLst)): if len(textLst[idx]) >= indentLevel and \ textLst[idx][:indentLevel] == indentLevel*' ': textLst[idx] = textLst[idx][indentLevel:] return textLst | a278e70d9fcdc5da539495de8ca5a2ce08caf5cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a278e70d9fcdc5da539495de8ca5a2ce08caf5cd/PySourceView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
20563,
319,
12,
2890,
16,
977,
28134,
4672,
364,
2067,
316,
1048,
12,
1897,
12,
955,
28134,
3719,
30,
309,
562,
12,
955,
28134,
63,
3465,
5717,
1545,
3504,
2355,
471,
521,
977,
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,
1207,
20563,
319,
12,
2890,
16,
977,
28134,
4672,
364,
2067,
316,
1048,
12,
1897,
12,
955,
28134,
3719,
30,
309,
562,
12,
955,
28134,
63,
3465,
5717,
1545,
3504,
2355,
471,
521,
977,
2... |
"""http://www.itviikko.fi/page.php*""" bs = getUrl(url).getBS() if not bs: return title1 = bs.first("h2").next.next title2 = title1.next return "%s - %s" % (title1, title2) | """http://www.itviikko.fi/*/*/*/*/*""" bs = getUrl(url).getBS() if not bs: return return bs.first("h1", "headline").string | def _handle_itviikko(url): """http://www.itviikko.fi/page.php*""" # <font face="Arial, Helvetica, sans-serif" size="+2"> bs = getUrl(url).getBS() if not bs: return title1 = bs.first("h2").next.next title2 = title1.next return "%s - %s" % (title1, title2) | 8c2c49e15ed5bd704b86e0ec0e6e3ff6c80a6bc5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14781/8c2c49e15ed5bd704b86e0ec0e6e3ff6c80a6bc5/module_urltitle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
305,
522,
1766,
28179,
12,
718,
4672,
3536,
2505,
2207,
5591,
18,
305,
522,
1766,
28179,
18,
22056,
19,
2433,
18,
2684,
14,
8395,
225,
468,
411,
5776,
7945,
1546,
37,
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,
389,
4110,
67,
305,
522,
1766,
28179,
12,
718,
4672,
3536,
2505,
2207,
5591,
18,
305,
522,
1766,
28179,
18,
22056,
19,
2433,
18,
2684,
14,
8395,
225,
468,
411,
5776,
7945,
1546,
37,
56... |
path = os.path.join(os.path.dirname(basepath), path) | dn = os.path.dirname(basepath) if isinstance(dn, unicode): dn = dn.encode(sys.getfilesystemencoding()) path = os.path.join(dn, path) | def munge_paths(basepath, url): purl = urlparse(unquote(url),) path, fragment = purl[2], purl[5] if path: path = path.replace('/', os.sep) if not path: path = basepath elif not os.path.isabs(path): if isinstance(path, unicode): path = path.encode(sys.getfilesystemencoding()) path = os.path.join(os.path.dirname(basepath... | a9d8b2448797d168742bf2c7d3f2d74824085f0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/a9d8b2448797d168742bf2c7d3f2d74824085f0f/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
25561,
67,
4481,
12,
1969,
803,
16,
880,
4672,
293,
718,
273,
15185,
12,
318,
6889,
12,
718,
3631,
13,
589,
16,
5481,
273,
293,
718,
63,
22,
6487,
293,
718,
63,
25,
65,
309,
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,
312,
25561,
67,
4481,
12,
1969,
803,
16,
880,
4672,
293,
718,
273,
15185,
12,
318,
6889,
12,
718,
3631,
13,
589,
16,
5481,
273,
293,
718,
63,
22,
6487,
293,
718,
63,
25,
65,
309,
5... |
if not Page(request, pagename).exists() and \ (not discarded and not added) and \ template: | if not Page(request, pagename).exists() and template: | def wr(fmt, *args): args = tuple(map(form_escape, args)) request.write(fmt % args) | c9808883904c41d1cc5f061f76cb509244252f25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/c9808883904c41d1cc5f061f76cb509244252f25/MetaEdit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12408,
12,
8666,
16,
380,
1968,
4672,
833,
273,
3193,
12,
1458,
12,
687,
67,
6939,
16,
833,
3719,
590,
18,
2626,
12,
8666,
738,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12408,
12,
8666,
16,
380,
1968,
4672,
833,
273,
3193,
12,
1458,
12,
687,
67,
6939,
16,
833,
3719,
590,
18,
2626,
12,
8666,
738,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self.review_avg_score(proposal2) - self.review_avg_score(proposal1) | return int(self.review_avg_score(proposal2) - self.review_avg_score(proposal1)) | def score_sort(self, proposal1, proposal2): return self.review_avg_score(proposal2) - self.review_avg_score(proposal1) | fa7e5409707d846d9e4503a8101f47c9b728e12f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12856/fa7e5409707d846d9e4503a8101f47c9b728e12f/proposal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
67,
3804,
12,
2890,
16,
14708,
21,
16,
14708,
22,
4672,
327,
365,
18,
16041,
67,
14141,
67,
6355,
12,
685,
8016,
22,
13,
300,
365,
18,
16041,
67,
14141,
67,
6355,
12,
685,
8016... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4462,
67,
3804,
12,
2890,
16,
14708,
21,
16,
14708,
22,
4672,
327,
365,
18,
16041,
67,
14141,
67,
6355,
12,
685,
8016,
22,
13,
300,
365,
18,
16041,
67,
14141,
67,
6355,
12,
685,
8016... |
if mapvalue is None: | if mapvalue == MISSING_CODE: | def python_tabledef_code(varname, map, comments=1, key_precision=2): l = [] append = l.append append('%s = (' % varname) # Analyze map and create table dict mappings = sorted(map.items()) table = {} maxkey = 0 if 'IDENTITY' in map: for key in range(256): table[key] = (key, '') maxkey = 255 del map['IDENTITY'] for map... | 5fad89f5bc38b8ed3e50cc50ee87a5006bd75121 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/5fad89f5bc38b8ed3e50cc50ee87a5006bd75121/gencodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
7... |
print self.filelist.getCurrentDirectory() | def showThumb(self): if not self.filelist.canDescent(): print self.filelist.getCurrentDirectory() cachefile = "" if config.pic.cache.value: cachedir = self.filelist.getCurrentDirectory() + ".Thumbnails/" if not os.path.exists(cachedir): os.mkdir(cachedir) cachefile = cachedir + self.filelist.getSelection()[0] + str(180... | 79de1c2ae4ba012707b99336dc4ce9e74734c6f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/79de1c2ae4ba012707b99336dc4ce9e74734c6f9/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
18922,
12,
2890,
4672,
309,
486,
365,
18,
7540,
5449,
18,
4169,
4217,
319,
13332,
1247,
768,
273,
1408,
309,
642,
18,
20003,
18,
2493,
18,
1132,
30,
3472,
481,
273,
365,
18,
7540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
18922,
12,
2890,
4672,
309,
486,
365,
18,
7540,
5449,
18,
4169,
4217,
319,
13332,
1247,
768,
273,
1408,
309,
642,
18,
20003,
18,
2493,
18,
1132,
30,
3472,
481,
273,
365,
18,
7540... | |
if recorded: gl.ringbell() continue gl.prefsize(x, y) gl.winconstraints() record(v, filename, audiofilename) recorded = 1 print 'Wait until "Done writing" is printed!' | info = format, x, y, qsize, rate record(v, info, filename, audiofilename) | def main(): QSIZE = 16 TIME = 5 audio = 0 num, den = 1, 1 opts, args = getopt.getopt(sys.argv[1:], 'aq:r:t:') for opt, arg in opts: if opt == '-a': audio = 1 elif opt == '-q': QSIZE = string.atoi(arg) elif opt == '-r': [nstr, dstr] = string.splitfields(arg, '/') num, den = string.atoi(nstr), string.atoi(dstr) elif opt... | dd2d726866c36f9ef98e011ae9958f47d4411fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dd2d726866c36f9ef98e011ae9958f47d4411fed/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2238,
4574,
273,
2872,
8721,
273,
1381,
7447,
273,
374,
818,
16,
5545,
273,
404,
16,
404,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2238,
4574,
273,
2872,
8721,
273,
1381,
7447,
273,
374,
818,
16,
5545,
273,
404,
16,
404,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
... |
title.set_padding(20, 3) | title.set_padding(20, 4) | def __init__(self, model, window, res_id=False, domain=None, view_type=None, view_ids=None, context=None, name=False, limit=None, auto_refresh=False, search_value=None): super(Form, self).__init__() | 955421041a7ee5c1cb98652a0a13ba8cbc3cc1f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/955421041a7ee5c1cb98652a0a13ba8cbc3cc1f5/form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2742,
16,
400,
67,
350,
33,
8381,
16,
2461,
33,
7036,
16,
1476,
67,
723,
33,
7036,
16,
1476,
67,
2232,
33,
7036,
16,
819,
33,
7036,
16,
508,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2742,
16,
400,
67,
350,
33,
8381,
16,
2461,
33,
7036,
16,
1476,
67,
723,
33,
7036,
16,
1476,
67,
2232,
33,
7036,
16,
819,
33,
7036,
16,
508,... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 880) else quickfix.StringField.__init__(self, 880, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
3672,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
3672,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
rawsource = unescape(string[matchstart:matchend+endmatch.end(1)], 1) | textend = matchend + endmatch.end(1) rawsource = unescape(string[matchstart:textend], 1) | def inline_obj(self, match, lineno, pattern, nodeclass, restore_backslashes=0): string = match.string matchstart = match.start('start') matchend = match.end('start') if self.quoted_start(match): return (string[:matchend], [], string[matchend:], [], '') endmatch = pattern.search(string[matchend:]) if endmatch and endmat... | a5c0eb6861885d1f50c31667ba475c9c99a4acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a5c0eb6861885d1f50c31667ba475c9c99a4acf6/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6370,
67,
2603,
12,
2890,
16,
845,
16,
7586,
16,
1936,
16,
756,
1106,
16,
5217,
67,
823,
13675,
33,
20,
4672,
533,
273,
845,
18,
1080,
845,
1937,
273,
845,
18,
1937,
2668,
1937,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6370,
67,
2603,
12,
2890,
16,
845,
16,
7586,
16,
1936,
16,
756,
1106,
16,
5217,
67,
823,
13675,
33,
20,
4672,
533,
273,
845,
18,
1080,
845,
1937,
273,
845,
18,
1937,
2668,
1937,
6134... |
sage: [ p for p in Permutations(['c','a','t'])] [['c', 'a', 't'], ['c', 't', 'a'], ['a', 'c', 't'], ['a', 't', 'c'], ['t', 'c', 'a'], ['t', 'a', 'c']] | def iterator(self): """ Algorithm based on: http://marknelson.us/2002/03/01/next-permutation/ | ee193cf821b7901e84dd403a0936e9968178dcad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ee193cf821b7901e84dd403a0936e9968178dcad/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
3536,
15067,
2511,
603,
30,
1062,
2207,
3355,
3084,
816,
18,
407,
19,
6976,
22,
19,
4630,
19,
1611,
19,
4285,
17,
12160,
9245,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
3536,
15067,
2511,
603,
30,
1062,
2207,
3355,
3084,
816,
18,
407,
19,
6976,
22,
19,
4630,
19,
1611,
19,
4285,
17,
12160,
9245,
19,
2,
-100,
-100,
-100,
-100,
-100... | |
expect(os.lseek(f.fileno(), 0, 0), 0) expect(os.lseek(f.fileno(), 42, 0), 42) expect(os.lseek(f.fileno(), 42, 1), 84) expect(os.lseek(f.fileno(), 0, 1), 84) expect(os.lseek(f.fileno(), 0, 2), size+1+0) expect(os.lseek(f.fileno(), -10, 2), size+1-10) expect(os.lseek(f.fileno(), -size-1, 2), 0) expect(os.lseek(f.fileno()... | try: expect(os.lseek(f.fileno(), 0, 0), 0) expect(os.lseek(f.fileno(), 42, 0), 42) expect(os.lseek(f.fileno(), 42, 1), 84) expect(os.lseek(f.fileno(), 0, 1), 84) expect(os.lseek(f.fileno(), 0, 2), size+1+0) expect(os.lseek(f.fileno(), -10, 2), size+1-10) expect(os.lseek(f.fileno(), -size-1, 2), 0) expect(os.lseek(f.fil... | def expect(got_this, expect_this): if test_support.verbose: print '%r =?= %r ...' % (got_this, expect_this), if got_this != expect_this: if test_support.verbose: print 'no' raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print 'yes' | ff103ab74a6a7ae0cf2554d09fd494b02b8d8a82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ff103ab74a6a7ae0cf2554d09fd494b02b8d8a82/test_largefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... |
AAAA8AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v ZGUuDQ0KJAAAAAAAAABwj7aMNO7Y3zTu2N807tjfT/LU3zXu2N+38tbfNu7Y39zx3N827tjfVvHL 3zzu2N807tnfae7Y3zTu2N857tjf3PHS3znu2N+M6N7fNe7Y31JpY2g07tjfAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAUEUAAEwBAwAu6+E5AAAAAAAAAADgAA8BCwEGAABAAAAAEAAAAJAAAPDUAAAA oAAAAOAAAAAA... | AAAA4AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v ZGUuDQ0KJAAAAAAAAABwr7eMNM7Z3zTO2d80ztnfT9LV3zXO2d+30tffNs7Z39zR3d82ztnfVtHK 3zzO2d80ztjfVM7Z3zTO2d85ztnf3NHT3znO2d+MyN/fNc7Z31JpY2g0ztnfAAAAAAAAAABQRQAA TAEDAG/hkDoAAAAAAAAAAOAADwELAQYAAEAAAAAQAAAAkAAAwNUAAACgAAAA4AAAAABAAAAQAAAA AgAABAAAAAAA... | def get_exe_bytes (self): import base64 return base64.decodestring(EXEDATA) | 01261f08af72089c5b1eb3b6fe2204216ef6a698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/01261f08af72089c5b1eb3b6fe2204216ef6a698/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
hbox = GtkHBox() arrow = GtkArrow (ARROW_DOWN, SHADOW_OUT) | hbox = gtk.HBox() arrow = gtk.Arrow (gtk.ARROW_DOWN, gtk.SHADOW_OUT) | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
2153,
3053,
682,
16,
1348,
16,
31455,
33,
46,
5996,
12096,
67,
10066,
16,
2193,
33,
18724,
16,
1835,
33,
20,
16,
2072,
33,
20,
4672,
3536,
11417,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
2153,
3053,
682,
16,
1348,
16,
31455,
33,
46,
5996,
12096,
67,
10066,
16,
2193,
33,
18724,
16,
1835,
33,
20,
16,
2072,
33,
20,
4672,
3536,
11417,
18,
... |
model.set(iter, 0, "Real name: <b>%s</b>" % realname) | model.set(iter, 0, _("Real name: ") + "<b>%s</b>" % realname) | def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ... | d3e4407fbcc5c86adb1c39a7dc047c245b3d3d8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/d3e4407fbcc5c86adb1c39a7dc047c245b3d3d8f/gtk_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
26081,
12,
2890,
4672,
9163,
1361,
326,
4916,
1363,
9163,
938,
273,
22718,
18,
2471,
2257,
12,
701,
13,
1760,
273,
938,
18,
6923,
12,
7036,
13,
938,
18,
542,
12,
3669,
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,
2405,
67,
26081,
12,
2890,
4672,
9163,
1361,
326,
4916,
1363,
9163,
938,
273,
22718,
18,
2471,
2257,
12,
701,
13,
1760,
273,
938,
18,
6923,
12,
7036,
13,
938,
18,
542,
12,
3669,
16,
... |
self._must_close = True | def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering=False): if buffering: # The caller won't be using any sock.recv() calls, so buffering # is fine and recommended for performance. self.fp = sock.makefile('rb') # As our sock.makefile() object may receive data into its buffer # beyond that needed to ... | e1a55fd1da7d8acdeb331df21c94e7e43fb8dd73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/e1a55fd1da7d8acdeb331df21c94e7e43fb8dd73/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1198,
2815,
33,
20,
16,
5490,
33,
20,
16,
707,
33,
7036,
16,
25056,
33,
8381,
4672,
309,
25056,
30,
468,
1021,
4894,
8462,
1404,
506,
1450,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7313,
16,
1198,
2815,
33,
20,
16,
5490,
33,
20,
16,
707,
33,
7036,
16,
25056,
33,
8381,
4672,
309,
25056,
30,
468,
1021,
4894,
8462,
1404,
506,
1450,
1... | |
parent.child_title(self.item), | child_title(self.item), | def select_directory(self): """Open a directory selection dialog box""" value = self.item.from_string(unicode(self.edit.text())) parent = self.parent_layout.parent _temp = sys.stdout sys.stdout = None dname = QFileDialog.getExistingDirectory(parent, parent.child_title(self.item), os.path.basename(value)) sys.stdout = _... | 730b1b99cb8a7fd5deecce5098f9ed7f2a616220 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2056/730b1b99cb8a7fd5deecce5098f9ed7f2a616220/qtitemwidgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
5149,
12,
2890,
4672,
3536,
3678,
279,
1867,
4421,
6176,
3919,
8395,
460,
273,
365,
18,
1726,
18,
2080,
67,
1080,
12,
9124,
12,
2890,
18,
4619,
18,
955,
1435,
3719,
982,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
5149,
12,
2890,
4672,
3536,
3678,
279,
1867,
4421,
6176,
3919,
8395,
460,
273,
365,
18,
1726,
18,
2080,
67,
1080,
12,
9124,
12,
2890,
18,
4619,
18,
955,
1435,
3719,
982,
273,... |
listManager.manage_delFolder(listManager.aq_explicit, groupId) | listManager.manage_delObjects([groupId,]) | def delete_list(self, groupId): listManager = self.site_root.ListManager listManager.manage_delFolder(listManager.aq_explicit, groupId) | 81e7abfb5956601cc759eface20b0a1acca070b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6264/81e7abfb5956601cc759eface20b0a1acca070b1/groupcreator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1098,
12,
2890,
16,
6612,
4672,
666,
1318,
273,
365,
18,
4256,
67,
3085,
18,
682,
1318,
666,
1318,
18,
12633,
67,
3771,
4710,
3816,
27547,
16,
5717,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1430,
67,
1098,
12,
2890,
16,
6612,
4672,
666,
1318,
273,
365,
18,
4256,
67,
3085,
18,
682,
1318,
666,
1318,
18,
12633,
67,
3771,
4710,
3816,
27547,
16,
5717,
225,
2,
-100,
-100,
-100,... |
return (0,5) | return (0,6) | def c_code_cache_version(self): return (0,5) | ca383b23a7352d12dec7d55720a716e0c98575af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/ca383b23a7352d12dec7d55720a716e0c98575af/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
20,
16,
25,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
20,
16,
25,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
security.declareProtected(PERMISSION_DELETE_OBJECTS, 'setTopStoryObjects') | security.declareProtected(PERMISSION_EDIT_OBJECTS, 'setTopStoryObjects') | def deleteObjects(self, REQUEST=None): """ """ id_list = self.utConvertToList(REQUEST.get('id', [])) try: self.manage_delObjects(id_list) except: self.setSessionErrors(['Error while delete data.']) else: self.setSessionInfo(['Item(s) deleted.']) if REQUEST: REQUEST.RESPONSE.redirect('index_html') | 05be38035c44ab4c82255a785d26d076f6985f1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/05be38035c44ab4c82255a785d26d076f6985f1f/NyFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
4710,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
3536,
612,
67,
1098,
273,
365,
18,
322,
2723,
25772,
12,
5519,
18,
588,
2668,
350,
2187,
5378,
3719,
775,
30,
365,
18,
12633,
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,
1430,
4710,
12,
2890,
16,
12492,
33,
7036,
4672,
3536,
3536,
612,
67,
1098,
273,
365,
18,
322,
2723,
25772,
12,
5519,
18,
588,
2668,
350,
2187,
5378,
3719,
775,
30,
365,
18,
12633,
67,... |
return http.Response(stream=message(""" | return HTMLResponse(stream=message(""" | def render(self, ctx): ret = '/home/' + self.worksheet.filename() #if self.worksheet.is_rater(self.username): # return http.Response(stream=message("You have already rated the worksheet <i><b>%s</b></i>."%self.worksheet.name(), ret)) if user_type(self.username) == "guest": return http.Response(stream = message( 'You... | 2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
325,
273,
1173,
8712,
2473,
397,
365,
18,
1252,
8118,
18,
3459,
1435,
468,
430,
365,
18,
1252,
8118,
18,
291,
67,
86,
2045,
12,
2890,
18,
5053,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
325,
273,
1173,
8712,
2473,
397,
365,
18,
1252,
8118,
18,
3459,
1435,
468,
430,
365,
18,
1252,
8118,
18,
291,
67,
86,
2045,
12,
2890,
18,
5053,
4672,
... |
error = conn.pop_channel_error (); | error = conn.pop_channel_error () | def test_05 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find... | 44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6260,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6260,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925... |
builddir ?= """ + os.getcwd() + """/out/$(BUILDTYPE) | builddir ?= $(rootdir)/out/$(BUILDTYPE) | ifdef V quiet= | e84e280364c6c7da5005e8bcd0883ad077658ef7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/e84e280364c6c7da5005e8bcd0883ad077658ef7/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
ordered.sort(cmp=lambda x, y: cmp(y[1], x[1])) | ordered.sort(lambda x, y: cmp(y[1], x[1])) | def get_aliases(f): aliases = {} | a12461a5ec81503bac992d70f744103bdcbd90d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/a12461a5ec81503bac992d70f744103bdcbd90d8/churn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13831,
12,
74,
4672,
6900,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13831,
12,
74,
4672,
6900,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
repacked_build = "%s/%s" % (partner_repack_dir, filename) | repacked_build = "%s/%s/%s" % (partner_repack_dir, final_dir, filename) | def repackBuild(self): zip_cmd = "7za a %s nonlocalized" % self.build shellCommand(zip_cmd) | e36822b26ce81ba3f89d96443ec62c28dbd6e70f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10262/e36822b26ce81ba3f89d96443ec62c28dbd6e70f/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
738,
87,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
738,
87,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
-100,
-100,
-100,
... |
"accept_button": self.localize("Accept"), "reject_button": self.localize("Reject"), | "accept_title": self.localize("Accept suggestion"), "reject_title": self.localize("Reject suggestion"), | def __init__(self, project, session, argdict, dirfilter=None): self.argdict = argdict self.dirfilter = dirfilter self.project = project self.altproject = None # do we have enabled alternative source language? self.enablealtsrc = getattr(session.instance, "enablealtsrc", "False") if self.enablealtsrc == 'True': # try to... | 0629e74c5da7fa11f4e2b6004c0a623b6e93c2e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/0629e74c5da7fa11f4e2b6004c0a623b6e93c2e8/translatepage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1984,
16,
1339,
16,
1501,
1576,
16,
1577,
2188,
33,
7036,
4672,
365,
18,
3175,
1576,
273,
1501,
1576,
365,
18,
1214,
2188,
273,
1577,
2188,
365,
18,
4406... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1984,
16,
1339,
16,
1501,
1576,
16,
1577,
2188,
33,
7036,
4672,
365,
18,
3175,
1576,
273,
1501,
1576,
365,
18,
1214,
2188,
273,
1577,
2188,
365,
18,
4406... |
libBALLc.sipCallCtor(11,self,args) def __getattr__(self,name): return libBALLc.sipCallGetVar(11,self,name) def __setattr__(self,name,value): return libBALLc.sipCallSetVar(11,self,name,value) | libBALLc.sipCallCtor(18,self,args) def __getattr__(self,name): return libBALLc.sipCallGetVar(18,self,name) def __setattr__(self,name,value): return libBALLc.sipCallSetVar(18,self,name,value) | def __init__(self,*args): libBALLc.sipCallCtor(11,self,args) | 6143cd22f226534836314b76952f50c72ab34763 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5247/6143cd22f226534836314b76952f50c72ab34763/BALL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
2561,
38,
4685,
71,
18,
28477,
1477,
27425,
12,
2499,
16,
2890,
16,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
4672,
2561,
38,
4685,
71,
18,
28477,
1477,
27425,
12,
2499,
16,
2890,
16,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): | if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN, ssl.SSL_ERROR_WANT_READ, ssl.SSL_ERROR_WANT_WRITE): | def send(self, data): try: return super(SSLConnection, self).send(data) except ssl.SSLError, err: if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): return 0 raise | 5b15b53793b178e4457a142b99261a34d5321e30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/5b15b53793b178e4457a142b99261a34d5321e30/test_ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
327,
2240,
12,
6745,
1952,
16,
365,
2934,
4661,
12,
892,
13,
1335,
5832,
18,
6745,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
20,
65,
316,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
327,
2240,
12,
6745,
1952,
16,
365,
2934,
4661,
12,
892,
13,
1335,
5832,
18,
6745,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
20,
65,
316,
26... |
if {} not in optionSets: optionSets.append({}) | def testBuild(self): """Test if build finishes successfully.""" optionSets = self.OPTIONS[:] if {} not in optionSets: optionSets.append({}) for databasePath in self.dbInstances: for options in optionSets: myOptions = options.copy() if 'dataPath' not in myOptions: myOptions['dataPath'] = self.dataPath assert('quiet' not... | e8178f9cde5e6cf38fb27545ff38e41c9ae489ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/e8178f9cde5e6cf38fb27545ff38e41c9ae489ed/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3116,
12,
2890,
4672,
3536,
4709,
309,
1361,
27609,
4985,
12123,
1456,
2785,
273,
365,
18,
12422,
10531,
65,
364,
2063,
743,
316,
365,
18,
1966,
5361,
30,
364,
702,
316,
1456,
2785... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3116,
12,
2890,
4672,
3536,
4709,
309,
1361,
27609,
4985,
12123,
1456,
2785,
273,
365,
18,
12422,
10531,
65,
364,
2063,
743,
316,
365,
18,
1966,
5361,
30,
364,
702,
316,
1456,
2785... | |
except (Order.DoesNotExist, GiftCertificate.DoesNotExist): | except (Order.DoesNotExist, GiftCertificate.DoesNotExist, KeyError): | def confirm_info(request, template="checkout/giftcertificate/confirm.html"): try: order = Order.objects.get(id=request.session['orderID']) giftcert = GiftCertificate.objects.from_order(order) except (Order.DoesNotExist, GiftCertificate.DoesNotExist): giftcert = None controller = confirm.ConfirmController(request, gc) ... | d06824b418850d60b85ee0a348b87c8857cb0e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/d06824b418850d60b85ee0a348b87c8857cb0e0b/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
1376,
12,
2293,
16,
1542,
1546,
17300,
19,
75,
2136,
14108,
19,
10927,
18,
2620,
6,
4672,
775,
30,
1353,
273,
4347,
18,
6911,
18,
588,
12,
350,
33,
2293,
18,
3184,
3292,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
1376,
12,
2293,
16,
1542,
1546,
17300,
19,
75,
2136,
14108,
19,
10927,
18,
2620,
6,
4672,
775,
30,
1353,
273,
4347,
18,
6911,
18,
588,
12,
350,
33,
2293,
18,
3184,
3292,
10... |
extension_attributes=extension_attributes, | extension_attributes=extension_attributes, | def __init__(self, name=None, email=None, attendee_status=None, attendee_type=None, rel=None, extension_elements=None, extension_attributes=None, text=None): UriEnumElement.__init__(self, 'who', Who.relEnum, attrib_name='rel', extension_elements=extension_elements, extension_attributes=extension_attributes, text=text) ... | b441c0ccc7da55ff31f704dc6779ec676da299f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/b441c0ccc7da55ff31f704dc6779ec676da299f1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
2699,
33,
7036,
16,
27645,
20953,
67,
2327,
33,
7036,
16,
27645,
20953,
67,
723,
33,
7036,
16,
1279,
33,
7036,
16,
2710,
67,
6274,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
2699,
33,
7036,
16,
27645,
20953,
67,
2327,
33,
7036,
16,
27645,
20953,
67,
723,
33,
7036,
16,
1279,
33,
7036,
16,
2710,
67,
6274,
3... |
u'(lambda x: dh_noConv( x, u"%%dî d\' %s" ), lambda x: x == 1),' + u'(lambda x: dh_noConv( x, u"%%d d\' %s" ), alwaysTrue)])') % (waMonthNames[i],waMonthNames[i])) | u'(lambda x: dh_noConv( x, u"%%dî d\' %s" ), lambda p: p == 1),' + u'(lambda x: dh_noConv( x, u"%%d d\' %s" ), alwaysTrue)])') % (waMonthNames[i],waMonthNames[i])) | def makeMonthNamedList( lang, pattern, makeUpperCase = None ): """Creates a list of 12 elements based on the name of the month. The language-dependent month name is used as a formating argument to the pattern. The pattern must be have one %s that will be replaced by the localized month name. Use %%d for any other param... | 32e5f5c1a30bc02fc3075b9c456f10fafab05a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/32e5f5c1a30bc02fc3075b9c456f10fafab05a66/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5445,
7604,
682,
12,
3303,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
3536,
2729,
279,
666,
434,
2593,
2186,
2511,
603,
326,
508,
434,
326,
3138,
18,
1021,
2653,
17,
10891,
313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5445,
7604,
682,
12,
3303,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
3536,
2729,
279,
666,
434,
2593,
2186,
2511,
603,
326,
508,
434,
326,
3138,
18,
1021,
2653,
17,
10891,
313... |
return util.checksignature(self.fn)(ui, *args, **opts) | try: util.checksignature(self.fn)(ui, *args, **opts) except error.SignatureError: args = ' '.join([self.cmdname] + self.args) ui.debug("alias '%s' expands to '%s'\n" % (self.name, args)) raise | def __call__(self, ui, *args, **opts): if self.shadows: ui.debug("alias '%s' shadows command '%s'\n" % (self.name, self.cmdname)) | 4b1ee2a2d1a9ae0ba55349ed70013c84cb6ce07f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/4b1ee2a2d1a9ae0ba55349ed70013c84cb6ce07f/dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5915,
16,
380,
1968,
16,
2826,
4952,
4672,
309,
365,
18,
19119,
87,
30,
5915,
18,
4148,
2932,
4930,
1995,
87,
11,
10510,
87,
1296,
1995,
87,
8314,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5915,
16,
380,
1968,
16,
2826,
4952,
4672,
309,
365,
18,
19119,
87,
30,
5915,
18,
4148,
2932,
4930,
1995,
87,
11,
10510,
87,
1296,
1995,
87,
8314,
82,
... |
pp = pkgplan.PkgPlan(self, progtrack, lambda x: False) | pp = pkgplan.PkgPlan(self, progtrack, lambda: False) | def repair(self, repairs, progtrack): """Repair any actions in the fmri that failed a verify.""" # XXX: This (lambda x: False) is temporary until we move pkg fix # into the api and can actually use the # api::__check_cancelation() function. pps = [] for fmri, actions in repairs: msg("Repairing: %-50s" % fmri.get_pkg_st... | 44b00bf85b5729f3a4e79eb4641b3046d17a1ef3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12612/44b00bf85b5729f3a4e79eb4641b3046d17a1ef3/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20994,
12,
2890,
16,
20994,
87,
16,
11243,
4101,
4672,
3536,
426,
6017,
1281,
4209,
316,
326,
10940,
566,
716,
2535,
279,
3929,
12123,
468,
11329,
30,
1220,
261,
14661,
619,
30,
1083,
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,
20994,
12,
2890,
16,
20994,
87,
16,
11243,
4101,
4672,
3536,
426,
6017,
1281,
4209,
316,
326,
10940,
566,
716,
2535,
279,
3929,
12123,
468,
11329,
30,
1220,
261,
14661,
619,
30,
1083,
13... |
self.start = self.fp.tell() self.posstack = [] | if seekable: self.seekable = 1 self.start = self.fp.tell() self.posstack = [] | def __init__(self, fp): self.fp = fp self.stack = [] # Grows down self.level = 0 self.last = 0 self.start = self.fp.tell() self.posstack = [] # Grows down | 4d40b0a16536b7b3d61b6c86a0e8547728762c7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4d40b0a16536b7b3d61b6c86a0e8547728762c7e/multifile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
4253,
365,
18,
3772,
273,
5378,
468,
611,
3870,
2588,
365,
18,
2815,
273,
374,
365,
18,
2722,
273,
374,
309,
6520,
429,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4253,
4672,
365,
18,
7944,
273,
4253,
365,
18,
3772,
273,
5378,
468,
611,
3870,
2588,
365,
18,
2815,
273,
374,
365,
18,
2722,
273,
374,
309,
6520,
429,
... |
- ``prec`` - precision of the sqrt() calculation | - ``prec`` - precision of the ``sqrt()`` calculation | def _big_delta_coeff(aa, bb, cc, prec=None): r""" Calculates the Delta coefficient of the 3 angular momenta for Racah symbols. Also checks that the differences are of integer value. INPUT: - ``aa`` - first angular momentum, integer or half integer - ``bb`` - second angular momentum, integer or half integer - ``c... | 7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14002,
67,
9878,
67,
18132,
12,
7598,
16,
7129,
16,
4946,
16,
13382,
33,
7036,
4672,
436,
8395,
26128,
326,
17799,
16554,
434,
326,
890,
11759,
10382,
69,
364,
534,
1077,
9795,
7963... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14002,
67,
9878,
67,
18132,
12,
7598,
16,
7129,
16,
4946,
16,
13382,
33,
7036,
4672,
436,
8395,
26128,
326,
17799,
16554,
434,
326,
890,
11759,
10382,
69,
364,
534,
1077,
9795,
7963... |
for rec in sort_records(diff.inclusions): add(" >> ++ %s" % str(rec)) for rec in sort_records(diff.exclusions): add(" >> -- %s" % str(rec)) | if diff is not None: for rec in sort_records(diff.inclusions): add(" >> ++ %s" % str(rec)) for rec in sort_records(diff.exclusions): add(" >> -- %s" % str(rec)) | def stats2str(rv, stats): # stats is an array of dictionaries, each of which have these keys: # share : a UUID object # added : a set of UUIDs # modified : a set of UUIDs # removed : a set of UUIDs # applied : a dictionary of aliases to Diffs # sent : a dictionary of aliases to Diffs lines = list() add = lines.append p... | 8adc1e86583c61970f960f8cc0722b3995f25e04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/8adc1e86583c61970f960f8cc0722b3995f25e04/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
22,
701,
12,
4962,
16,
3177,
4672,
468,
3177,
353,
392,
526,
434,
16176,
16,
1517,
434,
1492,
1240,
4259,
1311,
30,
468,
7433,
294,
279,
5866,
733,
468,
3096,
294,
279,
444,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
22,
701,
12,
4962,
16,
3177,
4672,
468,
3177,
353,
392,
526,
434,
16176,
16,
1517,
434,
1492,
1240,
4259,
1311,
30,
468,
7433,
294,
279,
5866,
733,
468,
3096,
294,
279,
444,
434,... |
result = texturePattern.match(line) if result: | result = v8TexturePattern.match(line) if result: textureFound = 1 | def handleFacade(dirpath, filename, libraryFileHandle, libraryPlaceholderFileHandle, facades, authors): objectSourcePath = os.path.join(dirpath, filename) parts = dirpath.split("/", 2) print "Handling facade: " + objectSourcePath # Create an instance of the SceneryObject class sceneryObject = classes.SceneryObject(pa... | 5d85d733c345934088eebd21200220a1ee2d66fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5176/5d85d733c345934088eebd21200220a1ee2d66fa/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12467,
12,
1214,
803,
16,
1544,
16,
5313,
812,
3259,
16,
5313,
14038,
812,
3259,
16,
5853,
16601,
16,
14494,
4672,
733,
1830,
743,
273,
1140,
18,
803,
18,
5701,
12,
1214,
803,
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,
1640,
12467,
12,
1214,
803,
16,
1544,
16,
5313,
812,
3259,
16,
5313,
14038,
812,
3259,
16,
5853,
16601,
16,
14494,
4672,
733,
1830,
743,
273,
1140,
18,
803,
18,
5701,
12,
1214,
803,
16... |
self.image_pool.remove(image) | if image in self.image_pool: self.image_pool.remove(image) | def remove_from_image_pool(self,image): self.image_pool.remove(image) | 1f06afeab7217be7b570f65c45105242712918de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/1f06afeab7217be7b570f65c45105242712918de/colormanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
2080,
67,
2730,
67,
6011,
12,
2890,
16,
2730,
4672,
309,
1316,
316,
365,
18,
2730,
67,
6011,
30,
365,
18,
2730,
67,
6011,
18,
4479,
12,
2730,
13,
225,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
2080,
67,
2730,
67,
6011,
12,
2890,
16,
2730,
4672,
309,
1316,
316,
365,
18,
2730,
67,
6011,
30,
365,
18,
2730,
67,
6011,
18,
4479,
12,
2730,
13,
225,
2,
-100,
-100,
-100,
... |
name = models.CharField(max_length=255) type = models.CharField(max_length=6) content = models.CharField(max_length=255) ttl = models.IntegerField() prio = models.IntegerField() change_date = models.IntegerField() | name = models.CharField(max_length=255, blank=True, null=True) type = models.CharField(max_length=6, blank=True, null=True) content = models.CharField(max_length=255, blank=True, null=True) ttl = models.IntegerField(blank=True, null=True) prio = models.IntegerField(blank=True, null=True) change_date = models.IntegerFie... | def __unicode__(self): return self.name | f66d248720e1eae18bbb358c40fa0c0b0393b80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3558/f66d248720e1eae18bbb358c40fa0c0b0393b80c/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
365,
18,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
365,
18,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" | """ | def getEmptyRecurrenceDiff(alias): """ Cosmo sends EventRecords with None for their recurrence fields, unfortunately we can't use the standard converter code to handle this case, since we only want to fix modification records. """ args = [eim.NoChange] * len(EventRecord.__fields__) args[0] = alias for field in recurre... | 0e48d535a65820aef389d27dd2d505f2cfe8f701 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0e48d535a65820aef389d27dd2d505f2cfe8f701/recordset_conduit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30824,
426,
17131,
5938,
12,
4930,
4672,
3536,
385,
538,
8683,
9573,
2587,
6499,
598,
599,
364,
3675,
25939,
1466,
16,
640,
24233,
732,
848,
1404,
999,
326,
4529,
6027,
981,
358,
1640,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30824,
426,
17131,
5938,
12,
4930,
4672,
3536,
385,
538,
8683,
9573,
2587,
6499,
598,
599,
364,
3675,
25939,
1466,
16,
640,
24233,
732,
848,
1404,
999,
326,
4529,
6027,
981,
358,
1640,
3... |
ok_sys_names = ('ps1', 'ps2', 'copyright', 'version', | ok_sys_names = ('ps1', 'ps2', 'copyright', 'version', 'hexversion', | def default_path(self): return self.rexec.modules['sys'].path | d1a1174207d9d2cf9588fcbfad1e949a9fd67e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d1a1174207d9d2cf9588fcbfad1e949a9fd67e81/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
803,
12,
2890,
4672,
327,
365,
18,
266,
92,
557,
18,
6400,
3292,
9499,
29489,
803,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
803,
12,
2890,
4672,
327,
365,
18,
266,
92,
557,
18,
6400,
3292,
9499,
29489,
803,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def ReadBaseNameList(): | def ReadBaseNameList(faction): | def ReadBaseNameList(): bnl=[] try: f = open ('universe/names.txt','r') bnl = f.readlines() f.close() except: try: f = open ('../universe/names.txt','r') bnl = f.readlines() f.close() except: global genericalphabet bnl=genericalphabet for i in range(len(bnl)): bnl[i]=bnl[i].rstrip() return bnl | bced75b4defedad35c053ed425d73c5e16c6d7b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/bced75b4defedad35c053ed425d73c5e16c6d7b4/fg_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
29907,
682,
12,
507,
349,
4672,
324,
14039,
33,
8526,
775,
30,
284,
273,
1696,
7707,
318,
17488,
19,
1973,
18,
5830,
17023,
86,
6134,
324,
14039,
273,
284,
18,
896,
3548,
1435,
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,
2720,
29907,
682,
12,
507,
349,
4672,
324,
14039,
33,
8526,
775,
30,
284,
273,
1696,
7707,
318,
17488,
19,
1973,
18,
5830,
17023,
86,
6134,
324,
14039,
273,
284,
18,
896,
3548,
1435,
2... |
control_parent = self.splitter | control_parent = splitter | def __init__(self, parent, id, title): global shell wx.Frame.__init__( self, parent, id, title, (100, 100), # Win32 change [600, 550], style=wx.DEFAULT_FRAME_STYLE|wx.CLIP_CHILDREN|wx.NO_FULL_REPAINT_ON_RESIZE) wx.EVT_CLOSE(self, self._OnCloseWindow) | 8deb2839853d5d5cc012a0c0fec596daadf65444 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9927/8deb2839853d5d5cc012a0c0fec596daadf65444/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
2552,
5972,
7075,
18,
3219,
16186,
2738,
972,
12,
365,
16,
982,
16,
612,
16,
2077,
16,
261,
6625,
16,
2130,
3631,
468,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
2552,
5972,
7075,
18,
3219,
16186,
2738,
972,
12,
365,
16,
982,
16,
612,
16,
2077,
16,
261,
6625,
16,
2130,
3631,
468,
21... |
line = f.readline() | line = f.readline().strip() | def verifyEntry(self, f, time=None, subsys=None, severity=None, summary=None, detail=None, error=None): # skip to the beginning of next entry line = f.readline() while line != "------\n": if not line: self.fail("can't find entry in log file") line = f.readline() line = f.readline().strip() _time, rest = line.split(" "... | 7fceae6b2fbb37aee25363c2bbd681b5f7ac06f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/7fceae6b2fbb37aee25363c2bbd681b5f7ac06f4/testzLog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1622,
12,
2890,
16,
284,
16,
813,
33,
7036,
16,
720,
9499,
33,
7036,
16,
11426,
33,
7036,
16,
4916,
33,
7036,
16,
7664,
33,
7036,
16,
555,
33,
7036,
4672,
468,
2488,
358,
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,
3929,
1622,
12,
2890,
16,
284,
16,
813,
33,
7036,
16,
720,
9499,
33,
7036,
16,
11426,
33,
7036,
16,
4916,
33,
7036,
16,
7664,
33,
7036,
16,
555,
33,
7036,
4672,
468,
2488,
358,
326,
... |
html.a("contact", href=self.get_doclink("contact.html"), class_="menu"), " ", | def fill_menubar(self): self.menubar = html.div( html.a("news", href="http://codespeak.net/pypy/dist/pypy/doc/news.html", class_="menu"), " ", html.a("blog", href="http://morepypy.blogspot.com", class_="menu"), html.a("getting-started", href=self.get_doclink("getting-started.html"), class_="menu"), " ", html.a("documen... | 518be313d80fdcf44016f241eb5b96401b360a57 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/518be313d80fdcf44016f241eb5b96401b360a57/confrest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
27617,
373,
297,
12,
2890,
4672,
365,
18,
27617,
373,
297,
273,
1729,
18,
2892,
12,
1729,
18,
69,
2932,
18443,
3113,
3897,
1546,
2505,
2207,
7000,
10244,
18,
2758,
19,
22680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
27617,
373,
297,
12,
2890,
4672,
365,
18,
27617,
373,
297,
273,
1729,
18,
2892,
12,
1729,
18,
69,
2932,
18443,
3113,
3897,
1546,
2505,
2207,
7000,
10244,
18,
2758,
19,
22680,
... | |
if type(jobspec) == str: | if isinstance(jobspec, basestring): | def results(self, jobspec, timeout=2000): """ Returns a list of results for a single job or for many concurrently running jobs, depending on the type of *jobspec*. | f078e76ff1da13591761f2b9a8461fd98227a7a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/f078e76ff1da13591761f2b9a8461fd98227a7a2/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1686,
12,
2890,
16,
1719,
2793,
16,
2021,
33,
17172,
4672,
3536,
2860,
279,
666,
434,
1686,
364,
279,
2202,
1719,
578,
364,
4906,
21946,
3549,
6550,
16,
8353,
603,
326,
618,
434,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1686,
12,
2890,
16,
1719,
2793,
16,
2021,
33,
17172,
4672,
3536,
2860,
279,
666,
434,
1686,
364,
279,
2202,
1719,
578,
364,
4906,
21946,
3549,
6550,
16,
8353,
603,
326,
618,
434,
380,
... |
bgTreat = OWGUI.radioButtonsInBox(self.controlArea, self, "defaultMethod", ["Don't Impute", "Average/Most frequent", "Model-based imputer (can be slow!)", "Random values"], "Default imputation method", callback=self.sendIf) | bgTreat = OWGUI.radioButtonsInBox(self.controlArea, self, "defaultMethod", ["Don't Impute", "Average/Most frequent", "Model-based imputer (can be slow!)", "Random values", "Remove examples with missing values"], "Default imputation method", callback=self.sendIf) | def __init__(self,parent=None, signalManager = None, name = "Impute"): OWWidget.__init__(self, parent, signalManager, name) | 6dd39f8a0aebe0212befa1fe1b06512e950b5b47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/6dd39f8a0aebe0212befa1fe1b06512e950b5b47/OWImpute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
1170,
2507,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
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,
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,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
1170,
2507,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
... |
>>> nodes[0].setLinks(nodes) | >>> nodes[0].setLinks(nodes[1:]) | def set(self, instance, value, **kwargs): """Mutator. | e3637fa777eacf6794d168aaf9841467c67b8cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/e3637fa777eacf6794d168aaf9841467c67b8cbb/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
28410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
4333,
4672,
3536,
28410,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
[2, 2, 3] | [2, 6] | def elementary_divisors(self): """ EXAMPLES: sage: G = AbelianGroup(2,[2,6]) sage: G Multiplicative Abelian Group isomorphic to C2 x C6 sage: G.invariants() [2, 6] sage: G.elementary_divisors() [2, 2, 3] sage: J = AbelianGroup([1,3,5,12]) sage: J.elementary_divisors() [3, 3, 4, 5] """ inv = self.invariants() invs = lis... | 83ea47c5540a3e3b8b6108973f9a18cb6ac3ad86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/83ea47c5540a3e3b8b6108973f9a18cb6ac3ad86/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
814,
67,
2892,
291,
1383,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
611,
273,
9771,
292,
2779,
1114,
12,
22,
16,
63,
22,
16,
26,
5717,
272,
410,
30,
611,
5991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
814,
67,
2892,
291,
1383,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
611,
273,
9771,
292,
2779,
1114,
12,
22,
16,
63,
22,
16,
26,
5717,
272,
410,
30,
611,
5991,
... |
''') % (weburl, journal_name) | ''' % (weburl, journal_name) | def tmpl_webjournal_feature_record_interface(language, journal_name): """ Draws an interface form to feature a specific record from CDS Invenio. """ _ = gettext_set_language(language) interface = _(''' <form action="%s/journal/feature_record" name="alert"> <input type="hidden" name="name" value="%s"/> <p>Featured Recor... | 25e3889e6921bcde05623e951f65cbb8800e1823 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/25e3889e6921bcde05623e951f65cbb8800e1823/webjournal_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1814,
441,
7116,
67,
7238,
67,
3366,
67,
5831,
12,
4923,
16,
13001,
67,
529,
4672,
3536,
10184,
87,
392,
1560,
646,
358,
2572,
279,
2923,
1409,
628,
385,
3948,
657,
3995,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1814,
441,
7116,
67,
7238,
67,
3366,
67,
5831,
12,
4923,
16,
13001,
67,
529,
4672,
3536,
10184,
87,
392,
1560,
646,
358,
2572,
279,
2923,
1409,
628,
385,
3948,
657,
3995,
15... |
winfu = barthann | winfunc = barthann | def get_window(window,Nx,fftbins=1): """Return a window of length Nx and type window. If fftbins is 1, create a "periodic" window ready to use with ifftshift and be multiplied by the result of an fft (SEE ALSO fftfreq). Window types: boxcar, triang, blackman, hamming, hanning, bartlett, parzen, bohman, blackmanharri... | 6d365e1efe06bcd9acb52e95effa641fc7813fbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/6d365e1efe06bcd9acb52e95effa641fc7813fbf/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5668,
12,
5668,
16,
50,
92,
16,
25174,
11862,
33,
21,
4672,
3536,
990,
279,
2742,
434,
769,
423,
92,
471,
618,
2742,
18,
225,
971,
15741,
11862,
353,
404,
16,
752,
279,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5668,
12,
5668,
16,
50,
92,
16,
25174,
11862,
33,
21,
4672,
3536,
990,
279,
2742,
434,
769,
423,
92,
471,
618,
2742,
18,
225,
971,
15741,
11862,
353,
404,
16,
752,
279,
315,... |
self.assertEqual(n_servers, local.max_load * n_cpus) | self.assertEqual(n_servers, self.local.max_load * n_cpus) | def test_max_servers(self): logging.debug('') logging.debug('test_max_servers') | b68b2136655ef4577e88a6a76bbb956045ad04ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/b68b2136655ef4577e88a6a76bbb956045ad04ed/test_resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1896,
67,
14247,
12,
2890,
4672,
2907,
18,
4148,
2668,
6134,
2907,
18,
4148,
2668,
3813,
67,
1896,
67,
14247,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1896,
67,
14247,
12,
2890,
4672,
2907,
18,
4148,
2668,
6134,
2907,
18,
4148,
2668,
3813,
67,
1896,
67,
14247,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
obj = usage_tracker_obj() | debug_name = platform.atom_debug and ("%r" % self) or None obj = usage_tracker_obj(debug_name) | def begin_tracking_usage(self): #e there's a docstring for this in an outtakes file, if one is needed obj = usage_tracker_obj() match_checking_code = usage_tracker.begin( obj) # don't store match_checking_code in self -- that would defeat the error-checking # for bugs in how self's other code matches up these begin and... | 540f658b0924d6bec747b193f064dffbf0edcd2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/540f658b0924d6bec747b193f064dffbf0edcd2e/changes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
6440,
67,
9167,
12,
2890,
4672,
468,
73,
1915,
1807,
279,
14525,
364,
333,
316,
392,
596,
88,
3223,
585,
16,
309,
1245,
353,
3577,
1198,
67,
529,
273,
4072,
18,
7466,
67,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
6440,
67,
9167,
12,
2890,
4672,
468,
73,
1915,
1807,
279,
14525,
364,
333,
316,
392,
596,
88,
3223,
585,
16,
309,
1245,
353,
3577,
1198,
67,
529,
273,
4072,
18,
7466,
67,
4... |
print "Module file without \DeclareLyXModule line. " | logger.warning("Module file without \DeclareLyXModule line. ") | def processModuleFile(file, bool_docbook): ''' process module file and get a line of result The top of a module file should look like this: #\DeclareLyXModule[LaTeX Packages]{ModuleName} #BeginDescription #...body of description... #EndDescription #Requires: [list of required modules] #Excludes: [list of excluded modu... | b8ce87578f9d75ccccfc9a3eb0e0156576b6d158 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/b8ce87578f9d75ccccfc9a3eb0e0156576b6d158/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3120,
812,
12,
768,
16,
1426,
67,
2434,
3618,
4672,
9163,
1207,
1605,
585,
471,
336,
279,
980,
434,
563,
225,
1021,
1760,
434,
279,
1605,
585,
1410,
2324,
3007,
333,
30,
468,
64,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3120,
812,
12,
768,
16,
1426,
67,
2434,
3618,
4672,
9163,
1207,
1605,
585,
471,
336,
279,
980,
434,
563,
225,
1021,
1760,
434,
279,
1605,
585,
1410,
2324,
3007,
333,
30,
468,
64,... |
print "certain", certain, "knownSplit", knownSplit, \ "knownKeep", knownKeep | def split(self, childSize, otherMarkerId, turn=-1): print "split for", self, childSize, otherMarkerId, turn | d3360650260167e99d819d46c099993d6e0f1f9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3755/d3360650260167e99d819d46c099993d6e0f1f9e/predictsplits.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
1151,
1225,
16,
1308,
7078,
548,
16,
7005,
29711,
21,
4672,
1172,
315,
4939,
364,
3113,
365,
16,
1151,
1225,
16,
1308,
7078,
548,
16,
7005,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
1151,
1225,
16,
1308,
7078,
548,
16,
7005,
29711,
21,
4672,
1172,
315,
4939,
364,
3113,
365,
16,
1151,
1225,
16,
1308,
7078,
548,
16,
7005,
2,
-100,
-100,
-100,
-10... | |
field = 'anyfield' | field = 'global' res = run_sql("""SELECT id FROM idxINDEX WHERE name=%s""", (field,)) if res: out = res[0][0] return out | def get_index_id_from_field(field): """Returns first index id where the field code FIELD is indexed. Returns zero in case there is no table for this index. Example: field='author', output=4.""" out = 0 if field == '': field = 'anyfield' # empty string field means 'anyfield' res = run_sql("""SELECT w.id FROM idxINDEX AS... | ecba2d17f2c659fb5f546a1510c9950bb439cc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2139/ecba2d17f2c659fb5f546a1510c9950bb439cc75/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
350,
67,
2080,
67,
1518,
12,
1518,
4672,
3536,
1356,
1122,
770,
612,
1625,
326,
652,
981,
9921,
353,
8808,
18,
2860,
3634,
316,
648,
1915,
353,
1158,
1014,
364,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1615,
67,
350,
67,
2080,
67,
1518,
12,
1518,
4672,
3536,
1356,
1122,
770,
612,
1625,
326,
652,
981,
9921,
353,
8808,
18,
2860,
3634,
316,
648,
1915,
353,
1158,
1014,
364,
333,... |
(time.strftime("%M %H * * * *"),' '.join(cmd))) | (time.strftime("%M %H * * *"),' '.join(cmd))) | def handle_updates_check(cfg): if not util.get_cfg_option_bool(cfg, 'updates-check', True): return build_info = "/etc/cloud/build.info" if not os.path.isfile(build_info): warn("no %s file" % build_info) avail="%s/%s" % ( cloudinit.datadir, "available.build" ) cmd=( "uec-query-builds", "--system-suite", "--config", "%s... | 471ad6ac63e7969d70d4fb17859d2577c990a297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7197/471ad6ac63e7969d70d4fb17859d2577c990a297/CloudConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
14703,
67,
1893,
12,
7066,
4672,
309,
486,
1709,
18,
588,
67,
7066,
67,
3482,
67,
6430,
12,
7066,
16,
296,
14703,
17,
1893,
2187,
1053,
4672,
327,
1361,
67,
1376,
273,
2206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
14703,
67,
1893,
12,
7066,
4672,
309,
486,
1709,
18,
588,
67,
7066,
67,
3482,
67,
6430,
12,
7066,
16,
296,
14703,
17,
1893,
2187,
1053,
4672,
327,
1361,
67,
1376,
273,
2206,
... |
zipopen = zipfp.open(TESTFN) data = b'' while True: read = zipopen.readline() if not read: break data += read read = zipopen.read(100) if not read: break data += read | with zipfp.open(TESTFN) as zipopen: data = b'' while True: read = zipopen.readline() if not read: break data += read read = zipopen.read(100) if not read: break data += read | def zip_readline_read_test(self, f, compression): self.make_test_archive(f, compression) | 00da94b6ed796d43d8a0465e223f639d495e9b68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/00da94b6ed796d43d8a0465e223f639d495e9b68/test_zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
67,
896,
1369,
67,
896,
67,
3813,
12,
2890,
16,
284,
16,
9154,
4672,
365,
18,
6540,
67,
3813,
67,
10686,
12,
74,
16,
9154,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
67,
896,
1369,
67,
896,
67,
3813,
12,
2890,
16,
284,
16,
9154,
4672,
365,
18,
6540,
67,
3813,
67,
10686,
12,
74,
16,
9154,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sage: NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False) | sage: NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False) | def galois_group(self, pari_group = True, algorithm='pari'): r""" Return the Galois group of the Galois closure of this number field as an abstract group. | 60e01013ecdf27a0f9d992e65fe5b14c34ed5b80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/60e01013ecdf27a0f9d992e65fe5b14c34ed5b80/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
1655,
12,
2890,
16,
779,
77,
67,
1655,
273,
1053,
16,
4886,
2218,
1065,
77,
11,
4672,
436,
8395,
2000,
326,
611,
287,
19606,
1041,
434,
326,
611,
287,
19606,
7213,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
1655,
12,
2890,
16,
779,
77,
67,
1655,
273,
1053,
16,
4886,
2218,
1065,
77,
11,
4672,
436,
8395,
2000,
326,
611,
287,
19606,
1041,
434,
326,
611,
287,
19606,
7213,
43... |
mergeq=None, all=False, move=False): | mergeq=None, all=False, move=False, exact=False): | def push(self, repo, patch=None, force=False, list=False, mergeq=None, all=False, move=False): diffopts = self.diffopts() wlock = repo.wlock() try: heads = [] for b, ls in repo.branchmap().iteritems(): heads += ls if not heads: heads = [nullid] if repo.dirstate.parents()[0] not in heads: self.ui.status(_("(working dire... | 1f31d95f2b5961ecacd087d3a2525c805e01dbc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/1f31d95f2b5961ecacd087d3a2525c805e01dbc8/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
12,
2890,
16,
3538,
16,
4729,
33,
7036,
16,
2944,
33,
8381,
16,
666,
33,
8381,
16,
2691,
85,
33,
7036,
16,
777,
33,
8381,
16,
3635,
33,
8381,
16,
5565,
33,
8381,
4672,
1901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
12,
2890,
16,
3538,
16,
4729,
33,
7036,
16,
2944,
33,
8381,
16,
666,
33,
8381,
16,
2691,
85,
33,
7036,
16,
777,
33,
8381,
16,
3635,
33,
8381,
16,
5565,
33,
8381,
4672,
1901,
... |
self._rbuf = "" | self._rbuf = StringIO() | def __init__(self, sock, mode='rb', bufsize=-1, close=False): self._sock = sock self.mode = mode # Not actually used in this version if bufsize < 0: bufsize = self.default_bufsize self.bufsize = bufsize self.softspace = False if bufsize == 0: self._rbufsize = 1 elif bufsize == 1: self._rbufsize = self.default_bufsize e... | f8cc64017ca0f33b1e21b1c9c9f5f30ebdc4da31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/f8cc64017ca0f33b1e21b1c9c9f5f30ebdc4da31/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
16,
1746,
33,
8381,
4672,
365,
6315,
15031,
273,
7313,
365,
18,
3188,
273,
1965,
468,
2288,
6013,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
16,
1746,
33,
8381,
4672,
365,
6315,
15031,
273,
7313,
365,
18,
3188,
273,
1965,
468,
2288,
6013,
... |
return urlparse.urlunparse(self.parsed_url) | return urlparse.urlunsplit(self.parsed_url) | def url(self): return urlparse.urlunparse(self.parsed_url) | 9981cabdb2ad66ff1897e8d1c8664df72afcbab2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/9981cabdb2ad66ff1897e8d1c8664df72afcbab2/net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
4672,
327,
15185,
18,
718,
318,
2670,
12,
2890,
18,
10817,
67,
718,
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... | [
1,
1,
1,
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,
880,
12,
2890,
4672,
327,
15185,
18,
718,
318,
2670,
12,
2890,
18,
10817,
67,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self,parent,id=-1,ctrlStyle=(wx.LC_REPORT | wx.LC_SINGLE_SEL)): wx.Panel.__init__(self,parent,id, style=wx.WANTS_CHARS) sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(sizer) self.SetSizeHints(-1,50) listId = self.listId = wx.NewId() self.list = ListCtrl(self, listId, style=ctrlStyle) self.checkboxes = col... | def __init__(self,parent,id=-1,ctrlStyle=(wx.LC_REPORT | wx.LC_SINGLE_SEL)): wx.Panel.__init__(self,parent,id, style=wx.WANTS_CHARS) sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(sizer) self.SetSizeHints(-1,50) listId = self.listId = wx.NewId() self.list = ListCtrl(self, listId, style=ctrlStyle) self.checkboxes = col... | def __init__(self,parent,id=-1,ctrlStyle=(wx.LC_REPORT | wx.LC_SINGLE_SEL)): wx.Panel.__init__(self,parent,id, style=wx.WANTS_CHARS) sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(sizer) self.SetSizeHints(-1,50) #--ListCtrl listId = self.listId = wx.NewId() self.list = ListCtrl(self, listId, style=ctrlStyle) self.check... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
350,
29711,
21,
16,
16277,
2885,
28657,
27226,
18,
13394,
67,
22710,
571,
7075,
18,
13394,
67,
20184,
67,
1090,
48,
3719,
30,
7075,
18,
5537,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
16,
350,
29711,
21,
16,
16277,
2885,
28657,
27226,
18,
13394,
67,
22710,
571,
7075,
18,
13394,
67,
20184,
67,
1090,
48,
3719,
30,
7075,
18,
5537,
1... |
netblock = netblocks_v4 | netblocks_v4.append(ip) | def setup_netblocks(netblocks_file): """returns 2 lists, with IPv4 and IPv6 entries respectively""" netblocks_v4 = OrderedNetblocks([]) netblocks_v6 = OrderedNetblocks([]) n = [] if netblocks_file is not None: try: f = open(netblocks_file, 'r') for l in f.readlines(): s = l.split() start, mask = s[0].split('/') mask = ... | ceb5841528feafa5a760412ecaeedf36fbba1e7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/ceb5841528feafa5a760412ecaeedf36fbba1e7b/mirrorlist_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2758,
7996,
12,
2758,
7996,
67,
768,
4672,
3536,
6154,
576,
6035,
16,
598,
7853,
24,
471,
7853,
26,
3222,
19629,
8395,
2901,
7996,
67,
90,
24,
273,
8524,
7308,
7996,
3816,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2758,
7996,
12,
2758,
7996,
67,
768,
4672,
3536,
6154,
576,
6035,
16,
598,
7853,
24,
471,
7853,
26,
3222,
19629,
8395,
2901,
7996,
67,
90,
24,
273,
8524,
7308,
7996,
3816,
57... |
if use_blacklist: | if self.use_blacklist: | def split(self,job): | ba4240e3b366b1ee780d7aeda615c7cafdd3e7ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/ba4240e3b366b1ee780d7aeda615c7cafdd3e7ea/DQ2JobSplitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
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,
-10... |
nenhr2=game.nenhere; kk=1 | nenhr2 = game.nenhere; kk=1 | def hittem(hits): # register a phaser hit on Klingons and Romulans nenhr2=game.nenhere; kk=1 w = coord() skip(1) for k in range(nenhr2): wham = hits[k] if wham==0: continue dustfac = 0.9 + 0.01*random.random() hit = wham*math.pow(dustfac,game.kdist[kk]) kpini = game.kpower[kk] kp = math.fabs(kpini) if PHASEFAC*hit < kp... | ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6800,
874,
12,
15173,
4672,
468,
1744,
279,
1844,
14558,
6800,
603,
1475,
2456,
7008,
471,
534,
362,
332,
634,
290,
275,
7256,
22,
273,
7920,
18,
82,
275,
14852,
31,
17654,
33,
21,
341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6800,
874,
12,
15173,
4672,
468,
1744,
279,
1844,
14558,
6800,
603,
1475,
2456,
7008,
471,
534,
362,
332,
634,
290,
275,
7256,
22,
273,
7920,
18,
82,
275,
14852,
31,
17654,
33,
21,
341... |
def dump_contents_entry(entry, id, parent_id): print " (@book_id, %d, %d, %s, %s)," % (parent_id, entry.number, quote(entry.name.encode('utf-8')), quote(entry.link.encode('utf-8'))) parent_id = id | def dump_contents_entry(entry, parent_id, last): | def dump_contents_entry(entry, id, parent_id): print " (@book_id, %d, %d, %s, %s)," % (parent_id, entry.number, quote(entry.name.encode('utf-8')), quote(entry.link.encode('utf-8'))) parent_id = id id = parent_id + 1 for subentry in entry: id = dump_contents_entry(subentry, id, parent_id) return id | adb3c26509f0b66af6f7eff17f21f45a975409c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2448/adb3c26509f0b66af6f7eff17f21f45a975409c0/SQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
3980,
67,
4099,
12,
4099,
16,
982,
67,
350,
16,
1142,
4672,
612,
273,
982,
67,
350,
397,
404,
364,
720,
4099,
316,
1241,
30,
612,
273,
4657,
67,
3980,
67,
4099,
12,
1717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
3980,
67,
4099,
12,
4099,
16,
982,
67,
350,
16,
1142,
4672,
612,
273,
982,
67,
350,
397,
404,
364,
720,
4099,
316,
1241,
30,
612,
273,
4657,
67,
3980,
67,
4099,
12,
1717,
... |
containing the table) showing a side by side, line by line comparision | containing the table) showing a side by side, line by line comparison | def _line_pair_iterator(): """Yields from/to lines of text with a change indication. | 2bbe620533811823580befc88451be4adefd7ef1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2bbe620533811823580befc88451be4adefd7ef1/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1369,
67,
6017,
67,
9838,
13332,
3536,
16348,
87,
628,
19,
869,
2362,
434,
977,
598,
279,
2549,
1547,
829,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1369,
67,
6017,
67,
9838,
13332,
3536,
16348,
87,
628,
19,
869,
2362,
434,
977,
598,
279,
2549,
1547,
829,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if DEBUG: print >>sys.stderr,"DenySeeding to g2g peer: ",self.download_state.get_download().get_dest_files() | if DEBUG: if not self.g2g_eligible: print >>sys.stderr,"DenySeeding to g2g peer: ",self.download_state.get_download().get_dest_files() | def is_conn_eligible(self, conn): if conn.use_g2g: self.g2g_eligible = self.g2g_policy.apply(conn, self.download_state, self.storage) if DEBUG: print >>sys.stderr,"DenySeeding to g2g peer: ",self.download_state.get_download().get_dest_files() | 4989c503eec8351e86456eb91048dabc86e37d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/4989c503eec8351e86456eb91048dabc86e37d9d/SeedingManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4646,
67,
292,
16057,
12,
2890,
16,
1487,
4672,
309,
1487,
18,
1202,
67,
75,
22,
75,
30,
365,
18,
75,
22,
75,
67,
292,
16057,
273,
365,
18,
75,
22,
75,
67,
5086,
18,
901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4646,
67,
292,
16057,
12,
2890,
16,
1487,
4672,
309,
1487,
18,
1202,
67,
75,
22,
75,
30,
365,
18,
75,
22,
75,
67,
292,
16057,
273,
365,
18,
75,
22,
75,
67,
5086,
18,
901... |
print network_info | def server(server=None,port=6667,network=None,connect=True): network_info = {} if server: network_info["name"] = server network_info["server"] = server if port: network_info["port"] = port print network_info get_network_info(server, network_info) print network_info if not network: network = irc.Network(**network_info... | 9eccff9199eb80cf74ce0034638d385efc45be2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/9eccff9199eb80cf74ce0034638d385efc45be2a/irc_script.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
3567,
33,
7036,
16,
655,
33,
6028,
9599,
16,
5185,
33,
7036,
16,
3612,
33,
5510,
4672,
2483,
67,
1376,
273,
2618,
225,
309,
1438,
30,
2483,
67,
1376,
9614,
529,
11929,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
3567,
33,
7036,
16,
655,
33,
6028,
9599,
16,
5185,
33,
7036,
16,
3612,
33,
5510,
4672,
2483,
67,
1376,
273,
2618,
225,
309,
1438,
30,
2483,
67,
1376,
9614,
529,
11929,
273,
... | |
for j in range(jl,jh+1): | for j in range(jl, jh+1): | def powtest(type): if (type!=float): print " Testing 2-argument pow() function..." for i in range(-1000, 1000): if (pow(type(i),0)!=1): raise ValueError, 'pow('+str(i)+',0) != 1' if (pow(type(i),1)!=type(i)): raise ValueError, 'pow('+str(i)+',1) != '+str(i) if (pow(type(0),1)!=type(0)): raise ValueError, 'pow(0,'+st... | 71ad688d0e5dc7c63a0b38f3c28dcef6dff55a39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71ad688d0e5dc7c63a0b38f3c28dcef6dff55a39/test_pow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7602,
3813,
12,
723,
4672,
309,
261,
723,
5,
33,
5659,
4672,
1172,
315,
565,
7766,
310,
576,
17,
3446,
7602,
1435,
445,
7070,
364,
277,
316,
1048,
19236,
18088,
16,
4336,
4672,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7602,
3813,
12,
723,
4672,
309,
261,
723,
5,
33,
5659,
4672,
1172,
315,
565,
7766,
310,
576,
17,
3446,
7602,
1435,
445,
7070,
364,
277,
316,
1048,
19236,
18088,
16,
4336,
4672,
309,
26... |
if inspect.ismethod(object): return apply(self.docmethod, args) if inspect.isbuiltin(object): return apply(self.docbuiltin, args) if inspect.isfunction(object): return apply(self.docfunction, args) | if inspect.isroutine(object): return apply(self.docroutine, args) | def document(self, object, *args): """Generate documentation for an object.""" args = (object,) + args if inspect.ismodule(object): return apply(self.docmodule, args) if inspect.isclass(object): return apply(self.docclass, args) if inspect.ismethod(object): return apply(self.docmethod, args) if inspect.isbuiltin(object... | c59006cf0425a2636c8284ef2601f7f489fad815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c59006cf0425a2636c8284ef2601f7f489fad815/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
12,
2890,
16,
733,
16,
380,
1968,
4672,
3536,
4625,
7323,
364,
392,
733,
12123,
833,
273,
261,
1612,
16,
13,
397,
833,
309,
5334,
18,
291,
2978,
12,
1612,
4672,
327,
2230,
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,
1668,
12,
2890,
16,
733,
16,
380,
1968,
4672,
3536,
4625,
7323,
364,
392,
733,
12123,
833,
273,
261,
1612,
16,
13,
397,
833,
309,
5334,
18,
291,
2978,
12,
1612,
4672,
327,
2230,
12,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.