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 |
|---|---|---|---|---|---|---|
registerMetaType('Controller Page Template', FSControllerPageTemplate) | registerMetaType('Controller Page Template', FSControllerPageTemplate) | def writableDefaults(self): """Can default actions and validators be modified?""" return 0 | 38944177c647b6a9fb9d199f0c1ee1a894f1d3b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/38944177c647b6a9fb9d199f0c1ee1a894f1d3b6/FSControllerPageTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
7019,
12,
2890,
4672,
3536,
2568,
805,
4209,
471,
11632,
506,
4358,
35,
8395,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
7019,
12,
2890,
4672,
3536,
2568,
805,
4209,
471,
11632,
506,
4358,
35,
8395,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.translationFormatFactory.getTranslation(translation)) | self.translationFormatStrategy.getTranslation(translation)) | def _search(self, whereClause, orderBy, limit): dictionaryTable = self.db.tables[self.DICTIONARY_TABLE] | 4c727813531c7579b99ed686160ec93ff63a4db2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/4c727813531c7579b99ed686160ec93ff63a4db2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3072,
12,
2890,
16,
30300,
16,
5278,
16,
1800,
4672,
3880,
1388,
273,
365,
18,
1966,
18,
9373,
63,
2890,
18,
2565,
3106,
6043,
67,
7775,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
3072,
12,
2890,
16,
30300,
16,
5278,
16,
1800,
4672,
3880,
1388,
273,
365,
18,
1966,
18,
9373,
63,
2890,
18,
2565,
3106,
6043,
67,
7775,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
logger.info("E %s %s Error: %s", id(self), now(), v) | logger.info("E %s %s Error: %s", id(task.channel), now(), v) | def start_response(status, headers): # Prepare the headers for output status, reason = status_match(status).groups() task.setResponseStatus(status, reason) task.appendResponseHeaders(['%s: %s' % i for i in headers]) | 6f8a50d1c7ad00994e360818d32da6b95d7bca61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7695/6f8a50d1c7ad00994e360818d32da6b95d7bca61/tracelog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
4672,
468,
7730,
326,
1607,
364,
876,
1267,
16,
3971,
273,
1267,
67,
1916,
12,
2327,
2934,
4650,
1435,
1562,
18,
542,
1064,
1482,
12,
2327,
16,
3971,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
1607,
4672,
468,
7730,
326,
1607,
364,
876,
1267,
16,
3971,
273,
1267,
67,
1916,
12,
2327,
2934,
4650,
1435,
1562,
18,
542,
1064,
1482,
12,
2327,
16,
3971,... |
self.assertEqual(tf.read(), "strawberry") | self.assertEqual(remove_stderr_debug_decorations(tf.read()), "strawberry") | def test_stderr_fileobj(self): # stderr is set to open file object tf = tempfile.TemporaryFile() p = subprocess.Popen([sys.executable, "-c", 'import sys; sys.stderr.write("strawberry")'], stderr=tf) p.wait() tf.seek(0) self.assertEqual(tf.read(), "strawberry") | 7ebb9fcf9e437f932409de74d92a511fbe5eeb6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7ebb9fcf9e437f932409de74d92a511fbe5eeb6c/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11241,
67,
768,
2603,
12,
2890,
4672,
468,
4514,
353,
444,
358,
1696,
585,
733,
3253,
273,
13275,
18,
23808,
1435,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11241,
67,
768,
2603,
12,
2890,
4672,
468,
4514,
353,
444,
358,
1696,
585,
733,
3253,
273,
13275,
18,
23808,
1435,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
37... |
self.close() | self.close(None) | def __init__(self, parent, parent_pool): """ Create a new pool that is a sub-pool of `parent_pool`, and arrange for `self.close` to be called up when the `parent` object is destroyed. The `parent` object must be weak-referenceable. The returned `Pool` instance will have the value of the newly created pool. """ self.p... | 49a6a8628b2faed066712b77f631d65bf31f507c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/49a6a8628b2faed066712b77f631d65bf31f507c/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
982,
67,
6011,
4672,
3536,
1788,
279,
394,
2845,
716,
353,
279,
720,
17,
6011,
434,
1375,
2938,
67,
6011,
9191,
471,
2454,
726,
364,
1375,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
67,
6011,
4672,
3536,
1788,
279,
394,
2845,
716,
353,
279,
720,
17,
6011,
434,
1375,
2938,
67,
6011,
9191,
471,
2454,
726,
364,
1375,
2890,... |
self.objecttype, self.objecttype) | self.objecttype, self.itselftype) | def output_tp_newBody(self): Output("PyObject *self;"); Output() Output("if ((self = type->tp_alloc(type, 0)) == NULL) return NULL;") Output("memset(&((%s *)self)->ob_itself, 0, sizeof(%s));", self.objecttype, self.objecttype) Output("return self;") | 4ead31c4f8aed3e43fdb5afb615d8c3ca3367563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4ead31c4f8aed3e43fdb5afb615d8c3ca3367563/filesupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
6834,
67,
2704,
2250,
12,
2890,
4672,
3633,
2932,
9413,
921,
380,
2890,
4868,
1769,
3633,
1435,
3633,
2932,
430,
14015,
2890,
273,
618,
2122,
6834,
67,
9853,
12,
723,
16,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
6834,
67,
2704,
2250,
12,
2890,
4672,
3633,
2932,
9413,
921,
380,
2890,
4868,
1769,
3633,
1435,
3633,
2932,
430,
14015,
2890,
273,
618,
2122,
6834,
67,
9853,
12,
723,
16,
374,
... |
linebuf += '-- ' + format_child(obj, children.popleft(), width-(len(name)+7)) | linebuf += '-- ' + format_child(obj, children.popleft(), width-(len(name)+7) if width is not None else None) | def display_object(obj, name): # get terminal width width = struct.unpack('HHHH', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0)))[1] children = deque([child for child in dir(type(obj)) if isinstance(getattr(type(obj), child, None), Setting)] + \ [child for child in dir(type(obj))... | c0b5b973f91692139342f78d80c1f8b79d814edd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/c0b5b973f91692139342f78d80c1f8b79d814edd/sip_settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
1612,
12,
2603,
16,
508,
4672,
468,
336,
8651,
1835,
1835,
273,
1958,
18,
17309,
2668,
17500,
17500,
2187,
30894,
18,
1594,
12930,
12,
9499,
18,
10283,
18,
7540,
5764,
9334,
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,
2562,
67,
1612,
12,
2603,
16,
508,
4672,
468,
336,
8651,
1835,
1835,
273,
1958,
18,
17309,
2668,
17500,
17500,
2187,
30894,
18,
1594,
12930,
12,
9499,
18,
10283,
18,
7540,
5764,
9334,
24... |
def getCheckTaskName(self): | @classmethod def addPrivateId(cls, obj): cls.PrivateIds.add(id(obj)) @classmethod def removePrivateId(cls, obj): cls.PrivateIds.remove(id(obj)) def _getCheckTaskName(self): | def getCheckTaskName(self): return 'checkForLeakingContainers-%s' % self._serialNum | bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
632,
1106,
2039,
1652,
527,
6014,
548,
12,
6429,
16,
1081,
4672,
2028,
18,
6014,
2673,
18,
1289,
12,
350,
12,
2603,
3719,
632,
1106,
2039,
1652,
1206,
6014,
548,
12,
6429,
16,
1081,
4672,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
632,
1106,
2039,
1652,
527,
6014,
548,
12,
6429,
16,
1081,
4672,
2028,
18,
6014,
2673,
18,
1289,
12,
350,
12,
2603,
3719,
632,
1106,
2039,
1652,
1206,
6014,
548,
12,
6429,
16,
1081,
4672,
20... |
0: {'RFC822.HEADER': imap4._formatHeaders({'H1': 'V1', 'H2': 'V2'}) + '\r\n'}, | 0: {'RFC822.HEADER': imap4._formatHeaders({'H1': 'V1', 'H2': 'V2'})}, | def testFetchHeaders(self, uid=0): self.function = self.client.fetchHeaders self.messages = '9,6,2' self.msgObjs = [ FakeyMessage({'H1': 'V1', 'H2': 'V2'}, (), '', '', 99, None), ] self.expected = { 0: {'RFC822.HEADER': imap4._formatHeaders({'H1': 'V1', 'H2': 'V2'}) + '\r\n'}, } self._fetchWork(uid) | 788c6137aa074e3b47e913f5f073d816ee1905b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/788c6137aa074e3b47e913f5f073d816ee1905b4/test_imap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5005,
3121,
12,
2890,
16,
4555,
33,
20,
4672,
365,
18,
915,
273,
365,
18,
2625,
18,
5754,
3121,
365,
18,
6833,
273,
296,
29,
16,
26,
16,
22,
11,
365,
18,
3576,
2675,
87,
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,
1842,
5005,
3121,
12,
2890,
16,
4555,
33,
20,
4672,
365,
18,
915,
273,
365,
18,
2625,
18,
5754,
3121,
365,
18,
6833,
273,
296,
29,
16,
26,
16,
22,
11,
365,
18,
3576,
2675,
87,
273,... |
if len(menu.choices) < 5: | if len(menu.choices) < 6: | def scan_for_text_view(self, menu): """ scan if we have to fall back to text view. This will be done if some items have images and all images are the same. And the number of items must be greater 5. With that the skin will fall back to text view for e.g. mp3s inside a folder with cover file """ try: self.use_text_view ... | c71104661ebe55e57d118dbf993a09d36a31159f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c71104661ebe55e57d118dbf993a09d36a31159f/area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
1884,
67,
955,
67,
1945,
12,
2890,
16,
3824,
4672,
3536,
4135,
309,
732,
1240,
358,
4159,
1473,
358,
977,
1476,
18,
1220,
903,
506,
2731,
309,
2690,
1516,
1240,
4602,
471,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
1884,
67,
955,
67,
1945,
12,
2890,
16,
3824,
4672,
3536,
4135,
309,
732,
1240,
358,
4159,
1473,
358,
977,
1476,
18,
1220,
903,
506,
2731,
309,
2690,
1516,
1240,
4602,
471,
77... |
return set(temp_list) | retval = set(temp_list) | def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encount... | c959c9c65443dac1f3ae7a53dcecaf13328c218e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/c959c9c65443dac1f3ae7a53dcecaf13328c218e/namespace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,... |
'%sself.%s = {}'%(ID3, AttributeMixIn.typecode), | '%s%s = {}'%(ID3, self.attribute_typecode), | def _setContent(self): if type(self.sKlass) in (types.ClassType, type): definition = [ '%sclass %s(%s, TypeDefinition):' \ % (ID1, self.getClassName(), self.sKlass), '%s%s' % (ID2, self.schemaTag()), '%s%s' % (ID2, self.typeTag()), '%s%s' % (ID2, self.pnameConstructor()), ] if self.getPythonType() is None: definition.... | 95608c9d166b009a2f795386df86cd9904a4396a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/95608c9d166b009a2f795386df86cd9904a4396a/containers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1350,
12,
2890,
4672,
309,
618,
12,
2890,
18,
87,
47,
459,
13,
316,
261,
2352,
18,
18328,
16,
618,
4672,
2379,
273,
306,
1995,
1017,
459,
738,
87,
9275,
87,
16,
1412,
1852,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1350,
12,
2890,
4672,
309,
618,
12,
2890,
18,
87,
47,
459,
13,
316,
261,
2352,
18,
18328,
16,
618,
4672,
2379,
273,
306,
1995,
1017,
459,
738,
87,
9275,
87,
16,
1412,
1852,... |
"bnode match by canonicalization not implemented yet. Failed to match:", | "@@@ TBC - bnode match by canonicalization not implemented yet. Failed to match:", | def differences(f, g): """Smush the formulae. Compare them, generating patch instructions.""" | 31fe96e6268194f85f36a24f0c07042d59afa09d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/31fe96e6268194f85f36a24f0c07042d59afa09d/diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16440,
12,
74,
16,
314,
4672,
3536,
9552,
1218,
326,
8013,
73,
18,
225,
11051,
2182,
16,
12516,
4729,
12509,
12123,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16440,
12,
74,
16,
314,
4672,
3536,
9552,
1218,
326,
8013,
73,
18,
225,
11051,
2182,
16,
12516,
4729,
12509,
12123,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not ids: raise ValueError() prop = self.browse(cr, uid, ids[0]) type_ = prop.type | if ids: prop = self.browse(cr, uid, ids[0]) type_ = prop.type else: type_ = self._defaults['type'] | def _update_values(self, cr, uid, ids, values): value = values.pop('value', None) if not value: return values | 90ef2df9ee3787cac49eb847fb42d31af04b9724 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/90ef2df9ee3787cac49eb847fb42d31af04b9724/ir_property.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
2372,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
4672,
460,
273,
924,
18,
5120,
2668,
1132,
2187,
599,
13,
309,
486,
460,
30,
327,
924,
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,
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,
389,
2725,
67,
2372,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
4672,
460,
273,
924,
18,
5120,
2668,
1132,
2187,
599,
13,
309,
486,
460,
30,
327,
924,
2,
-100,
-100,
-100,
-100... |
if body.find('AgentModule') != -1 or body.find('OptimizerModuleModule') != -1: | if body.find('AgentModule') != -1 or body.find('OptimizerModule') != -1: | def __getSoftwareComponents(self): """ Get the list of all the components ( services and agents ) for which the software is installed on the system """ result = self.getRemoteCredentials() user = result['username'] group = result['group'] extensions = gConfig.getValue('/DIRAC/Extensions',[]) services = {} agents = {}... | 61fb8f8edb3774daf07ea41bfc9287c30357c7ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/61fb8f8edb3774daf07ea41bfc9287c30357c7ca/SystemAdministratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
21742,
7171,
12,
2890,
4672,
3536,
225,
968,
326,
666,
434,
777,
326,
4085,
261,
4028,
471,
16423,
262,
364,
1492,
326,
17888,
353,
5876,
603,
326,
2619,
3536,
563,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
21742,
7171,
12,
2890,
4672,
3536,
225,
968,
326,
666,
434,
777,
326,
4085,
261,
4028,
471,
16423,
262,
364,
1492,
326,
17888,
353,
5876,
603,
326,
2619,
3536,
563,
273,
365,
... |
sage: f.coeff(x^2) | sage: f.coefficient(x^2) | def coeff(self, x, n=1): """ Returns the coefficient of $x^n$ in self. | 2e32b7247af3731db881ec5bd651880a8fc8c790 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2e32b7247af3731db881ec5bd651880a8fc8c790/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11943,
12,
2890,
16,
619,
16,
290,
33,
21,
4672,
3536,
2860,
326,
16554,
434,
271,
92,
66,
82,
8,
316,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11943,
12,
2890,
16,
619,
16,
290,
33,
21,
4672,
3536,
2860,
326,
16554,
434,
271,
92,
66,
82,
8,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
path=normpath(path) return normpath('%s%s' % (root, path)) | path=_normpath(path) return _normpath('%s%s' % (root, path)) | def _fixPath(root, path): ## some insurance that we don't escape a given root if not path: return root if not path.startswith('/'): path='/%s' % path path=normpath(path) return normpath('%s%s' % (root, path)) | b4c76014d0f9c726217b82ec91fec1370dc0326c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/b4c76014d0f9c726217b82ec91fec1370dc0326c/Cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
743,
12,
3085,
16,
589,
4672,
7541,
2690,
2763,
295,
1359,
716,
732,
2727,
1404,
4114,
279,
864,
1365,
309,
486,
589,
30,
327,
1365,
309,
486,
589,
18,
17514,
1918,
2668,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
743,
12,
3085,
16,
589,
4672,
7541,
2690,
2763,
295,
1359,
716,
732,
2727,
1404,
4114,
279,
864,
1365,
309,
486,
589,
30,
327,
1365,
309,
486,
589,
18,
17514,
1918,
2668,
247... |
return strftime(self.format, (item,)*8+(0,)).capitalize() | t = (2001, 1, item+1, 12, 0, 0, item, item+1, 0) return strftime(self.format, t).capitalize() | def __getitem__(self, item): if isinstance(item, int): if item < 0: item += self.len if not 0 <= item < self.len: raise IndexError, "out of range" return strftime(self.format, (item,)*8+(0,)).capitalize() elif isinstance(item, type(slice(0))): return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop... | 1fdff0cbb6697ef5f78c333331d059c69e4c58de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1fdff0cbb6697ef5f78c333331d059c69e4c58de/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
761,
4672,
309,
1549,
12,
1726,
16,
509,
4672,
309,
761,
411,
374,
30,
761,
1011,
365,
18,
1897,
309,
486,
374,
1648,
761,
411,
365,
18,
1897,
30,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31571,
972,
12,
2890,
16,
761,
4672,
309,
1549,
12,
1726,
16,
509,
4672,
309,
761,
411,
374,
30,
761,
1011,
365,
18,
1897,
309,
486,
374,
1648,
761,
411,
365,
18,
1897,
30,
100... |
char const *a = text | char const *line_start_p = text | static int def _wordwrap_helper(char const *text, int w, h, void (*cb)(int a, int b, void *data), void *data): int y = land_text_y_pos() float fh = land_font_state->font->size char const *a = text printf("wordwrap %d %d\n", w, h) while 1: char *ptr = (char *)a if h > 0 and land_text_y_pos() >= y + h: break int n = 0,... | bfbdc17cfb9650eed81eb71f02e1137ba3225959 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/930/bfbdc17cfb9650eed81eb71f02e1137ba3225959/font.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
509,
1652,
389,
1095,
4113,
67,
4759,
12,
3001,
1866,
380,
955,
16,
509,
341,
16,
366,
16,
918,
261,
14,
7358,
21433,
474,
279,
16,
509,
324,
16,
918,
380,
892,
3631,
918,
380,
892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
509,
1652,
389,
1095,
4113,
67,
4759,
12,
3001,
1866,
380,
955,
16,
509,
341,
16,
366,
16,
918,
261,
14,
7358,
21433,
474,
279,
16,
509,
324,
16,
918,
380,
892,
3631,
918,
380,
892,
... |
setUserLang(locale.getdefaultlocale()[0][:2]) | userLang=locale.getdefaultlocale()[0] if userLang is not None: setUserLang(userLang[:2]) | def itr(text_en,**kw): for v in kw.values(): assert ispure(v) _messages[text_en] = kw | 4453182795395d3a9c1f4c7ea70e36882ca1267d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8353/4453182795395d3a9c1f4c7ea70e36882ca1267d/i18n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11176,
12,
955,
67,
275,
16,
636,
9987,
4672,
364,
331,
316,
5323,
18,
2372,
13332,
1815,
353,
84,
594,
12,
90,
13,
389,
6833,
63,
955,
67,
275,
65,
273,
5323,
377,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11176,
12,
955,
67,
275,
16,
636,
9987,
4672,
364,
331,
316,
5323,
18,
2372,
13332,
1815,
353,
84,
594,
12,
90,
13,
389,
6833,
63,
955,
67,
275,
65,
273,
5323,
377,
2,
-100,
-100,
... |
'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) | 'Content-Type: %s\nContent-Length: %d\nLast-modified: %s\n' % (mtype or 'text/plain', size, modified))) | def open_local_file(self, url): """Use local file.""" import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: urlfile = file if file[:1] == '/': urlfile = 'file://'... | f0713d3f4d1d9fbd3cc10877822e824103f7affa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f0713d3f4d1d9fbd3cc10877822e824103f7affa/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
3536,
3727,
1191,
585,
12123,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
3536,
3727,
1191,
585,
12123,
1930,
20369,
15180,
16,
20369,
278,
8192,
16,
15777,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
718... |
numfds = countFDs() log.log( "<eddie>main(): FDs in use = %d." % (numfds), 8 ) | def main(): """ Startup routine - setup then start main loop. """ log.version = __version__ # Make version string available to other modules # Catch most important signals signal.signal( signal.SIGALRM, SigHandler ) signal.signal( signal.SIGHUP, SigHandler ) signal.signal( signal.SIGINT, SigHandler ) signal.signal( s... | 97024100584c105fdc204c670cd14bbfeffb0535 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/97024100584c105fdc204c670cd14bbfeffb0535/eddie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3603,
416,
12245,
300,
3875,
1508,
787,
2774,
2798,
18,
3536,
225,
613,
18,
1589,
273,
1001,
1589,
972,
202,
7,
4344,
1177,
533,
2319,
358,
1308,
4381,
225,
468,
21984... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3603,
416,
12245,
300,
3875,
1508,
787,
2774,
2798,
18,
3536,
225,
613,
18,
1589,
273,
1001,
1589,
972,
202,
7,
4344,
1177,
533,
2319,
358,
1308,
4381,
225,
468,
21984... | |
def slave_xrestore_unsafe(self, srcname, dstpath): | def is_parent_alive(self, parent_pid): if os.getppid() != parent_pid or parent_pid <= 1: return False return True def slave_xrestore_unsafe(self, srcname, dstpath, parent_pid): | def slave_xrestore_unsafe(self, srcname, dstpath): srcdir = self.cf.get("completed_wals") partdir = self.cf.get("partial_wals") pausefile = os.path.join(srcdir, "PAUSE") stopfile = os.path.join(srcdir, "STOP") prgrfile = os.path.join(srcdir, "PROGRESS") srcfile = os.path.join(srcdir, srcname) partfile = os.path.join(pa... | 62dfd0acb0ca2864d58515b6834c0c478063f472 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/62dfd0acb0ca2864d58515b6834c0c478063f472/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2938,
67,
11462,
12,
2890,
16,
982,
67,
6610,
4672,
309,
1140,
18,
588,
84,
6610,
1435,
480,
982,
67,
6610,
578,
982,
67,
6610,
1648,
404,
30,
327,
1083,
327,
1053,
225,
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,
353,
67,
2938,
67,
11462,
12,
2890,
16,
982,
67,
6610,
4672,
309,
1140,
18,
588,
84,
6610,
1435,
480,
982,
67,
6610,
578,
982,
67,
6610,
1648,
404,
30,
327,
1083,
327,
1053,
225,
165... |
from errno import ENOENT, ENOTDIR | def _execvpe(file, args, env=None): from errno import ENOENT, ENOTDIR if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ head, tail = path.split(file) if head: func(file, *argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = env... | 21fb748fe3b13181178c992c5b742c36f8399e9d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/21fb748fe3b13181178c992c5b742c36f8399e9d/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | |
misc.Run('wpa_passphrase "' + self.network['essid'] + '" "' + self.network['key'] + '"')) | misc.Run('wpa_passphrase "' + self.network['essid'] + '" "' + self.network['key'] + '"')) | def run(self): """ The main function of the connection thread. | fa04a3755cad3227c7d5b6fc1a13a4d8a3cc6201 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/353/fa04a3755cad3227c7d5b6fc1a13a4d8a3cc6201/networking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[(self._rec_name, operator, name)] + args, | [(self._rec_name, operator, name)] + (args or []), | def name_search(self, cursor, user, name='', args=None, operator='ilike', context=None, limit=None): if name: ids = self.search(cursor, user, [('code', 'like', name + '%')] + args, limit=limit, context=context) if not ids: ids = self.search(cursor, user, [(self._rec_name, operator, name)] + args, limit=limit, context=c... | 975a423141a626ee30f0c2d6a5f376556e6b56a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/975a423141a626ee30f0c2d6a5f376556e6b56a0/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
3347,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
7036,
4672,
309,
508,
30,
3258,
273,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
3347,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
7036,
4672,
309,
508,
30,
3258,
273,
365... |
self._substructure_finder.set_spacegroup( | self._substructure_finder.substructure_find_set_spacegroup( | def _get_substructure_finder(self): if self._substructure_finder is None: self._substructure_finder = SubstructureFinder() | 89ebf7f6a97369e713f5185fab4b66b002a8bcd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/89ebf7f6a97369e713f5185fab4b66b002a8bcd8/XCrystal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1717,
7627,
67,
15356,
12,
2890,
4672,
309,
365,
6315,
1717,
7627,
67,
15356,
353,
599,
30,
365,
6315,
1717,
7627,
67,
15356,
273,
2592,
7627,
8441,
1435,
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,
389,
588,
67,
1717,
7627,
67,
15356,
12,
2890,
4672,
309,
365,
6315,
1717,
7627,
67,
15356,
353,
599,
30,
365,
6315,
1717,
7627,
67,
15356,
273,
2592,
7627,
8441,
1435,
2,
-100,
-100,
... |
def __init__(self, ystart=N.array([0.1,0.1,0.1]), tstart=0.0, tend=120.0, tstep_wanted=0.02, tstep_min=0.0001, solver="odeint"): | def __init__(self, ystart=N.array([0.1,0.1,0.1]), tstart=0.0, tend=120.0, tstep_wanted=0.02, tstep_min=0.0001, solver="scipy_odeint"): | def __init__(self, ystart=N.array([0.1,0.1,0.1]), tstart=0.0, tend=120.0, tstep_wanted=0.02, tstep_min=0.0001, solver="odeint"): CosmologicalModel.__init__(self, ystart, tstart, tend, tstep_wanted, tstep_min, solver=solver) #Mass of inflaton in Planck masses self.mass = 1.0 self.plottitle = "Basic Cosmological Model"... | 31f129677b3d25900e1921994acc1486138988b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/31f129677b3d25900e1921994acc1486138988b6/cosmomodels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
677,
1937,
33,
50,
18,
1126,
3816,
20,
18,
21,
16,
20,
18,
21,
16,
20,
18,
21,
65,
3631,
268,
1937,
33,
20,
18,
20,
16,
268,
409,
33,
22343,
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,
12,
2890,
16,
677,
1937,
33,
50,
18,
1126,
3816,
20,
18,
21,
16,
20,
18,
21,
16,
20,
18,
21,
65,
3631,
268,
1937,
33,
20,
18,
20,
16,
268,
409,
33,
22343,
18,
... |
def getGeneValueNodes(self) : | def getGeneValueNodes(self, constitutiveNodes = True, linkNodes = True) : | def getGeneValueNodes(self) : """Get all constant value nodes pertaining to genes | 9660ae1589152060d76ba19d5e0edbaf2ff7ac41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1770/9660ae1589152060d76ba19d5e0edbaf2ff7ac41/transsys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7162,
4009,
620,
3205,
12,
2890,
16,
29152,
322,
688,
3205,
273,
1053,
16,
1692,
3205,
273,
1053,
13,
294,
3536,
967,
777,
5381,
460,
2199,
24445,
3280,
358,
11423,
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,
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,
7162,
4009,
620,
3205,
12,
2890,
16,
29152,
322,
688,
3205,
273,
1053,
16,
1692,
3205,
273,
1053,
13,
294,
3536,
967,
777,
5381,
460,
2199,
24445,
3280,
358,
11423,
2,
-100,
-100,
-100,
... |
self.player.seek(real) | self.ui.ca.gplay.seek(real) | def scale_value_changed_cb(self, scale): real = long(scale.get_value() * self.p_duration / 100) # in ns self.player.seek(real) # allow for a preroll self.player.get_state(timeout=50*gst.MSECOND) # 50 ms | 10cc2ef37562e3e045f045772d4775f8ed3bdfcb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6451/10cc2ef37562e3e045f045772d4775f8ed3bdfcb/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
67,
1132,
67,
6703,
67,
7358,
12,
2890,
16,
3159,
4672,
2863,
273,
1525,
12,
5864,
18,
588,
67,
1132,
1435,
380,
365,
18,
84,
67,
8760,
342,
2130,
13,
468,
316,
3153,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
67,
1132,
67,
6703,
67,
7358,
12,
2890,
16,
3159,
4672,
2863,
273,
1525,
12,
5864,
18,
588,
67,
1132,
1435,
380,
365,
18,
84,
67,
8760,
342,
2130,
13,
468,
316,
3153,
365,
18,
... |
def finishedChannelSelection(self, args): oldref = self.timer.service_ref try: self.timer.service_ref = ServiceReference(args) | def finishedChannelSelection(self, *args): if len(args): self.timer.service_ref = ServiceReference(args[0]) | def finishedChannelSelection(self, args): oldref = self.timer.service_ref try: self.timer.service_ref = ServiceReference(args) config.timerentry.service.vals = (str(self.timer.service_ref.getServiceName()),) self["config"].invalidate(config.timerentry.service) except: print "you pressed cancel" self.timer.service_ref =... | 1ccf93c4863d3d7be1cb5b91231d601d59ea9283 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/1ccf93c4863d3d7be1cb5b91231d601d59ea9283/TimerEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6708,
2909,
6233,
12,
2890,
16,
380,
1968,
4672,
309,
562,
12,
1968,
4672,
365,
18,
12542,
18,
3278,
67,
1734,
273,
26755,
12,
1968,
63,
20,
5717,
642,
18,
12542,
4099,
18,
3278,
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,
6708,
2909,
6233,
12,
2890,
16,
380,
1968,
4672,
309,
562,
12,
1968,
4672,
365,
18,
12542,
18,
3278,
67,
1734,
273,
26755,
12,
1968,
63,
20,
5717,
642,
18,
12542,
4099,
18,
3278,
18,
... |
line = sys.stdin.readline() if line: line = line.strip() space = line.find(' ') argstr = None if space == -1: command = line else: command = line[:space].strip() argstr = line[space:].strip() if command in Commands: if command == "entercontext": self.current_context = argstr print "Entering context: " + self.current_co... | try: line = raw_input(COMMAND_PROMPT) if line: line = line.strip() space = line.find(' ') argstr = None if space == -1: command = line | def run(self): while True: line = sys.stdin.readline() if line: line = line.strip() space = line.find(' ') argstr = None if space == -1: command = line else: command = line[:space].strip() argstr = line[space:].strip() if command in Commands: if command == "entercontext": self.current_context = argstr print "Entering c... | 5ff7b3b6722adf0535960e4a3538deb96c66b426 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11436/5ff7b3b6722adf0535960e4a3538deb96c66b426/crossfire_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
1053,
30,
775,
30,
980,
273,
1831,
67,
2630,
12,
19104,
67,
3373,
49,
1856,
13,
225,
309,
980,
30,
980,
273,
980,
18,
6406,
1435,
3476,
273,
980,
18,
4720... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
1053,
30,
775,
30,
980,
273,
1831,
67,
2630,
12,
19104,
67,
3373,
49,
1856,
13,
225,
309,
980,
30,
980,
273,
980,
18,
6406,
1435,
3476,
273,
980,
18,
4720... |
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, res['key'], res['key2'], \ | self.pool.get('ir.model.data').ir_set(self.cr, 1, res['key'], res['key2'], \ | def process_ir_set(self, node): if not self.mode == 'init': return False _, fields = node.items()[0] res = {} for fieldname, expression in fields.items(): if is_eval(expression): value = eval(expression.expression, self.eval_context) else: value = expression res[fieldname] = value self.pool.get('ir.model.data').ir_set(... | 06e658d5cb1bd984a0d6e2d2a2ef16371be837a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/06e658d5cb1bd984a0d6e2d2a2ef16371be837a0/yaml_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
481,
67,
542,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
3188,
422,
296,
2738,
4278,
327,
1083,
389,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
400,
273,
2618,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
481,
67,
542,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
3188,
422,
296,
2738,
4278,
327,
1083,
389,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
400,
273,
2618,
364,
... |
ks = KeyStatistic(_('total violations (7-days)'), r[1], | ks = KeyStatistic(_('total violations (7-days)'), violations, | def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email: return None | 1e6a91c1ed3fb2d3f045d6a5051cdd2db89cd8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/1e6a91c1ed3fb2d3f045d6a5051cdd2db89cd8b7/untangle_base_webfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-100,
-100,
... |
str += ' '*depth+'</li>' | str += ' '*depth+'</li>\n' | def _module_tree_item(self, uid=None, depth=0): """ Helper function for L{_module_tree} and L{_module_list}. @rtype: C{string} """ if uid is None: return '' | 149531a2cda79700e8a2b9b1cbdefc79ff90296b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/149531a2cda79700e8a2b9b1cbdefc79ff90296b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
4555,
33,
7036,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
2978,
67,
1098,
5496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
4555,
33,
7036,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
2978,
67,
1098,
5496,
... |
exclude.append(value.split(",")) | exclude.extend(value.split(",")) | def main(*packages): try: opts, args = getopt.getopt(sys.argv[1:], "rqvu:x:") except getopt.error: return usage() verbosity = 1 search_leaks = False exclude = [] for flag, value in opts: if flag == "-q": verbosity -= 1 elif flag == "-v": verbosity += 1 elif flag == "-r": try: sys.gettotalrefcount except AttributeError... | 261b136321e32af373f8c0a7c73f3c6847e74ac4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/261b136321e32af373f8c0a7c73f3c6847e74ac4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
30857,
10308,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
86,
85,
90,
89,
30,
92,
2773,
13,
1335,
336,
3838,
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,
2774,
30857,
10308,
4672,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
86,
85,
90,
89,
30,
92,
2773,
13,
1335,
336,
3838,
18,
... |
path = path.decode(sys.getfilesystemencoding(), 'strict') | path = path.decode('utf-8', 'strict') | def decode_path(path): """ Decode file/path string. Return `nodes.reprunicode` object. Provides a conversion to unicode without the UnicodeDecode error of the implicit 'ascii:strict' decoding. """ # see also http://article.gmane.org/gmane.text.docutils.user/2905 try: path = path.decode(sys.getfilesystemencoding(), 'st... | bd16ec7e3b535f0a19611a914bdffc4e2cf7aef2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/bd16ec7e3b535f0a19611a914bdffc4e2cf7aef2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
28805,
279,
4105,
358,
5252,
2887,
326,
9633,
6615,
555,
434,
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,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
28805,
279,
4105,
358,
5252,
2887,
326,
9633,
6615,
555,
434,
326,... |
result = self._find_primary(code, len(code) - 1) | result = self._find_primary(code, len(code) - 2) | def xxx_test_triple_quotes_spanning_multiple_lines(self): code = 's = """\\\nl1\nl2\n """\n' result = self._find_primary(code, len(code) - 1) self.assertEquals('"""\\\nl1\nl2\n """', result) | 2bd675528fc9f008e6ac727fa35a47eb70fe4a52 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/2bd675528fc9f008e6ac727fa35a47eb70fe4a52/codeanalyzetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23354,
67,
3813,
67,
313,
2444,
67,
18653,
67,
1752,
10903,
67,
9622,
67,
3548,
12,
2890,
4672,
981,
273,
296,
87,
273,
3536,
19662,
14039,
21,
64,
14039,
22,
64,
82,
3536,
64,
82,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23354,
67,
3813,
67,
313,
2444,
67,
18653,
67,
1752,
10903,
67,
9622,
67,
3548,
12,
2890,
4672,
981,
273,
296,
87,
273,
3536,
19662,
14039,
21,
64,
14039,
22,
64,
82,
3536,
64,
82,
1... |
wxFrame.__init__(self, NULL, -1, NAME, wxDefaultPosition, (800, 600), style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) | wxFrame.__init__( self, NULL, -1, NAME, wxDefaultPosition, (800, 600), style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) | def __init__(self, projects=[]): wxFrame.__init__(self, NULL, -1, NAME, wxDefaultPosition, (800, 600), style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) self.Centre() self.projects = projects self.project = None self.editor = None | 3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10137,
33,
8526,
4672,
7075,
3219,
16186,
2738,
972,
12,
365,
16,
3206,
16,
300,
21,
16,
6048,
16,
7075,
1868,
2555,
16,
261,
17374,
16,
14707,
3631,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10137,
33,
8526,
4672,
7075,
3219,
16186,
2738,
972,
12,
365,
16,
3206,
16,
300,
21,
16,
6048,
16,
7075,
1868,
2555,
16,
261,
17374,
16,
14707,
3631,
215... |
if (cb_callback == callback and args == None) or \ | if (cb_callback == callback and len(args) == 0) or \ | def _disconnect(self, callback, args, kwargs): new_callbacks = [] for pos, cb_all in zip(range(len(self._callbacks)), self._callbacks[:]): cb_callback, cb_args, cb_kwargs, cb_once, cb_weak = cb_all if cb_weak and args != None: cb_callback = cb_callback._get_callback() cb_args, cb_kwargs = unweakref_data((cb_args, cb_kw... | 550dfb7a268726aaa518fb160a0d0fb7d494d1b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/550dfb7a268726aaa518fb160a0d0fb7d494d1b5/callback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
20177,
12,
2890,
16,
1348,
16,
833,
16,
1205,
4672,
394,
67,
13316,
273,
5378,
364,
949,
16,
2875,
67,
454,
316,
3144,
12,
3676,
12,
1897,
12,
2890,
6315,
13316,
13,
3631,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
20177,
12,
2890,
16,
1348,
16,
833,
16,
1205,
4672,
394,
67,
13316,
273,
5378,
364,
949,
16,
2875,
67,
454,
316,
3144,
12,
3676,
12,
1897,
12,
2890,
6315,
13316,
13,
3631,
365,
... |
self.assert_(self._box.get_file(key0).read().replace(os.linesep, '\n') == self._template % 0) self.assert_(self._box.get_file(key1).read().replace(os.linesep, '\n') == _sample_message) | self.assertEqual(self._box.get_file(key0).read().replace(os.linesep, '\n'), self._template % 0) self.assertEqual(self._box.get_file(key1).read().replace(os.linesep, '\n'), _sample_message) | def test_get_file(self): # Get file representations of messages key0 = self._box.add(self._template % 0) key1 = self._box.add(_sample_message) self.assert_(self._box.get_file(key0).read().replace(os.linesep, '\n') == self._template % 0) self.assert_(self._box.get_file(key1).read().replace(os.linesep, '\n') == _sample_m... | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
768,
12,
2890,
4672,
468,
968,
585,
27851,
434,
2743,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
374,
13,
498,
21,
273,
365,
6315,
2147,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
768,
12,
2890,
4672,
468,
968,
585,
27851,
434,
2743,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
374,
13,
498,
21,
273,
365,
6315,
2147,
1... |
self.highlight = [None, 0, None] | self.highlight = [None, 0, None, 0] | def __init__(self, grid_view = None): gtk.Container.__init__(self) self.grid_view = grid_view self.columns = [] self.height = 45 self.highlight = [None, 0, None] self.dragging = False self.drag_dist = 10 self.last_x = None self.gc = None self._changed = False self.total_width = 0 | ac69d9200fb82e0dbdb0425eb87f127d45de8eb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8273/ac69d9200fb82e0dbdb0425eb87f127d45de8eb1/query_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3068,
67,
1945,
273,
599,
4672,
22718,
18,
2170,
16186,
2738,
972,
12,
2890,
13,
365,
18,
5222,
67,
1945,
273,
3068,
67,
1945,
365,
18,
5112,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3068,
67,
1945,
273,
599,
4672,
22718,
18,
2170,
16186,
2738,
972,
12,
2890,
13,
365,
18,
5222,
67,
1945,
273,
3068,
67,
1945,
365,
18,
5112,
273,
5378,
... |
str = '<?xml version="1.0" ?>\n<a b="c"/>' | str = '<?xml version="1.0" ?><a b="c"/>' | def testWriteXML(): str = '<?xml version="1.0" ?>\n<a b="c"/>' dom = parseString(str) domstr = dom.toxml() dom.unlink() confirm(str == domstr) | fa84d66a96acb491725091580e1bd175ffdf1a2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fa84d66a96acb491725091580e1bd175ffdf1a2b/test_minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3067,
4201,
13332,
609,
273,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
692,
4438,
69,
324,
1546,
71,
6,
18280,
4092,
273,
23659,
12,
701,
13,
4092,
701,
273,
4092,
18,
869,
2902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3067,
4201,
13332,
609,
273,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
692,
4438,
69,
324,
1546,
71,
6,
18280,
4092,
273,
23659,
12,
701,
13,
4092,
701,
273,
4092,
18,
869,
2902,
... |
(try_stmt NAME COLON (suite ...):trysuite | (try_stmt 'try' COLON (suite ...):trysuite | # Function definition: "def f(x): ..." | 1fb4c317bfd16a777415b4874c4c8db19e81beff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/1fb4c317bfd16a777415b4874c4c8db19e81beff/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if url_verb_parts.len() > 2: | if len(url_verb_parts) > 2: | def qsd(request, url): # Fetch user login state user_id = request.session.get('user_id', False) logged_in = user_id if logged_in != False: logged_in = True # Extract URL parts url_parts = url.split('/') # Detect verb url_verb = url_parts.pop() url_verb_parts = url_verb.split('.') if url_verb_parts.len() > 2: url_verb... | 33a91ba32a03dfbd6ceaf94d04f2eac3079d7155 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/33a91ba32a03dfbd6ceaf94d04f2eac3079d7155/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
6427,
12,
2293,
16,
880,
4672,
468,
8065,
729,
3925,
919,
729,
67,
350,
273,
590,
18,
3184,
18,
588,
2668,
1355,
67,
350,
2187,
1083,
13,
7545,
67,
267,
273,
729,
67,
350,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
6427,
12,
2293,
16,
880,
4672,
468,
8065,
729,
3925,
919,
729,
67,
350,
273,
590,
18,
3184,
18,
588,
2668,
1355,
67,
350,
2187,
1083,
13,
7545,
67,
267,
273,
729,
67,
350,
309,... |
id = int(ret['id']) self.mpd.moveid(id, index) | sid = int(ret['id']) self.mpd.moveid(sid, index) | def AddSongs(self, x, y, songs): index = self._getDropIndex(x, y) dprint("At (%d,%d), index=%d, adding %s" % (x, y, index, songs)) # Looks like the MPD protocol is a bit limited in that you # can't add a song at a particular spot; only at the end. So, # we'll have to add them all and then move them (potential # race c... | b39f3056935c6ee8729f5d59b7e07992f7a25e2a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/b39f3056935c6ee8729f5d59b7e07992f7a25e2a/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
55,
7260,
12,
2890,
16,
619,
16,
677,
16,
272,
7260,
4672,
770,
273,
365,
6315,
588,
7544,
1016,
12,
92,
16,
677,
13,
302,
1188,
2932,
861,
6142,
72,
15529,
72,
3631,
770,
5095... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
55,
7260,
12,
2890,
16,
619,
16,
677,
16,
272,
7260,
4672,
770,
273,
365,
6315,
588,
7544,
1016,
12,
92,
16,
677,
13,
302,
1188,
2932,
861,
6142,
72,
15529,
72,
3631,
770,
5095... |
if type(files) == list and len(files): fileList = string.join(files,";") | if type( files ) == list and len( files ): fileList = string.join( files, ";" ) | def setOutputSandbox(self,files): """Helper function. | 50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18113,
17881,
12,
2890,
16,
2354,
4672,
3536,
2276,
445,
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,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18113,
17881,
12,
2890,
16,
2354,
4672,
3536,
2276,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
12345 > llin register 20 pp secret hello world | 12345 > llin register 20 pp hello world | def testScript(self): a = """ 8005551219 > llin register 20 dl secret crummy user 8005551219 < Hello cuser! You are now registered as Distribution point team leader at KANO State. """ self.runScript(a) # this should succeed because we just created him Reporter.objects.get(alias="cuser") dict = {"alias":"fail"} # make s... | f47a45ce40c2d07eef6e7d34514c9541ea3d902b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/f47a45ce40c2d07eef6e7d34514c9541ea3d902b/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3651,
12,
2890,
4672,
279,
273,
3536,
1725,
713,
2539,
13757,
3657,
405,
6579,
267,
1744,
4200,
8910,
4001,
4422,
379,
4811,
729,
1725,
713,
2539,
13757,
3657,
411,
20889,
276,
1355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
12,
2890,
4672,
279,
273,
3536,
1725,
713,
2539,
13757,
3657,
405,
6579,
267,
1744,
4200,
8910,
4001,
4422,
379,
4811,
729,
1725,
713,
2539,
13757,
3657,
411,
20889,
276,
1355,... |
except IOError: | except OSError: | def __del__(self): if self.dir_: self.rmtree(self.dir_, True) | 5e47921fb3b4407d862f911972cd7a095538a119 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/5e47921fb3b4407d862f911972cd7a095538a119/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
18,
1214,
67,
30,
365,
18,
86,
17371,
12,
2890,
18,
1214,
67,
16,
1053,
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,
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,
3771,
972,
12,
2890,
4672,
309,
365,
18,
1214,
67,
30,
365,
18,
86,
17371,
12,
2890,
18,
1214,
67,
16,
1053,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return os.command('cp %s %s' % (remote,file)) | remote = os.path.basename(file) remote = os.path.join(folder,remote) try: os.link(remote,file) except: print 'Could not link file "%s" ' % remote os.unlink(file) return 6 | def retrieve(target=None,source=None,env=None): "Fetch data from the web" top = env.get('top') folder = top + os.sep +env['dir'] private = env.get('private') if private: login = private['login'] password = private['password'] server = private['server'] try: session = ftplib.FTP(server,login,password) session.cwd(folder... | e69aee9a3898cefd51b267eacc4260b92c63dd8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3143/e69aee9a3898cefd51b267eacc4260b92c63dd8c/rsfproj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
3299,
33,
7036,
16,
3168,
33,
7036,
16,
3074,
33,
7036,
4672,
315,
5005,
501,
628,
326,
3311,
6,
1760,
273,
1550,
18,
588,
2668,
3669,
6134,
3009,
273,
1760,
397,
1140,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
3299,
33,
7036,
16,
3168,
33,
7036,
16,
3074,
33,
7036,
4672,
315,
5005,
501,
628,
326,
3311,
6,
1760,
273,
1550,
18,
588,
2668,
3669,
6134,
3009,
273,
1760,
397,
1140,
18,
... |
self.buttonframe = Frame(self.master, background=BACKGROUND) self.buttonframe.pack(fill=X) self.dealbutton = Button(self.buttonframe, | self.canvas = Canvas(self.master, background=BACKGROUND, highlightthickness=0, width=NROWS*XSPACING, height=3*YSPACING + 20 + MARGIN) self.canvas.pack(fill=BOTH, expand=TRUE) self.dealbutton = Button(self.canvas, | def __init__(self, master): | a9b383de5cc662464dfbac36854b1d4ca07c0a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a9b383de5cc662464dfbac36854b1d4ca07c0a0c/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
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... |
""" This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'. """ if file is None: file = sys.stderr print_exception(*(sys.exc_info() + (limit, file))) | """This is a shorthand for 'print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)'.""" if file is None: file = sys.stderr print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file) | def print_last(limit=None, file=None): """ This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'. """ if file is None: file = sys.stderr print_exception(*(sys.exc_info() + (limit, file))) | 0b32f86392c22ea0d511771c227ec568b69c09b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/0b32f86392c22ea0d511771c227ec568b69c09b4/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
2722,
12,
3595,
33,
7036,
16,
585,
33,
7036,
4672,
3536,
2503,
353,
279,
21310,
364,
296,
1188,
67,
4064,
12,
9499,
18,
2722,
67,
723,
16,
2589,
18,
2722,
67,
1132,
16,
258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
2722,
12,
3595,
33,
7036,
16,
585,
33,
7036,
4672,
3536,
2503,
353,
279,
21310,
364,
296,
1188,
67,
4064,
12,
9499,
18,
2722,
67,
723,
16,
2589,
18,
2722,
67,
1132,
16,
258... |
dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, full) return run_dialog(dialog, line_wrap) | dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_OK) return run_dialog(dialog, line_wrap, full) | def ok_information(message, details="", line_wrap=True, markup=False): full = apply_template(template, (message, details), not markup) dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, full) return run_dialog(dialog, line_wrap) | 9d4d18bad052f25a1877233f866f77fec804794d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/9d4d18bad052f25a1877233f866f77fec804794d/simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1529,
67,
13117,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
3189,
3631,
486,
9813,
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,
1529,
67,
13117,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
3189,
3631,
486,
9813,
13,
... |
prop = self.SEARCH_CRITERIUM[self.search_combo.get_active()] | prop = self.SEARCH_CRITERIA[self.search_combo.get_active()] | def fetch_albums(self, pn=1): """ Initialize the fetch thread. """ tab_index = self.treeviews.index(self.current_treeview) if tab_index == self.TAB_POPULAR: params = {'order': 'rating_desc'} elif tab_index == self.TAB_LATEST: params = {'order': 'date_desc'} else: value = self.search_entry.get_text() if not value: retur... | 9a65008fb88d581ef3369993a632395bb4850f42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/9a65008fb88d581ef3369993a632395bb4850f42/jamendo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
25090,
87,
12,
2890,
16,
11059,
33,
21,
4672,
3536,
9190,
326,
2158,
2650,
18,
3536,
3246,
67,
1615,
273,
365,
18,
3413,
7061,
18,
1615,
12,
2890,
18,
2972,
67,
3413,
1945,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
25090,
87,
12,
2890,
16,
11059,
33,
21,
4672,
3536,
9190,
326,
2158,
2650,
18,
3536,
3246,
67,
1615,
273,
365,
18,
3413,
7061,
18,
1615,
12,
2890,
18,
2972,
67,
3413,
1945,
... |
name = value | name = value | def main(argv=None): command = "" name = "firefox" #default child_process = "mozilla-runtime" #default timeout = "" log = "" mod = "" if argv is None: argv = sys.argv opts, args = getopt.getopt(argv[1:], "c:t:n:p:l:m:", ["command=", "timeout=", "name=", "child_process=", "log=", "mod="]) # option processing for opti... | 87ceed973e7c431d307af1c1fb1d98adc1f5acb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/87ceed973e7c431d307af1c1fb1d98adc1f5acb9/bcontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
225,
1296,
273,
1408,
508,
273,
315,
12179,
13873,
6,
468,
1886,
1151,
67,
2567,
273,
315,
8683,
15990,
17,
9448,
6,
468,
1886,
2021,
273,
1408,
613,
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,
2774,
12,
19485,
33,
7036,
4672,
225,
1296,
273,
1408,
508,
273,
315,
12179,
13873,
6,
468,
1886,
1151,
67,
2567,
273,
315,
8683,
15990,
17,
9448,
6,
468,
1886,
2021,
273,
1408,
613,
2... |
address = random.choice(self.targets[ftype]) | address = random.choice(typed_targets[ftype]) | def run_test(self): # A single test should have a single cookie jar self.tor_cookie_jar = cookielib.MozillaCookieJar() self.cookie_jar = cookielib.MozillaCookieJar() self.headers = copy.copy(firefox_headers) self.tests_run += 1 | ba5f7fa040706daf1e1b988aba2b93971703387a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/ba5f7fa040706daf1e1b988aba2b93971703387a/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
2890,
4672,
468,
432,
2202,
1842,
1410,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
2890,
4672,
468,
432,
2202,
1842,
1410,
1240,
279,
2202,
3878,
7334,
365,
18,
13039,
67,
8417,
67,
11930,
273,
15860,
77,
30575,
18,
49,
11142,
10745,
6151,
10813,
14... |
self._exit_status = _prelude.PRELUDE_CLIENT_EXIST_STATUS_FAILURE | self._exit_status = _prelude.PRELUDE_CLIENT_EXIT_STATUS_FAILURE | def set_failure(self): self._exit_status = _prelude.PRELUDE_CLIENT_EXIST_STATUS_FAILURE | ca993d7bedc20a8b801a911e9981c7242533d1da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11628/ca993d7bedc20a8b801a911e9981c7242533d1da/prelude.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12251,
12,
2890,
4672,
365,
6315,
8593,
67,
2327,
273,
389,
1484,
80,
1317,
18,
3670,
11778,
1639,
67,
11935,
67,
28682,
67,
8608,
67,
17623,
225,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12251,
12,
2890,
4672,
365,
6315,
8593,
67,
2327,
273,
389,
1484,
80,
1317,
18,
3670,
11778,
1639,
67,
11935,
67,
28682,
67,
8608,
67,
17623,
225,
2,
-100,
-100,
-100,
-100,
-... |
"SEC" : ["PiPei.h", "DebugLib.h", ], "PEI_CORE" : ["PiPei.h", "DebugLib.h"], "PEIM" : ["PiPei.h", "DebugLib.h"], "DXE_CORE" : ["PiDxe.h", "DebugLib.h"], "DXE_DRIVER" : ["PiDxe.h", "BaseLib.h", "DebugLib.h", "UefiBootServicesTableLib.h"], "DXE_SMM_DRIVER" ... | "SEC" : ["PiPei.h", "Library/DebugLib.h"], "PEI_CORE" : ["PiPei.h", "Library/DebugLib.h"], "PEIM" : ["PiPei.h", "Library/DebugLib.h"], "DXE_CORE" : ["PiDxe.h", "Library/DebugLib.h"], "DXE_DRIVER" : ["PiDxe.h", "Library/BaseLib.h", "Library/DebugLib.h", "Libr... | #ifndef _AUTOGENH_${Guid} | d77f7b6332f374989cc6c0787b8942dd8cb133c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/d77f7b6332f374989cc6c0787b8942dd8cb133c4/GenC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
389,
18909,
16652,
44,
67,
18498,
22549,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
389,
18909,
16652,
44,
67,
18498,
22549,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.do_broadcast_event() | self.do_add_listener_to_broadcaster() | def test_broadcast_event_with_dwarf(self): """Exercise SBBroadcaster.BroadcastEvent() API.""" self.buildDwarf() self.do_broadcast_event() | 7687bafcb93bacacbd97c7db357455393ae424ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/7687bafcb93bacacbd97c7db357455393ae424ce/TestEvents.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19805,
67,
2575,
67,
1918,
67,
72,
905,
74,
12,
2890,
4672,
3536,
424,
20603,
348,
9676,
26674,
18,
15926,
1133,
1435,
1491,
12123,
365,
18,
3510,
40,
905,
74,
1435,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19805,
67,
2575,
67,
1918,
67,
72,
905,
74,
12,
2890,
4672,
3536,
424,
20603,
348,
9676,
26674,
18,
15926,
1133,
1435,
1491,
12123,
365,
18,
3510,
40,
905,
74,
1435,
365,
18,... |
navtrail="""<a class="navtrail" href="%s/youraccount.py/display">Your Account</a>""" % weburl, | navtrail="""<a class="navtrail" href="%s/youraccount.py/account">Your Account</a>""" % weburl, | def send_email(req,p_email=None): uid = webuser.getUid(req) passw = webuser.givePassword(p_email) if passw == -999: eMsg = "The entered e-mail address doesn't exist in the database" return page(title="Your Account", body=webaccount.perform_emailMessage(eMsg), navtrail="""<a class="navtrail" href="%s/youraccount.py/di... | 56aae58cdc7ee11bf441cc8f8786888f55a2d330 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/56aae58cdc7ee11bf441cc8f8786888f55a2d330/youraccount.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3652,
12,
3658,
16,
84,
67,
3652,
33,
7036,
4672,
225,
4555,
273,
3311,
1355,
18,
588,
11994,
12,
3658,
13,
225,
1342,
91,
273,
3311,
1355,
18,
75,
688,
3913,
12,
84,
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,
1366,
67,
3652,
12,
3658,
16,
84,
67,
3652,
33,
7036,
4672,
225,
4555,
273,
3311,
1355,
18,
588,
11994,
12,
3658,
13,
225,
1342,
91,
273,
3311,
1355,
18,
75,
688,
3913,
12,
84,
67,
... |
if not sys.platform.startswith('java'): verify(u'\ud800\udc02'.encode('utf-8') == '\xf0\x90\x80\x82') | verify(u'\ud800\udc02'.encode('utf-8') == '\xf0\x90\x80\x82') verify(isinstance(u'\ud800\udc02'.encode('utf-8'), str)) | def __str__(self): return self.x | 086696387e752a7c194ded076b03d68d9fdb1cf2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/086696387e752a7c194ded076b03d68d9fdb1cf2/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
92,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
18,
92,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
raise Exception('Bad option "%s"' % (option, )) | raise Exception('Bad option "%s"' % (option, )) | def parse_workflow_config(rawactions): """Given a list of options from [ticket-workflow]""" actions = {} for option, value in rawactions: parts = option.split('.') action = parts[0] if action not in actions: actions[action] = {} if len(parts) == 1: # Base name, of the syntax: old,states,here -> newstate try: oldstates,... | 4557ba248139b9944b399be700bb3f2c65df45fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/4557ba248139b9944b399be700bb3f2c65df45fd/default_workflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
13815,
67,
1425,
12,
1899,
4905,
4672,
3536,
6083,
279,
666,
434,
702,
628,
306,
16282,
17,
13815,
65,
8395,
4209,
273,
2618,
364,
1456,
16,
460,
316,
1831,
4905,
30,
2140,
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,
1109,
67,
13815,
67,
1425,
12,
1899,
4905,
4672,
3536,
6083,
279,
666,
434,
702,
628,
306,
16282,
17,
13815,
65,
8395,
4209,
273,
2618,
364,
1456,
16,
460,
316,
1831,
4905,
30,
2140,
2... |
tokens = sentence.split(';')[1].split(',') | tokens = sentence.split(';') if len(tokens) < 2: return tokens = tokens[1].split(',') | def update(self): """ parse a single sentence. """ | 4b41a68173a4c6e24de22794159200938f82e446 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3566/4b41a68173a4c6e24de22794159200938f82e446/dgps_novatel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
1109,
279,
2202,
7515,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
1109,
279,
2202,
7515,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print ">", line elif op == 'insert': print str(a0) + "a" + pair(b0, b1) for line in b[b0:b1]: print ">", line | print "+", line, | def pair(x0, x1): x0 += 1 if x0 >= x1: return str(x0) else: return "%d,%d" % (x0, x1) | 5d5cbea13a7ce3fec0f1eaea43acaa3a9b6fb93c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5d5cbea13a7ce3fec0f1eaea43acaa3a9b6fb93c/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
619,
20,
1011,
404,
309,
619,
20,
1545,
619,
21,
30,
327,
609,
12,
92,
20,
13,
469,
30,
327,
2213,
72,
15529,
72,
6,
738,
261,
92,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
619,
20,
1011,
404,
309,
619,
20,
1545,
619,
21,
30,
327,
609,
12,
92,
20,
13,
469,
30,
327,
2213,
72,
15529,
72,
6,
738,
261,
92,
20,
16,
... |
o2tf.printlog('buildkernel.check_thread: Removing pid \ | o2tf.printlog('buildkernel:check_thread: Removing pid \ | def check_thread(runnumber, wdir, logfile): 'check_thread checks the pidlist for running tasks until the last one \ completes.' 'check_thread takes 3 arguments:' ' runnumer - Sequence number of a specific batch.' ' wdir - working directory.' ' logfile - logfile name' o2tf.printlog('buildkernel.check_thread: Waiti... | d974635f0ebd98460a2338abe8d5b254e8b5f9a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/d974635f0ebd98460a2338abe8d5b254e8b5f9a3/buildkernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5930,
12,
2681,
2696,
16,
341,
1214,
16,
15204,
4672,
296,
1893,
67,
5930,
4271,
326,
4231,
1098,
364,
3549,
4592,
3180,
326,
1142,
1245,
521,
7218,
1093,
296,
1893,
67,
5930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5930,
12,
2681,
2696,
16,
341,
1214,
16,
15204,
4672,
296,
1893,
67,
5930,
4271,
326,
4231,
1098,
364,
3549,
4592,
3180,
326,
1142,
1245,
521,
7218,
1093,
296,
1893,
67,
5930,
... |
gvutils.warning('No html help available for '+opformat+' format') | gvutils.warning('No html help available for %s format' % opformat) | def format_help_cb(self,*args): opformat=self.format_list[self.format_menu.get_history()] driver=gdal.GetDriverByName(opformat) topic=driver.HelpTopic if topic is not None: # hash to indicate position in html isn't # recognized by mozilla. Make sure that # frmt_various.html is brought up for # formats that share this ... | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
5201,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
1061,
2139,
33,
2890,
18,
2139,
67,
1098,
63,
2890,
18,
2139,
67,
5414,
18,
588,
67,
8189,
1435,
65,
3419,
33,
19016,
287,
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,
740,
67,
5201,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
1061,
2139,
33,
2890,
18,
2139,
67,
1098,
63,
2890,
18,
2139,
67,
5414,
18,
588,
67,
8189,
1435,
65,
3419,
33,
19016,
287,
18,
... |
factoid = relation(Factoid, backref='values') | factoid = relation(Factoid) | def __repr__(self): return u'<FactoidName %s %s>' % (self.name, self.factoid_id) | a95180207a13426bb5158e83ec3bb107097045ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/a95180207a13426bb5158e83ec3bb107097045ed/factoid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
582,
11,
32,
9766,
839,
461,
738,
87,
738,
87,
1870,
738,
261,
2890,
18,
529,
16,
365,
18,
3493,
839,
67,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
582,
11,
32,
9766,
839,
461,
738,
87,
738,
87,
1870,
738,
261,
2890,
18,
529,
16,
365,
18,
3493,
839,
67,
350,
13,
2,
-100,
-100,
-100,
-100,
... |
def __init__(self, window, log_packets, options): QObject.__init__(self) Ui_MainWindow.__init__(self) self.key = '-1' self.log_packets = log_packets self.options = options self.setupUi(window) self.card = None self.window = window window.closeEvent = self.close_event window.setWindowTitle(QtGui.QApplication.translate... | def login_user(self, username, password): # WARNING: to be used by a thread self.status_label_login.setText("Trying to login...") try: if self.OSDBServer._login(username, password) : if not username: username = 'Anonymous' self.status_label_login.setText("Logged as: %s" % username) elif username: #We try anonymous logi... | 26efdf7a772ec52067b0ad26977bfc9d5fb5683f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/26efdf7a772ec52067b0ad26977bfc9d5fb5683f/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
67,
1355,
12,
2890,
16,
2718,
16,
2201,
4672,
468,
9744,
30,
358,
506,
1399,
635,
279,
2650,
365,
18,
2327,
67,
1925,
67,
5819,
18,
542,
1528,
2932,
18038,
358,
3925,
7070,
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,
3925,
67,
1355,
12,
2890,
16,
2718,
16,
2201,
4672,
468,
9744,
30,
358,
506,
1399,
635,
279,
2650,
365,
18,
2327,
67,
1925,
67,
5819,
18,
542,
1528,
2932,
18038,
358,
3925,
7070,
13,
... | |
self.show_rain = 0 self.canvasitems[4].hide() self.canvasitems[5].hide() | self.rain_on = 0 self.clouditem.hide() self.rainitem.hide() | def move_cloud(self): if(self.cloud_on): self.canvasitems[4].show() else: self.canvasitems[4].hide() if(self.rain_on): self.canvasitems[5].show() else: self.canvasitems[5].hide() | 690f8ac7446757307ab013b8fb8fe772b4ea0d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/690f8ac7446757307ab013b8fb8fe772b4ea0d9d/watercycle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
7277,
12,
2890,
4672,
309,
12,
2890,
18,
7277,
67,
265,
4672,
365,
18,
15424,
3319,
63,
24,
8009,
4500,
1435,
469,
30,
365,
18,
15424,
3319,
63,
24,
8009,
11248,
1435,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
7277,
12,
2890,
4672,
309,
12,
2890,
18,
7277,
67,
265,
4672,
365,
18,
15424,
3319,
63,
24,
8009,
4500,
1435,
469,
30,
365,
18,
15424,
3319,
63,
24,
8009,
11248,
1435,
225,
... |
if Target == "NT386" and HostIsNT and Config == "NT386" and (not GCC_BACKEND) and TargetOS == "WIN32": | if IsNativeNTHostTarget(): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... | 14e6facff06b2fc91279af79db1d8f8435565022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/14e6facff06b2fc91279af79db1d8f8435565022/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
5494,
13332,
2332,
24681,
273,
1140,
18,
28684,
18,
588,
2932,
3163,
24681,
3113,
1408,
13,
309,
1140,
18,
28684,
18,
588,
2932,
4618,
7923,
422,
315,
10399,
67,
1784,
6877,
4893,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
5494,
13332,
2332,
24681,
273,
1140,
18,
28684,
18,
588,
2932,
3163,
24681,
3113,
1408,
13,
309,
1140,
18,
28684,
18,
588,
2932,
4618,
7923,
422,
315,
10399,
67,
1784,
6877,
4893,
... |
def extract_bug_tracker_specific_data(metadata_dict, bug_object): raise NotImplemented | def extract_bug_tracker_specific_data(self, metadata_dict, bug_object): raise RuntimeError(NotImplemented) | def extract_bug_tracker_specific_data(metadata_dict, bug_object): raise NotImplemented | 69f1b95e2b69a7e61d7906a95497d285e83e17de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/69f1b95e2b69a7e61d7906a95497d285e83e17de/roundup_general.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
925,
67,
16543,
67,
12524,
67,
892,
12,
4165,
67,
1576,
16,
7934,
67,
1612,
4672,
1002,
10051,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
925,
67,
16543,
67,
12524,
67,
892,
12,
4165,
67,
1576,
16,
7934,
67,
1612,
4672,
1002,
10051,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.galaxy = fill2d(GALSIZE, lambda i_unused, j_unused: quadrant()) | self.galaxy = fill2d(GALSIZE, lambda i_unused, j_unused: Quadrant()) | def __init__(self): self.snap = False # snapshot taken self.crew = 0 # crew complement | e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
28449,
273,
1083,
202,
7,
4439,
9830,
365,
18,
1793,
91,
273,
374,
565,
202,
7,
1519,
91,
17161,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
28449,
273,
1083,
202,
7,
4439,
9830,
365,
18,
1793,
91,
273,
374,
565,
202,
7,
1519,
91,
17161,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Hstar = self.bgmodel.yresult[tsix,2] | if self.bgmodel.yresult.ndim > 2: bgyresult = self.bgmodel.yresult[..., 0] else: bgyresult = self.bgmodel.yresult Hstar = bgyresult[tsix,2] Hzero = bgyresult[0,2] | def getfoystart(self, ts=None, tsix=None): """Model dependent setting of ystart""" self._log.debug("Executing getfoystart to get initial conditions.") #Set variables in standard case: if ts is None or tsix is None: ts, tsix = self.fotstart, self.fotstartindex #Reset starting conditions at new time foystart = np.zeros(... | 86487b98bee07f0ff6e75a6f640a02436b196cfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/86487b98bee07f0ff6e75a6f640a02436b196cfd/cosmomodels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
617,
1094,
485,
12,
2890,
16,
3742,
33,
7036,
16,
3742,
697,
33,
7036,
4672,
3536,
1488,
10460,
3637,
434,
677,
1937,
8395,
365,
6315,
1330,
18,
4148,
2932,
22134,
336,
617,
1094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
617,
1094,
485,
12,
2890,
16,
3742,
33,
7036,
16,
3742,
697,
33,
7036,
4672,
3536,
1488,
10460,
3637,
434,
677,
1937,
8395,
365,
6315,
1330,
18,
4148,
2932,
22134,
336,
617,
1094,
... |
link = Link(`uid`, uid) | link = Link(uid.name(), uid) | def _extract_index(self): """ @return: A dictionary mapping from terms to lists of source documents. @rtype: C{dictionary} """ index = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and self._is_private(`uid`): continue if uid.is_function(): link = Link(`uid`, uid.module()) elif uid.is_method()... | 7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
432,
3880,
2874,
628,
6548,
358,
6035,
434,
1084,
7429,
18,
632,
86,
723,
30,
385,
95,
15556,
97,
3536,
770,
273,
2618,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8004,
67,
1615,
12,
2890,
4672,
3536,
632,
2463,
30,
432,
3880,
2874,
628,
6548,
358,
6035,
434,
1084,
7429,
18,
632,
86,
723,
30,
385,
95,
15556,
97,
3536,
770,
273,
2618,
364,
... |
Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | Returns the finite abelian group `(O_K/I)^*`, where I is the ideal self of the number field K, and `O_K` is the ring of integers of K. | def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
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,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... |
self._append_untagged(self.mo.group('type'), self.mo.group('data')) | typ = self.mo.group('type') typ = str(typ, "ASCII") self._append_untagged(typ, self.mo.group('data')) | def _get_response(self): | 904415bf68711317b77f5fac862d529284410d4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/904415bf68711317b77f5fac862d529284410d4b/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2740,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2740,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print_debug ("Host %s NOT connected" %(host) ) | print_debug ("Host %s NOT connected" %(alhost) ) | def __init__(self): self.name="ServerUtils" self.worker_running = False # get all devices import tcosmonitor.TcosCommon import tcosmonitor.TcosXmlRpc import tcosmonitor.TcosConf self.common=tcosmonitor.TcosCommon.TcosCommon(self) self.config=tcosmonitor.TcosConf.TcosConf(self) self.xmlrpc=tcosmonitor.TcosXmlRpc.TcosXm... | 84ac26645be3bf0c3070fa2166170b5ef1e636a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/84ac26645be3bf0c3070fa2166170b5ef1e636a2/tcos-server-utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
1546,
2081,
1989,
6,
365,
18,
10124,
67,
8704,
273,
1083,
225,
468,
336,
777,
7166,
1930,
1715,
538,
10259,
18,
56,
14445,
6517,
1930,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
1546,
2081,
1989,
6,
365,
18,
10124,
67,
8704,
273,
1083,
225,
468,
336,
777,
7166,
1930,
1715,
538,
10259,
18,
56,
14445,
6517,
1930,
17... |
def testNotWorkon(self): err_msg = 'Adding of non-workon projects is currently unsupported.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'add', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | def main(argv): usage = 'usage: %prog add [options] <name> <path>' parser = optparse.OptionParser(usage=usage) parser.add_option('-w', '--workon', action='store_true', dest='workon', default=False, help='Is this a workon package?') parser.add_option('-f', '--file', dest='manifest', help='Non-default manifest file to re... | def testNotWorkon(self): err_msg = 'Adding of non-workon projects is currently unsupported.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'add', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | 865a42edee4aa895681f5445eae8c6995e344861 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/865a42edee4aa895681f5445eae8c6995e344861/loman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1248,
2421,
265,
12,
2890,
4672,
393,
67,
3576,
273,
296,
13962,
434,
1661,
17,
1252,
265,
10137,
353,
4551,
13248,
8403,
82,
11,
365,
18,
11231,
12649,
6141,
12,
22729,
16,
328,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1248,
2421,
265,
12,
2890,
4672,
393,
67,
3576,
273,
296,
13962,
434,
1661,
17,
1252,
265,
10137,
353,
4551,
13248,
8403,
82,
11,
365,
18,
11231,
12649,
6141,
12,
22729,
16,
328,
... |
else: | else: | def do_table(self, args): '''Usage: table classname [property[,property]*] List the instances of a class in tabular form. | 8db273cafa102a40f99c0dde8ea0913e7a82990e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8db273cafa102a40f99c0dde8ea0913e7a82990e/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2121,
12,
2890,
16,
833,
4672,
9163,
5357,
30,
1014,
7479,
306,
4468,
63,
16,
4468,
5772,
65,
987,
326,
3884,
434,
279,
667,
316,
28342,
646,
18,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2121,
12,
2890,
16,
833,
4672,
9163,
5357,
30,
1014,
7479,
306,
4468,
63,
16,
4468,
5772,
65,
987,
326,
3884,
434,
279,
667,
316,
28342,
646,
18,
2,
-100,
-100,
-100,
-100,
... |
navigationRow.Add(self.nextButton, 0, wx.EXPAND) | navigationRow.Add(self.nextButton, 0, wx.CENTER) | def OnInit(self): self.SetBackgroundColour(self.parent.bgColor) | 4ba2a3e6c850408ed79fa6ef0a8bd1a6943eac9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/4ba2a3e6c850408ed79fa6ef0a8bd1a6943eac9a/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
c.run(t) | gen = c.channel_get(c.is_end) for a in gen: if t: time.sleep(t) | def run(self, t): for c in self.outputs: c.run(t) | ded18ea04e28c60af8a7b2d7e1ab8546cbd7b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/ded18ea04e28c60af8a7b2d7e1ab8546cbd7b8f5/proto_new.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
268,
4672,
364,
276,
316,
365,
18,
12295,
30,
276,
18,
2681,
12,
88,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
268,
4672,
364,
276,
316,
365,
18,
12295,
30,
276,
18,
2681,
12,
88,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sock.open("%s.log" % pkg.split('/')[-1]) | sock = open("%s.log" % pkg.split('/')[-1]) | def build(self, pkg): # maybe later support protocolls (the first item) other than git? scm = pkg.split('/')[0][:-1] tree = pkg.split('/')[2] pkgarr = pkg.split('/')[3].split('-') pkgname = "-".join(pkgarr[:-3]) pkgver = "-".join(pkgarr[-3:-1]) arch = pkgarr[-1] self.log(pkg, "starting build") sock = os.popen(". ~/.rep... | 60b89ddda6e221efbc4178e3f1f88354dcf7c0d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11991/60b89ddda6e221efbc4178e3f1f88354dcf7c0d1/syncpkgcd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
30,
17,
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,
1361,
12,
2890,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
30,
17,
21,
... |
assert_array_almost_equal(f(1,[[1,2]],[[3],[4]]),[11]) | assert_array_almost_equal(f(1,[[1,2]],[[3],[4]]),[[11]]) | def check_gemm2(self): for p in 'sdcz': f = getattr(fblas,p+'gemm',None) if f is None: continue assert_array_almost_equal(f(1,[[1,2]],[[3],[4]]),[11]) assert_array_almost_equal(f(1,[[1,2],[1,2]],[[3],[4]]),[[11],[11]]) | 7e71688ec03fc1369210cbb8183a43673560809c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/7e71688ec03fc1369210cbb8183a43673560809c/test_blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
23465,
81,
22,
12,
2890,
4672,
364,
293,
316,
296,
6427,
71,
94,
4278,
284,
273,
3869,
12,
74,
3083,
345,
16,
84,
6797,
23465,
81,
2187,
7036,
13,
309,
284,
353,
599,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
23465,
81,
22,
12,
2890,
4672,
364,
293,
316,
296,
6427,
71,
94,
4278,
284,
273,
3869,
12,
74,
3083,
345,
16,
84,
6797,
23465,
81,
2187,
7036,
13,
309,
284,
353,
599,
30,
... |
def callDeallocActor(self, md, actorexpr): actor = md.decl.type.constructedType() return ExprCall( ExprSelect(ExprCall(self.protocol.managerMethod(actorexpr)), '->', _deallocMethod(md.decl.type.constructedType()).name), args=[ actorexpr ]) | def callDeallocSubtree(self, md, actorexpr): return ExprCall(ExprSelect(actorexpr, '->', 'DeallocSubtree')) | 5a7843888bd14ee319a059aea3c708fe1563d5e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/5a7843888bd14ee319a059aea3c708fe1563d5e1/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
758,
9853,
18615,
12,
2890,
16,
3481,
16,
1328,
479,
92,
683,
4672,
327,
8074,
1477,
12,
4742,
3391,
12,
621,
479,
92,
683,
16,
26010,
16,
296,
758,
9853,
18615,
26112,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
758,
9853,
18615,
12,
2890,
16,
3481,
16,
1328,
479,
92,
683,
4672,
327,
8074,
1477,
12,
4742,
3391,
12,
621,
479,
92,
683,
16,
26010,
16,
296,
758,
9853,
18615,
26112,
2,
-100,
... | |
navshell.pack_start(bopt_frame,False,False,0) bopt_table=gtk.Table(2,4,False) | navshell.pack_start(bopt_frame, expand=False) bopt_table = gtk.Table(2, 4) | def init_dialog(self): self.dialog = gtk.Window() self.dialog.set_title('GDAL Export Tool') self.dialog.set_border_width(10) self.tips=gtk.Tooltips() #self.dialog.set_default_size(500,400) self.dialog.set_resizable(True) | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
12730,
12,
2890,
4672,
365,
18,
12730,
273,
22718,
18,
3829,
1435,
365,
18,
12730,
18,
542,
67,
2649,
2668,
27338,
1013,
11054,
13288,
6134,
365,
18,
12730,
18,
542,
67,
8815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
12730,
12,
2890,
4672,
365,
18,
12730,
273,
22718,
18,
3829,
1435,
365,
18,
12730,
18,
542,
67,
2649,
2668,
27338,
1013,
11054,
13288,
6134,
365,
18,
12730,
18,
542,
67,
8815,
... |
if(self.musicManager == None): self.notify.warning("Cant toggle music, must set audio-music-active return 0 | def EnableMusic(self, bEnableMusic): if(self.musicManager == None): # would need to createaudiomanager/loadsfx for this to work. would that be safe after startup? self.notify.warning("Cant toggle music, must set audio-music-active #t in Configrc at startup") return 0 self.wantMusic = bEnableMusic # dont setActive(1) i... | c0939e89170190f01ca37a16f09b2043ef03e3f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/c0939e89170190f01ca37a16f09b2043ef03e3f5/ShowBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9677,
49,
14894,
12,
2890,
16,
324,
8317,
49,
14894,
4672,
309,
12,
2890,
18,
81,
14894,
1318,
422,
599,
4672,
468,
4102,
1608,
358,
752,
24901,
14642,
1063,
19,
17135,
19595,
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,
9677,
49,
14894,
12,
2890,
16,
324,
8317,
49,
14894,
4672,
309,
12,
2890,
18,
81,
14894,
1318,
422,
599,
4672,
468,
4102,
1608,
358,
752,
24901,
14642,
1063,
19,
17135,
19595,
364,
333,
... | |
if folder_name: query = gdata.docs.service.DocumentQuery(categories=['folder'], params={'showfolders': 'true'}) feed = self.Query(query.ToUri()) | if folder_entry_list: | def get_doclist(self, title=None, folder_name=None): """Get a list of document entries from a feed. Keyword arguments: title: String to use when looking for entries to return. Will be compared to entry.title.text, using regular expressions if self.use_regex. (Default None for all entries from feed). folder_name: Strin... | c39b8a9627de0edfb3d799d2d03eab92d3ba2b20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/c39b8a9627de0edfb3d799d2d03eab92d3ba2b20/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2434,
1098,
12,
2890,
16,
2077,
33,
7036,
16,
3009,
67,
529,
33,
7036,
4672,
3536,
967,
279,
666,
434,
1668,
3222,
628,
279,
4746,
18,
225,
18317,
1775,
30,
2077,
30,
514,
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,
336,
67,
2434,
1098,
12,
2890,
16,
2077,
33,
7036,
16,
3009,
67,
529,
33,
7036,
4672,
3536,
967,
279,
666,
434,
1668,
3222,
628,
279,
4746,
18,
225,
18317,
1775,
30,
2077,
30,
514,
3... |
return getattr(self.cnx, name) | if hasattr(self, 'cnx'): return getattr(self.cnx, name) return object.__getattr__(self, name) | def __getattr__(self, name): return getattr(self.cnx, name) | 3ae5818256d7afb7361900047341642489d25e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/3ae5818256d7afb7361900047341642489d25e5a/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
327,
3869,
12,
2890,
18,
10305,
92,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
327,
3869,
12,
2890,
18,
10305,
92,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if debug: | if options.debug: | def run_tests(start, full=False): os.path.walk(start, lister, full) functions = {} names_to_functions = {} for module in modules: # Create a function that'll test a particular module. module=module # is a hack to force python to evaluate the params now. We then # rename the function to make error reporting nicer. ru... | 6bd14b92cfab70d52c17762c2039e8f56828ee5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/6bd14b92cfab70d52c17762c2039e8f56828ee5c/unittest_suite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
1937,
16,
1983,
33,
8381,
4672,
1140,
18,
803,
18,
11348,
12,
1937,
16,
666,
264,
16,
1983,
13,
225,
4186,
273,
2618,
1257,
67,
869,
67,
10722,
273,
2618,
364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
1937,
16,
1983,
33,
8381,
4672,
1140,
18,
803,
18,
11348,
12,
1937,
16,
666,
264,
16,
1983,
13,
225,
4186,
273,
2618,
1257,
67,
869,
67,
10722,
273,
2618,
364,
1... |
system('cat << EOF\n%s\nEOF | qsub' % submit_string) | system('qsub << EOF\n%s\nEOF' % submit_string) | def submit(self): from os import system submit_string = self.preview() if self.valid: system('cat << EOF\n%s\nEOF | qsub' % submit_string) | 68c64a5bb34d6983ac2fa816fbb9cbf27ee82a6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8376/68c64a5bb34d6983ac2fa816fbb9cbf27ee82a6d/pbsjob.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
2890,
4672,
628,
1140,
1930,
2619,
4879,
67,
1080,
273,
365,
18,
12102,
1435,
309,
365,
18,
877,
30,
2619,
2668,
2574,
2296,
6431,
64,
82,
9,
87,
64,
82,
12706,
571,
1043,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
12,
2890,
4672,
628,
1140,
1930,
2619,
4879,
67,
1080,
273,
365,
18,
12102,
1435,
309,
365,
18,
877,
30,
2619,
2668,
2574,
2296,
6431,
64,
82,
9,
87,
64,
82,
12706,
571,
1043,
... |
self.reviewPosition=text.OffsetsPosition(len(self.textRepresentation)-1) | self.reviewPosition=self.makeTextInfo(text.POSITION_LAST) | def event_gainFocus(self): super(MSNHistory,self).event_gainFocus() self.reviewPosition=text.OffsetsPosition(len(self.textRepresentation)-1) | 22d2ea2332770de013cd78aac003ad371eeb87a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/22d2ea2332770de013cd78aac003ad371eeb87a4/msnmsgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
25540,
9233,
12,
2890,
4672,
2240,
12,
3537,
50,
5623,
16,
2890,
2934,
2575,
67,
25540,
9233,
1435,
365,
18,
16041,
2555,
33,
955,
18,
13830,
2555,
12,
1897,
12,
2890,
18,
955... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
25540,
9233,
12,
2890,
4672,
2240,
12,
3537,
50,
5623,
16,
2890,
2934,
2575,
67,
25540,
9233,
1435,
365,
18,
16041,
2555,
33,
955,
18,
13830,
2555,
12,
1897,
12,
2890,
18,
955... |
while len(newwholist) == 0 and page > 0: page -= 1 newwholist = wholist[page * 10:] | def showWhoGump(player, page): current_page = page # Collect the current list of sockets first wholist = [] worldsocket = wolfpack.sockets.first() while worldsocket: char = worldsocket.player if char.invisible and char.rank > player.rank: continue if not char.account: continue wholist.append(char) worldsocket = wolfp... | 3ad293291512a113996960f924dd92fb31699c61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/3ad293291512a113996960f924dd92fb31699c61/who.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
2888,
83,
43,
2801,
12,
14872,
16,
1363,
4672,
783,
67,
2433,
273,
1363,
225,
468,
9302,
326,
783,
666,
434,
16762,
1122,
600,
355,
376,
273,
5378,
225,
9117,
7814,
273,
341,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2888,
83,
43,
2801,
12,
14872,
16,
1363,
4672,
783,
67,
2433,
273,
1363,
225,
468,
9302,
326,
783,
666,
434,
16762,
1122,
600,
355,
376,
273,
5378,
225,
9117,
7814,
273,
341,
355... | |
_do_under_lines(i, t_off, tx) | _do_under_lines(i, t_off+leftIndent, tx) | def drawPara(self,debug=0): """Draws a paragraph according to the given style. Returns the final y position at the bottom. Not safe for paragraphs without spaces e.g. Japanese; wrapping algorithm will go infinite.""" | e1b6ae68ff0889c00107af6cf95dc49d2a194d6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/e1b6ae68ff0889c00107af6cf95dc49d2a194d6b/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
... |
sender = re.search('</a><br /><small><a href="/profile.php\?.+;refid=11">(.+)</a>(<br />|,)', line) | sender = re.search('</a><br /><small><a href="/.+.php\?.+;refid=11">(.+)</a>(<br />|,)', line) | def get_messages(self): connection = web_proxy.urllib2.urlopen("http://m.facebook.com/inbox/") messages_ = connection.read().split("<hr />") messages = [] title = "" sender = "" unread = False for line in messages_: #search subject title = re.search('<a href="/inbox/\?.+;refid=11"><b>(.+)</b></a><br /><small><a href="/... | 5ba693353a1b162320cd2de05245652bee3fc929 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/5ba693353a1b162320cd2de05245652bee3fc929/watch_sn_facebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6833,
12,
2890,
4672,
1459,
273,
3311,
67,
5656,
18,
718,
2941,
22,
18,
295,
18589,
2932,
2505,
2207,
81,
18,
23130,
18,
832,
19,
267,
2147,
4898,
13,
2743,
67,
273,
1459,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6833,
12,
2890,
4672,
1459,
273,
3311,
67,
5656,
18,
718,
2941,
22,
18,
295,
18589,
2932,
2505,
2207,
81,
18,
23130,
18,
832,
19,
267,
2147,
4898,
13,
2743,
67,
273,
1459,
1... |
def setStatusBarText(self, text): self.statusBar.message(text) qApp.processEvents() def printVerbose(self, text): orngMisc.printVerbose(text) | def setStatusBarText(self, text): self.statusBar.message(text) qApp.processEvents() | 0e491378e71212a6a34471826031736d4a3a8cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e491378e71212a6a34471826031736d4a3a8cd6/OWBaseWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9433,
5190,
1528,
12,
2890,
16,
977,
4672,
365,
18,
2327,
5190,
18,
2150,
12,
955,
13,
1043,
3371,
18,
2567,
3783,
1435,
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,
9433,
5190,
1528,
12,
2890,
16,
977,
4672,
365,
18,
2327,
5190,
18,
2150,
12,
955,
13,
1043,
3371,
18,
2567,
3783,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
for mypage in page_results[2:]: | for mypage in page_results: | def send_to_csv(csv_file, results): import csv for res in results: browser_dump, counter_dump = results[res] writer = csv.writer(open(csv_file + '_' + res, "wb")) if res == 'ts': i = 0 writer.writerow(['i', 'val']) for val in browser_dump: writer.writerow([i, val]) i += 1 else: writer.writerow(['i', 'page', 'median', ... | a9dbdaa9165b53df51f48a660477a14c4fcbed04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/a9dbdaa9165b53df51f48a660477a14c4fcbed04/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
869,
67,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299... |
c=OWGraphTools.ColorPaletteHSV(len(data)) | c=OWColorPalette.ColorPaletteHSV(len(data)) | def setVarList(self, data): self.colorCombo.clear() self.sizeCombo.clear() self.shapeCombo.clear() self.nameCombo.clear() for name in ["One color", "Variable"]: self.colorCombo.addItem(name) for name in ["No name", "Var name"]: self.nameCombo.addItem(name) self.colors=[[Qt.black]*3 for i in range(len(data))] self.shape... | d0620d7d7f1aa3a4dea31e6766ed5d4287a2caa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d0620d7d7f1aa3a4dea31e6766ed5d4287a2caa9/OWMDS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1537,
682,
12,
2890,
16,
501,
4672,
365,
18,
3266,
16156,
18,
8507,
1435,
365,
18,
1467,
16156,
18,
8507,
1435,
365,
18,
4867,
16156,
18,
8507,
1435,
365,
18,
529,
16156,
18,
8507... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1537,
682,
12,
2890,
16,
501,
4672,
365,
18,
3266,
16156,
18,
8507,
1435,
365,
18,
1467,
16156,
18,
8507,
1435,
365,
18,
4867,
16156,
18,
8507,
1435,
365,
18,
529,
16156,
18,
8507... |
if k.name == s3pathD: | if _eq_utf8(k.name,s3pathD): | def makedir(self,path,recursive=False,allow_recreate=False): """Create a directory at the given path. | bd920d62379684e707fa3fd2963bb6123de89e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/bd920d62379684e707fa3fd2963bb6123de89e32/s3fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11882,
481,
12,
2890,
16,
803,
16,
10543,
33,
8381,
16,
5965,
67,
266,
2640,
33,
8381,
4672,
3536,
1684,
279,
1867,
622,
326,
864,
589,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11882,
481,
12,
2890,
16,
803,
16,
10543,
33,
8381,
16,
5965,
67,
266,
2640,
33,
8381,
4672,
3536,
1684,
279,
1867,
622,
326,
864,
589,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
channels = mixer.get_num_channels () data = sound.get_buffer ().raw | channels = info[2] if raw: data = sound.get_buffer ().raw else: data = sound.get_buffer () | def array (sound): """pygame._numpysndarray.array(Sound): return array Copy Sound samples into an array. Creates a new array for the sound data and copies the samples. The array will always be in the format returned from pygame.mixer.get_init(). """ # Info is a (freq, format, stereo) tuple info = mixer.get_init () if... | da6f2cd099347d7de484002f79defddd09ddc23f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/da6f2cd099347d7de484002f79defddd09ddc23f/_numpysndarray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
526,
261,
29671,
4672,
3536,
2074,
13957,
6315,
2107,
84,
1900,
25681,
18,
1126,
12,
24331,
4672,
327,
526,
225,
5631,
348,
772,
5216,
1368,
392,
526,
18,
225,
10210,
279,
394,
526,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
526,
261,
29671,
4672,
3536,
2074,
13957,
6315,
2107,
84,
1900,
25681,
18,
1126,
12,
24331,
4672,
327,
526,
225,
5631,
348,
772,
5216,
1368,
392,
526,
18,
225,
10210,
279,
394,
526,
364,... |
ids = filter(lambda id: id != None, ids) | ids = filter(lambda id: id != None, ids or []) | def get_ids(self, cr, uid, object_list): #This method return dictionary with ids of records of object for module pool = pooler.get_pool(cr.dbname) result_ids = {} for obj in object_list: ids = pool.get(obj).search(cr, uid, []) ids = filter(lambda id: id != None, ids) result_ids[obj] = ids return result_ids | b57e6f696647b4e625165dddb47b69e3d0e68e93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b57e6f696647b4e625165dddb47b69e3d0e68e93/base_module_quality.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2232,
12,
2890,
16,
4422,
16,
4555,
16,
733,
67,
1098,
4672,
468,
2503,
707,
327,
3880,
598,
3258,
434,
3853,
434,
733,
364,
1605,
2845,
273,
2845,
264,
18,
588,
67,
6011,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2232,
12,
2890,
16,
4422,
16,
4555,
16,
733,
67,
1098,
4672,
468,
2503,
707,
327,
3880,
598,
3258,
434,
3853,
434,
733,
364,
1605,
2845,
273,
2845,
264,
18,
588,
67,
6011,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.